Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [Solved] adding QextSerialPort to a project
Forum Updated to NodeBB v4.3 + New Features

[Solved] adding QextSerialPort to a project

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 5.2k 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.
  • L Offline
    L Offline
    luca
    wrote on last edited by
    #1

    Hi all,
    I developed an application and now I need to add the library QextSerialPort.
    I can compile QextSerialPort separately and use it adding to my .pro:
    @
    LIBS += -lqextserialport
    unix:DEFINES = TTY_POSIX
    @

    Now I'd like to edit my .pro to compile the QextSerialPort library while compiling my app.
    I need this because I'm trying some qt versions and I want to avoid to recompile QextSerialPort library every time I recompile my app.

    Is it possible?

    I hope to have been enough clear.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tony
      wrote on last edited by
      #2

      Hi,

      you can just define a "parent" .pro file, that specifies the subdirectories that need to be compiled.

      i.e.:

      @
      CONFIG += ordered
      SUBDIRS = qextserialport
      your_project
      @

      Launching make in the "parent" folder (i.e., the one containing this pro file), it will build both in sequence.

      Tony.

      1 Reply Last reply
      0
      • L Offline
        L Offline
        luca
        wrote on last edited by
        #3

        Hi Antonio,

        Thanks, it works.

        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