[SOLVED] Best practice for cross-platform third party library linking
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
Yes, you can do everything with the same project.
For example I use FFmpeg libraries in Windows, Linux, Mac, Android.
Do you know a good opensoucre esample that I can study?
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.
If you have a trouble doing that please send me an email.
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.
If you are reading this thread and you need help
send me a request :)