Software :: Compile Xlib And All Its Dependencies ?
May 20, 2009
I have a linux system set up. Very minimal. I have a compiler and I need to compile xlib and all its dependencies so that I can use it. I don't have any type of package management system because it is an embedded application. So I need to know what all I need to build before xlib. Assume that I only have the core utils and gcc. Please don't tell me to download binaries, I cant do that, it wont work. Unless you have armeb binaries for me.
I'm trying to build a program called Obpager, but I'm getting an error saying I don't have xlib.h. From what I understand, that file is included in libx11-dev, which I have installed. Any idea?
Code:
dagoss@MAGIC-PORT:~/Downloads/obpager-1.8$ make Compiling src/main.cc In file included from src/main.cc:33:0:
Configure: error: Unable to locate a suitable configuration of wxWidgets v2.4.x. The currently available configurations are listed below. If necessary, either install the package for your distribution or download the 2.4.x version of wxWidgets from [URL]. To help configure find the right version set WX_CONFIG to point to it. wxWidgets 2.5.x and 2.6.x are NOT supported! But I thought I installed widgets 2.4?
Is there an easier way (without using a package manager) to upgrade programs? For example, I just want to upgrade Amarok. In order to do this, I've had to upgrade every one of it's dependencies because they've all had minor upgrades from the versions I already have installed.
Is there an easier way to compile programs and their dependencies manually or are package managers the only way?
I tried installing the RPM from tcpflow website. error: Failed dependencies: libpcap.so.0.6.2 is needed by tcpflow-0.21-1.i386 I installed libpcap1-32bit, but doesn't help. I tried added soft-link to libpcap.so.1.0.0 from libpcap.so.0.6.2 to workaround, doesn't help. hen I DLed the tarball, ./configure gives an error, even after including --with-pcap=/usr/lib64/libpcap.so.1.0.0 checking for --with-pcap option... configure: error: /usr/lib64/libpcap.so.1.0.0 does not exist I CAN'T install the rpm, I CAN't compile from source. I can't find this program on any suse repo. I need to use this prog -- what can I do?
I am having trouble writing an Xlib application that displays a window. The most frustrating thing is that I've written applications like this before, and never had any problems. For some reason I cannot get this program to work properly. I'm running KDE and when I launch the program, a "button" for the application will appear on the application panel, however, no window will display. It is possible to right click on the panel button and select the Close item which will successfully close the window.
The following is source code that when built will exhibit the behaviour described above code...
I am working on xlib project to develop text editor without using help from any of toolkit/widgets.I get stuck in scrollbar.I have no idea how they work and developed.It become more difficult as I am using low-level C library - xlib.
I am starting to learn Linux graphical programming. Most of codes in my hands were written based on xlib, which is a kind of old graphic lib. I see some developers more interested in openGL. Then what's the difference between xlib and openGL? And which one is more popular used in which industry area?
I am trying to compile the code. I am getting this following error. Am I missing any package?
x86_screen.h:12:22: error: X11/Xlib.h: No such file or directory In file included from osal_event.c:12: x86_screen.h:25: error: expected specifier-qualifier-list before �Display� make[1]: *** [osal_event.o] Error 1
I tried to install the pgplot, and I faced this error: X11/Xlib.h: No such file or directory
to solve this, I did this: sudo apt-get install libx11-dev but I face the other error which is: f77 -c -u /usr/local/src/pgplot/drivers/gidriv.f gidriv: Error on line 247: syntax error
I'm working on an application which generates random shapes when clicking on a window. I designed the window using Motif. I want to invoke the ButtonPress Event .
I am trying to run the SDK for Meego with Qt. When I try to launch my simulator I get the error message: Xlib: extension "GLX" missing on display ":0.0". The answer I got on Meego's forum is that I am missing glx extensions. I have tried to find a way to get the glx extensions but I do not seem to get it. My searches on the web all point to Nvidia, but I have got ATI. I run Lenny 5.0.6 amd64.
I've verified that xorg-x11-libs is installed. This package provides libXrandr.so.2. However, when I run a program, in this case the python script for blueproximity (start_proximity.sh), I get the error in the title.
I tried to draw two lines with xlib.h in C. If I start this compiled program it show me in most cases a window with two lines as it should be.
But sometimes the two lines are not drawn.If I insert XFlush() before the second XSync() it worked better but not every time.Why?How can I solve the problem?How works the X-Server buffer in detail?
Now I'm using Centos 5.3. when I let ADP (a EDA Tools) to idle more than 1 hours. The tools will display incorrectly. The per letter will be displayed as pane. So I must close it and re-open it.When the status is displayed, the system always said:xlib resource id allocation space exhausted!Forestall I use Centos 4.7, the system always works well. But I'm using Centos 5.3.How to maintenance it
When I install NCL on my system. There are many error about X11 appeared. Such like:
xdevice.c(40): catastrophic error: could not open source file "X11/Xlib.h" rasdraw.c(30): catastrophic error: could not open source file "X11/Intrinsic.h" w_idt.c(26): catastrophic error: could not open source file "X11/Intrinsic.h"
I am currently trying to upgrade over 100 rpms on multiple Red Hat servers. Whenever I try to do a rpm -u /packages/*.rpm i recieve a failed dependencies error on the very first rpm. I know that I can go though each rpm one by one and trace each dependency but that will take forever. Is there a way to skip these errors? I know the -nodeps command for rpm but I dont want to screw something up but running all of these rpms on -nodeps
i typed the command "system-config-network",at the hostname field i gave "james@lee".after closing that window, again i typed the same command "system-config-network". but it gives the following error..
[student@james@lee ~]$ system-config-network Xlib: connection to ":0.0" refused by server Xlib: No protocol specified
ERROR: Unable to initialize graphical environment. Most likely cause of failure is that the tool was not run using a graphical environment. Please either start your graphical user interface or set your DISPLAY variable
I'm making a game with the xlib library. What I want to do is to know if the character is standing on a trap or something else.
So far I've solved that using the coordinates but when I draw circles or stuff not shaped like a rectangle it gets to hard to make the game exact.
So what I'm asking for is if there is some kind of function in the xlib that tells you which color a pixel has. Because then it'd be much easier.
I've searched but I haven't been able to find anything good. I found XGetPixel() but that appears to work only with images, maybe I can make my window to be an "image"?
I'm trying to understand how to use colors in Xlib programming. What I think I understand so far is that modern displays use 24 or 32-bit TrueColor. And TrueColor uses three colormaps, one for each primary color, and a single pixel value is composed of three indices.
Now the part i'm confused about is how to get my programs to use a 32-bit TrueColor visual. I thought I could inheret the visual from the root window to get color but it seems no matter what pixel value I use it's either black or white.
I guess my question is, how can I setup my programs so that I can specify a pixel value that is a combination of RGB values to get the color I want?
I come from windows where I simply used RGB(r,g,b) macro to specify colors and never had to worry about depth and colormaps and visuals, so I'm a bit overwhelmed by all of these concepts.
I want to do some experimentation with GUI programming. What mostly interests me is how the toolkits actually work (what are the drawing mechanisms, how it communicates with X, etc.) and how the window managers work. I know it's quite a lot but I don't plan on developing the next best DE/Toolkit/Window Manager, just to play with API, mostly to learn. It seems that there is a shortage of documentation on this topics, I'm trying to find anything for 2 days now with no result.