Unsolved Build exe-file of Qt4-Project
-
-
Did you check which mkspec gets selected when configuring Qt ?
-
@SGaist said in Build exe-file of Qt4-Project:
Did you check which mkpec gets selected when configuring Qt ?
no
-
I also tried it that way:
https://wiki.qt.io/How_to_build_a_static_Qt_version_for_Windows_with_gcc
But at the step where to modify the file qtenv.bat I don't find such a file in my Qt-folder.
-
This one looks more recent.
-
@SGaist said in Build exe-file of Qt4-Project:
This one looks more recent.
This one also doesn't work.
I tried now the tool windeployqt which comes with Qt5, but it seems to work only with Qt5-binaries. It would be enough if I could pack the exe file of my project with the necessary dlls in one folder so it runs on every Windows computer.
-
Then use Dependency Walker to get the dll used by your application and add the necessary plugin if any is needed and you should be good to go.
-
The Dependency Walker doesn't work with my exe file. How can I determine instead the necessary dlls?
-
What do you mean by doesn't work ?
-
There are many dlls shown by the Dependency Walker. I copied all in a folder with my exe file. After starting the exe now an error occur: "procedure entry point could not be located in dll"
-
Which exactly ?
-
it says in the exe file of my project
-
What entry point is missing ?
-
it is very cryptical:
_ZNSt7__cxx1112basic_stringlcSt11char_traits.......
-
When using in google "_ZNSt7__cxx1112basic_string" to search this pops up first https://gcc.gnu.org/ml/libstdc++/2015-03/msg00082.html
I thought you are trying compile with MSVC, but that indicates clearly a MinGW library. The name of that dll is given that the post above.
-
@koahnig said in Build exe-file of Qt4-Project:
When using in google "_ZNSt7__cxx1112basic_string" to search this pops up first https://gcc.gnu.org/ml/libstdc++/2015-03/msg00082.html
I thought you are trying compile with MSVC, but that indicates clearly a MinGW library. The name of that dll is given that the post above.
where can I find the dll?
-
@magguz said in Build exe-file of Qt4-Project:
@koahnig said in Build exe-file of Qt4-Project:
When using in google "_ZNSt7__cxx1112basic_string" to search this pops up first https://gcc.gnu.org/ml/libstdc++/2015-03/msg00082.html
I thought you are trying compile with MSVC, but that indicates clearly a MinGW library. The name of that dll is given that the post above.
where can I find the dll?
I found it myself. This dll was missing. Now it works fine! Thanks!