Currently running Windows 10 vs2013 developer cp.
I'm trying to build PhantomJS from this fork but is failing on building Qt Base. I followed all the steps described on the ofical site.
The Qtbase is their own version I think it's a fork of Qt5.
The last log lines are the following ones:
"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\nmake.exe" -f Makefile.Release
cl -c -nologo -Zc:wchar_t -FS -O2 -MT -Zc:strictStrings -D_HAS_EXCEPTIONS=0 -MP -GR -W3 -w34100 -w34189 -w44996 -DUNICODE -DWIN32 -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -DQT_NO_CAST_TO_ASCII -DQT_NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_LIBRARY -DQT_NO_QOBJECT -DQT_NO_SYSTEMLOCALE -DQT_NO_THREAD -DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -DQT_NO_DEPRECATED -DQT_NO_TRANSLATION -DQT_CRYPTOGRAPHICHASH_ONLY_SHA1 -DQT_NO_CAST_FROM_ASCII -DQT_BUILD_BOOTSTRAP_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_NO_GRAPHICSVIEW -DQT_NO_GRAPHICSEFFECT -DQT_NO_STYLESHEET -DQT_NO_STYLE_CDE -DQT_NO_STYLE_CLEANLOOKS -DQT_NO_STYLE_MOTIF -DQT_NO_STYLE_PLASTIQUE -DQT_NO_PRINTPREVIEWDIALOG -DNDEBUG -I. -I..\..\3rdparty\zlib -I..\..\..\include -I..\..\..\include\QtCore -I..\..\..\include\QtCore\5.6.2 -I..\..\..\include\QtCore\5.6.2\QtCore -IC:/phantom/src/qt/qtbase/include/QtXml -IC:/phantom/src/qt/qtbase/include/QtXml/5.6.2 -IC:/phantom/src/qt/qtbase/include/QtXml/5.6.2/QtXml -Itmp -IC:\phantom\src\qt\3rdparty\libicu\include -IC:\phantom\src\qt\3rdparty\libxml\include -IC:\phantom\src\qt\3rdparty\openssl\include -IC:\phantom\src\qt\3rdparty\zlib\include -I..\..\..\mkspecs\win32-msvc2013 -Fo.obj\release\ #C:\Users\xavi\AppData\Local\Temp\nm8087.tmp
qdom.cpp
..\..\xml\dom\qdom.cpp(35) : fatal error C1083: Cannot open include file: 'qdom.h': No such file or directory
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
ERROR: Failed to build PhantomJS! Building Qt Base failed.
I can provide the full log if necessary.
I really appreciate any help you can provide.
I just came across a very similar error when trying to compile phantomjs by accident with VS2015. Solution was to use full version of VS2013 (I don't know if CTP will give you the correct _MSC_VER,) do a clean build (I just re-cloned) and to make sure to do the git submodule init and git submodule update commands before running the build script (so basically following directions!)
Not sure if this will help you but hopefully it does.
Related
I tried everything I could think of already to fix it but after several Hours I just give up. I want to compile a Lib with qmake to include a parse for csv files. Sadly when I use mingw32-make I get this Error:
C:\Users\Deto24\Downloads\qtcsv-1.5\build>qmake ..\qtcsv.pro CONFIG+=[release] DESTDIR=%cd%
Info: creating stash file C:\Users\Deto24\Downloads\qtcsv-1.5\build\.qmake.stash
Project MESSAGE: === Configuration of qtcsv ===
Project MESSAGE: Qt version: 6.0.2
Project MESSAGE: Library version: 1.5.0
Project MESSAGE: Library files will be created in folder: C:/Users/Deto24/Downloads/qtcsv-1.5/build
Project MESSAGE: === Configuration of qtcsv ===
Project MESSAGE: Qt version: 6.0.2
Project MESSAGE: Library version: 1.5.0
Project MESSAGE: Library files will be created in folder: C:/Users/Deto24/Downloads/qtcsv-1.5/build
Project MESSAGE: === Configuration of qtcsv ===
Project MESSAGE: Qt version: 6.0.2
Project MESSAGE: Library version: 1.5.0
Project MESSAGE: Library files will be created in folder: C:/Users/Deto24/Downloads/qtcsv-1.5/build
C:\Users\Deto24\Downloads\qtcsv-1.5\build>mingw32-make
mingw32-make -f Makefile.Release
mingw32-make[1]: Entering directory 'C:/Users/Deto24/Downloads/qtcsv-1.5/build'
g++ -c -fno-keep-inline-dllexport -O2 -std=gnu++1z -Wall -Wextra -Wextra -Werror -Wformat=2 -Wuninitialized -Winit-self -Wswitch-enum -Wundef -Wpointer-arith -Wdisabled-optimization -Wcast-align -Wcast-qual -fexceptions -mthreads -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DQTCSV_LIBRARY -DQT_NO_DEBUG -DQT_CORE_LIB -I../../qtcsv-1.5 -I. -I../include -IC:/Qt/6.0.2/mingw81_64/include -IC:/Qt/6.0.2/mingw81_64/include/QtCore -Irelease -IC:/Qt/6.0.2/mingw81_64/mkspecs/win32-g++ -o release\writer.o ..\sources\writer.cpp
In file included from ..\sources\writer.cpp:1:
../../qtcsv-1.5/include/qtcsv/writer.h:6:10: fatal error: QTextCodec: No such file or directory
#include <QTextCodec>
^~~~~~~~~~~~
compilation terminated.
mingw32-make[1]: *** [Makefile.Release:248: release/writer.o] Error 1
mingw32-make[1]: Leaving directory 'C:/Users/Deto24/Downloads/qtcsv-1.5/build'
mingw32-make: *** [Makefile:45: release] Error 2
I'm fairly new to adding Lib's to QT and while there seems no real explains for how to compile those lib's step by step I could gather some Informations by myself. I created the PATH as you can see on the Picture, so I hope that is alright.
Any Ideas what I did wrong?
I am trying to build QT now for 2 days but it just doesn't work. This is what I did so far:
getting source (qt-everywhere-opensource-src-5.2.1)
installing perl, python, directx 9 sdk
adding perl, python to path variable
open cmd:
CALL "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" amd64
set PATH=C:\Qt\Qt5.2.1source\qtbase\bin;C:\Qt\Qt5.2.1source\qtrepotools\bin;C:\Qt\Qt5.2.1source\gnuwin32\bin;%PATH%
set QMAKESPEC=win32-msvc2010
cd C:\Qt\Qt5.2.1source\
configure -debug -nomake examples -nomake tests -opensource -platform win32-msvc2010 -confirm-license (also tried with -opengl desktop)
nmake
And then I get this error message:
qplatformopenglcontext.cpp
c:\qtdev\qtbase-build\include\qtgui\../../../qtbase/src/gui/opengl/qopengl.h(55)
: fatal error C1083: Cannot open include file: 'GLES2/gl2.h': No such file or d
irectory
qopenglcontext.cpp
c:\qtdev\qtbase-build\include\qtgui\../../../qtbase/src/gui/opengl/qopengl.h(55)
: fatal error C1083: Cannot open include file: 'GLES2/gl2.h': No such file or d
irectory
Generating Code...
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0
\VC\BIN\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0
\VC\BIN\nmake.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
the same like here: QT_BUG but this should be fixed in 5.1.0 so I guess I do something wrong but I don´t know what :( It´s driving me crazy! I tried several different confiure settings but always the same error.
Btw: I had the same error before I installed DirectX SDK, the only thing changed after installing was the warning after performing configure doesn't show anymore.
Do you have any clue how I can get this working?
Try to install DirectX SDK.
Read more: https://qt-project.org/forums/viewthread/36324
I have installed Qt 5.0 (the whole SDK) on Fedora 17. I have configured the compiler (GCC) and everything seems to be working fine, except that when I press "Ctrl-R" for having a demo of my GUI coding, I get the following error :
make: Entering directory `/home/Nisarg/Documents/Qt Projects/untitled-build-Desktop_Qt_5_0_1_GCC_32bit-Debug'
g++ -Wl,-rpath,/opt/Qt/5.0.1/gcc -Wl,-rpath,/opt/Qt/5.0.1/gcc/lib -o untitled main.o mainwindow.o moc_mainwindow.o -L/opt/Qt/5.0.1/gcc/lib -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread
**/usr/bin/ld: cannot find -lGL**
make: Leaving directory `/home/Nisarg/Documents/Qt Projects/untitled-build-Desktop_Qt_5_0_1_GCC_32bit-Debug'
collect2: error: ld returned 1 exit status
make: *** [untitled] Error 1
04:07:17: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project untitled (kit: Desktop Qt 5.0.1 GCC 32bit)
When executing step 'Make'.
(The error above is that a file called -lGL is not found)
How do I go about solving this error ?
You will need to have the libGL development files installed. It's been awhile since I used Fedora, but check your package manager for a package named something like mesa-libGL-devel.
Although
configure -platform win32-msvc2005 -arch x86
works well, nmake is immediately giving a fatal error:
Qt has not been ported to this architecture
I build on a 64 bit Windows 7 machine. Any ideas why this happens?
Generating Code...
cl -c -nologo -Zm200 -Zc:wchar_t- -O2 -MD -GR -EHsc -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT
-DQT_UIC -DQT_UIC_CPP_GENERATOR -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -DQT_TEXTCODEC -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST
_TO_ASCII -DQT_NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_GEOM_VARIANT -DQT_NO_LIBRARY -DQT_NO_QOBJECT -DQT_NO_STL -DQT_NO_SYS
TEMLOCALE -DQT_NO_TEXTSTREAM -DQT_NO_THREAD -DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -DQT_NO_DEPRECATED -DQT_NODLL
-I"." -I"." -I"cpp" -I"." -I"..\..\..\include" -I"..\..\..\include\QtCore" -I"..\..\..\include\QtXml" -I"..\..\xml" -I".
.\..\..\mkspecs\win32-msvc2005" -Fotmp\obj\release_shared\ #C:\Users\ronen\AppData\Local\Temp\nm60BD.tmp
cppextractimages.cpp
cppwritedeclaration.cpp
cppwriteicondata.cpp
cppwriteicondeclaration.cpp
cppwriteiconinitialization.cpp
cppwriteincludes.cpp
cppwriteinitialization.cpp
Generating Code...
link /LIBPATH:"c:\dev\Qt480\src\tools\bootstrap\release" /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYST
EM:CONSOLE "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='
6595b64144ccf1df' language='*' processorArchitecture='*'" /MANIFEST /MANIFESTFILE:"tmp\obj\release_shared\uic.intermedia
te.manifest" /OUT:..\..\..\bin\uic.exe #C:\Users\ronen\AppData\Local\Temp\nm7547.tmp
mt.exe -nologo -manifest "tmp\obj\release_shared\uic.intermediate.manifest" -outputresource:..\..\..\bin\uic.exe
;1
cd src\winmain\ && "C:\Program Files (x86)\Microsoft Visual Studio 8\VC\BIN\nmake.exe" -f Makefile
Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
Copyright (C) Microsoft Corporation. All rights reserved.
"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\BIN\nmake.exe" -f Makefile.Debug all
Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
Copyright (C) Microsoft Corporation. All rights reserved.
cl -c -nologo -Zm200 -Zc:wchar_t- -Zi -MDd -W3 -w34100 -w34189 -GR -EHsc -DQT_THREAD_SUPPORT -DUNICODE -DWIN32 -
DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILD
ER -D_USE_MATH_DEFINES -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -I"..\..\include" -I"
tmp" -I"..\..\include\QtCore" -I"c:\dev\Qt480\include\qtmain" -I"tmp\rcc\debug_shared" -I"tmp" -I"..\..\include\ActiveQt
" -I"tmp\moc\debug_shared" -I"..\..\mkspecs\win32-msvc2005" -Fotmp\obj\debug_shared\ #C:\Users\ronen\AppData\Local\Temp\
nm7813.tmp
qtmain_win.cpp
c:\dev\qt480\include\qtcore\../../src/corelib/arch/qatomic_arch.h(96) : fatal error C1189: #error : "Qt has not been po
rted to this architecture"
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\BIN\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
You shouldn't need to supply the arch parameter. From the source of qatomic_arch.h it seems that it's skipped the QT_ARCH_WINDOWS section. So try building without -arch. Also ensure that you're building from a 32-bit Visual Studio command prompt (that's assuming that VS2005 had a 64-bit compiler -- I can't remember whether it did). If you build with VS2008 then you need to launch a 32 or 64-bit Visual Studio command prompt as appropriate.
Try to build it with minigw. I think that would help you when you are performing nmake. I had problem about building with nmake. Try to build it on higher version of VS2008>
I can't do a static build of Qt 4.7.0 for WinCE.
First I copied Qt 4.7.0 wince sources to C:\Qt\4.7.0_wince and ran a configure with params
-platform win32-msvc2008 -xplatform wincewm60professional-msvc2008
Then setcepath.bat for wincewm60professional-msvc2008 and then nmake. Everything was alright.
Now I need to do a static version of Qt's libs. How should I do this? I created another Qtdir with the same sources of Qt 4.7.0 wince in C:\Qt\4.7.0_wince_static and ran a configure with params
-release -nomake examples -nomake demos -no-qt3support -no-openssl -no-opengl -no-webkit -no-style-motif -no-style-cde -no-style-cleanlooks -no-style-plastique -no-sql-sqlite -platform win32-msvc2008 -xplatform wincewm60professional-msvc2008 -qt-libjpeg -qt-libpng -qt-gif -static
Then setcepaths.bat for wincewm60professional-msvc2008. But when I ran nmake I got an error:
Generating Code...
link /LIBPATH:"c:\Qt\4.7.0_wince_static\lib" /LIBPATH:"c:\Qt\4.7.0_wince
_static\lib" /NOLOGO /NODEFAULTLIB:OLDNAMES.LIB /INCREMENTAL:NO /SUBSYSTEM:WINDO
WSCE,5.02 /MACHINE:THUMB /OUT:..\..\bin\qmlviewer.exe #C:\Users\SerGe\AppData\Lo
cal\Temp\nm315F.tmp
QtDeclarative.lib(qdeclarativevaluetype.obj) : warning LNK4217: locally defined
symbol ?qt_defaultDpi##YAHXZ (int __cdecl qt_defaultDpi(void)) imported in funct
ion "public: float __cdecl QDeclarativeFontValueType::pointSize(void)const " (?p
ointSize#QDeclarativeFontValueType##QBAMXZ)
QtGui.lib(jmemmgr.obj) : error LNK2019: unresolved external symbol getenv refere
nced in function jinit_memory_mgr
..\..\bin\qmlviewer.exe : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\ce\bin\x86_arm\link.EXE"' : return code '0x460'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\bin\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
What's wrong? Please help me to solve this problem. Thanks in advance!!!