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. How to convert QTCreator Linux project pro file to C/C++ library?
Forum Updated to NodeBB v4.3 + New Features

How to convert QTCreator Linux project pro file to C/C++ library?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 329 Views 2 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.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on last edited by
    #1

    https://www.qtcentre.org/threads/17255-dll-using-qt

    The above thread builds dll library - I need same for Linux.

    There is another thread which just suggest to modify "make" - I am not that smart to do that

    All QT tutorials (RTFM) are about how to build a library from scratch.
    Is it possible to convert pro file to Linux C/C++ library?

    If so , how ?

    artwawA 1 Reply Last reply
    0
    • A Anonymous_Banned275

      https://www.qtcentre.org/threads/17255-dll-using-qt

      The above thread builds dll library - I need same for Linux.

      There is another thread which just suggest to modify "make" - I am not that smart to do that

      All QT tutorials (RTFM) are about how to build a library from scratch.
      Is it possible to convert pro file to Linux C/C++ library?

      If so , how ?

      artwawA Offline
      artwawA Offline
      artwaw
      wrote on last edited by
      #2

      @AnneRanch if you have template = lib and it produces .dll file on Windows, when you compile it on Linux you'll get .so file. Unless your library has some platform specific code, that is.

      For more information please re-read.

      Kind Regards,
      Artur

      1 Reply Last reply
      2
      • A Offline
        A Offline
        Anonymous_Banned275
        wrote on last edited by Anonymous_Banned275
        #3

        Is this ALL I have to do?

        Add to the pro file..
        Looks unbelievably simple...

        TEMPLATE = lib
        DEFINES += TESTLIBRARY_LIBRARY

        I have not implemented it, but it did build the library

        THANKS

        PS
        I need to RTFM about "internal...system " library next.

        artwawA 1 Reply Last reply
        0
        • A Anonymous_Banned275

          Is this ALL I have to do?

          Add to the pro file..
          Looks unbelievably simple...

          TEMPLATE = lib
          DEFINES += TESTLIBRARY_LIBRARY

          I have not implemented it, but it did build the library

          THANKS

          PS
          I need to RTFM about "internal...system " library next.

          artwawA Offline
          artwawA Offline
          artwaw
          wrote on last edited by
          #4

          @AnneRanch manual in that respect can be confusing as it tends to have all the options for MSVC and Windows.
          For gcc/clang not really needed.

          I quite often export parts of my code as a library if said code is/can be useful across the various tools I create, I do remember being confused about how to write it.

          For more information please re-read.

          Kind Regards,
          Artur

          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