Unable to compile QT4 lib with Superbuilt 5.8
Mantis Issue 1314, reported by sdinot, assigned to rkanavath, created: 2016-11-15
Hello,
I just checked out the last OTB release and I used Superbuilt to compile the source. Unfortunately the process failed when building QT4.
Here is the error retrieved by the make command :
... -- Up-to-date: /lib/libfreetype.so [ 66%] Completed 'FREETYPE' [ 66%] Built target FREETYPE [ 67%] Creating directories for 'QT4' [ 67%] Performing download step (download, verify and extract) for 'QT4' -- verifying file... file='/home/baptistelafabregue/OTB/build/Downloads/qt-everywhere-opensource-src-4.8.7.tar.gz' -- verifying file... done -- extracting... src='/home/baptistelafabregue/OTB/build/Downloads/qt-everywhere-opensource-src-4.8.7.tar.gz' dst='/home/baptistelafabregue/OTB/build/QT4/src/QT4' -- extracting... [tar xfz] -- extracting... [analysis] -- extracting... [rename] -- extracting... [clean up] -- extracting... done [ 67%] No update step for 'QT4' [ 68%] No patch step for 'QT4' [ 68%] Performing QT4_custom_patch step for 'QT4' Input patch file: /home/baptistelafabregue/OTB/otb/SuperBuild/patches/QT4/qt4-1-skip-qtnetwork-module-all.diff patching file src/plugins/graphicssystems/graphicssystems.pro patching file src/plugins/plugins.pro patching file src/src.pro [ 68%] Performing configure step for 'QT4' CMake Error at /home/baptistelafabregue/OTB/build/QT4/src/QT4-stamp/QT4-configure-Release.cmake:16 (message): Command failed: 1
'/home/baptistelafabregue/OTB/build/configure_qt4.sh'
See also
/home/baptistelafabregue/OTB/build/QT4/src/QT4-stamp/QT4-configure-*.log
CMakeFiles/QT4.dir/build.make:115: recipe for target 'QT4/src/QT4-stamp/QT4-configure' failed make[2]: *** [QT4/src/QT4-stamp/QT4-configure] Error 1 CMakeFiles/Makefile2:583: recipe for target 'CMakeFiles/QT4.dir/all' failed make[1]: *** [CMakeFiles/QT4.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2
When looking at the log files, it seems like there is some missing arguments. There is nothing in the *err.log, and here is the content of the *out.log :
/freetype2: unknown argument Determining system architecture... (Linux:4.4.0-45-generic:x86_64) 64-bit AMD 80x86 (x86_64) 'x86_64' is supported System architecture: 'x86_64' Precompiled-headers support enabled. Symbol visibility control enabled.
Usage: configure [-h] [-prefix
] [-prefix-install] [-bindir ] [-libdir ] [-docdir ] [-headerdir ] [-plugindir ] [-importdir ] [-datadir ] [-translationdir ] [-sysconfdir ] [-examplesdir ] [-demosdir ] [-buildkey ] [-release] [-debug] [-debug-and-release] [-developer-build] [-shared] [-static] [-no-fast] [-fast] [-no-largefile] [-largefile] [-no-exceptions] [-exceptions] [-no-accessibility] [-accessibility] [-no-stl] [-stl] [-no-sql-] [-sql-] [-plugin-sql-] [-system-sqlite] [-no-qt3support] [-qt3support] [-platform] [-D ] [-I ] [-L ] [-help] [-qt-zlib] [-system-zlib] [-no-gif] [-no-libtiff] [-qt-libtiff] [-system-libtiff] [-no-libpng] [-qt-libpng] [-system-libpng] [-no-libmng] [-qt-libmng] [-system-libmng] [-no-libjpeg] [-qt-libjpeg] [-system-libjpeg] [-make ] [-nomake ] [-R ] [-l ] [-no-rpath] [-rpath] [-continue] [-verbose] [-v] [-silent] [-no-nis] [-nis] [-no-cups] [-cups] [-no-iconv] [-iconv] [-no-pch] [-pch] [-no-dbus] [-dbus] [-dbus-linked] [-no-gui] [-no-separate-debug-info] [-no-mmx] [-no-3dnow] [-no-sse] [-no-sse2] [-no-sse3] [-no-ssse3] [-no-sse4.1] [-no-sse4.2] [-no-avx] [-no-neon] [-qtnamespace ] [-qtlibinfix ] [-separate-debug-info] [-armfpa] [-no-optimized-qmake] [-optimized-qmake] [-no-xmlpatterns] [-xmlpatterns] [-no-multimedia] [-multimedia] [-no-phonon] [-phonon] [-no-phonon-backend] [-phonon-backend] [-no-media-backend] [-media-backend] [-no-audio-backend] [-audio-backend] [-no-openssl] [-openssl] [-openssl-linked] [-no-gtkstyle] [-gtkstyle] [-no-svg] [-svg] [-no-webkit] [-webkit] [-webkit-debug] [-no-javascript-jit] [-javascript-jit] [-no-script] [-script] [-no-scripttools] [-scripttools] [-no-declarative] [-declarative] [-no-declarative-debug] [-declarative-debug] [additional platform specific options (see below)]Installation options:
-qpa [name] ......... This will enable the QPA build.
QPA is a window system agnostic implementation of Qt.
If [name] is given, sets the default QPA platform (e.g xcb, cocoa).
These are optional, but you may specify install directories.
-prefix <dir> ...... This will install everything relative to <dir>
(default /home/baptistelafabregue/OTB/build/QT4/src/QT4/-L)
- -prefix-install .... Force a sandboxed "local" installation of Qt. This will install into /home/baptistelafabregue/OTB/build/QT4/src/QT4/-L, if this option is disabled then some platforms will attempt a "system" install by placing default values in a system location other than PREFIX.
You may use these to separate different parts of the install:
-bindir <dir> ......... Executables will be installed to <dir>
(default PREFIX/bin)
....
That seems surprising, I didn't have any trouble with the previous version.
originally reported on otb-users
1479226728 - rashadkmI think you need to clear build/QT4 directory and remove build/configure_qt4.sh before rebuilding QT4
cd /path/to/superbuild-binary-dir rm -fr QT4 rm -f configure_qt4.sh
all I can think of forcing these two "rm commands" as external_step for QT4
before doing that fix into develop, I would like to see a confirmation that removing those files works for you