You are not logged in.

#1 2008-02-04 08:49:08

blah25
Member
Registered: 2008-02-04
Posts: 7

Can't compile anything with qt3/qt4

Hello.

I can't compile anything with qt3 or qt4 on i686.
Packages depending on qt3 fail ./configure with (example kaffeine 0.8.6 pkgbuild from the repo)

checking for Qt... configure: error: Qt (>= Qt 3.3 and < 4.0) (headers and libraries) not found. Please check your installation!
For more details about this problem, look at the end of config.log.

Packages depending on qt4 fail ./configure with (example vlc-nightly pkgbuild from aur)

checking for QT4... configure: error: QT4 library not found

I don't use testing or unstable, other than that the system is up-to-date.
Any idea what the problem is?

Offline

#2 2008-02-04 11:23:15

Salamander1978
Member
From: Aachen, DE
Registered: 2007-10-24
Posts: 30

Re: Can't compile anything with qt3/qt4

try
$  export QTDIR=/usr
before the configuration step.

Best,
-- Maik

Offline

#3 2008-02-04 11:35:35

blah25
Member
Registered: 2008-02-04
Posts: 7

Re: Can't compile anything with qt3/qt4

Tried it, same result.

Offline

#4 2008-02-04 16:22:01

Salamander1978
Member
From: Aachen, DE
Registered: 2007-10-24
Posts: 30

Re: Can't compile anything with qt3/qt4

Are you sure qt and qt3 are installed proper?
What does
  $ pacman -Qs qt
give?

Offline

#5 2008-02-04 17:20:05

blah25
Member
Registered: 2008-02-04
Posts: 7

Re: Can't compile anything with qt3/qt4

$ pacman -Qs qt
local/dbus-qt3 0.62-3
    QT3 bindings for DBUS
local/gtk-qt-engine 0.8-2
    A GTK engine which makes your GTK2 Apps match your QT theme
local/metatheme 0.0.6-2
    a thin layer between QT+GTK2 toolkits and theme engines, creating unified API by which each theme engine can draw
local/poppler-qt 0.6.3-1
    Poppler Qt bindings
local/poppler-qt3 0.6.3-1
    Poppler Qt3 bindings
local/pyqt 4.3.3-1
    PyQt is a set of Python bindings for the Qt toolkit.
local/pyqt3 3.17.4-1
    PyQt is a set of Python bindings for the Qt toolkit.
local/qca 2.0.0.svn744387-1.1
    Qt Cryptographic Architecture
local/qca-qt3 1.0-1
    QT Cryptography Architecture
local/qca-tls 1.0-5
    plugin to provide SSL/TLS capability to programs that utilize the Qt Cryptographic Architecture
local/qgit 1.5.7-2
    A GIT GUI viewer built on Qt/C++
local/qscintilla 2.1-3
    QScintilla2 is a port to Qt4 of Neil Hodgson's Scintilla C++ editor class.
local/qscintilla-qt3 1.7.1-2
    QScintilla is a port to Qt3 of Neil Hodgson's Scintilla C++ editor class.
local/qt 4.3.3-4
    The QT gui toolkit.
local/qt-doc 4.3.3-1
    The QT gui toolkit documentation.
local/qt3 3.3.8-6.1
    The QT gui toolkit.
local/qt3-doc 3.3.8-1
    The QT gui toolkit documentation.
local/qtiplot 0.9-1
    Data analysis and scientific plotting - free clone of Origin
local/qwt 5.0.2-1
    Qt Widgets for Technical Applications
local/qwtplot3d 0.2.7-1
    Qt/OpenGL-based C++ programming library containing 3d-widgets

Considering that I used pacman to install the packages, I would expect them to be installed properly.

Offline

#6 2008-02-04 18:19:33

Salamander1978
Member
From: Aachen, DE
Registered: 2007-10-24
Posts: 30

Re: Can't compile anything with qt3/qt4

I'm sorry for not testing my advises before giving them. 

I've just set up a qt4 and a qt3 hello world app using cmake.  For qt4 doing
  $ export QTDR=/usr
works, while qt3 needs
  $export QTDIR=/opt/qt

Hope that helps,
-- Maik

Offline

#7 2008-02-04 18:47:29

Zer0
Member
From: Windsor, ON, Canada
Registered: 2006-08-25
Posts: 299

Re: Can't compile anything with qt3/qt4

for qt3:

 source /etc/profile.d/qt3.sh
  export QMAKESPEC=/opt/qt/mkspecs/linux-g++

for qt4:

  export QTDIR=/usr
  export QMAKESPEC=/usr/share/qt/mkspecs/linux-g++

Offline

#8 2008-02-04 19:16:07

blah25
Member
Registered: 2008-02-04
Posts: 7

Re: Can't compile anything with qt3/qt4

Tried all those solutions, still the same.

Offline

#9 2008-02-04 19:25:46

anomander
Member
From: Germany
Registered: 2007-12-15
Posts: 17

Re: Can't compile anything with qt3/qt4

Does the configure skript offer an option where you can specify the qt-directory?

I got a similiar problem compiling something (don't ask me which program it was wink ) and I was able to solve it running the configure skript with a switch.... something like:

./configure -qt-dir=/place/qt/dir/here

Maybe you can find out with

./configure --help

Last edited by anomander (2008-02-04 19:26:18)


"The saddest aspect of life right now is that science gathers knowledge faster than society gathers wisdom."
Isaac Asimov

Offline

#10 2008-02-04 22:02:05

blah25
Member
Registered: 2008-02-04
Posts: 7

Re: Can't compile anything with qt3/qt4

That wouldn't explain why the pkgbuild of kaffeine from the repo doesn't compile.
I tried it with   ./configure --prefix=/opt/kde  --with-qt-dir=/opt/qt  --with-qt-includes=/opt/qt/include --with-qt-libraries=opt/qt/lib --with-xorg
but the result was, yet again, the same.

Offline

#11 2008-02-09 12:15:43

blah25
Member
Registered: 2008-02-04
Posts: 7

Re: Can't compile anything with qt3/qt4

Anyone else any idea?

Offline

#12 2008-02-09 13:35:17

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,302

Re: Can't compile anything with qt3/qt4

I have tried the PKGBUILD for kaffeine 0.8.6 (Extra repo), and I got no problem with the configure script which uses :
./configure --prefix=/opt/kde --with-xorg
...
checking for libjpeg... -ljpeg
checking for perl... /usr/bin/perl
checking for Qt... libraries /opt/qt/lib, headers /opt/qt/include using -mt
checking for moc... /opt/qt/bin/moc
...

I use kde and qt3 but I removed the qt-4 package for now.

echo $QTDIR
/opt/qt
echo $KDEDIR
/opt/kde

Maybe there is a conflict between the two qt versions on your machine.

Last edited by berbae (2008-02-09 13:38:36)

Offline

Board footer

Powered by FluxBB