LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 10-19-2004, 06:13 AM   #1
SAFX
Member
 
Registered: Oct 2004
Location: New York City
Distribution: Mandrake 10.1 CE
Posts: 35

Rep: Reputation: 15
Problems compiling: Can't find X includes...


I downloaded a KDE package from kde-look.org and I can't seem to get past a certain point in the compilation where I get this error...

checking for X: error: Can't find X includes. Please check your installation and add the correct paths.

I actually got many errors before this one, but I managed to decipher the error messages and install the missing packages on my system, but I can't see to find the X include files with Mandrake Update.

The compiler complains about the following includes that it can't find...

#include <CoreAudio/CoreAudio.h>
#include <crt_externs.h>
#include <X11/Intrinisic.h>



I'm trying to figure out if I already have this includes and perhaps I did not set up the path correctly, or if I need to get them and in what package they reside. I have Mandrake 10.1 CE x86.

Thanks!

SAFX
 
Old 10-19-2004, 06:28 AM   #2
otish1000c
Member
 
Registered: May 2004
Location: Pennsylvania, USA
Distribution: dual boot.... Mandrake 10.0OE/10.xcooker
Posts: 611

Rep: Reputation: 30
you are probably missing X devel packages.

it's usually in /usr/include/X11.....or.......... /usr/X11/include.......or......./usr/X11r6/include. If you don't have them you need to install the X devel packages. the developement packages neccessary to compile certain apps. check in MCC->software->install & search for any Xorg (or XFree, if that's what you're using) devel packages & install them, then the app should compile/install fine. the pacakages will look something like.......... XFree86-devel-4.3-5mdk.i586.rpm or XOrg-devel-4.3-5mdk.i586.rpm (version numbers will fiffer, depending on your install).

otis

Last edited by otish1000c; 10-19-2004 at 06:33 AM.
 
Old 10-19-2004, 06:01 PM   #3
SAFX
Member
 
Registered: Oct 2004
Location: New York City
Distribution: Mandrake 10.1 CE
Posts: 35

Original Poster
Rep: Reputation: 15
Thanks! I downloaded the Xorg package and managed to get past that error.

But now, I am getting this error, and after searching my package database, I can't figure out which package to install, or maybe it's just a configuration issue...

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.


I am using the following command to launch the configure file...

./configure --prefix="'kde-config --prefix'"

SAFX1
 
Old 10-19-2004, 06:28 PM   #4
otish1000c
Member
 
Registered: May 2004
Location: Pennsylvania, USA
Distribution: dual boot.... Mandrake 10.0OE/10.xcooker
Posts: 611

Rep: Reputation: 30
try using one of the following prefixes...........

./configure --prefix=/usr

if that don't work.............

./configure --prefix=/usr/share

if that don't work............

./configure --prefix=/usr/share/apps

if none of those work (the first one should in most cases, though), then you may be missing KDE devel packages. you need the proper -devel packages to compile things for KDE in Mandrake. which ones, it's tough to say, sorry. does any of the output give you a specific error? like "error: missing required <name of app>-lib-devel-blah,blah,blah? if not, my only suggestion is use MCC->software installer & get all the KDE -devel packages available, then try again.

otis
 
Old 10-19-2004, 06:57 PM   #5
SAFX
Member
 
Registered: Oct 2004
Location: New York City
Distribution: Mandrake 10.1 CE
Posts: 35

Original Poster
Rep: Reputation: 15
Unfortunately, the log file does not mention the package that is missing, but this is the last thing the log prints before it craps out.


configure:27561: checking for KDE
configure: 27617: /usr/include/ksharedptr.h
configure: 27617: /usr/lib/kde/include/ksharedptr.h
configure: 27617: /usr/local/kde/include/ksharedptr.h
configure: 27617: /usr/local/include/ksharedptr.h
configure: 27617: /usr/kde/include/ksharedptr.h
configure: 27617: /usr/include/kde/ksharedptr.h
configure: 27617: /usr/include/ksharedptr.h
configure: 27617: /opt/kde3/include/ksharedptr.h
configure: 27617: /opt/kde/include/ksharedptr.h
configure: 27617: /usr/X11R6/include/ksharedptr.h
configure: 27617: /usr/lib/qt3//include/ksharedptr.h
configure:27628: error:
in the prefix, you've chosen, are no KDE headers installed. This will fail.
So, check this please and use another prefix!


I searched all package headers in RpmDrake for "devel", but I did not find anything with "KDE" in the file name.

Thanks for the help, I'm learning a lot

SAFX
 
Old 10-19-2004, 08:24 PM   #6
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
Which program are you trying to compile?
 
Old 10-19-2004, 08:27 PM   #7
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
Also rpmdrake does not pull from the repositories.

Try

urmi kde-devel

instead if you have set up your system as per http://www.zebulon.org.uk/
 
Old 10-19-2004, 09:17 PM   #8
SAFX
Member
 
Registered: Oct 2004
Location: New York City
Distribution: Mandrake 10.1 CE
Posts: 35

Original Poster
Rep: Reputation: 15
After running that command, there is no package with kde-devel in the name.

I'm trying to compile this KDE theme...

Kwin Active Heart

My package sources are up-to-date, or at least I think they are. My disto is Mandrake 10.1 CE. I also configured my RPM media sources from http://easyurpmi.zarb.org/. These are all the sources I currently have configured:

Installation CD 1
Installation CD 2
Installation CD 3
main
plf
contrib


Should I update the mirrors for the sources and then update the availabel package headers? I just updated the packaged without changing the mirrors and I still cant find ked-devel.

SAFX
 
Old 10-19-2004, 09:57 PM   #9
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
Heh, I had so much trouble with this theme that I ended up finding the source rpm for it and compiling it in mandrake.

e.g. I downloaded

kwin-style-activeheart-1-1-2mdk.src.rpm
kde-style-activeheart-1-1-2mdk.src.rpm

from either the cooker or devel and then compiled them both with

rpm --rebuild kwin-style-activeheart-1-1-2mdk.src.rpm
rpm --rebuild kde-style-activeheart-1-1-2mdk.src.rpm

I'm not exactly sure where I found the src.rpm files.

Also you need

urpmi QtPixmap
 
Old 10-19-2004, 10:21 PM   #10
SAFX
Member
 
Registered: Oct 2004
Location: New York City
Distribution: Mandrake 10.1 CE
Posts: 35

Original Poster
Rep: Reputation: 15
Screw it. I'm giving up on this theme. I can't even watch the damn Yankee game because my head is glued to my monitor trying to figure this out. :-)

Anyway, do you think my media sources are configured properly as I mentioned in my last post? Also, a source .rpm is the same thing that you get when you install using urpmi -a package, right?

SAFX

Last edited by SAFX; 10-19-2004 at 10:24 PM.
 
Old 10-19-2004, 10:36 PM   #11
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
No.

urpmi installs precompiled binaries

a SOURCE rpm (such as those I listed) is an RPM package which contains an uncompiled version of the program already Mandakified.

However it must first be compiled prior to installation using the commands I indicated.

One advantage of this is that often you can grab a source RPM and compile it with the libs installed on your system as opposed to those used in the original compilation.

So if you have upgraded say the QtPixmap libs the recompilation may make an errant program work with the upgrade version. However this is not hard and fast.
 
Old 10-19-2004, 10:59 PM   #12
SAFX
Member
 
Registered: Oct 2004
Location: New York City
Distribution: Mandrake 10.1 CE
Posts: 35

Original Poster
Rep: Reputation: 15
OK, I got ya. Where does one typically obtain source rpm's? Do mirrors exist for them?

SAFX
 
Old 10-19-2004, 11:04 PM   #13
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
Did you notice that when you set up the urpmi sources these were merely FTP sites?

If you go to those FTP sites using either an FTP client or browser you'll find that they also (usually) have everything in .src.rpm format as well, and for other Mandrake versions and distros.

I've often grabbed an updated mdk.src.rpm and recompiled it on my system to upgrade a specific program this way.
 
Old 10-19-2004, 11:08 PM   #14
SAFX
Member
 
Registered: Oct 2004
Location: New York City
Distribution: Mandrake 10.1 CE
Posts: 35

Original Poster
Rep: Reputation: 15
Sh$t, I totally forgot about that. yeah, I remember seeing them while browsing a FTP site.

Cool man, thanks.

SAFX
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
compiling cant find X includes barrythai SUSE / openSUSE 3 03-04-2005 11:24 AM
Compiling K3b from source - can't find X includes timelord726 Linux - Software 3 08-13-2004 05:10 PM
Can't find X includes linmix Linux - Software 2 06-19-2004 01:48 PM
can find x includes ?? BajaNick Programming 2 12-22-2003 03:38 AM
Can't find X includes? Avatar Linux - Newbie 17 12-09-2003 01:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 02:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration