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 build for multiple platforms with 3rd party libraries?
Forum Updated to NodeBB v4.3 + New Features

How to build for multiple platforms with 3rd party libraries?

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

    How would I configure my .pro file so that it will link to a .dll when I build for Windows but link to a .so when I build for Linux?

    Also, are there #ifdefs I can use in my source files that will allow me to write platform specific code?

    jsulmJ 1 Reply Last reply
    0
    • K kitfox

      How would I configure my .pro file so that it will link to a .dll when I build for Windows but link to a .so when I build for Linux?

      Also, are there #ifdefs I can use in my source files that will allow me to write platform specific code?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @kitfox Using scopes, see https://doc.qt.io/archives/qt-4.8/qmake-advanced-usage.html
      Regarding #ifdef: use DEFINES variable (shown in the same link)

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      3

      • Login

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