LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 12-03-2008, 09:20 AM   #1
Raynus
Member
 
Registered: Apr 2007
Location: BKK, Thailand
Distribution: Gentoo 10.1
Posts: 112
Blog Entries: 2

Rep: Reputation: 15
Post 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
 
Old 12-03-2008, 10:43 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 10:45 AM.
 
Old 12-03-2008, 11:20 AM   #3
Raynus
Member
 
Registered: Apr 2007
Location: BKK, Thailand
Distribution: Gentoo 10.1
Posts: 112

Original Poster
Blog Entries: 2

Rep: Reputation: 15
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
 
Old 12-03-2008, 11:25 AM   #4
ranjitcool
LQ Newbie
 
Registered: Dec 2006
Posts: 11

Rep: Reputation: 0
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...
 
Old 12-03-2008, 11:28 AM   #5
Raynus
Member
 
Registered: Apr 2007
Location: BKK, Thailand
Distribution: Gentoo 10.1
Posts: 112

Original Poster
Blog Entries: 2

Rep: Reputation: 15
is it necessary ???
i've configure with root account
 
Old 12-03-2008, 11:41 AM   #6
Raynus
Member
 
Registered: Apr 2007
Location: BKK, Thailand
Distribution: Gentoo 10.1
Posts: 112

Original Poster
Blog Entries: 2

Rep: Reputation: 15
linking
/usr/local/Trolltech/Qt-4.4.3/
to
/usr/lib/qt4
isnt work either
 
Old 12-03-2008, 01:05 PM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 01:16 PM.
 
Old 12-03-2008, 04:37 PM   #8
Patrick59
Member
 
Registered: Apr 2007
Location: North France
Distribution: Slackware64 15.0
Posts: 74

Rep: Reputation: 19
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
 
Old 12-03-2008, 07:21 PM   #9
Raynus
Member
 
Registered: Apr 2007
Location: BKK, Thailand
Distribution: Gentoo 10.1
Posts: 112

Original Poster
Blog Entries: 2

Rep: Reputation: 15
PKG_CONFIG_PATH=/usr/lib/qt4/lib/pkgconfig

now the error come up before qt4 , its AVCODEC not found :P
 
Old 12-04-2008, 04:10 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
"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/
....
 
Old 12-04-2008, 06:35 AM   #11
Raynus
Member
 
Registered: Apr 2007
Location: BKK, Thailand
Distribution: Gentoo 10.1
Posts: 112

Original Poster
Blog Entries: 2

Rep: Reputation: 15
Quote:
Originally Posted by knudfl View Post
"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/
....



"before" PKG_CONFIG_PATH is exported

vlc configure detected AVCODEC "successfully"
 
Old 12-04-2008, 08:19 AM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 08:34 AM.
 
Old 12-04-2008, 08:24 AM   #13
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
do you have qt4 devel or just qt if so get devel
 
Old 12-04-2008, 09:53 AM   #14
Raynus
Member
 
Registered: Apr 2007
Location: BKK, Thailand
Distribution: Gentoo 10.1
Posts: 112

Original Poster
Blog Entries: 2

Rep: Reputation: 15
Quote:
Originally Posted by Drakeo View Post
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
 
Old 12-04-2008, 09:56 AM   #15
Raynus
Member
 
Registered: Apr 2007
Location: BKK, Thailand
Distribution: Gentoo 10.1
Posts: 112

Original Poster
Blog Entries: 2

Rep: Reputation: 15
Quote:
Originally Posted by knudfl View Post
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
 
  


Reply



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
I'm Getting 6 VLC Windows At Once - Problem With VLC Player davidx Linux - Software 1 11-03-2008 11:45 AM
Qt4 STARHARVEST Slackware 7 10-08-2008 08:56 AM
Does slackware 12 come with Qt4? Tux-Slack Slackware 1 07-14-2007 01:28 PM
qt4 programming Four Programming 4 02-10-2007 09:15 AM
Compiling qt4 apps for non-qt4 linux, win, mac birdseye Programming 4 10-31-2005 04:45 AM

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

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