Re: Qt building problems...

2003-04-12 Thread Anders Ellenshøj Andersen
On Friday 11 April 2003 17:15, Erik Johansson wrote:

  so, why and where? Is there some way to fix this? This problem appears
  every time I try to compile something that uses Qt 3.x.x (I've never
  tried compiling something that uses 2.x.x)...

 Try --with-qt-dir=/usr/share/qt3

Why can't configure find this out by itself?

Anders

-- 
This email was generated using KMail from KDE 3.1 on Debian GNU/Linux




Re: Qt building problems..

2003-04-12 Thread Alex
El Sábado, 12 de Abril de 2003 12:08, Anders Ellenshøj Andersen escribió:
  Try --with-qt-dir=/usr/share/qt3

 Why can't configure find this out by itself?

Maybe the script is lazy :o)

Well, if you are lazy like me ;-), try doing:
export QTDIR=/usr/share/qt3

Or including it in ~/.bashrc.

Why configure doen't find this withou help? I'm not sure, but maybe Debian 
uses a path not very standard when installing this, or maybe other distros 
do some things automatically. Using Red Hat, I didn't had those problems 
compiling, but sincerely, I prefer using debian ;-).

-- 
Alex (a.k.a. suy)  -  GPG ID: AA8D2A01
http://lacurva.net/




Re: Qt building problems...

2003-04-12 Thread Andrzej Koszela
It seems to me that debian installs Qt in a non-standard location... why this 
is so is beyond me though


On Saturday 12 April 2003 12.08, Anders Ellenshøj Andersen wrote:
 On Friday 11 April 2003 17:15, Erik Johansson wrote:
   so, why and where? Is there some way to fix this? This problem appears
   every time I try to compile something that uses Qt 3.x.x (I've never
   tried compiling something that uses 2.x.x)...
 
  Try --with-qt-dir=/usr/share/qt3

 Why can't configure find this out by itself?

 Anders

 --
 This email was generated using KMail from KDE 3.1 on Debian GNU/Linux


pgpEg5vPtJmRa.pgp
Description: signature


Re: Qt building problems...

2003-04-12 Thread Daniel Stone
On Sat, Apr 12, 2003 at 01:18:13PM +0200, Andrzej Koszela wrote:
 It seems to me that debian installs Qt in a non-standard location... why this 
 is so is beyond me though

There is no standard Qt location, apart from /usr/local/qt.

-- 
Daniel Stone [EMAIL PROTECTED] [EMAIL PROTECTED]
KDE: Konquering a desktop near you - http://www.kde.org


pgp9bhP1BvVqS.pgp
Description: PGP signature


Qt building problems...

2003-04-11 Thread Andrzej Koszela
I hope this is the right list to post to...

Anyhow, every time I try to compile a program that uses Qt, for instance 
kmplayer, dcgui or pinentry-qt, ./configure has to be run with the 

--with-qt-includes=/usr/include/qt3/
--with-qt-libraries=/usr/lib/qt3

options. It then detects the Qt libs and includes, but fails later and says

checking for Qt... configure: error: Qt (= Qt 3.1.0) (library qt-mt) 
not
found. Please check your installation!
For more details about this problem, look at the end of config.log.
Make sure that you have compiled Qt with thread support!

... And I have installed libqt3-mt-dev 3.1.1-7. Oh and I run debian testing 
with some packages from unstable (kde 3.1.1), but most of it is from testing. 
Now does debian put Qt in a non-standard location, and if so, why and where?
Is there some way to fix this? This problem appears every time I try to 
compile something that uses Qt 3.x.x (I've never tried compiling something 
that uses 2.x.x)...

Any help appreciated... and sorry about the long post

Andrzej


pgpc31L20yed1.pgp
Description: signature


Re: Qt building problems...

2003-04-11 Thread Todd Charron
Try 

--with-qt-dir=/usr/share/qt3

Todd

On April 11, 2003 10:20 am, Andrzej Koszela wrote:
 I hope this is the right list to post to...

 Anyhow, every time I try to compile a program that uses Qt, for instance
 kmplayer, dcgui or pinentry-qt, ./configure has to be run with the

   --with-qt-includes=/usr/include/qt3/
   --with-qt-libraries=/usr/lib/qt3

 options. It then detects the Qt libs and includes, but fails later and says

   checking for Qt... configure: error: Qt (= Qt 3.1.0) (library qt-mt) 
 not
   found. Please check your installation!
   For more details about this problem, look at the end of config.log.
   Make sure that you have compiled Qt with thread support!

 ... And I have installed libqt3-mt-dev 3.1.1-7. Oh and I run debian testing
 with some packages from unstable (kde 3.1.1), but most of it is from
 testing. Now does debian put Qt in a non-standard location, and if so, why
 and where? Is there some way to fix this? This problem appears every time I
 try to compile something that uses Qt 3.x.x (I've never tried compiling
 something that uses 2.x.x)...

 Any help appreciated... and sorry about the long post

 Andrzej




Re: Qt building problems...

2003-04-11 Thread Erik Johansson
On Friday 11 April 2003 16.20, Andrzej Koszela wrote:
 I hope this is the right list to post to...

 Anyhow, every time I try to compile a program that uses Qt, for instance
 kmplayer, dcgui or pinentry-qt, ./configure has to be run with the

   --with-qt-includes=/usr/include/qt3/
   --with-qt-libraries=/usr/lib/qt3

 options. It then detects the Qt libs and includes, but fails later and says

   checking for Qt... configure: error: Qt (= Qt 3.1.0) (library qt-mt) 
 not
   found. Please check your installation!
   For more details about this problem, look at the end of config.log.
   Make sure that you have compiled Qt with thread support!

 ... And I have installed libqt3-mt-dev 3.1.1-7. Oh and I run debian testing
 with some packages from unstable (kde 3.1.1), but most of it is from
 testing. Now does debian put Qt in a non-standard location, and if so, why
 and where? Is there some way to fix this? This problem appears every time I
 try to compile something that uses Qt 3.x.x (I've never tried compiling
 something that uses 2.x.x)...

Try --with-qt-dir=/usr/share/qt3

// Erik
-- 
This is an example for a correct signature.

Erik Johansson [EMAIL PROTECTED]
http://www.lysator.liu.se/~erre/




Re: Qt building problems...

2003-04-11 Thread Andrzej Koszela
Hm... now even weirder things are happening:

It freezes for a few seconds on the 'checking for Qt', and then gives the same 
message. The thing in config.log that I think is important is:

configure:9663: checking for Qt
configure: 9725: /usr/share/qt3/include/qstyle.h
taking that
configure:9830: rm -rf SunWS_cache; g++ -o conftest -O2 -fno-exceptions 
-fno-che
ck-new -I/usr/share/qt3/include -I/usr/X11R6/include  -DQT_THREAD_SUPPORT  
-D_REENTRANT  -L/usr/share/qt3/lib -L/usr/X11R6/lib   conftest.cc  -lqt-mt 
-lpng -lz -lm -ljpeg -ldl  -lXext -lX11 -lSM -lICE  -lresolv -lpthread 15
/tmp/ccOYvCFi.o(.text+0xb): In function `main':
: undefined reference to `QString::null'

etc... (lots of 'undefined reference')

Does this mean anything? It looks to me that it finds the libraries, but 
something doesn't work...

Andrzej

On Friday 11 April 2003 17.07, Todd Charron wrote:
 Try

 --with-qt-dir=/usr/share/qt3

 Todd



pgpOp0cJ1KHl1.pgp
Description: signature


Re: Qt building problems...

2003-04-11 Thread David Pye
Is the gcc you are using the same as the gcc with which the Qt libraries were 
built?

That can cause problems if, say, you're using gcc 2.95 but Qt was built with 
gcc 3.2 or vice versa...

David

On Friday 11 April 2003 16:31, Andrzej Koszela wrote:
 Hm... now even weirder things are happening:

 It freezes for a few seconds on the 'checking for Qt', and then gives the
 same message. The thing in config.log that I think is important is:

 configure:9663: checking for Qt
 configure: 9725: /usr/share/qt3/include/qstyle.h
 taking that
 configure:9830: rm -rf SunWS_cache; g++ -o conftest -O2 -fno-exceptions
 -fno-che
 ck-new -I/usr/share/qt3/include -I/usr/X11R6/include  -DQT_THREAD_SUPPORT
 -D_REENTRANT  -L/usr/share/qt3/lib -L/usr/X11R6/lib   conftest.cc  -lqt-mt
 -lpng -lz -lm -ljpeg -ldl  -lXext -lX11 -lSM -lICE  -lresolv -lpthread 15

 /tmp/ccOYvCFi.o(.text+0xb): In function `main':
 : undefined reference to `QString::null'

 etc... (lots of 'undefined reference')

 Does this mean anything? It looks to me that it finds the libraries, but
 something doesn't work...

 Andrzej

 On Friday 11 April 2003 17.07, Todd Charron wrote:
  Try
 
  --with-qt-dir=/usr/share/qt3
 
  Todd




Re: Qt building problems...

2003-04-11 Thread Andrzej Koszela
On Friday 11 April 2003 19.23, David Pye wrote:

Upgraded g++, and it seems to work now... thanks :)



 Is the gcc you are using the same as the gcc with which the Qt libraries
 were built?

 That can cause problems if, say, you're using gcc 2.95 but Qt was built
 with gcc 3.2 or vice versa...

 David

 On Friday 11 April 2003 16:31, Andrzej Koszela wrote:
  Hm... now even weirder things are happening:
 
  It freezes for a few seconds on the 'checking for Qt', and then gives the
  same message. The thing in config.log that I think is important is:
 
  configure:9663: checking for Qt
  configure: 9725: /usr/share/qt3/include/qstyle.h
  taking that
  configure:9830: rm -rf SunWS_cache; g++ -o conftest -O2 -fno-exceptions
  -fno-che
  ck-new -I/usr/share/qt3/include -I/usr/X11R6/include  -DQT_THREAD_SUPPORT
  -D_REENTRANT  -L/usr/share/qt3/lib -L/usr/X11R6/lib   conftest.cc 
  -lqt-mt -lpng -lz -lm -ljpeg -ldl  -lXext -lX11 -lSM -lICE  -lresolv
  -lpthread 15
 
  /tmp/ccOYvCFi.o(.text+0xb): In function `main':
  : undefined reference to `QString::null'
 
  etc... (lots of 'undefined reference')
 
  Does this mean anything? It looks to me that it finds the libraries, but
  something doesn't work...
 
  Andrzej
 
  On Friday 11 April 2003 17.07, Todd Charron wrote:
   Try
  
   --with-qt-dir=/usr/share/qt3
  
   Todd


pgpT9t4WJ5Yvf.pgp
Description: signature


Re: Qt building problems...

2003-04-11 Thread Gerhard Gaussling
Am Freitag, 11. April 2003 19:47 schrieb Andrzej Koszela:
 On Friday 11 April 2003 19.23, David Pye wrote:

 Upgraded g++, and it seems to work now... thanks :)


Hello Andrzej, 

Thanks a lot to pointed this out!!

It works!

debian:/home/gerhard# g++ -v
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
gcc version 2.95.4 20011002 (Debian prerelease)
debian:/home/gerhard# apt-get -t unstable install g++
Building Dependency Tree... Done
The following packages will be upgraded
  g++
[...]
debian:/home/gerhard/download/scribus-0.9.8/scribus-0.9.8# ./configure 
--with-qt-dir=/usr/share/qt3/
[...]
checking for libjpeg... -ljpeg
checking for Qt... libraries /usr/share/qt3//lib, headers 
/usr/share/qt3//include using -mt
checking if Qt compiles without flags... yes
checking for moc... /usr/share/qt3//bin/moc
checking for uic... /usr/share/qt3//bin/uic
[...]

Thanks again!

bye

Gerhard