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. [solved]Support multi platform issue - Windows and Ubuntu
Forum Updated to NodeBB v4.3 + New Features

[solved]Support multi platform issue - Windows and Ubuntu

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

    I have created a Qt application project in Qt creator on Windows XP and Would like it to be able to be opened in Qt creator on Ubuntu. How should I config the pro file? I can not build the project by just open the project using Qt Creator on Ubuntu.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DenisKormalev
      wrote on last edited by
      #2

      Can you provide more info? What errors do you have?

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

        Unless you use platform specific paths, you should not need to change anything. Otherwise, you can do something like (from one of my projects),
        @
        win32 {
        LIBS += $$PWD/....\Tools\libgmp-3.dll
        LIBS += $$PWD/....\Tools\libgmpxx-4.dll
        } else:unix {
        LIBS *= -lgmp -lgmpxx
        QMAKE_LFLAGS *= -Wl,"-rpath-link $$KE_LIB_DIR"
        }
        @
        If, you still have errors, let us know, so we can help!

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kathy
          wrote on last edited by
          #4

          Yes. That is what I want. I use the boost library. Inside windows, I can setup the build enviroment by add boost libray to the INCLUDE path (INCLUDEPATH in pro file not work). But in Ubuntu, I have to use the INCLUDEPATH.

          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