Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Statically Link Libraries
The subproject and the main project should have different .exe file.
Could anyone suggest me how to change the .pro file of main project and the subproject. Or how to statically link the main project libraries to the subproject.
Suggestions are appreciated. Thank you.
Split things properly and then set proper order of build.
Start by the library and then build the two executables.
Each application is just a classic app template. Nothing special about them.
Okay. Thank you for your reply. I will check and get back to you.
In the main project I am using GUI and in subproject I am using terminal to print the result. In the subproject I removed all the GUI related files. And running through terminal. By doing so I am getting error while calling API itself.
And for the main project I have used the 3rd party dynamically linked .so files.
How do I link the .so file libraries from the main project to the subproject.
Please let me know.
Thanks in advance.
The proper split would be to have one subproject that creates the library and then two others, one for the command line and one for the GUI that will link to that library.
Thank ou so much. It worked for me.