[SOLVED] Compile QTLib is it possible ?
-
Hello all,
I'm just new to QTLib. I want to make some GUI applications, but due to the fact that using Windows GUI on C++ is extremely complicated (you need to pay a liscence if you want your controls to appear correctly not as Windows 98 style), so i decided to use your library.
But after 100 tryes of compilations, i doubt there's a way to setup your library using Visual Studio 2012.So i will asky is it possible to setup a QT developpement environment on my computer :
- Intel Core I7 3.7 Ghz 4hearts 8threads
- 24 Gb RAM
- 1.5 Tb hard disk (2 IDE, 2 SATA)
- Nvidia GTX650 TI DirectCU 2 2Gb GPU
- Internet connection specs are 8 mbps Download by 0.1 mbps Upload
System specs : - System x64
- Windows 7 Ultimate (Integral) Copyright C 2009 Microsoft corporation Service pack 1
- Visual Studio 2012 Express Edition x64
Notes :
- My Visual Studio isn't able to use OpenGL (i can download the .h but everytime i #include <GL.h> i got an error saying that my system isn't compatible with OpenGL. I don't understand why because Minecraft or even LWJGL in Java are working ; it's only on my Visual C++ that OpenGL isn't working...
- When i try to add librarys to Visual C++, i got always LK errors saying path aren't found (coudn't include FILE_NAME.h : no such file or directory).
Error i got :
I got many errors ; it's completely random :- Sometimes nmake.exe isn't found
- Sometimes mingw32-make.exe isn't found
And even if the BlueGo.exe software is reaching the Building state, it always carshs with fatal error coudn't include GLES2/gl2.h file not found.
I tried over 100 times to compile that library, but everytime it fails. Last time i succeeded to get 6 DLLs (Debug and Realease) compiled (Qt5Concurrent.dll, Qt5Concurrentd.dll, Qt5Core.dll, Qt5Cored.dll, Qt5Network.dll, Qt5Networkd.dll, Qt5Sql.dll, Qt5Sqld.dll, Qt5Test.dll, Qt5Testd.dll, Qt5Xml.dll, Qt5Xmld.dll).
It fails at QtGui.dll the one that i need in plus !!
So is there any one that can help me in solving these problems ?
-
Hi and welcome to devnet,
Maybe a silly question but why don't you use the MSVC2012 prebuilt package ?
It also seems that you have several compilers installed and that you are mixing them. So are you sure you are trying to build in a clean setup ?
On a side note, it's Qt, QT stands for Apple's QuickTime :)
-
Also, thanks anyway, but unfortunatly i found strictly no downloads from your website. So i decided to remove evry compilers/Ides i got for C++/C and after all, i think QTCreator/MinGW would be a better alternative.
So i started again compilation with MinGW from C:\Windows\System32\cmd.exe.
For the moment it has succeeded to configure the compile script. And it's currently compiling something called qtcorelib. -
Another time failure...
No DLLs have been created this time... But i could get the error log :
[code]
-conversion-null -Wno-delete-non-virtual-dtor -DUNICODE -D_WINDOWS -D_UNICODE -D
_CRT_SECURE_NO_DEPRECATE -D_HAS_EXCEPTIONS=0 -DNOMINMAX -DWIN32_LEAN_AND_MEAN=1
-D_WIN32_WINNT=0x0600 -DWINVER=0x0600 -DANGLE_ENABLE_D3D9 -D_DEBUG -IC:\thirdpar
ty\vs2012\x64\qt-everywhere-opensource-src-5.3.1\qtbase\src\angle\src\libGLESv2
-I"C:\thirdparty\vs2012\x64\qt-everywhere-opensource-src-5.3.1\qtbase\src\angle
src\libGLESv2" -I"C:\thirdparty\vs2012\x64\qt-everywhere-opensource-src-5.3.1\qt
base\src\angle\src" -I"C:\thirdparty\vs2012\x64\qt-everywhere-opensource-src-5.3
.1\qtbase\src\angle\src..\include" -I"C:\thirdparty\vs2012\x64\qt-everywhere-op
ensource-src-5.3.1\qtbase\src\3rdparty\angle\src" -I"C:\thirdparty\vs2012\x64\qt
-everywhere-opensource-src-5.3.1\qtbase\src\3rdparty\angle\include" -I"....\src
" -I"C:\thirdparty\vs2012\x64\qt-everywhere-opensource-src-5.3.1\qtbase\src\3rdp
arty\angle\src\libGLESv2" -I"." -I"C:\thirdparty\vs2012\x64\qt-everywhere-openso
urce-src-5.3.1\qtbase\mkspecs\win32-g++" C:\thirdparty\vs2012\x64\qt-everywhere-
opensource-src-5.3.1\qtbase\src\3rdparty\angle\src\libGLESv2\renderer\ImageSSE2.
cpp -o .obj\debug\ImageSSE2.o
In file included from C:\thirdparty\vs2012\x64\qt-everywhere-opensource-src-5.3.
1\qtbase\src\3rdparty\angle\src\libGLESv2\renderer\ImageSSE2.cpp:1:0:
C:\thirdparty\vs2012\x64\qt-everywhere-opensource-src-5.3.1\qtbase\src\3rdparty
angle\src\libGLESv2/precompiled.h:57:27: fatal error: d3dcompiler.h: No such fil
e or directory
compilation terminated.
Makefile.Debug:263: recipe for target '.obj/debug/ImageSSE2.o' failed
mingw32-make[6]: *** [.obj/debug/ImageSSE2.o] Error 1
mingw32-make[6]: Leaving directory 'C:/Users/Yuri6037/qtbase/src/angle/src/libGL
ESv2'
Makefile:38: recipe for target 'debug-all' failed
mingw32-make[5]: *** [debug-all] Error 2
mingw32-make[5]: Leaving directory 'C:/Users/Yuri6037/qtbase/src/angle/src/libGL
ESv2'
Makefile:83: recipe for target 'sub-libGLESv2-make_first-ordered' failed
mingw32-make[4]: *** [sub-libGLESv2-make_first-ordered] Error 2
mingw32-make[4]: Leaving directory 'C:/Users/Yuri6037/qtbase/src/angle/src'
Makefile:38: recipe for target 'sub-src-make_first' failed
mingw32-make[3]: *** [sub-src-make_first] Error 2
mingw32-make[3]: Leaving directory 'C:/Users/Yuri6037/qtbase/src/angle'
Makefile:334: recipe for target 'sub-angle-make_first' failed
mingw32-make[2]: *** [sub-angle-make_first] Error 2
mingw32-make[2]: Leaving directory 'C:/Users/Yuri6037/qtbase/src'
Makefile:41: recipe for target 'sub-src-make_first' failed
mingw32-make[1]: *** [sub-src-make_first] Error 2
mingw32-make[1]: Leaving directory 'C:/Users/Yuri6037/qtbase'
Makefile:63: recipe for target 'module-qtbase-make_first' failed
mingw32-make: *** [module-qtbase-make_first] Error 2C:\Users\Yuri6037>
[/code]However the only application i could get installed without any problem is QtCreator... Nothing else is working on your library. And even if i try to load qmake.exe by QtCreator it says that it can't detect ABI thing i don't exactly remember.
So it seams that with mingw32-make it goes much more far away instead of using nmake. Indead using nmake, it stops at configuration saying that my system isn't compatible (x86 requiered but i'm x64).
-
[code]
mingw32-make[5]: Entering directory 'C:/Users/Yuri6037/qtbase/src/angle/src/libG
LESv2'
mingw32-make -f Makefile.Debug all
mingw32-make[6]: Entering directory 'C:/Users/Yuri6037/qtbase/src/angle/src/libG
LESv2'
"C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Utilities\bin\x86\fxc.
exe" /nologo /E passthroughps /T ps_2_0 /Fh renderer\d3d9\shaders\compiled\passt
hroughps.h C:\thirdparty\vs2012\x64\qt-everywhere-opensource-src-5.3.1\qtbase\sr
c\3rdparty\angle\src\libGLESv2\renderer\d3d9\shaders\Blit.ps
compilation succeeded; see C:\Users\Yuri6037\qtbase\src\angle\src\libGLESv2\rend
erer\d3d9\shaders\compiled\passthroughps.h
"C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Utilities\bin\x86\fxc.
exe" /nologo /E luminanceps /T ps_2_0 /Fh renderer\d3d9\shaders\compiled\luminan
ceps.h C:\thirdparty\vs2012\x64\qt-everywhere-opensource-src-5.3.1\qtbase\src\3r
dparty\angle\src\libGLESv2\renderer\d3d9\shaders\Blit.ps
compilation succeeded; see C:\Users\Yuri6037\qtbase\src\angle\src\libGLESv2\rend
erer\d3d9\shaders\compiled\luminanceps.h
"C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Utilities\bin\x86\fxc.
exe" /nologo /E componentmaskps /T ps_2_0 /Fh renderer\d3d9\shaders\compiled\com
ponentmaskps.h C:\thirdparty\vs2012\x64\qt-everywhere-opensource-src-5.3.1\qtbas
e\src\3rdparty\angle\src\libGLESv2\renderer\d3d9\shaders\Blit.ps
compilation succeeded; see C:\Users\Yuri6037\qtbase\src\angle\src\libGLESv2\rend
erer\d3d9\shaders\compiled\componentmaskps.h
"C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Utilities\bin\x86\fxc.
exe" /nologo /E standardvs /T vs_2_0 /Fh renderer\d3d9\shaders\compiled\standard
vs.h C:\thirdparty\vs2012\x64\qt-everywhere-opensource-src-5.3.1\qtbase\src\3rdp
arty\angle\src\libGLESv2\renderer\d3d9\shaders\Blit.vs
compilation succeeded; see C:\Users\Yuri6037\qtbase\src\angle\src\libGLESv2\rend
erer\d3d9\shaders\compiled\standardvs.h
"C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Utilities\bin\x86\fxc.
exe" /nologo /E flipyvs /T vs_2_0 /Fh renderer\d3d9\shaders\compiled\flipyvs.h C
:\thirdparty\vs2012\x64\qt-everywhere-opensource-src-5.3.1\qtbase\src\3rdparty\a
ngle\src\libGLESv2\renderer\d3d9\shaders\Blit.vs
compilation succeeded; see C:\Users\Yuri6037\qtbase\src\angle\src\libGLESv2\rend
erer\d3d9\shaders\compiled\flipyvs.h
g++ -c -pipe -fno-keep-inline-dllexport -g -std=c++0x -fexceptions -mthreads -fr
tti -Wall -Wextra -Wno-unknown-pragmas -Wno-comment -Wno-missing-field-initializ
ers -Wno-switch -Wno-unused-parameter -Wno-write-strings -Wno-sign-compare -Wno-
missing-braces -Wno-unused-but-set-variable -Wno-unused-variable -Wno-narrowing
-Wno-maybe-uninitialized -Wno-strict-aliasing -Wno-type-limits -Wno-reorder -Wno
[/code] -
[code]
hirdparty\vs2012\x64\qt-everywhere-opensource-src-5.3.1\qtbase\src\3rdparty\angl
e\src" -I"C:\thirdparty\vs2012\x64\qt-everywhere-opensource-src-5.3.1\qtbase\src
\3rdparty\angle\include" -I"." -I"C:\thirdparty\vs2012\x64\qt-everywhere-opensou
rce-src-5.3.1\qtbase\mkspecs\win32-g++" -o .obj\release\ArrayBoundsClamper.o C:
thirdparty\vs2012\x64\qt-everywhere-opensource-src-5.3.1\qtbase\src\3rdparty\ang
le\src\third_party\compiler\ArrayBoundsClamper.cpp
g++ -c -pipe -fno-keep-inline-dllexport -O2 -fexceptions -mthreads -frtti -Wall
-Wextra -Wno-unknown-pragmas -Wno-comment -Wno-missing-field-initializers -Wno-s
witch -Wno-unused-parameter -Wno-write-strings -Wno-sign-compare -Wno-missing-br
aces -Wno-unused-but-set-variable -Wno-unused-variable -Wno-narrowing -Wno-maybe
-uninitialized -Wno-strict-aliasing -Wno-type-limits -Wno-reorder -Wno-conversio
n-null -Wno-delete-non-virtual-dtor -DUNICODE -D_WINDOWS -D_UNICODE -D_CRT_SECUR
E_NO_DEPRECATE -D_HAS_EXCEPTIONS=0 -DNOMINMAX -DWIN32_LEAN_AND_MEAN=1 -D_WIN32_W
INNT=0x0600 -DWINVER=0x0600 -DANGLE_ENABLE_D3D9 -DNDEBUG -D_SECURE_SCL=0 -D_LIB
-DCOMPILER_IMPLEMENTATION -IC:\thirdparty\vs2012\x64\qt-everywhere-opensource-sr
c-5.3.1\qtbase\src\angle\src\compiler -I"C:\thirdparty\vs2012\x64\qt-everywhere-
opensource-src-5.3.1\qtbase\src\angle\src\compiler" -I"C:\thirdparty\vs2012\x64
qt-everywhere-opensource-src-5.3.1\qtbase\src\angle\src" -I"C:\thirdparty\vs2012
\x64\qt-everywhere-opensource-src-5.3.1\qtbase\src\angle\src..\include" -I"C:\t
hirdparty\vs2012\x64\qt-everywhere-opensource-src-5.3.1\qtbase\src\3rdparty\angl
e\src" -I"C:\thirdparty\vs2012\x64\qt-everywhere-opensource-src-5.3.1\qtbase\src
\3rdparty\angle\include" -I"." -I"C:\thirdparty\vs2012\x64\qt-everywhere-opensou
rce-src-5.3.1\qtbase\mkspecs\win32-g++" -o .obj\release\ossource_win.o C:\thirdp
arty\vs2012\x64\qt-everywhere-opensource-src-5.3.1\qtbase\src\3rdparty\angle\src
\compiler\translator\ossource_win.cpp
g++ -c -pipe -fno-keep-inline-dllexport -O2 -fexceptions -mthreads -frtti -Wall
-Wextra -Wno-unknown-pragmas -Wno-comment -Wno-missing-field-initializers -Wno-s
witch -Wno-unused-parameter -Wno-write-strings -Wno-sign-compare -Wno-missing-br
aces -Wno-unused-but-set-variable -Wno-unused-variable -Wno-narrowing -Wno-maybe
-uninitialized -Wno-strict-aliasing -Wno-type-limits -Wno-reorder -Wno-conversio
n-null -Wno-delete-non-virtual-dtor -DUNICODE -D_WINDOWS -D_UNICODE -D_CRT_SECUR
E_NO_DEPRECATE -D_HAS_EXCEPTIONS=0 -DNOMINMAX -DWIN32_LEAN_AND_MEAN=1 -D_WIN32_W
INNT=0x0600 -DWINVER=0x0600 -DANGLE_ENABLE_D3D9 -DNDEBUG -D_SECURE_SCL=0 -D_LIB
-DCOMPILER_IMPLEMENTATION -IC:\thirdparty\vs2012\x64\qt-everywhere-opensource-sr
c-5.3.1\qtbase\src\angle\src\compiler -I"C:\thirdparty\vs2012\x64\qt-everywhere-
opensource-src-5.3.1\qtbase\src\angle\src\compiler" -I"C:\thirdparty\vs2012\x64
qt-everywhere-opensource-src-5.3.1\qtbase\src\angle\src" -I"C:\thirdparty\vs2012
\x64\qt-everywhere-opensource-src-5.3.1\qtbase\src\angle\src..\include" -I"C:\t
hirdparty\vs2012\x64\qt-everywhere-opensource-src-5.3.1\qtbase\src\3rdparty\angl
e\src" -I"C:\thirdparty\vs2012\x64\qt-everywhere-opensource-src-5.3.1\qtbase\src
\3rdparty\angle\include" -I"." -I"C:\thirdparty\vs2012\x64\qt-everywhere-opensou
rce-src-5.3.1\qtbase\mkspecs\win32-g++" -o .obj\release\glslang_lex.o glslang_le
x.cpp
glslang_lex.cpp:1:10: warning: unknown escape sequence: '\q' [enabled by default
]
glslang_lex.cpp:1:10: warning: unknown escape sequence: '\q' [enabled by default
]
glslang_lex.cpp:1:10: warning: unknown escape sequence: '\s' [enabled by default
]
glslang_lex.cpp:1:10: warning: unknown escape sequence: '\s' [enabled by default
]
glslang_lex.cpp:1:10: warning: unknown escape sequence: '\c' [enabled by default
]
glslang_lex.cpp:1:10: warning: unknown escape sequence: '\g' [enabled by default
]
g++ -c -pipe -fno-keep-inline-dllexport -O2 -fexceptions -mthreads -frtti -Wall
-Wextra -Wno-unknown-pragmas -Wno-comment -Wno-missing-field-initializers -Wno-s
witch -Wno-unused-parameter -Wno-write-strings -Wno-sign-compare -Wno-missing-br
aces -Wno-unused-but-set-variable -Wno-unused-variable -Wno-narrowing -Wno-maybe
-uninitialized -Wno-strict-aliasing -Wno-type-limits -Wno-reorder -Wno-conversio
n-null -Wno-delete-non-virtual-dtor -DUNICODE -D_WINDOWS -D_UNICODE -D_CRT_SECUR
E_NO_DEPRECATE -D_HAS_EXCEPTIONS=0 -DNOMINMAX -DWIN32_LEAN_AND_MEAN=1 -D_WIN32_W
INNT=0x0600 -DWINVER=0x0600 -DANGLE_ENABLE_D3D9 -DNDEBUG -D_SECURE_SCL=0 -D_LIB
-DCOMPILER_IMPLEMENTATION -IC:\thirdparty\vs2012\x64\qt-everywhere-opensource-sr
c-5.3.1\qtbase\src\angle\src\compiler -I"C:\thirdparty\vs2012\x64\qt-everywhere-
opensource-src-5.3.1\qtbase\src\angle\src\compiler" -I"C:\thirdparty\vs2012\x64
qt-everywhere-opensource-src-5.3.1\qtbase\src\angle\src" -I"C:\thirdparty\vs2012
\x64\qt-everywhere-opensource-src-5.3.1\qtbase\src\angle\src..\include" -I"C:\t
hirdparty\vs2012\x64\qt-everywhere-opensource-src-5.3.1\qtbase\src\3rdparty\angl
e\src" -I"C:\thirdparty\vs2012\x64\qt-everywhere-opensource-src-5.3.1\qtbase\src
\3rdparty\angle\include" -I"." -I"C:\thirdparty\vs2012\x64\qt-everywhere-opensou
rce-src-5.3.1\qtbase\mkspecs\win32-g++" -o .obj\release\glslang_tab.o glslang_ta
b.cpp
ar -M < object_script.libtranslator.Release
mingw32-make[7]: Leaving directory 'C:/Users/Yuri6037/qtbase/src/angle/src/compi
ler'
mingw32-make[6]: Leaving directory 'C:/Users/Yuri6037/qtbase/src/angle/src/compi
ler'
mingw32-make[5]: Leaving directory 'C:/Users/Yuri6037/qtbase/src/angle/src/compi
ler'
cd libGLESv2\ && ( if not exist Makefile C:\Users\Yuri6037\qtbase\bin\qmake C:\t
hirdparty\vs2012\x64\qt-everywhere-opensource-src-5.3.1\qtbase\src\angle\src\lib
GLESv2\libGLESv2.pro -o Makefile ) && mingw32-make -f Makefile
[/code] -
All downloads are located "here":http://qt-project.org/downloads, if needed there's a "Show downloads" button that will show you all available possibilities. You also have the option of the Online Installer from which you can choose one or several different Qt packages to install.
By the way, it's not my site nor my library, I'm just a contributor.
-
Why ? Just install the Qt version that goes with your Visual Studio version