Skip to content

Instantly share code, notes, and snippets.

@joede
Created July 26, 2016 08:03
Show Gist options
  • Save joede/279e36de061c422b5dcf097e307d2581 to your computer and use it in GitHub Desktop.
Save joede/279e36de061c422b5dcf097e307d2581 to your computer and use it in GitHub Desktop.
failed MXE build of log4qt
$ x86_64-w64-mingw32.static-qmake-qt5 log4qt.pro
jd@jd-dell:~/tmp/x/MEONMedical-Log4Qt--win(master %=)$ make
cd src/ && ( test -e Makefile || /usr/lib/mxe/usr/bin/x86_64-w64-mingw32.static-qmake-qt5 /home/jd/tmp/x/MEONMedical-Log4Qt--win/src/src.pro -o Makefile ) && make -f Makefile
make[1]: Entering directory '/home/jd/tmp/x/MEONMedical-Log4Qt--win/src'
cd log4qt/ && ( test -e Makefile || /usr/lib/mxe/usr/bin/x86_64-w64-mingw32.static-qmake-qt5 /home/jd/tmp/x/MEONMedical-Log4Qt--win/src/log4qt/log4qt.pro -o Makefile ) && make -f Makefile
Project MESSAGE: Skipping databaseappender and -layout
Cannot read /home/jd/tmp/x/MEONMedical-Log4Qt--win/src/g++.pri: No such file or directory
Project MESSAGE: Skipping databaseappender and -layout
Project MESSAGE: Skipping databaseappender and -layout
make[2]: Entering directory '/home/jd/tmp/x/MEONMedical-Log4Qt--win/src/log4qt'
make -f Makefile.Release
make[3]: Entering directory '/home/jd/tmp/x/MEONMedical-Log4Qt--win/src/log4qt'
x86_64-w64-mingw32.static-g++ -c -pipe -fno-keep-inline-dllexport -O2 -std=c++0x -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DLOG4QT_VERSION_STR="\"1.2.0\"" -DLOG4QT_VERSION=\"1.2.0\" -DNOMINMAX -DQT_DEPRECATED_WARNINGS -DQT_NO_CAST_FROM_BYTEARRAY -DLOG4QT_LIBRARY -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I. -Ihelpers -Ispi -Ivaria -I/usr/lib/mxe/usr/x86_64-w64-mingw32.static/qt5/include -I/usr/lib/mxe/usr/x86_64-w64-mingw32.static/qt5/include/QtGui -I/usr/lib/mxe/usr/x86_64-w64-mingw32.static/qt5/include/QtXml -I/usr/lib/mxe/usr/x86_64-w64-mingw32.static/qt5/include/QtNetwork -I/usr/lib/mxe/usr/x86_64-w64-mingw32.static/qt5/include/QtCore -Irelease -I/usr/lib/mxe/usr/x86_64-w64-mingw32.static/qt5/mkspecs/win32-g++ -o release/appender.o appender.cpp
....
x86_64-w64-mingw32.static-g++ -c -pipe -fno-keep-inline-dllexport -O2 -std=c++0x -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DLOG4QT_VERSION_STR="\"1.2.0\"" -DLOG4QT_VERSION=\"1.2.0\" -DNOMINMAX -DQT_DEPRECATED_WARNINGS -DQT_NO_CAST_FROM_BYTEARRAY -DLOG4QT_LIBRARY -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I. -Ihelpers -Ispi -Ivaria -I/usr/lib/mxe/usr/x86_64-w64-mingw32.static/qt5/include -I/usr/lib/mxe/usr/x86_64-w64-mingw32.static/qt5/include/QtGui -I/usr/lib/mxe/usr/x86_64-w64-mingw32.static/qt5/include/QtXml -I/usr/lib/mxe/usr/x86_64-w64-mingw32.static/qt5/include/QtNetwork -I/usr/lib/mxe/usr/x86_64-w64-mingw32.static/qt5/include/QtCore -Irelease -I/usr/lib/mxe/usr/x86_64-w64-mingw32.static/qt5/mkspecs/win32-g++ -o release/moc_wdcappender.o release/moc_wdcappender.cpp
x86_64-w64-mingw32.static-ar -M < object_script.liblog4qt.Release
make[3]: Leaving directory '/home/jd/tmp/x/MEONMedical-Log4Qt--win/src/log4qt'
....
/usr/lib/mxe/usr/x86_64-w64-mingw32.static/qt5/bin/moc -DUNICODE -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_TESTLIB_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR='"/home/jd/tmp/x/MEONMedical-Log4Qt--win/tests/log4qttest"' -D__GNUC__ -DWIN32 -I/usr/lib/mxe/usr/x86_64-w64-mingw32.static/qt5/mkspecs/win32-g++ -I/home/jd/tmp/x/MEONMedical-Log4Qt--win/tests/log4qttest -I/home/jd/tmp/x/MEONMedical-Log4Qt--win/src/log4qt -I/home/jd/tmp/x/MEONMedical-Log4Qt--win/src/log4qt/helpers -I/home/jd/tmp/x/MEONMedical-Log4Qt--win/src/log4qt/spi -I/home/jd/tmp/x/MEONMedical-Log4Qt--win/src/log4qt/varia -I/usr/lib/mxe/usr/x86_64-w64-mingw32.static/qt5/include -I/usr/lib/mxe/usr/x86_64-w64-mingw32.static/qt5/include/QtTest -I/usr/lib/mxe/usr/x86_64-w64-mingw32.static/qt5/include/QtCore -I/usr/lib/mxe/usr/lib/gcc/x86_64-w64-mingw32.static/4.9.3/include/c++ -I/usr/lib/mxe/usr/lib/gcc/x86_64-w64-mingw32.static/4.9.3/include/c++/x86_64-w64-mingw32.static -I/usr/lib/mxe/usr/lib/gcc/x86_64-w64-mingw32.static/4.9.3/include/c++/backward -I/usr/lib/mxe/usr/lib/gcc/x86_64-w64-mingw32.static/4.9.3/include -I/usr/lib/mxe/usr/lib/gcc/x86_64-w64-mingw32.static/4.9.3/include-fixed -I/usr/lib/mxe/usr/x86_64-w64-mingw32.static/include log4qttest.h -o release/moc_log4qttest.cpp
x86_64-w64-mingw32.static-g++ -c -pipe -fno-keep-inline-dllexport -Wno-long-long -ansi -pedantic -Wnon-virtual-dtor -Wundef -Wcast-align -Wchar-subscripts -Wpointer-arith -Wwrite-strings -Wpacked -Wformat-security -Wmissing-format-attribute -Woverloaded-virtual -O2 -std=c++0x -frtti -Wall -Wextra -Wold-style-cast -fexceptions -mthreads -DUNICODE -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_TESTLIB_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR='"/home/jd/tmp/x/MEONMedical-Log4Qt--win/tests/log4qttest"' -I. -I../../src/log4qt -I../../src/log4qt/helpers -I../../src/log4qt/spi -I../../src/log4qt/varia -I/usr/lib/mxe/usr/x86_64-w64-mingw32.static/qt5/include -I/usr/lib/mxe/usr/x86_64-w64-mingw32.static/qt5/include/QtTest -I/usr/lib/mxe/usr/x86_64-w64-mingw32.static/qt5/include/QtCore -Irelease -I/usr/lib/mxe/usr/x86_64-w64-mingw32.static/qt5/mkspecs/win32-g++ -o release/moc_log4qttest.o release/moc_log4qttest.cpp
x86_64-w64-mingw32.static-g++ -Wl,-s -Wl,-subsystem,console -mthreads -o ../../bin/log4qttest.exe release/log4qttest.o release/moc_log4qttest.o -L../../bin -llog4qt -L/usr/lib/mxe/usr/x86_64-w64-mingw32.static/qt5/lib -lQt5Test -lQt5Core -lole32 -luuid -lws2_32 -ladvapi32 -lshell32 -luser32 -lkernel32 -lmpr -lz -lpcre16
release/log4qttest.o:log4qttest.cpp:(.text+0x39): undefined reference to `__imp__ZN6Log4Qt6Logger6loggerEPKc'
release/log4qttest.o:log4qttest.cpp:(.text+0x328): undefined reference to `__imp__ZN6Log4Qt20InitialisationHelper8instanceEv'
release/log4qttest.o:log4qttest.cpp:(.text+0x82e): undefined reference to `__imp__ZNK6Log4Qt8DateTime8toStringERK7QString'
release/log4qttest.o:log4qttest.cpp:(.text+0xf37): undefined reference to `__imp__ZNK6Log4Qt10Properties8propertyERK7QString'
....
release/log4qttest.o:log4qttest.cpp:(.text+0x15a75): undefined reference to `__imp__ZN6Log4Qt12FileAppender15activateOptionsEv'
release/log4qttest.o:log4qttest.cpp:(.text+0x15a7c): undefined reference to `__imp__ZTVN6Log4Qt12LoggingEventE'
release/log4qttest.o:log4qttest.cpp:(.text+0x15a8d): undefined reference to `__imp__ZN6Log4Qt12LoggingEventC1EPKNS_6LoggerENS_5LevelERK7QString'
release/log4qttest.o:log4qttest.cpp:(.text+0x15a94): undefined reference to `__imp__ZN6Log4Qt16AppenderSkeleton8doAppendERKNS_12LoggingEventE'
release/log4qttest.o:log4qttest.cpp:(.text+0x15bbe): undefined reference to `__imp__ZNK6Log4Qt12ListAppender4listEv'
release/log4qttest.o:log4qttest.cpp:(.text+0x15dc1): undefined reference to `__imp__ZN6Log4Qt19RollingFileAppenderD1Ev'
release/log4qttest.o:log4qttest.cpp:(.text+0x162d0): undefined reference to `__imp__ZN6Log4Qt19RollingFileAppenderD1Ev'
release/log4qttest.o:log4qttest.cpp:(.text$_ZN6Log4Qt12LoggingEventD1Ev[_ZN6Log4Qt12LoggingEventD1Ev]+0x8): undefined reference to `__imp__ZTVN6Log4Qt12LoggingEventE'
release/log4qttest.o:log4qttest.cpp:(.text$_ZN6Log4Qt12LoggingEventD0Ev[_ZN6Log4Qt12LoggingEventD0Ev]+0x8): undefined reference to `__imp__ZTVN6Log4Qt12LoggingEventE'
release/log4qttest.o:log4qttest.cpp:(.text$_ZN17QtMetaTypePrivate23QMetaTypeFunctionHelperIN6Log4Qt12LoggingEventELb1EE9ConstructEPvPKv[_ZN17QtMetaTypePrivate23QMetaTypeFunctionHelperIN6Log4Qt12LoggingEventELb1EE9ConstructEPvPKv]+0x26): undefined reference to `__imp__ZTVN6Log4Qt12LoggingEventE'
release/log4qttest.o:log4qttest.cpp:(.text$_ZN17QtMetaTypePrivate23QMetaTypeFunctionHelperIN6Log4Qt12LoggingEventELb1EE9ConstructEPvPKv[_ZN17QtMetaTypePrivate23QMetaTypeFunctionHelperIN6Log4Qt12LoggingEventELb1EE9ConstructEPvPKv]+0xe7): undefined reference to `__imp__ZN6Log4Qt12LoggingEventC1Ev'
release/log4qttest.o:log4qttest.cpp:(.text$_ZN5QListIN6Log4Qt12LoggingEventEEC1ERKS2_[_ZN5QListIN6Log4Qt12LoggingEventEEC1ERKS2_]+0x72): undefined reference to `__imp__ZTVN6Log4Qt12LoggingEventE'
release/log4qttest.o:log4qttest.cpp:(.text$_ZN6Log4Qt18ConfiguratorHelper14configureErrorEv[_ZN6Log4Qt18ConfiguratorHelper14configureErrorEv]+0xa): undefined reference to `__imp__ZN6Log4Qt18ConfiguratorHelper8instanceEv'
collect2: error: ld returned 1 exit status
Makefile.Release:81: recipe for target '../../bin/log4qttest.exe' failed
make[3]: *** [../../bin/log4qttest.exe] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment