Click to See Complete Forum and Search --> : [SOLVED] "can't find X includes" error while compiling
CyberCat
02-18-2005, 10:27 PM
Hello, I'm trying to compile the source code for rosegarden 4 1.0 on SuSE 9.2 Pro.
When I type "./configure" in the I get this message:
[...]
checking for X... configure: error: Can't find X includes. Please check your installation and add the correct paths!
It sounds like I just need to install something, but I just don't know what.
I would be very greatful for any helpful suggestions that anyone can offer.
copeja
02-18-2005, 11:09 PM
Go to yast and install C/C++ Compiler and tools you will also need Kernel development so you have kernel headers and Experienced User to get auto make
Then try ./configure again.
copeja
rocketpcguy
02-18-2005, 11:39 PM
you need the X development packages (X-devel).
i wonder why people are so interested in compiling things today, this isnt the only thread
CyberCat
02-19-2005, 12:31 AM
Thanks for the help guys. :)
I did install the packages called "gcc" and "gcc-c++" which sounded like the C++ compiler you mentioned, copeja.
x-devel doesn't appear to be on the SuSE disc, can anyone tell me where to get this?
CyberCat
02-19-2005, 06:38 PM
Okay, after much looking around I found out that the SuSE version of x-devel, or XFree86-devel, appears to be xorg.
So I eventually found it (ftp://ftp.suse.com/pub/suse/i386/9.2/suse/i586/xorg-x11-6.8.1-15.4.i586.rpm) and installed it.
But I still get the same "can't find X includes" message when I type ./configure. What am I doing wrong?
Sc0pE
02-20-2005, 09:08 AM
hey ive the same prob with x includes and cant seem to find the packages to install it, you any further on im also using suse 9.2
deathadder
02-20-2005, 09:26 AM
I couldnt find it on the Suse 9.2 disk but try this rpm:
From the Suse FTP server (ftp://ftp.suse.com/pub/suse/i386/9.2/suse/i586/xorg-x11-devel-6.8.1-15.4.i586.rpm)
CyberCat, that rpm is the actual x-server rpm, instead of the x development package
[EDIT]
The link doesn't seem to work, anyway go to
ftp://ftp.suse.com/pub/suse/i386/9.2/suse/i586/
and the package is called: xorg-x11-devel-6.8.1-15.4.i586.rpm
Sc0pE
02-20-2005, 09:39 AM
hey after alot of searching around i found out that xorg-devel dosent come with the downloaded version of suse but i have a rpm link here ftp://ftp.gwdg.de/linux/suse/ftp.su...1-15.4.i586.rpm
that fixed the x includes but its just one problem after another with me :(
checking for extra libs... no
checking for libz... configure: error: not found.
Possibly configure picks up an outdated version
installed by XFree86. Remove it from your system.
xfree86 dosent show up in yast, anyone know how to fix this?
CyberCat
02-21-2005, 10:27 PM
Thanks so much for the help
deathadder! :)
It is greatly appreciated. ;)
That was exactly what I needed, I installed it and X includes error when away.
Unfortunatally there is a new problem. :rolleyes:
The new problem is this after typing "./configure" in the rosegarden directory:
[...]
checking for extra includes... no
checking for extra libs... no
checking for libz... configure: error: not found.
Possibly configure picks up an outdated version
installed by XFree86. Remove it from your system.
Check your installation and look into config.log
So apparently I need to remove something, though I'm not sure what, since "rpm -qa | grep xfree" finds nothing.
Also there appears to be nothing like that in YaST either.
rocketpcguy
02-22-2005, 03:05 PM
do a search for "Possibly configure picks up an outdated version"
CyberCat
02-22-2005, 10:24 PM
Alright thanks for the advice rocketpcguy.
I did a search for those terms and found this (http://nashi.altmuehlnet.de/pipermail/scribus/2005-January/008034.html), which recommends installing libz-devel, and libxml2-devel.
So I download (ftp://ftp.suse.com/pub/suse/i386/9.2/suse/i586/), and installed:
libzvt-devel-2.0.1-55.1.i586.rpm
libxm12-devel-2.6.12-3.4.i586.rpm
zlib-devel-1.2.1-74.i586.rpm (required by libxm12)
readline-devel-5.0-1.2.i586.rpm (required by libxm12)
The good news is that the old error is gone, but again there's a new one.
:eek:
Here's the new message I get when I type "./configure" in the rosegarden directory:
[...]
checking for snprintf... yes
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for IceConnectionNumber in -lICE... yes
checking for libXext... yes
checking for pthread_create in -lpthread... yes
checking for extra includes... no
checking for extra libs... no
checking for libz... -lz
checking for libpng... no
checking for libjpeg6b... no
checking for libjpeg... -ljpeg
checking for perl... /usr/bin/perl
checking for Qt... configure: error: Qt (>= Qt 3.1 (20021021)) (headers and libraries) not found. Please check your installation!
For more details about this problem, look at the end of config.log.
Again, your help is greatly appreciated. :)
CyberCat
02-23-2005, 12:58 AM
Yes! I just fixed the problem by installing...
qt3-devel-3.3.3-24.1.i586.rpm*
(prereqs)
libpng-devel-1.2.6-4.i586.rpm*
libmng-devel-1.0.8-3.1.i596.rpm*
freegult-devel-2.2.0-82.1.i586.rpm*
XFree86-Mesa-devel-4.3.0.1-29.i586.rpm**
* Downloaded from here (ftp://ftp.suse.com/pub/suse/i386/9.2/suse/i586).
** Downloaded from here (http://rpmfind.net/linux/RPM/suse/9.0/i386/suse/i586/XFree86-Mesa-devel-4.3.0.1-29.i586.html).
And now... *sign* a new problem. (but thats ok since I getting used to it. :rolleyes: )
Again when typing "./configure" in the rosegarden directory, I get:
[...]
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for IceConnectionNumber in -lICE... yes
checking for libXext... yes
checking for pthread_create in -lpthread... yes
checking for extra includes... no
checking for extra libs... no
checking for libz... -lz
checking for libpng... -lpng -lz -lm
checking for libjpeg6b... no
checking for libjpeg... -ljpeg
checking for perl... /usr/bin/perl
checking for Qt... libraries /usr/lib/qt3/lib, headers /usr/lib/qt3/include using -mt
checking for moc... /usr/lib/qt3/bin/moc
checking for uic... /usr/lib/qt3/bin/uic
checking whether uic supports -L ... yes
checking whether uic supports -nounload ... yes
checking if Qt needs -ljpeg... no
checking for rpath... yes
checking for KDE... configure: error:
in the prefix, you've chosen, are no KDE headers installed. This will fail.
So, check this please and use another prefix!
Choozo
02-23-2005, 02:45 AM
Install the kde-devel package(s).
CyberCat
02-23-2005, 01:36 PM
Okay, thanks for the reply. :)
I downloaded (ftp://ftp.suse.com/pub/suse/i386/9.2/suse/i586) and installed:
kdelibs3-devel-3.3.0-34.2 (the file you recommened, I think...)
(dependencies)
-----glib2-devel-2.4.6-5.1.i586.rpm
----------arts-devel-1.3.0-11.1.i586.rpm
-----libvorbis-devel-1.0.1-60.i586.rpm
----------libogg-devel-1.1-59.i586.rpm
-----fam-devel-2.6.10-122.i586.rpm
-----pcre-devel-4.5-2.i586.rpm
-----libxslt-devel-1.1.9-2.1.i586.rpm
-----libidn-devel-0.5.3-2.1.i586.rpm
But, I haven't been able to install kdelibs3 because when I type "rpm -i kdelibs3-devel-3.3.0-34.2"
error: Failed dependencies:
autoconf is needed by kdelibs3-devel-3.3.0-34.2
automake is needed by kdelibs3-devel-3.3.0-34.2
How do I make autoconf and automake?
Choozo
02-23-2005, 01:40 PM
Install the autoconf and automake packages too.
Welcome to the 'dependancy hell' a lot of us RPM users endure ;)
CyberCat
02-23-2005, 04:54 PM
Thanks for the help choozo, it's much appriciated. (and yes it is quite a pain ;))
I installed the appripriate rpms and I no longer have a problem when I type "./configure" (yes!)
Now (of course) there's another problem when I type "make" (after "./configure"):
[...]
rdenSound.la ../base/libbase.la -lkdeui -lkdecore -lkdeprint -lqt-mt -lz -lpng-lz -lm -lXext -lX11 -lSM -lICE -lpthread -lkio -L/usr/X11R6/lib -lXft -lX11 -lfreetype -lXrender -lfontconfig
make[3]: Leaving directory `/home/nathan/documents/rosegarden-4-1.0/rosegarden-4-1.0/gui'
make[2]: Leaving directory `/home/nathan/documents/rosegarden-4-1.0/rosegarden-4-1.0/gui'
Making all in po
make[2]: Entering directory `/home/nathan/documents/rosegarden-4-1.0/rosegarden-4-1.0/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/nathan/documents/rosegarden-4-1.0/rosegarden-4-1.0/po'
make[2]: Entering directory `/home/nathan/documents/rosegarden-4-1.0/rosegarden-4-1.0'
Makefile:846: warning: overriding commands for target `clean-bcheck'
Makefile:809: warning: ignoring old commands for target `clean-bcheck'
Makefile:851: warning: overriding commands for target `bcheck-am'
Makefile:814: warning: ignoring old commands for target `bcheck-am'
make[2]: Leaving directory `/home/nathan/documents/rosegarden-4-1.0/rosegarden-4-1.0'
make[1]: Leaving directory `/home/nathan/documents/rosegarden-4-1.0/rosegarden-4-1.0'
What'd I do wrong now? :rolleyes:
Choozo
02-23-2005, 05:01 PM
Can't see any errors there, just warnings. Does your program run now?
Any others errors from ./configure?
CyberCat
02-23-2005, 05:49 PM
Yahooooo!!! :D :D :D
It works perfecty!!
You were right, those weren't errors, just warnings I just needed to type "make install".
I can't wait to start using it, but before I go do that I'd like to give a very, very big thank you to everyone that helped me! You guys rule! ;)
L1nked
03-15-2005, 02:03 AM
HI
Im using Debian and im getting the same errors as guys above (Cant find X includes). Just wondering where i can find X-devel version for Debian.
Thanx!
deathadder
03-15-2005, 04:38 AM
I'm not booted into Debian at the moment, so I can say the name of the package, but apt-cache search is what you need.
apt-cache search x devel
Doing that, or any search, will list packages. So if the package it listed was 'xfree86-dev.x.x' to install it use:
apt-get install xfree86-dev.x.x
L1nked
03-15-2005, 04:44 AM
Did the search... didnt list the needed file
(Ive only downloaded one CD and atped it) so yeah.. maybe XDevel on other ones...
deathadder
03-15-2005, 06:15 AM
If you can I strongly suggest that you add a ftp or http server to your /etc/apt/source.list. Anyway the file you want it called x-window-system-dev
L1nked
03-15-2005, 06:20 AM
The machine ive got Linux on is not connected to internet and i dont want to connect it yet. So is there a ftp/http source where i can download the file from and install in on Linux machine.
deathadder
03-15-2005, 07:14 AM
http://www.debian.org/distrib/packages#search_packages
L1nked
03-15-2005, 07:33 AM
I started installation by dpkg x-window-system-dev but this depends on another files.. after i downloaded one of files preveious file depended on, and tryed to install it, got another dependancy issue.. do i have to download all files one by one? lol
is that what they call dependancy hell ? :)
deathadder
03-15-2005, 07:48 AM
Yup your getting the idea, thats why apt's so cool :cool:
The dependancy's for the file are listed on this page, see link below, you can check to see if you have the packages installed on your system with 'dpkg -s packagename' for example
root# dpkg -s x-window-system
Package: x-window-system
Status: install ok installed
Priority: optional
Section: x11
Installed-Size: 240
Maintainer: Debian X Strike Force <debian-x@lists.debian.org>
Architecture: all
Source: xfree86
Version: 4.3.0.dfsg.1-12
Depends: x-window-system-core, lbxproxy, proxymngr, twm, xdm, xfs, xfwp, xnest, xprt-xprintorg, xterm, xvfb
---- REST REMOVED ----
http://packages.debian.org/unstable/x11/x-window-system-dev
[EDIT]
If the package isn't installed you'll see something like this
marcus:nwn# dpkg -s x-dev
Package: x-dev
Status: unknown ok not-installed
Priority: optional
Section: libdevel
It'll probably be a good idea to start a new thread if you can't get it sorted out, so that more people can help. A mod could maybe take our replys and make a new thread ;)
L1nked
03-15-2005, 07:51 AM
ok then.. i'll get into it then..
and y do i need this Linux )
whish me luck :) how about we just swap computers :)
L1nked
03-15-2005, 08:19 AM
Could u tell me on what disk is x-dev is .. so i can download disk iso and apt x-dev from there.. ? i dont know.. downloading and installing all those files seems very confusing and tyring..
thanx
deathadder
03-15-2005, 08:33 AM
To be honest I dont know I havent used the CD's in ages. Are you using the stable disks? Because they're the only ones Ive got.
L1nked
03-15-2005, 05:18 PM
Im downloading my disks from Debian website and ive got 3.0 - they say its stable. Would it b easier to network my Linux machine to Windows machine and share internet with it, and from there get those files?
deathadder
03-15-2005, 05:55 PM
I'll have a look at my cd's and see if I can see what disk its on, you could then a) download that disk b) download all the disks c) network your two machines and share the netconnect.
I'd personally go for c) you'll be able to update the packages, and use all the wounders that are apt :) It wouldn't be hard to do either.
L1nked
03-16-2005, 12:51 AM
Okey . .while u looking, im gonna do some reading on network and share the internet between linux and windows and prepare my self to set up a network.
deathadder
03-16-2005, 07:00 AM
I've had a quick look and can't find it, I would have more of a look but I've got quite a bit of work to do at the moment. I really do suggest that you share your internet connect out if you can, it's going to make your life much easier. It's really rather easy to do in Windows too :)
L1nked
03-17-2005, 02:02 AM
ok.. we are on the net.. trying to explore 'wounders of apt' :)
L1nked
03-17-2005, 04:17 AM
Problems with apt... When i tryed to access the debian archive through one of its mirrors it gave me errors. Saying 'Fail to fetch' 'Something wicked happened'. How can i correct that?
deathadder
03-17-2005, 04:25 AM
Is it just the one archive? If so try another its possible that the mirror is down or not there anymore. Have you checked to make sure that the net connection is working properly?
L1nked
03-17-2005, 04:35 AM
Nah the mirror doesn't seem to be down (i can get in to it from my windows box). And i pinged google and yahoo everything seems right.. is there another way to check internet connection.. im trying to get/install firefox at the moment..