Hello,

I've been using QextSerialPort on Linux without problems. But today I tried to compile the code on Windows and I can't link my application to QextSerialPort.

The directories' hierarchy is:
Qt Code:
  1. myapp
  2. qextserialport
  3. src
  4. build
To copy to clipboard, switch view to plain text mode 


I did the following:
- comment VERSION on src.pro file in order to create .dll without numbers
- open src.pro (QextSerialPort), run qmake, build all
- (do the same for debug and release versions)
- after that I get 4 files: libqextserialport.a, qextserialport.dll, libqextserialportd.a, qextserialportd.dll
- copy .dll files to C:\Windows\System32\ (which is in PATH environment variable)

After compile "myapp" I get:
:: error: cannot find -lqextserialport
:: error: collect2: ld returned 1 exit status
This means the linker wasn't able to link qextserialport to myapp right?

myapp.pro:
Qt Code:
  1. QT -= gui
  2. TARGET = BASE_Commander
  3. CONFIG += console
  4. CONFIG -= app_bundle
  5. TEMPLATE = app
  6. OBJECTS_DIR = tmp
  7. MOC_DIR = tmp
  8.  
  9. # DEFINES += QT_NO_DEBUG_OUTPUT
  10. DEPENDPATH += .
  11. INCLUDEPATH += ./qextserialport/src
  12. QMAKE_LIBDIR += ./qextserialport/src/build
  13. LIBS += -lqextserialport
  14.  
  15. SOURCES += main.cpp \
  16. commander.cpp \
  17. base.cpp
  18. HEADERS += commander.h \
  19. base.h \
  20. codes.h
To copy to clipboard, switch view to plain text mode 

I tried to rerun qmake and recompile many times but it always can't find qextserialport.

I'm using qt sdk open-source version (2010.05) on Win7 32bit.


What am I missing?