Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [Solved] QtSerialPort won't build/link
Forum Updated to NodeBB v4.3 + New Features

[Solved] QtSerialPort won't build/link

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 2 Posters 2.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    ths80
    wrote on last edited by
    #1

    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

    UPDATE:
    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.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kuzulis
      Qt Champions 2020
      wrote on last edited by
      #2

      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”

      1 Reply Last reply
      0
      • T Offline
        T Offline
        ths80
        wrote on last edited by
        #3

        Now it is working. Thank you so much!

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved