LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't find Xresource.h file (https://www.linuxquestions.org/questions/linux-newbie-8/cant-find-xresource-h-file-277376/)

fivebyfive 01-13-2005 12:22 PM

Can't find Xresource.h file
 
I'm using Red Hat Linux Fedora Core 2 and I'm trying to install tcl/tk. I've successfully installed tcl, but when I try to run the make file on tk, I'm missing some libraries. Where do I get these libraries, or did I forget to install something when I installed Linux? The libraries are:

Xmd.h
Xprotostr.h
Xresource.h

Thanks!

hussar 01-13-2005 01:58 PM

Mine are in /usr/X11R6/include/X11. I see that they are also among the source files for Xorg 6.8.1 that I have here. You may want to see if there is an X-devel rpm on the install disks, and install it.

fivebyfive 01-13-2005 02:00 PM

Let me clarify - these .h files are not found anywhere on the system.

hussar 01-13-2005 03:04 PM

Right. But they may be in an rpm on your install disks. A number of distributions separate these header files out into a "devel" rpm or package that is not installed by default and needs to be installed later if you want to compile applications that need them. Check your install disks for a "X-devel*.rpm". If you find one, install it. Then try your compile again.

fivebyfive 01-14-2005 10:55 AM

Thanks - I installed the devl rpm file and that made things go a lot smoother. :-)

Now I'm running into another problem. When I run the make file, I'm getting a lot of "implicit declaration of function" warnings:
/home/maryp/tk8.3.5/unix/tkUnixCursor.c:199: warning: implicit declaration of function `XParseColor'
/home/maryp/tk8.3.5/unix/tkUnixCursor.c:219: warning: implicit declaration of function `XLoadFont'
/home/maryp/tk8.3.5/unix/tkUnixCursor.c:225: warning: implicit declaration of function `XCreateGlyphCursor'
/home/maryp/tk8.3.5/unix/tkUnixCursor.c:273: warning: implicit declaration of function `XCreatePixmapCursor'
<this is just a small example>

The make process then ends with:

cc -pipe -c -O -D__NO_STRING_INLINES -D__NO_MATH_INLINES -Wall -Wconversion -Wno-implicit-int -fPIC -I/home/maryp/tk8.3.5/unix -I/home/maryp/tk8.3.5/unix/../generic -I/home/maryp/tk8.3.5/unix/../bitmaps -I/home/maryp/tcl8.3.5/generic -I/usr/X11R6/include -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_PW_GECOS=1 -DTCL_NO_DEPRECATED -DUSE_TCL_STUBS /home/maryp/tk8.3.5/unix/tkUnixDraw.c
/home/maryp/tk8.3.5/unix/tkUnixDraw.c: In function `TkScrollWindow':
/home/maryp/tk8.3.5/unix/tkUnixDraw.c:73: warning: implicit declaration of function `XCopyArea'
/home/maryp/tk8.3.5/unix/tkUnixDraw.c:97: error: void value not ignored as it ought to be
make: *** [tkUnixDraw.o] Error 1

Maybe I'm missing some other stuff that needs to be installed?

hussar 01-14-2005 11:44 AM

Generally, for what you are doing, the warning messages can be ignored. It is that last error that is hanging you up, and I don't think I can be much help with that.

I was just looking at the tcl foundary site on sourceforge, and I noticed that tcl/tk is at version 8.4.9 now. It looks to me like you are compiling version 8.3.5. You might want to get the source for 8.4.9 and try compiling that. (you would need the same version tcl.) Another option, if you just want to get tcl/tk on your machine and don't need to compile in any special settings, would be to look for a rpm for tcl/tk on the Fedora Core site and install that. Tcl/tk is so popular though, it would surprise me if it weren't on your install disks and you could install it from there. I am not sure what version came with Fedora Core 2 though.

fivebyfive 01-18-2005 02:11 PM

Thanks for all your help - I really appreciate it! :-)

Unfortunately, I need to install tcl/tk 8.3 for compatibility issues with my test gear. I'll start a new thread and see if I can get more responses.

Thanks Again!


All times are GMT -5. The time now is 11:43 PM.