There seem to be some problems with autodetection.
Using trunk tip (rev 10082), if I run cmake setting only a destination build
prefix, but leaving it to find things in all the system places (in other
words, my destination build prefix is empty in this case), I find:
xiphi:t5/plplot/tmp | master cmake
-DCMAKE_INSTALL_PREFIX=$HOME/plplot/build/t5a .. |& tee cmake.out
...
-- FOUND gnat library /usr/lib64/libgnat-4.4.so
-- Check for working Ada builder: GNAT_EXECUTABLE_BUILDER-NOTFOUND
-- Check for working Ada builder: GNAT_EXECUTABLE_BUILDER-NOTFOUND -- broken
CMake Error at cmake/modules/CMakeTestAdaCompiler.cmake:48 (MESSAGE):
The Ada builder "GNAT_EXECUTABLE_BUILDER-NOTFOUND" is not able to compile,
bind, and link a simple test program.
It fails with the following output:
Change Dir: /home/furnish/plplot/t5/plplot/tmp/CMakeFiles/CMakeTmp
...
/home/furnish/plplot/t5/plplot/tmp/CMakeFiles/CMakeTmp/testadacompiler.adb
-o CMakeFiles/testadacompiler.dir/testadacompiler.o
gcc: error trying to exec 'gnat1': execvp: No such file or directory
gmake[2]: *** [CMakeFiles/testadacompiler.dir/testadacompiler.o] Error 1
gmake[2]: Leaving directory
`/home/furnish/plplot/t5/plplot/tmp/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/testadacompiler.dir/all] Error 2
gmake[1]: Leaving directory
`/home/furnish/plplot/t5/plplot/tmp/CMakeFiles/CMakeTmp'
gmake: *** [all] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
cmake/modules/ada.cmake:40 (enable_language)
cmake/modules/plplot.cmake:390 (include)
CMakeLists.txt:77 (include)
-- Configuring incomplete, errors occurred!
So, somehow things went so wrong on F11 that it can't even just disable ada
and go on to looking at other stuff.
If I start over, and shut off ada, I obtain:
xiphi:t5/plplot/tmp | master cmake -DENABLE_ada=off
-DCMAKE_INSTALL_PREFIX=$HOME/plplot/build/t5a .. |& tee cmake.out
...
-- QT_LIBRARIES =
/usr/lib64/libQtSvg.so;/usr/lib64/libQtGui.so;/usr/lib64/libpng.so;/usr/lib64/libSM.so;/usr/lib64/libICE.so;/usr/lib64/libXi.so;/usr/lib64/libXrender.so;/usr/lib64/libXrandr.so;/usr/lib64/libXcursor.so;/usr/lib64/libXinerama.so;/usr/lib64/libXfixes.so;/usr/lib64/libfreetype.so;/usr/lib64/libfontconfig.so;/usr/lib64/libXext.so;/usr/lib64/libX11.so;/usr/lib64/libm.so;/usr/lib64/libQtXml.so;/usr/lib64/libQtCore.so;/usr/lib64/libz.so;/usr/lib64/libgthread-2.0.so;/usr/lib64/libglib-2.0.so;/usr/lib64/librt.so;-lpthread;-ldl
CMake Warning (dev) at cmake/modules/drivers.cmake:90 (include):
A logical block opening on the line
/home/furnish/plplot/t5/plplot/cmake/modules/qt.cmake:172 (if)
closes on the line
/home/furnish/plplot/t5/plplot/cmake/modules/qt.cmake:177 (endif)
with mis-matching arguments.
Call Stack (most recent call first):
cmake/modules/plplot.cmake:419 (include)
CMakeLists.txt:77 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
...
ENABLE_qt: ON ENABLE_pyqt4: ON
-- Configuring done
-- Generating done
-- Build files have been written to: /home/furnish/plplot/t5/plplot/tmp
which looks a little worrisome, but at least it got through cmake without
catastrophe. But now when I build, I get:
xiphi:t5/plplot/tmp | master make
...
[ 12%] Building CXX object src/CMakeFiles/plplotd.dir/__/drivers/qt.cpp.o
[ 12%] Building CXX object
src/CMakeFiles/plplotd.dir/__/bindings/qt_gui/plqt.cpp.o
/home/furnish/plplot/t5/plplot/bindings/qt_gui/plqt.cpp:34:16: error: qt.h: No
such file or directory
/home/furnish/plplot/t5/plplot/bindings/qt_gui/plqt.cpp:38: error:
?MasterHandler? does not name a type
/home/furnish/plplot/t5/plplot/bindings/qt_gui/plqt.cpp:41: error: ?QMutex?
does not name a type
/home/furnish/plplot/t5/plplot/bindings/qt_gui/plqt.cpp:43: error: ?QtPLDriver?
has not been declared
/home/furnish/plplot/t5/plplot/bindings/qt_gui/plqt.cpp:43: error: expected
constructor, destructor, or type conversion before ?(? token
[dozens more lines, then]
/home/furnish/plplot/t5/plplot/bindings/qt_gui/plqt.cpp:131: error: ?p? was not
declared in this scope
/home/furnish/plplot/t5/plplot/bindings/qt_gui/plqt.cpp:131: error: expected
primary-expression before ?const?
make[2]: *** [src/CMakeFiles/plplotd.dir/__/bindings/qt_gui/plqt.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/plplotd.dir/all] Error 2
make: *** [all] Error 2
If I disable qt (IDENABLE_qt=off), the build still fails on plqt.cpp.
If I further also disable pyqt4, it still fails compiling plqt.cpp.
...
ENABLE_qt: OFF ENABLE_pyqt4: OFF
...
[ 13%] Building CXX object
src/CMakeFiles/plplotd.dir/__/bindings/qt_gui/plqt.cpp.o
/home/furnish/plplot/t5/plplot/bindings/qt_gui/plqt.cpp:34:16: error: qt.h: No
such file or directory
/home/furnish/plplot/t5/plplot/bindings/qt_gui/plqt.cpp:38: error:
?MasterHandler? does not name a type
/home/furnish/plplot/t5/plplot/bindings/qt_gui/plqt.cpp:41: error: ?QMutex?
does not name a type
/home/furnish/plplot/t5/plplot/bindings/qt_gui/plqt.cpp:43: error: ?QtPLDriver?
has not been declared
So, what do I have to do to shut off qt support to the point where it quits
trying to compile qt support that I apparently don't have the necessary
prereqs for on my F11 system?
And would it be possible to improve the Qt detection so that additional
prereqs are tested? Like the existence of qt.h, maybe?
For all of the above error reports, I did this:
xiphi:t5/plplot/tmp | master cd ..; rm -rf tmp; mkdir tmp; cd tmp
to ensure that I was doing the cmake and build in a clean dir, with no cmake
hysteresis.
So, besides reporting that the cmake system isn't really sniffing out the
situation on F11 adequately, I'm also in need of advice on how to *really*
turn off building the Qt interface.
Thanks in advance,
--
Geoff
------------------------------------------------------------------------------
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel