[Solved] QtSerialPort won't build/link

  • Hi there,

    Until now I just used the normal Qt SDK/libs for programming, so this is the first time I am trying to build some Qt components myself (and my first visit in this forum here), so please be patient with me ;)
    I just wanted to built QtSerialPort following the instructions here: "http://qt-project.org/wiki/QtSerialPort":http://qt-project.org/wiki/QtSerialPort. I am using Qt4.8.4 with MS VS 2008 on Win7.
    After starting the build in a Qt Prompt (making sure path contains the correct environment variables) calling nmake fails with "LINK : fatal error LNK1104: cannot open file 'C:/Qt/serialport-build/src/serialport/debug\SerialPortd.lib'". The output directory "..serialport\debug" just contains a file "SerialPortd0.lib". Is there a problem with the make files maybe?
    I already did some searching but did not find anything which matches my problem... Any ideas?

    Thanks in advance

    I just installed MinGW and tried the whole procedure again using MinGW make, and everything is building now. Anyway it would be great, if someone would have any hints how to get it running using VS2008.

  • Yes, it is bug with MSVC compiler.

    Please before building try to change library version to 1.0.0 in the “src\serialport\serialport.pro

  • Now it is working. Thank you so much!

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.