Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QtSerialPort from QtCreator
Qt 6.11 is out! See what's new in the release blog

QtSerialPort from QtCreator

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.6k 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.
  • J Offline
    J Offline
    jmpinela
    wrote on last edited by
    #1

    Hi guys,
    I am new in Qt, and I am trying to use the library QtSerialPort. I was following the steps of the wiki in order to run the examples inside, but I get an error by running it.
    I downloaded the qt-qtserialport-master, and I copy this folder into C:\Qt\Qt5.0.1\Tools\QtCreator\bin.
    Then I open the QtCreator and I open the project qtserialport.pro which is inside qt-qtserialport-master\qtserialport
    When I compile it, I do not get any problem, but when I run it, I got the error:

    Failed to start program. Path or permissions wrong?
    C:\Qt\Qt5.0.1\Tools\QtCreator\bin\qt-qtserialport-master\qtserialport-build-Desktop_Qt_5_0_1_MinGW_32bit-Debug\src\serialport\debug\QtSerialPort.exe exited with code -1
    Starting C:\Qt\Qt5.0.1\Tools\QtCreator\bin\qt-qtserialport-master\qtserialport-build-Desktop_Qt_5_0_1_MinGW_32bit-Debug\src\serialport\debug\QtSerialPort.exe...
    Cannot retrieve debugging output.

    The folder \qtserialport-build-Desktop_Qt_5_0_1_MinGW_32bit-Debug\src\serialport inside qt-qtserialport-master was created, but inside there is not any debug\QtSerialPort.exe. Here I can only find:

    • folders: .moc and .obj
    • files: MakeFile, MakeFile.Debug, MakeFile.Release, Qt5SerialPort_resource.rc, Qt5SerialPortd_resource.rc

    Can anybody help me???? I have already tried to run the qtserialport.pro from different paths in my Qt installation but no luck.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      As you know, QtSerialPort is not a program, it is a library so no executable will be generated.

      You have to create a new project using it in order to test it

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jmpinela
        wrote on last edited by
        #3

        Hi SGaist,
        thank you very much. My problem is that I did not know it. For any reason, I was thinking this project would create the libraries and a kind of user interface, where I can choose between the different example subprojects, which use the library.

        Thank u again and sorry for ur time

        The thread can be closed

        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