Build error: cannot find -lqextserialport

235 views
Skip to first unread message

Ardillakilla

unread,
Mar 3, 2010, 5:42:16 AM3/3/10
to qextserialport
Running build steps for project qextserialport...
Starting: c:/dev/qt/2009.05/qt/bin/qmake.exe C:/dev/qextserialport/
qextserialport.pro -spec win32-g++ -r CONFIG+=release
Reading C:/dev/qextserialport/src/src.pro
Reading C:/dev/qextserialport/examples/enumerator/enumerator.pro
Reading C:/dev/qextserialport/examples/event/event.pro
Exited with code 0.
Starting: C:/dev/Qt/2009.05/mingw/bin/mingw32-make.exe -w
mingw32-make: Entering directory `C:/dev/qextserialport'
cd src\ && C:/dev/Qt/2009.05/mingw/bin/mingw32-make -f Makefile
mingw32-make[1]: Entering directory `C:/dev/qextserialport/src'
C:/dev/Qt/2009.05/mingw/bin/mingw32-make -f Makefile.Release
mingw32-make[2]: Entering directory `C:/dev/qextserialport/src'
g++ -c -O2 -Wall -frtti -fexceptions -mthreads -DUNICODE -
DQT_LARGEFILE_SUPPORT -DQEXTSERIALPORT_LIB -DWINVER=0x0501 -DQT_DLL -
DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\Qt
\2009.05\qt\include\QtCore" -I"..\..\Qt\2009.05\qt\include\QtGui" -I"..
\..\Qt\2009.05\qt\include" -I"..\..\Qt\2009.05\qt\include\ActiveQt" -
I"tmp" -I"..\..\Qt\2009.05\qt\mkspecs\win32-g++" -o tmp
\qextserialport.o qextserialport.cpp
g++ -c -O2 -Wall -frtti -fexceptions -mthreads -DUNICODE -
DQT_LARGEFILE_SUPPORT -DQEXTSERIALPORT_LIB -DWINVER=0x0501 -DQT_DLL -
DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\Qt
\2009.05\qt\include\QtCore" -I"..\..\Qt\2009.05\qt\include\QtGui" -I"..
\..\Qt\2009.05\qt\include" -I"..\..\Qt\2009.05\qt\include\ActiveQt" -
I"tmp" -I"..\..\Qt\2009.05\qt\mkspecs\win32-g++" -o tmp
\win_qextserialport.o win_qextserialport.cpp
g++ -c -O2 -Wall -frtti -fexceptions -mthreads -DUNICODE -
DQT_LARGEFILE_SUPPORT -DQEXTSERIALPORT_LIB -DWINVER=0x0501 -DQT_DLL -
DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\Qt
\2009.05\qt\include\QtCore" -I"..\..\Qt\2009.05\qt\include\QtGui" -I"..
\..\Qt\2009.05\qt\include" -I"..\..\Qt\2009.05\qt\include\ActiveQt" -
I"tmp" -I"..\..\Qt\2009.05\qt\mkspecs\win32-g++" -o tmp
\qextserialenumerator_win.o qextserialenumerator_win.cpp
g++ -c -O2 -Wall -frtti -fexceptions -mthreads -DUNICODE -
DQT_LARGEFILE_SUPPORT -DQEXTSERIALPORT_LIB -DWINVER=0x0501 -DQT_DLL -
DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\Qt
\2009.05\qt\include\QtCore" -I"..\..\Qt\2009.05\qt\include\QtGui" -I"..
\..\Qt\2009.05\qt\include" -I"..\..\Qt\2009.05\qt\include\ActiveQt" -
I"tmp" -I"..\..\Qt\2009.05\qt\mkspecs\win32-g++" -o tmp
\moc_qextserialport.o tmp\moc_qextserialport.cpp
g++ -c -O2 -Wall -frtti -fexceptions -mthreads -DUNICODE -
DQT_LARGEFILE_SUPPORT -DQEXTSERIALPORT_LIB -DWINVER=0x0501 -DQT_DLL -
DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\Qt
\2009.05\qt\include\QtCore" -I"..\..\Qt\2009.05\qt\include\QtGui" -I"..
\..\Qt\2009.05\qt\include" -I"..\..\Qt\2009.05\qt\include\ActiveQt" -
I"tmp" -I"..\..\Qt\2009.05\qt\mkspecs\win32-g++" -o tmp
\moc_qextserialenumerator.o tmp\moc_qextserialenumerator.cpp
windres -i qextserialport_resource.rc -o tmp
\qextserialport_resource_res.o --include-dir=.
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-
pseudo-reloc -Wl,-s -shared -mthreads -Wl -Wl,--out-implib,build
\libqextserialport1.a -o build\qextserialport1.dll tmp/
qextserialport.o tmp/win_qextserialport.o tmp/
qextserialenumerator_win.o tmp/moc_qextserialport.o tmp/
moc_qextserialenumerator.o -L"c:\dev\Qt\2009.05\qt\lib" tmp
\qextserialport_resource_res.o -lsetupapi -lQtGui4 -lQtCore4
Creating library file: build\libqextserialport1.a
mingw32-make[2]: Leaving directory `C:/dev/qextserialport/src'
mingw32-make[1]: Leaving directory `C:/dev/qextserialport/src'
cd examples\enumerator\ && C:/dev/Qt/2009.05/mingw/bin/mingw32-make -f
Makefile
mingw32-make[1]: Entering directory `C:/dev/qextserialport/examples/
enumerator'
C:/dev/Qt/2009.05/mingw/bin/mingw32-make -f Makefile.Release
mingw32-make[2]: Entering directory `C:/dev/qextserialport/examples/
enumerator'
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
\2009.05\qt\include\QtCore" -I"..\..\..\Qt\2009.05\qt\include\QtGui" -
I"..\..\..\Qt\2009.05\qt\include" -I"..\..\src" -I"..\..\..\Qt
\2009.05\qt\include\ActiveQt" -I"tmp" -I"..\..\..\Qt\2009.05\qt\mkspecs
\win32-g++" -o tmp\main.o main.cpp
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-
pseudo-reloc -Wl,-s -mthreads -Wl -Wl,-subsystem,windows -o release
\enumerator.exe tmp/main.o -L"..\..\src\build" -L"c:\dev\Qt\2009.05\qt
\lib" -lmingw32 -lqtmain -lqextserialport -lsetupapi -lQtGui4 -
lQtCore4
mingw32-make[2]: Leaving directory `C:/dev/qextserialport/examples/
enumerator'
mingw32-make[1]: Leaving directory `C:/dev/qextserialport/examples/
enumerator'
c:/dev/qt/2009.05/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../
mingw32/bin/ld.exe: cannot find -lqextserialport
collect2: ld returned 1 exit status
mingw32-make[2]: *** [release\enumerator.exe] Error 1
mingw32-make[1]: *** [release] Error 2
mingw32-make: Leaving directory `C:/dev/qextserialport'
mingw32-make: *** [sub-examples-enumerator-make_default-ordered] Error
2
Exited with code 2.
Error while building project qextserialport
When executing build step 'Make'

Márton Miklós

unread,
Mar 3, 2010, 3:18:50 PM3/3/10
to qextser...@googlegroups.com
Well I had same type issue. Somehow on Windows the it builds
qextserialport1.dll, however in the
pro file the target is set qextserialport. For workaround you can edit
your pro file to link with qextserialport1,
but I think the problem should be investigated, because this causes
problems with cross platform development.
(On Linux it builds qextserialport.so as it supposed.)

Regards,
Mikl�s M�rton

Ardillakilla �rta:

Ardillakilla

unread,
Mar 5, 2010, 5:40:54 AM3/5/10
to qextserialport
It appears to be working now. Thanks.

jimmydean101

unread,
Mar 10, 2010, 6:02:04 PM3/10/10
to qextserialport
I'm seeing the same problem. I altered my .pro file to look for
qextserialportd1 that was created when I ran 'make' on src.pro and I
get the following:

C:\Qt\QextSerialPort\examples\qespta>mingw32-make
mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `C:/Qt/QextSerialPort/examples/
qespta'
g++ -c -g -Wall -frtti -fexceptions -mthreads -D_TTY_WIN_ -
DQT_THREAD_SUPPORT -D
QT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I"..\..\..
\2010.01\qt\includ
e\QtCore" -I"..\..\..\2010.01\qt\include\QtGui" -I"..\..\..\2010.01\qt
\include"
-I"..\..\src" -I"..\..\..\2010.01\qt\include\ActiveQt" -I".moc" -I"..
\..\..\2010
.01\qt\mkspecs\default" -o .obj\main.o main.cpp
g++ -c -g -Wall -frtti -fexceptions -mthreads -D_TTY_WIN_ -
DQT_THREAD_SUPPORT -D
QT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I"..\..\..
\2010.01\qt\includ
e\QtCore" -I"..\..\..\2010.01\qt\include\QtGui" -I"..\..\..\2010.01\qt
\include"
-I"..\..\src" -I"..\..\..\2010.01\qt\include\ActiveQt" -I".moc" -I"..
\..\..\2010
.01\qt\mkspecs\default" -o .obj\MainWindow.o MainWindow.cpp
g++ -c -g -Wall -frtti -fexceptions -mthreads -D_TTY_WIN_ -
DQT_THREAD_SUPPORT -D
QT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I"..\..\..
\2010.01\qt\includ
e\QtCore" -I"..\..\..\2010.01\qt\include\QtGui" -I"..\..\..\2010.01\qt
\include"
-I"..\..\src" -I"..\..\..\2010.01\qt\include\ActiveQt" -I".moc" -I"..
\..\..\2010
.01\qt\mkspecs\default" -o .obj\MessageWindow.o MessageWindow.cpp
g++ -c -g -Wall -frtti -fexceptions -mthreads -D_TTY_WIN_ -
DQT_THREAD_SUPPORT -D
QT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I"..\..\..
\2010.01\qt\includ
e\QtCore" -I"..\..\..\2010.01\qt\include\QtGui" -I"..\..\..\2010.01\qt
\include"
-I"..\..\src" -I"..\..\..\2010.01\qt\include\ActiveQt" -I".moc" -I"..
\..\..\2010
.01\qt\mkspecs\default" -o .obj\QespTest.o QespTest.cpp
C:/Qt/2010.01/qt/bin\moc.exe -D_TTY_WIN_ -DQT_THREAD_SUPPORT -DQT_DLL -
DQT_GUI_L
IB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I"..\..\..\2010.01\qt\include
\QtCore" -I"..\.
.\..\2010.01\qt\include\QtGui" -I"..\..\..\2010.01\qt\include" -I"..\..
\src" -I"
..\..\..\2010.01\qt\include\ActiveQt" -I".moc" -I"..\..\..\2010.01\qt
\mkspecs\de
fault" -D__GNUC__ -DWIN32 MainWindow.h -o .moc\moc_MainWindow.cpp
g++ -c -g -Wall -frtti -fexceptions -mthreads -D_TTY_WIN_ -
DQT_THREAD_SUPPORT -D
QT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I"..\..\..
\2010.01\qt\includ
e\QtCore" -I"..\..\..\2010.01\qt\include\QtGui" -I"..\..\..\2010.01\qt
\include"
-I"..\..\src" -I"..\..\..\2010.01\qt\include\ActiveQt" -I".moc" -I"..
\..\..\2010
.01\qt\mkspecs\default" -o .obj\moc_MainWindow.o .moc
\moc_MainWindow.cpp
C:/Qt/2010.01/qt/bin\moc.exe -D_TTY_WIN_ -DQT_THREAD_SUPPORT -DQT_DLL -
DQT_GUI_L
IB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I"..\..\..\2010.01\qt\include
\QtCore" -I"..\.
.\..\2010.01\qt\include\QtGui" -I"..\..\..\2010.01\qt\include" -I"..\..
\src" -I"
..\..\..\2010.01\qt\include\ActiveQt" -I".moc" -I"..\..\..\2010.01\qt
\mkspecs\de
fault" -D__GNUC__ -DWIN32 MessageWindow.h -o .moc
\moc_MessageWindow.cpp
g++ -c -g -Wall -frtti -fexceptions -mthreads -D_TTY_WIN_ -
DQT_THREAD_SUPPORT -D
QT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I"..\..\..
\2010.01\qt\includ
e\QtCore" -I"..\..\..\2010.01\qt\include\QtGui" -I"..\..\..\2010.01\qt
\include"
-I"..\..\src" -I"..\..\..\2010.01\qt\include\ActiveQt" -I".moc" -I"..
\..\..\2010
.01\qt\mkspecs\default" -o .obj\moc_MessageWindow.o .moc
\moc_MessageWindow.cpp
C:/Qt/2010.01/qt/bin\moc.exe -D_TTY_WIN_ -DQT_THREAD_SUPPORT -DQT_DLL -
DQT_GUI_L
IB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I"..\..\..\2010.01\qt\include
\QtCore" -I"..\.
.\..\2010.01\qt\include\QtGui" -I"..\..\..\2010.01\qt\include" -I"..\..
\src" -I"
..\..\..\2010.01\qt\include\ActiveQt" -I".moc" -I"..\..\..\2010.01\qt
\mkspecs\de
fault" -D__GNUC__ -DWIN32 QespTest.h -o .moc\moc_QespTest.cpp
g++ -c -g -Wall -frtti -fexceptions -mthreads -D_TTY_WIN_ -
DQT_THREAD_SUPPORT -D
QT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I"..\..\..
\2010.01\qt\includ
e\QtCore" -I"..\..\..\2010.01\qt\include\QtGui" -I"..\..\..\2010.01\qt
\include"
-I"..\..\src" -I"..\..\..\2010.01\qt\include\ActiveQt" -I".moc" -I"..
\..\..\2010
.01\qt\mkspecs\default" -o .obj\moc_QespTest.o .moc\moc_QespTest.cpp
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-
pseudo-rel
oc -mthreads -Wl -Wl,-subsystem,windows -o debug\qespta.exe .obj/
main.o .obj/Mai
nWindow.o .obj/MessageWindow.o .obj/QespTest.o .obj/
moc_MainWindow.o .obj/moc_Me
ssageWindow.o .obj/moc_QespTest.o -L"..\..\build" -L"c:\Qt\2010.01\qt
\lib" -lmi
ngw32 -lqtmaind -lqextserialportd1 -lQtGuid4 -lQtCored4
c:/qt/2010.01/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/
bin/ld.exe:
cannot find -lqextserialportd1


collect2: ld returned 1 exit status

mingw32-make[1]: *** [debug\qespta.exe] Error 1
mingw32-make[1]: Leaving directory `C:/Qt/QextSerialPort/examples/
qespta'
mingw32-make: *** [debug] Error 2

Any ideas? Thank you

On Mar 3, 1:18 pm, Márton Miklós <martonmiklosq...@gmail.com> wrote:

> > When executing build step 'Make'- Hide quoted text -
>
> - Show quoted text -

Liam Staskawicz

unread,
Mar 10, 2010, 6:10:46 PM3/10/10
to qextser...@googlegroups.com
Doesn't look like you're running the latest code - D_TTY_WIN_ has been removed for some time.  Which source are you building from?

Liam


--
You received this message because you are subscribed to the Google Groups "qextserialport" group.
To post to this group, send email to qextser...@googlegroups.com.
To unsubscribe from this group, send email to qextserialpor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/qextserialport?hl=en.


jimmydean101

unread,
Mar 10, 2010, 7:47:43 PM3/10/10
to qextserialport
Well, this will probably show how much of a noob I am. I couldn't
locate anything under Downloads so I went to the Source tab, then went
to Browse and downloaded the source code from there.

Please advise where I can find the latest. Thank you

On Mar 10, 4:10 pm, Liam Staskawicz <lst...@gmail.com> wrote:
> Doesn't look like you're running the latest code - D_TTY_WIN_ has been
> removed for some time.  Which source are you building from?
>
> Liam
>

> ...
>
> read more »

Liam Staskawicz

unread,
Mar 10, 2010, 8:10:22 PM3/10/10
to qextser...@googlegroups.com
I'm not sure I understand how you downloaded the code from there...

In any event, the best thing to do is install TortoiseHG (http://bitbucket.org/tortoisehg/stable/downloads) and then clone the repo as described at http://code.google.com/p/qextserialport/source/checkout

Liam


--

jimmydean101

unread,
Mar 10, 2010, 10:33:09 PM3/10/10
to qextserialport
Hey Liam,

Thanks for your time on this.
I downloaded and installed TortiseHG, created a local repository on my
computer, and downloaded the source from https://qextserialport.googlecode.com/hg/
into my repository.

I then ran qmake and ming32w-make on src.pro. This generated a
qextserialportd1.dll in the src/build folder.

I then went into examples/qespta and changed the -lqextserialportd to -
lqextserialportd1 in qespta.pro as well as changed INCLUDEPATH
+= ../../ to INCLUDEPATH += ../../src, ran qmake on qespta.pro and
ming32w-make .

Found I had to include #include <stdio.h> in MessageWindow.cpp for
fprintf and stderr .

Removed make files and associated folders in qespta and reran qmake
and ming32w-make and I get the following:

C:\Qt\QextSerialPort\hg\examples\qespta>mingw32-make
mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `C:/Qt/QextSerialPort/hg/examples/


qespta'
g++ -c -g -Wall -frtti -fexceptions -mthreads -D_TTY_WIN_ -
DQT_THREAD_SUPPORT -D

QT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I"..\..\..\..
\2010.01\qt\inc
lude\QtCore" -I"..\..\..\..\2010.01\qt\include\QtGui" -I"..\..\..\..
\2010.01\qt\
include" -I"..\..\src" -I"..\..\..\..\2010.01\qt\include\ActiveQt" -
I".moc" -I".
.\..\..\..\2010.01\qt\mkspecs\default" -o .obj\main.o main.cpp


g++ -c -g -Wall -frtti -fexceptions -mthreads -D_TTY_WIN_ -
DQT_THREAD_SUPPORT -D

QT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I"..\..\..\..
\2010.01\qt\inc
lude\QtCore" -I"..\..\..\..\2010.01\qt\include\QtGui" -I"..\..\..\..
\2010.01\qt\
include" -I"..\..\src" -I"..\..\..\..\2010.01\qt\include\ActiveQt" -
I".moc" -I".
.\..\..\..\2010.01\qt\mkspecs\default" -o .obj\MainWindow.o


MainWindow.cpp
g++ -c -g -Wall -frtti -fexceptions -mthreads -D_TTY_WIN_ -
DQT_THREAD_SUPPORT -D

QT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I"..\..\..\..
\2010.01\qt\inc
lude\QtCore" -I"..\..\..\..\2010.01\qt\include\QtGui" -I"..\..\..\..
\2010.01\qt\
include" -I"..\..\src" -I"..\..\..\..\2010.01\qt\include\ActiveQt" -
I".moc" -I".
.\..\..\..\2010.01\qt\mkspecs\default" -o .obj\MessageWindow.o
MessageWindow.cpp

g++ -c -g -Wall -frtti -fexceptions -mthreads -D_TTY_WIN_ -
DQT_THREAD_SUPPORT -D

QT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I"..\..\..\..
\2010.01\qt\inc
lude\QtCore" -I"..\..\..\..\2010.01\qt\include\QtGui" -I"..\..\..\..
\2010.01\qt\
include" -I"..\..\src" -I"..\..\..\..\2010.01\qt\include\ActiveQt" -
I".moc" -I".
.\..\..\..\2010.01\qt\mkspecs\default" -o .obj\QespTest.o QespTest.cpp


C:/Qt/2010.01/qt/bin\moc.exe -D_TTY_WIN_ -DQT_THREAD_SUPPORT -DQT_DLL -
DQT_GUI_L

IB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I"..\..\..\..\2010.01\qt\include
\QtCore" -I".
.\..\..\..\2010.01\qt\include\QtGui" -I"..\..\..\..\2010.01\qt
\include" -I"..\..
\src" -I"..\..\..\..\2010.01\qt\include\ActiveQt" -I".moc" -I"..\..\..
\..\2010.0
1\qt\mkspecs\default" -D__GNUC__ -DWIN32 MainWindow.h -o .moc
\moc_MainWindow.cpp

g++ -c -g -Wall -frtti -fexceptions -mthreads -D_TTY_WIN_ -
DQT_THREAD_SUPPORT -D

QT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I"..\..\..\..
\2010.01\qt\inc
lude\QtCore" -I"..\..\..\..\2010.01\qt\include\QtGui" -I"..\..\..\..
\2010.01\qt\
include" -I"..\..\src" -I"..\..\..\..\2010.01\qt\include\ActiveQt" -
I".moc" -I".
.\..\..\..\2010.01\qt\mkspecs\default" -o .obj\moc_MainWindow.o .moc
\moc_MainWin
dow.cpp


C:/Qt/2010.01/qt/bin\moc.exe -D_TTY_WIN_ -DQT_THREAD_SUPPORT -DQT_DLL -
DQT_GUI_L

IB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I"..\..\..\..\2010.01\qt\include
\QtCore" -I".
.\..\..\..\2010.01\qt\include\QtGui" -I"..\..\..\..\2010.01\qt
\include" -I"..\..
\src" -I"..\..\..\..\2010.01\qt\include\ActiveQt" -I".moc" -I"..\..\..
\..\2010.0
1\qt\mkspecs\default" -D__GNUC__ -DWIN32 MessageWindow.h -o .moc
\moc_MessageWind
ow.cpp


g++ -c -g -Wall -frtti -fexceptions -mthreads -D_TTY_WIN_ -
DQT_THREAD_SUPPORT -D

QT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I"..\..\..\..
\2010.01\qt\inc
lude\QtCore" -I"..\..\..\..\2010.01\qt\include\QtGui" -I"..\..\..\..
\2010.01\qt\
include" -I"..\..\src" -I"..\..\..\..\2010.01\qt\include\ActiveQt" -
I".moc" -I".
.\..\..\..\2010.01\qt\mkspecs\default" -o .obj\moc_MessageWindow.o .moc
\moc_Mess
ageWindow.cpp


C:/Qt/2010.01/qt/bin\moc.exe -D_TTY_WIN_ -DQT_THREAD_SUPPORT -DQT_DLL -
DQT_GUI_L

IB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I"..\..\..\..\2010.01\qt\include
\QtCore" -I".
.\..\..\..\2010.01\qt\include\QtGui" -I"..\..\..\..\2010.01\qt
\include" -I"..\..
\src" -I"..\..\..\..\2010.01\qt\include\ActiveQt" -I".moc" -I"..\..\..
\..\2010.0
1\qt\mkspecs\default" -D__GNUC__ -DWIN32 QespTest.h -o .moc


\moc_QespTest.cpp
g++ -c -g -Wall -frtti -fexceptions -mthreads -D_TTY_WIN_ -
DQT_THREAD_SUPPORT -D

QT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I"..\..\..\..
\2010.01\qt\inc
lude\QtCore" -I"..\..\..\..\2010.01\qt\include\QtGui" -I"..\..\..\..
\2010.01\qt\
include" -I"..\..\src" -I"..\..\..\..\2010.01\qt\include\ActiveQt" -
I".moc" -I".
.\..\..\..\2010.01\qt\mkspecs\default" -o .obj\moc_QespTest.o .moc


\moc_QespTest.
cpp
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-
pseudo-rel
oc -mthreads -Wl -Wl,-subsystem,windows -o debug\qespta.exe .obj/
main.o .obj/Mai
nWindow.o .obj/MessageWindow.o .obj/QespTest.o .obj/
moc_MainWindow.o .obj/moc_Me
ssageWindow.o .obj/moc_QespTest.o -L"..\..\build" -L"c:\Qt\2010.01\qt
\lib" -lmi
ngw32 -lqtmaind -lqextserialportd1 -lQtGuid4 -lQtCored4
c:/qt/2010.01/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/
bin/ld.exe:
cannot find -lqextserialportd1
collect2: ld returned 1 exit status
mingw32-make[1]: *** [debug\qespta.exe] Error 1

mingw32-make[1]: Leaving directory `C:/Qt/QextSerialPort/hg/examples/


qespta'
mingw32-make: *** [debug] Error 2

On Mar 10, 6:10 pm, Liam Staskawicz <lst...@gmail.com> wrote


> I'm not sure I understand how you downloaded the code from there...
>
> In any event, the best thing to do is install TortoiseHG (http://bitbucket.org/tortoisehg/stable/downloads) and then clone the repo as
> described athttp://code.google.com/p/qextserialport/source/checkout
>
> <http://code.google.com/p/qextserialport/source/checkout>Liam
>

> ...
>
> read more »

Márton Miklós

unread,
Mar 11, 2010, 2:28:47 AM3/11/10
to qextser...@googlegroups.com
Imho the QMAKE_LIBDIR should bechanged to += ../../src/build in the
Qespta.pro,
because currently I see the ..\..\build dir in the -L flags, which is
pointing to the Qextserialport src dir.
Or you can add it with other way: LIBS += -L../../src/build

Regards,
Mikl�s M�rton

jimmydean101 �rta:

jimmydean101

unread,
Mar 11, 2010, 10:15:23 AM3/11/10
to qextserialport
Hey Marton,

Yup! That popped in my head when I first awoke this morning! Good
call.

Make ran successfully. Now when I run qespta.exe from the debug
folder I get the following message:

This application has failed to start becaue qextserialportd1.dll was
not found. Re-installing the application may fix this problem.

When I went back to the src/build folder, there was now
qextserialportd1.dll and qextserialportd11.dll .

I'm going to try deleting all the qmake files and folders in src and
qespta and try again.

On Mar 11, 12:28 am, Márton Miklós <martonmiklosq...@gmail.com> wrote:
> Imho the QMAKE_LIBDIR should bechanged to += ../../src/build in the
> Qespta.pro,
> because currently I see the ..\..\build dir in the -L flags, which is
> pointing to the Qextserialport src dir.
> Or you can add it with other way: LIBS += -L../../src/build
>
> Regards,
> Mikl s M rton
>
>  jimmydean101 rta:
>
>
>
> > Hey Liam,
>
> > Thanks for your time on this.
> > I downloaded and installed TortiseHG, created a local repository on my

> > computer, and downloaded the source fromhttps://qextserialport.googlecode.com/hg/

jimmydean101

unread,
Mar 11, 2010, 1:04:16 PM3/11/10
to qextserialport
I clean up src and examples, ran qmake and mingw32-make on both
src.pro and qespta.exe and I'm still getting this error message when
running qespta.exe -

This application has failed to start becaue qextserialportd1.dll was
not found. Re-installing the application may fix this problem.

Any ideas? Thanks!

> > > mingw32-make: *** [debug] Error 2- Hide quoted text -

Márton Miklós

unread,
Mar 11, 2010, 1:32:19 PM3/11/10
to qextser...@googlegroups.com
Windows is a trickly system. You have to add the folder that contains
your dll to your PATH.
If you are using QtCreator, you can do it easly if you are select
Projects on the left bar, go to run settings,
and add ;..\..\src\build to the PATH. This is cleaner method, so you
won't mess up your env.
Or possibly it should work if you copy the dll to the same folder where
the application is.

Regards,
Mik�s M�rton


jimmydean101 �rta:


> I clean up src and examples, ran qmake and mingw32-make on both
> src.pro and qespta.exe and I'm still getting this error message when
> running qespta.exe -
>
> This application has failed to start becaue qextserialportd1.dll was
> not found. Re-installing the application may fix this problem.
>
> Any ideas? Thanks!
>
> On Mar 11, 8:15 am, jimmydean101 <jimmydean...@gmail.com> wrote:
>
>> Hey Marton,
>>
>> Yup! That popped in my head when I first awoke this morning! Good
>> call.
>>
>> Make ran successfully. Now when I run qespta.exe from the debug
>> folder I get the following message:
>>
>> This application has failed to start becaue qextserialportd1.dll was
>> not found. Re-installing the application may fix this problem.
>>
>> When I went back to the src/build folder, there was now
>> qextserialportd1.dll and qextserialportd11.dll .
>>
>> I'm going to try deleting all the qmake files and folders in src and
>> qespta and try again.
>>

jimmydean101

unread,
Mar 11, 2010, 2:21:45 PM3/11/10
to qextserialport
I just added the .dll to the qespta\debug folder and it is working
now!

I'm just getting my feet wet with Qt and C++ programming and I really
appreciate all of the help and patience . Thanks!

> >> - Show quoted text -- Hide quoted text -

Reply all
Reply to author
Forward
0 new messages