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] Best practice for cross-platform third party library linking
Qt 6.11 is out! See what's new in the release blog

[SOLVED] Best practice for cross-platform third party library linking

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

    Hi all,
    I’m a beginner using Qt.
    Until now I’ve developed using mostly (VB | C#) & .Net Framework.

    I'm try to understand which is the best way to link a third party library in a cross-platfrom project (Win+OSx).
    In concrete: I'm tryng to use the librory provided from this vendor: "Feitian - Rockey4nd":http://www.rockey.it/rockey4nd-download.htm
    I downloaded "ROCKEY4ND Windows SDK" (note: this is gz compressed non zip) and "ROCKEY4ND MAC SDK".
    In the SDKs there are a lot of examples but I cannot understand which one I can use with Qt (nor which is the best).

    Is there a way to use win library and osx library in the same project?
    or have I to split in two separated projects?

    Thanks in advance
    Boris

    1 Reply Last reply
    0
    • mrdebugM Offline
      mrdebugM Offline
      mrdebug
      wrote on last edited by
      #2

      Hi.
      Yes, you can do everything with the same project.
      For example I use FFmpeg libraries in Windows, Linux, Mac, Android.

      Need programmers to hire?
      www.labcsp.com
      www.denisgottardello.it
      GMT+1
      Skype: mrdebug

      1 Reply Last reply
      0
      • B Offline
        B Offline
        BorisSclauzero
        wrote on last edited by
        #3

        OK Thanks!
        Do you know a good opensoucre esample that I can study?
        Boris

        1 Reply Last reply
        0
        • mrdebugM Offline
          mrdebugM Offline
          mrdebug
          wrote on last edited by
          #4

          I think that if you're a developer is not necessary an example but only some good advice. Now I haven't a project to share.

          • Please open qtcreator uning mingw and not msvc.
          • Use the wizard to produce a dll. Create in it a function.
          • Done that, please create a Qt project and use the dll.
            Bye bye.

          If you have a trouble doing that please send me an email.

          Need programmers to hire?
          www.labcsp.com
          www.denisgottardello.it
          GMT+1
          Skype: mrdebug

          1 Reply Last reply
          0
          • H Offline
            H Offline
            hardcodes.de
            wrote on last edited by
            #5

            You can use several libraries for more than 1 platform in the same project. Look for the qmake manuals, specifying the platform can be "read here":http://qt-project.org/doc/qt-4.8/qmake-advanced-usage.html.

            while(!sleep){++sheep;}

            1 Reply Last reply
            0
            • B Offline
              B Offline
              BorisSclauzero
              wrote on last edited by
              #6

              If you are reading this thread and you need help
              send me a request :)

              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