Bulding problem (qtmuldimedia -no-opengl problem)
-
Sorry for my late answer.
These are the errors i get when i compile my program with the compiled Qt 5.4.0 Source:
https://www.dropbox.com/s/ceap41dekn9jv11/output.txt?dl=0
I did the same configuration on 5.3.2 and it worked fine, but with 5.4.0 i always get these errors.
-
Something's not clear. Is it Qt that you are failing to build or your application ?
-
My application is failing to build. I wrote in my first post that i've compiled Qt 5.4.0 with static linkage.
Here is what i get when jom finish:
https://www.dropbox.com/s/etp3xb1n18q42ku/hWFU5M6kV6R6SCzmcI2M6hPEeTh7KiW2QCGrjEy6cG4.png?dl=0And this is from nmake:
https://www.dropbox.com/s/4dvmn3w3a1ni62y/llHApFO!34PoFjAAHJlKFH1234O.png?dl=0It's all fucked up.
So, if im doing something wrong, could you tell me how to compile Qt 5.4.0 with static linkage?
-
From your screen shots, it looks rather that Qt is failing to build.
Did you reconfigure for a static build an already built Qt ?
-
I just downloaded the last Qt 5.4.0 Source and tried to compile it by following this tutorial: https://stackoverflow.com/questions/14932315/how-to-compile-qt-5-under-windows-or-linux-32-or-64-bit-static-or-dynamic-on-v
I was following these steps to compile the Qt 5.4.0 source for static linkage.
- I've edited C:\Qt\5.4\Src\qtbase\mkspecs\win32-msvc2013\qmake.conf the following lines:
from->
@QMAKE_CFLAGS_RELEASE = -O2 -MD -Zc:strictStrings
QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -O2 -MD -Zi -Zc:strictStrings
QMAKE_CFLAGS_DEBUG = -Zi -MDd@to->
@QMAKE_CFLAGS_RELEASE = -O2 -MT -Zc:strictStrings
QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -O2 -MT -Zi -Zc:strictStrings
QMAKE_CFLAGS_DEBUG = -Zi -MTd@-
I've applied this patch: https://codereview.qt-project.org/#/c/101817
-
Then i executed the following commands in CMD:
@set QMAKESPEC=win32-msvc2013
set QTDIR=C:\Qt\5.4\Src\qtbase
set PATH=C:\Qt\5.4\Src\qtbase\bin;%PATH%@- And the last thing i did is executing the following commands in visual studio developer command prompt
@>configure -debug-and-release -opensource -platform win32-msvc2013 -opengl desktop -static -nomake examples -nomake tests
jom.exe
nmake@
As u can see at the screenshots in my previous post, this is what i get when "jom.exe" and "nmake" finish.
So, i am having issues with compiling the Qt 5.4.0 source for static build and then i get LNK errors when i try to compile my application.
Can someone just tell me how to compile Qt 5.4.0 source with Visual Studio 2013 for static build?
-
Ok, QtDeclarative should not even build when no OpenGL is selected since AFAIK it requires it.
What I'd do first is to build qtbase only and then the additional needed modules.
-
Would you give me some more details of the building process?
-
Same as current but either remove the qtdeclarative folder from the sources or call configure directly in qtbase. However you should rather do an out of source build. That way you can more easily start a new build with a different set of parameters (i.e. nuke the current and state from a clean state)
-
EDIT:
I did exactly what you said. I've compiled the qtbase folder only, i've also deleted qtdeclarative folder before compiling the source and used option -no-opengl while compiling the source. And the same issue again..
main.cpp
https://www.dropbox.com/s/ofb6949t2wnnekv/main.png?dl=0output
https://www.dropbox.com/s/he8ij3ow92th0is/output.png?dl=0 -
Did you add the plugin to QTPLUGIN in your pro file ?
-
I am not sure what you are talkin about. What plugin? What pro file? I am using
Visual Studio to compile my application. There is no pro file. Should i make it manually or generate it? And what exactly i have to add in the file? -
You have Q_IMPORT_PLUGIN in your main.cpp, this means that you must have a corresponding QTPLUGIN in a pro file, however I don't know where to add that using the Visual Studio add-in
-
[quote author="SGaist" date="1421104297"]You have Q_IMPORT_PLUGIN in your main.cpp, this means that you must have a corresponding QTPLUGIN in a pro file, however I don't know where to add that using the Visual Studio add-in[/quote]
That has nothing to do with the errors i get.
-
It has at least for the very first error. For the others, it related to the harfbuzz library
-
It seems that no one can help me, some of the moderators can close the topic. I am very disappointed!