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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
12-03-2008, 10:20 AM
|
#1
|
Member
Registered: Apr 2007
Location: BKK, Thailand
Distribution: Gentoo 10.1
Posts: 112
Rep:
|
VLC 0.97 with Qt4
Hello there
i'm trying to compile VLC 0.97 from source, on slackware 12.1
however .
my problem is
./configure in vlc
show QT4 not found
even though my QT 4 is already install in /usr/local/Trolltech
this is my Environment variable
$PATH
/usr/local/Trolltech/Qt-4.4.3/bin:/usr/local/Trolltech/Qt-4.4.3/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib/java/bin:/usr/lib/java/jre/bin:/usr/lib/qt/bin
$QTDIR
/usr/local/Trolltech/Qt-4.4.3/
i'm not sure is there any other enviroment variable that needed to be set?
(i've rebuild Qt4 with -shared configure flag and still has no effect)
Any help is appreciate
|
|
|
12-03-2008, 11:43 AM
|
#2
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
You will probably need this line in /etc/ld.so.conf :
/usr/local/Trolltech/Qt-4.4.3/lib
and afterwards run # ldconfig
( The official Slackbuild makes qt4 in /usr/lib/qt4 )
And you might need this too : a link from
/usr/local/Trolltech/Qt-4.4.3/bin/qmake
to /usr/local/bin/qmake-qt4 ( or to /usr/bin ?? )
Slacware packages are available e.g. vlc-0.9.8-i686
http://repository.slacky.eu/slackwar...dia/vlc/0.9.8/
....
Last edited by knudfl; 12-03-2008 at 11:45 AM.
|
|
|
12-03-2008, 12:20 PM
|
#3
|
Member
Registered: Apr 2007
Location: BKK, Thailand
Distribution: Gentoo 10.1
Posts: 112
Original Poster
Rep:
|
i've followed ur solution , but the problem still persist
(now i've change vlc to 0.9.8a)
This is my ld.so.conf
/usr/local/lib
/usr/i486-slackware-linux/lib
/usr/lib/qt4/lib
/usr/local/Trolltech/Qt-4.4.3/lib
qmake-qt4 link both /usr/bin and /usr/local/bin
|
|
|
12-03-2008, 12:25 PM
|
#4
|
LQ Newbie
Registered: Dec 2006
Posts: 11
Rep:
|
try to check the permissions for that directory with the user you are logged into when trying to configure.. may be it isnt able to access that folder and then saying unavailable...
|
|
|
12-03-2008, 12:28 PM
|
#5
|
Member
Registered: Apr 2007
Location: BKK, Thailand
Distribution: Gentoo 10.1
Posts: 112
Original Poster
Rep:
|
is it necessary ???
i've configure with root account
|
|
|
12-03-2008, 12:41 PM
|
#6
|
Member
Registered: Apr 2007
Location: BKK, Thailand
Distribution: Gentoo 10.1
Posts: 112
Original Poster
Rep:
|
linking
/usr/local/Trolltech/Qt-4.4.3/
to
/usr/lib/qt4
isnt work either
|
|
|
12-03-2008, 02:05 PM
|
#7
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
No need to link the lib anywhere ??
But the library path is important,
hence ld.so.conf
The location /usr/lib/qt4/lib needs
a text in "ld.so.conf" too.
....
Last edited by knudfl; 12-03-2008 at 02:16 PM.
|
|
|
12-03-2008, 05:37 PM
|
#8
|
Member
Registered: Apr 2007
Location: North France
Distribution: Slackware64 15.0
Posts: 75
Rep:
|
Hi,
I had same problems few minutes ago.
use PKG_CONFIG_PATH before starting compile vlc.
Code:
PKG_CONFIG_PATH=/usr/lib/qt4/lib/pkgconfig
Hope this help
Bye
|
|
|
12-03-2008, 08:21 PM
|
#9
|
Member
Registered: Apr 2007
Location: BKK, Thailand
Distribution: Gentoo 10.1
Posts: 112
Original Poster
Rep:
|
PKG_CONFIG_PATH=/usr/lib/qt4/lib/pkgconfig
now the error come up before qt4 , its AVCODEC not found :P
|
|
|
12-04-2008, 05:10 AM
|
#10
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
"AVCODEC not found" > > avcodec > libavcodec
is part of ffmpeg.
A package for Slackware 12.1 is here
http://slackware.com/~alien/slackbui...mpeg/pkg/12.1/
....
|
|
|
12-04-2008, 07:35 AM
|
#11
|
Member
Registered: Apr 2007
Location: BKK, Thailand
Distribution: Gentoo 10.1
Posts: 112
Original Poster
Rep:
|
Quote:
Originally Posted by knudfl
|
"before" PKG_CONFIG_PATH is exported
vlc configure detected AVCODEC "successfully"
|
|
|
12-04-2008, 09:19 AM
|
#12
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
What you did, was confirming to have only 1 path for pkgconfig.
This is wrong : 'export PKG_CONFIG_PATH=/usr/lib/qt4/lib/pkgconfig'
And this works :
'export PKG_CONFIG_PATH=/usr/lib/qt4/lib/pkgconfig:/usr/lib/pkgconfig/'
And add /usr/local/lib/pkgconfig etc. etc. if they exist,
separated with colons ( : )
To check, what you have in the path, please do 'echo $PKG_CONFIG_PATH'
....
A much better solution is generally to use the Slackbuild scripts,
when they are available. I used it for the Qt-4.4.3, and everything
was put in the right places, the paths were added to pkgconfig and
/etc/ld.so.conf , all in one process.
Please look for "Download SlackBuild" here
http://slackbuilds.org/repository/12.1/libraries/qt4/
....
Last edited by knudfl; 12-04-2008 at 09:34 AM.
|
|
|
12-04-2008, 09:24 AM
|
#13
|
Senior Member
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
|
do you have qt4 devel or just qt if so get devel
|
|
|
12-04-2008, 10:53 AM
|
#14
|
Member
Registered: Apr 2007
Location: BKK, Thailand
Distribution: Gentoo 10.1
Posts: 112
Original Poster
Rep:
|
Quote:
Originally Posted by Drakeo
do you have qt4 devel or just qt if so get devel
|
i use qt4.4.3 from trolltech and compile manually
there's just only one in QT for application developement
so i'm not sure if there are other "dev" package
|
|
|
12-04-2008, 10:56 AM
|
#15
|
Member
Registered: Apr 2007
Location: BKK, Thailand
Distribution: Gentoo 10.1
Posts: 112
Original Poster
Rep:
|
Quote:
Originally Posted by knudfl
What you did, was confirming to have only 1 path for pkgconfig.
This is wrong : 'export PKG_CONFIG_PATH=/usr/lib/qt4/lib/pkgconfig'
And this works :
'export PKG_CONFIG_PATH=/usr/lib/qt4/lib/pkgconfig:/usr/lib/pkgconfig/'
And add /usr/local/lib/pkgconfig etc. etc. if they exist,
separated with colons ( : )
To check, what you have in the path, please do 'echo $PKG_CONFIG_PATH'
....
A much better solution is generally to use the Slackbuild scripts,
when they are available. I used it for the Qt-4.4.3, and everything
was put in the right places, the paths were added to pkgconfig and
/etc/ld.so.conf , all in one process.
Please look for "Download SlackBuild" here
http://slackbuilds.org/repository/12.1/libraries/qt4/
....
|
Thanks for ur comment , but i prefer building my own app manually
and playing around , so then i can have some new knowledge
|
|
|
All times are GMT -5. The time now is 03:52 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|