[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mingw-cross-env-list] Qt5 Linking failed (zlib?)

From: Giovanni Berti
Subject: [Mingw-cross-env-list] Qt5 Linking failed (zlib?)
Date: Wed, 12 Nov 2014 20:03:55 +0100

Hello everyone!
I was trying to build a Qt5 program with MXE. I built successfully Qt5 with
make qt5
then tried to build my program with
make CROSS=i686-pc-mingw32
and I get these errors:
Scanning dependencies of target Test
[ 66%] Building CXX object CMakeFiles/Test.dir/main.cpp.obj
Linking CXX executable Test.exe
undefined reference to `uncompress'
undefined reference to `compress2'
bad reloc address 0x44 in section
final link failed: Invalid operation
collect2: error: ld returned 1 exit status

I think these errors pop up because libQt5Core.a's object files are
not linked with zlib, so how do I solve this? Should I specify the
dependencies in the Makefile (or, in my case, in CMakeLists.txt)?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]