How to generate .exe from .pro file
-
I want to generate statically linked wkhtmltopdf.exe locally.
For that used wkhtmltopdf0.12.5 source code.
Patched QT 4.8.7 is compiled statically.
QT 4.8.7 is set as default QT option in visual studio 2010.
After that tried to open wkhtmtopdf.pro in wkhtmltopdf0.12.5 source code using visual studio 2010 .
But it doesn't generate solution .
So not able to generate exe from the solution.
How do i generate the statically linked wkhtmotpdf.exe ?Below are the configurations used:
Windows 10
Microsoft visual studio 2010
Patched QT 4.8.7
Wkhtmltopdf0.12.5 -
@Babitha said in How to generate .exe from .pro file:
But it doesn't generate solution .
What does it then?
Please read the docs on how to read a vs soultion with Qt: https://doc.qt.io/qt-5/qmake-platform-notes.html#creating-visual-studio-project-files -
What does it then?
Nothing happened while opening .pro file.Please read the docs on how to read a vs soultion with Qt: https://doc.qt.io/qt-5/qmake-platform-notes.html#creating-visual-studio-project-files
Already referred the above mentioned docs but the issue exists(Doesn't generate solution)
-
@Babitha said in How to generate .exe from .pro file:
Nothing happened while opening .pro file.
Why would you open a pro file?
You have to call qmake as written in the documentation I gave to link to you. -
Why would you open a pro file?
I am using qt visual studio add in.
So can i generate soln from opening .pro file? -
I'm pretty sure Qt vs soultion does not support an ancient Qt version so you have to call qmake on the command line so the solution is generated.
-
@Christian-Ehrlicher
We successfully generated the soln form opening .pro file in case of dynamically linked QT.
But in case of Static linking issue occurs. -
So even is there a bug somewhere in this ancient stuff do you really think this will be fixed? Qt4 is out of support since ages. Create your solution on the command line and use it.
-
@Christian-Ehrlicher
Is qt static linking compilation doesn't generate QtWebKit.lib.
I have an error like "cannot open input file 'QtWebKit.lib'".
This lib is not avialble in the compiled QT directory.How "QtWebKit.lib'" made available after Qt static compilation ?
-
I don't know anything about QtWebKit.
-
@Babitha
Be aware that QtWebKit was removed from Qt later on
Read https://stackoverflow.com/questions/2461799/statically-compiling-qt-4-6-2 and https://forum.qt.io/topic/90051/qtwebkit-cannot-build-qtwebkit-static-for-static-4-8-x-or-5-5-1.
Gist is that although some people say they did manage to compile it statically it is apparently "not easy" and alsoA few people succeeded in making static builds on Windows, however getting linking right is not trivial