[Interest] Failing to build Qt 5.0.0 on Win x64 VS 2012
Nikolai Tasev
nikolai at nand.bg
Mon Jan 7 10:34:34 CET 2013
Hello can anyone help with the following problem:
I have link errors with OpenGL functions while compiling Qt 5.0.0 from
source (.zip archive).
My build configuration is Windows 7 x64, MS Visual Studio 2012,
compiling for x64 platform.
I am providing additional switches to the VS so it can run on Windows XP
( Windows XP targeting )
Here are my commands:
configure -qt-zlib -qt-libjpeg -qt-libpng -static -opensource
-confirm-license -nomake examples -nomake tests -platform win32-msvc2012
-mp
nmake
and some of the link errors:
...
cd tools\ && ( if not exist Makefile D:\libs\qt-5.0.0\qtbase\bin\qmake
D:\libs\qt-5.0.0\qtdeclarative\tools\tools.pro -o Makefile ) &&
"C:\Program Files (x86)\Microsoft Visual Studio
11.0\VC\BIN\amd64\nmake.exe" -f Makefile
cd qmlscene\ && ( if not exist Makefile
D:\libs\qt-5.0.0\qtbase\bin\qmake
D:\libs\qt-5.0.0\qtdeclarative\tools\qmlscene\qmlscene.pro -o Makefile )
&& "C:\Program Files (x86)\Microsoft Visual Studio
11.0\VC\BIN\amd64\nmake.exe" -f Makefile
"C:\Program Files (x86)\Microsoft Visual Studio
11.0\VC\BIN\amd64\nmake.exe" -f Makefile.Release
link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO
/SUBSYSTEM:CONSOLE,5.02 "/MANIFESTDEPENDENCY:type='win32'
name='Microsoft.Windows.Common-Controls' version='6.0.0.0'
publicKeyToken='6595b64144ccf1df' language='*'
processorArchitecture='*'" /MANIFEST
/MANIFESTFILE:D:\libs\qt-5.0.0\qtbase\bin\qmlscene.exe.embed.manifest
/OUT:D:\libs\qt-5.0.0\qtbase\bin\qmlscene.exe
@C:\Users\nikolai\AppData\Local\Temp\nm373C.tmp
Creating library D:\libs\qt-5.0.0\qtbase\bin\qmlscene.lib and object
D:\libs\qt-5.0.0\qtbase\bin\qmlscene.exp
qwindows.lib(qwindowswindow.obj) : error LNK2019: unresolved external
symbol __imp_eglGetError referenced in function "public: void * __cdecl
QWindowsWindow::ensureEglSurfaceHandle(class QSharedPointer<class
QWindowsEGLStaticContext> const &,void *)"
(?ensureEglSurfaceHandle at QWindowsWindow@@QEAAPEAXAEBV?$QSharedPointer at VQWindowsEGLStaticContext@@@@PEAX at Z)
qwindows.lib(qwindowseglcontext.obj) : error LNK2001: unresolved
external symbol __imp_eglGetError
Qt5PlatformSupport.lib(qeglplatformcontext.obj) : error LNK2001:
unresolved external symbol __imp_eglGetError
Qt5PlatformSupport.lib(qeglconvenience.obj) : error LNK2001: unresolved
external symbol __imp_eglGetError
qwindows.lib(qwindowswindow.obj) : error LNK2019: unresolved external
symbol __imp_eglCreateWindowSurface referenced in function "public: void
* __cdecl QWindowsWindow::ensureEglSurfaceHandle(class
QSharedPointer<class QWindowsEGLStaticContext> const &,void *)"
(?ensureEglSurfaceHandle at QWindowsWindow@@QEAAPEAXAEBV?$QSharedPointer at VQWindowsEGLStaticContext@@@@PEAX at Z)
qwindows.lib(qwindowswindow.obj) : error LNK2019: unresolved external
symbol __imp_eglDestroySurface referenced in function "private: void
__cdecl QWindowsWindow::destroyWindow(void)"
(?destroyWindow at QWindowsWindow@@AEAAXXZ)
.... and many more
Is this a bug because I am using some untested option like static
linking, MS 2012 or Windows XP targeting?
Or I am just missing some prerequisite library.
Best Regards
Nikolai
More information about the Interest
mailing list