LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-18-2009, 05:25 AM   #1
Refractor
Member
 
Registered: Oct 2008
Location: Rousse, Bulgaria
Distribution: Debian
Posts: 91

Rep: Reputation: 25
Adding a new include directory


Greetings. My distribution is Slackware12.2 (with KDE3.5.10) and I'm trying to compile and install KDE4 svn to /opt/kde4 and everything is ok, but when it comes to kdegraphics it's a headbang. I have Qt 4.5.0 installed at /opt/kde4/qt-4.5.0 and I have my PATH set in my .bash_profile and .bashrc. So, kdegraphics needs QtCrypto or libCQL. I compiled and installed that with prefix /opt/kde4/qt-4.5.0 but when initiating make it gives me an error it couldn't find QtCrypto and just returns error 2. I've got all libQCA (The QtCrypto and other includes) in /opt/kde4/qt-4.5.0/include but make doesn't search there. i've spent hours google-ing to figure out how to add /opt/kde4/qt-4.5.0 to the list of include directories but I couldn't find anything that gives me the clue how to do that... If anyone has any idea, I'd appretiate it Thanks!
 
Old 03-19-2009, 08:43 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,483

Rep: Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633
If you have this : /opt/kde4/qt-4.5.0/lib ,

try adding /opt/kde4/qt-4.5.0/lib to /etc/ld.so.conf
... and run # ldconfig .

Then I guess, that includes will be looked for in
/opt/kde4/qt-4.5.0/include/ too. ??

Or use a 'configure' option like :
--with-extra-includes=/opt/kde4/qt-4.5.0/include/
......

Last edited by knudfl; 03-19-2009 at 08:55 AM.
 
Old 03-20-2009, 06:48 AM   #3
Refractor
Member
 
Registered: Oct 2008
Location: Rousse, Bulgaria
Distribution: Debian
Posts: 91

Original Poster
Rep: Reputation: 25
It's already in my ld.so.conf, ran ldconfig a dozen times already, but it still didn't care about the include directory...
I can't use a configure option, it's cmake and not configure, and the cmake flags didn't work out either. Then I got pissed off, purged /opt/kde4 (hail to the rm -rf :P ) and made a new directory /kde in my root drive and installed everything, qt4.5, libqca and other stuff with prefix /kde and everything is working fine. Right now I'm writing from my new kde4 and still KDE3 is working fine with a few issues though, but I can live with that, I had to remove my ~/.kde dir but that's no big deal
Thanks for the reply, knudfl! I appretiate it
[edit]
Oh, forgot to mention, edited my bash_profile and basrc to include /kde/bin to the PATH and /kde/lib/pkgconfig to PKG_CONFIG_PATH and added /kde/lib to ld.so.conf

Last edited by Refractor; 03-20-2009 at 06:50 AM.
 
  


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
perl - @INC doesn't include current directory sogenant Programming 2 05-08-2008 09:59 AM
Lib/Include in user home directory? pocket_aces Linux - Desktop 2 11-08-2006 10:09 AM
#include <task.h> : No such file or directory Eileen Programming 1 04-20-2006 03:26 AM
KDE Include Directory? Kenji Miyamoto Slackware 2 05-27-2005 04:46 PM
adding include path hfawzy Linux - Newbie 3 02-01-2003 07:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:35 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