Qt-interest Archive, December 2007
lib linking .pro file windows
Message 1 in thread
Hi,
I just can't seem to get qmake to pass the library parameters to gcc,
I tried setting the libraries in my projects .pro file in lots of different ways but still no success:
For example like this (with and without -L/-l):
LIBPATH += -LC:\CMU\1394Camera\lib
LIBS += -llib1394camera.lib \
-l1394camerad.lib
or directly:
LIBS += C:\CMU\1394Camera\lib\lib1394camera.lib \
C:\CMU\1394Camera\lib\1394camerad.lib
in the make output no libraries in sight:
g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT
-DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS
_QMAIN -I"..\..\..\..\Qt\4.3.1\include\QtCore" -I"..\..\..\..\Qt\4.3.1\include\Q
tCore" -I"..\..\..\..\Qt\4.3.1\include\QtGui" -I"..\..\..\..\Qt\4.3.1\include\Qt
Gui" -I"..\..\..\..\Qt\4.3.1\include" -I"..\..\..\..\CMU\1394Camera\include" -I"
..\..\..\..\Qt\4.3.1\include\ActiveQt" -I"release" -I"." -I"..\..\..\..\Qt\4.3.1
\mkspecs\default" -o release\CMU1394.o CMU1394.cpp
Any ideas? I never had problems including libraries when doing Linux projects where's the difference?
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Message 2 in thread
On December 12, 2007 09:24:36 am Jasper Leemans wrote:
> Hi,
>
> I just can't seem to get qmake to pass the library parameters to gcc,
> I tried setting the libraries in my projects .pro file in lots of different
> ways but still no success:
>
> For example like this (with and without -L/-l):
>
> LIBPATH += -LC:\CMU\1394Camera\lib
> LIBS += -llib1394camera.lib \
> -l1394camerad.lib
>
> or directly:
>
> LIBS += C:\CMU\1394Camera\lib\lib1394camera.lib \
> C:\CMU\1394Camera\lib\1394camerad.lib
>
> in the make output no libraries in sight:
>
> g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE
> -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB
> -DQT_THREAD_SUPPORT -DQT_NEEDS _QMAIN
> -I"..\..\..\..\Qt\4.3.1\include\QtCore" -I"..\..\..\..\Qt\4.3.1\include\Q
> tCore" -I"..\..\..\..\Qt\4.3.1\include\QtGui"
> -I"..\..\..\..\Qt\4.3.1\include\Qt Gui" -I"..\..\..\..\Qt\4.3.1\include"
> -I"..\..\..\..\CMU\1394Camera\include" -I"
> ..\..\..\..\Qt\4.3.1\include\ActiveQt" -I"release" -I"."
> -I"..\..\..\..\Qt\4.3.1 \mkspecs\default" -o release\CMU1394.o CMU1394.cpp
>
> Any ideas? I never had problems including libraries when doing Linux
> projects where's the difference?
That's your compile step, not your link step. You don't need the libraries at
that point.
--
[ signature omitted ]
Message 3 in thread
> From: cthompson@xxxxxxxxxxxxxxx> To: qt-interest@xxxxxxxxxxxxx> Subject: Re: lib linking .pro file windows> Date: Wed, 12 Dec 2007 09:28:00 -0700> > On December 12, 2007 09:24:36 am Jasper Leemans wrote:> > Hi,> >> > I just can't seem to get qmake to pass the library parameters to gcc,> > I tried setting the libraries in my projects .pro file in lots of different> > ways but still no success:> >> > For example like this (with and without -L/-l):> >> > LIBPATH += -LC:\CMU\1394Camera\lib> > LIBS += -llib1394camera.lib \> > -l1394camerad.lib> >> > or directly:> >> > LIBS += C:\CMU\1394Camera\lib\lib1394camera.lib \> > C:\CMU\1394Camera\lib\1394camerad.lib> >> > in the make output no libraries in sight:> >> > g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE> > -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB> > -DQT_THREAD_SUPPORT -DQT_NEEDS _QMAIN> > -I"..\..\..\..\Qt\4.3.1\include\QtCore" -I"..\..\..\..\Qt\4.3.1\include\Q> > tCore" -I"..\..\..\..\Qt\4.3.1\include\QtGui"> > -I"..\..\..\..\Qt\4.3.1\include\Qt Gui" -I"..\..\..\..\Qt\4.3.1\include"> > -I"..\..\..\..\CMU\1394Camera\include" -I"> > ..\..\..\..\Qt\4.3.1\include\ActiveQt" -I"release" -I"."> > -I"..\..\..\..\Qt\4.3.1 \mkspecs\default" -o release\CMU1394.o CMU1394.cpp> >> > Any ideas? I never had problems including libraries when doing Linux> > projects where's the difference?> > That's your compile step, not your link step. You don't need the libraries at > that point.
Damn sorry was looking at the wrong output, in the next step they are included,
error most come from somewhere else, thanx
> --> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.> List archive and information: http://lists.trolltech.com/qt-interest/>
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/