I am currently working under linux, but eventually will need to so this in Windows.
I have seen many posts about statically linking Qt libraries, which turn out to be building static Qt library versions. I already have both the static and shared libraries. What is the magic in the '.pro' file to have qmake produce a Makefile that statically links the Qt libraries? And do this automatically.
If I modify the Makefile by hand and add '-Xlinker -Bstatic' before all the -lQt... and '-Xlinker -Bdynamic' after them, then the build process produces an app with statically linked Qt libraries.
And please do not tell me CONFIG items -static and -staticlib. From what I can see, they are for building a static library.
I haven't worked in Windows for a number of year, but I assume all that needs to be done there is choose the '.lib' files for the project since it does use the '.pro' file . . . even though it is based on it to start. It would be nice to be able to use one '.pro' file, though.
Bookmarks