[Development] Compiling QT 5.7 Windows 64-bit

Partha Bagchi partha1b at gmail.com
Mon Mar 28 15:28:14 CEST 2016


Hi,

My first post here.


I am trying to compile QT 5.7 with my toolchain. I must be doing something
silly and wrong: I get the following error:

jit\qv4regalloc.cpp:648:8: error: missing binary operator before token "("
 #if CPU(X86) || CPU(X86_64)
        ^
Makefile.Release:16312: recipe for target '.obj/release/qv4regalloc.o'
failed

Almost all such directives seem to give an error. I can get past the above
by simply commenting out stuff not required by my environment but there
must be a simpler way.

All I need is a couple of pointers. Hope you can help.

Thanks in advance,
Partha

PS:
I am building using a Windows command-line since ./configure chokes on
directory separators. For example, I cannot get glib support if I use the
Msys shell.

My configuration statement:
configure -prefix Z:\opts\opt64-kde  -opensource -confirm-license
-optimized-tools -shared -nomake tests -nomake examples -release -opengl
desktop -openssl -glib -qt-style-windows -I Z:\opts\opt64-kde\include -I
Z:\opts\opt64-kde\include/freetype2 -I Z:\opts\opt64-kde\include/glib-2.0
-L Z:\opts\opt64-kde\lib -l glib-2.0 -l intl -l fontconfig -l freetype -l
harfbuzz -fontconfig -system-zlib -system-libpng -system-harfbuzz
-system-freetype -system-libjpeg -icu -largefile -wmf-backend

My GCC version: gcc 5.3.0 posix-seh 64-bit:
gcc -v
Using built-in specs.
COLLECT_GCC=Z:\foss\gcc\64bit\gcc-posix-5.3.0\bin\gcc.exe
COLLECT_LTO_WRAPPER=Z:/foss/gcc/64bit/gcc-posix-5.3.0/bin/../libexec/gcc/x86_64-w64-mingw32/5.3.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../../../src/gcc-5.3.0/configure --host=x86_64-w64-mingw32
--build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/mingw64
--with-sysroot=/c/mingw530/x86_64-530-posix-seh-rt_v4-rev0/mingw64
--with-gxx-include-dir=/mingw64/x86_64-w64-mingw32/include/c++
--enable-shared --enable-static --disable-multilib
--enable-languages=c,c++,fortran,lto --enable-libstdcxx-time=yes
--enable-threads=posix --enable-libgomp --enable-libatomic --enable-lto
--enable-graphite --enable-checking=release --enable-fully-dynamic-string
--enable-version-specific-runtime-libs --disable-isl-version-check
--disable-libstdcxx-pch --disable-libstdcxx-debug --enable-bootstrap
--disable-rpath --disable-win32-registry --disable-nls --disable-werror
--disable-symvers --with-gnu-as --with-gnu-ld --with-arch=nocona
--with-tune=core2 --with-libiconv --with-system-zlib
--with-gmp=/c/mingw530/prerequisites/x86_64-w64-mingw32-static
--with-mpfr=/c/mingw530/prerequisites/x86_64-w64-mingw32-static
--with-mpc=/c/mingw530/prerequisites/x86_64-w64-mingw32-static
--with-isl=/c/mingw530/prerequisites/x86_64-w64-mingw32-static
--with-pkgversion='x86_64-posix-seh-rev0, Built by MinGW-W64 project'
--with-bugurl=http://sourceforge.net/projects/mingw-w64 CFLAGS='-O2 -pipe
-I/c/mingw530/x86_64-530-posix-seh-rt_v4-rev0/mingw64/opt/include
-I/c/mingw530/prerequisites/x86_64-zlib-static/include
-I/c/mingw530/prerequisites/x86_64-w64-mingw32-static/include'
CXXFLAGS='-O2 -pipe
-I/c/mingw530/x86_64-530-posix-seh-rt_v4-rev0/mingw64/opt/include
-I/c/mingw530/prerequisites/x86_64-zlib-static/include
-I/c/mingw530/prerequisites/x86_64-w64-mingw32-static/include' CPPFLAGS=
LDFLAGS='-pipe
-L/c/mingw530/x86_64-530-posix-seh-rt_v4-rev0/mingw64/opt/lib
-L/c/mingw530/prerequisites/x86_64-zlib-static/lib
-L/c/mingw530/prerequisites/x86_64-w64-mingw32-static/lib '
Thread model: posix
gcc version 5.3.0 (x86_64-posix-seh-rev0, Built by MinGW-W64 project)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20160328/dd62b725/attachment.html>


More information about the Development mailing list