Build help - (pretty) please
Steve Maher
steve.f.maher at gmail.com
Wed Jan 30 20:15:13 GMT 2019
Hi Barth,
Thanks for the reply. *cmake ../kst* fails miserably, however. I wonder
if I have an incompatible version of one of the tools (see Install Info
below). Or is there a sneaky environment variable I need to set? Below I
first provide the cmake output and then some installation details. Perhaps
you could compare to your installation?
*cmake ../kst* output
mce at ubuntu18:~/git/kst-build$ cmake ../kst
CMake Deprecation Warning at CMakeLists.txt:10 (cmake_policy):
The OLD behavior for policy CMP0020 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
--
-- Using GCC version 7
-- 3rd party libs for plugins--------------------
-- *Not found: GetData*.
-- If GetData is installed outside the CMake search path,
-- set the environmental variable GETDATA_DIR to the
-- GetData install prefix.
--
-- Not found: GSL.
-- If GSL is installed outside the CMake search path,
-- set the environmental variable GSL_DIR to the
-- GSL install prefix.
--
-- Not found: NetCDF.
-- If NetCDF is installed outside the CMake search path,
-- set the environmental variable NETCDF_DIR to the
-- NetCDF install prefix.
--
-- Not found: matio, set MATIO_DIR
--
-- Not found: CFITSIO, set CFITSIO_DIR
--
-- Not found: TIFF, set TIFF_DIR
--
-- ----------------------------------------------
--
CMake Error at CMakeLists.txt:187 (find_package):
By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Qt5Core",
but
CMake did not find one.
Could not find a package configuration file provided by "Qt5Core" with any
of the following names:
Qt5CoreConfig.cmake
qt5core-config.cmake
Add the installation prefix of "Qt5Core" to CMAKE_PREFIX_PATH or set
"Qt5Core_DIR" to a directory containing one of the above files. If
"Qt5Core" provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
CMakeLists.txt:190 (use_qt5lib)
-- Configuring incomplete, errors occurred!
See also "/home/mce/git/kst-build/CMakeFiles/CMakeOutput.log".
mce at ubuntu18:~/git/kst-build$
Comments:
1. Perhaps not finding (the *installed*) getdata lib is a clue, but I
couldn't easily grok *cmake/modules/FindGetdata.cmake*
2. It seems to not be happy with my Qt5 install (although I do have the
Qt5 core installed). I couldn't find a Qt5CoreConfig.cmake file anywhere,
as it suggested
Install Info
mce at ubuntu18:/usr/lib$ *dpkg -l getdata cmake *
||/ Name Version
Architecture Description
+++-==================================================-==============================-==============================-==========================================================================================================
ii cmake 3.10.2-1ubuntu2
amd64 cross-platform, open-source make
system
ii getdata 0.2-2
all management of external databases
mce at ubuntu18:/usr/lib$ *find /usr/lib | grep getdata*
/usr/lib/x86_64-linux-gnu/libgetdata.so.8.0.0
/usr/lib/x86_64-linux-gnu/libgetdata.so.8
/usr/lib/x86_64-linux-gnu/libgetdata++.so.7.0.0
/usr/lib/x86_64-linux-gnu/libgetdata++.so.7
mce at ubuntu18:/usr/lib$ *dpkg -l | grep qt*
ii gnuplot-qt 5.2.2+dfsg1-2ubuntu1
amd64 Command-line driven interactive plotting
program. QT-package
ii libqt4-dbus:amd64 4:4.8.7+dfsg-7ubuntu1
amd64 Qt 4 D-Bus module
ii libqt4-declarative:amd64 4:4.8.7+dfsg-7ubuntu1
amd64 Qt 4 Declarative module
ii libqt4-designer:amd64 4:4.8.7+dfsg-7ubuntu1
amd64 Qt 4 designer module
ii libqt4-help:amd64 4:4.8.7+dfsg-7ubuntu1
amd64 Qt 4 help module
ii libqt4-network:amd64 4:4.8.7+dfsg-7ubuntu1
amd64 Qt 4 network module
ii libqt4-script:amd64 4:4.8.7+dfsg-7ubuntu1
amd64 Qt 4 script module
ii libqt4-scripttools:amd64 4:4.8.7+dfsg-7ubuntu1
amd64 Qt 4 script tools module
ii libqt4-sql:amd64 4:4.8.7+dfsg-7ubuntu1
amd64 Qt 4 SQL module
ii libqt4-sql-mysql:amd64 4:4.8.7+dfsg-7ubuntu1
amd64 Qt 4 MySQL database driver
ii libqt4-svg:amd64 4:4.8.7+dfsg-7ubuntu1
amd64 Qt 4 SVG module
ii libqt4-test:amd64 4:4.8.7+dfsg-7ubuntu1
amd64 Qt 4 test module
ii libqt4-xml:amd64 4:4.8.7+dfsg-7ubuntu1
amd64 Qt 4 XML module
ii libqt4-xmlpatterns:amd64 4:4.8.7+dfsg-7ubuntu1
amd64 Qt 4 XML patterns module
ii libqt5core5a:amd64 5.9.5+dfsg-0ubuntu1
amd64 Qt 5 core module
ii libqt5dbus5:amd64 5.9.5+dfsg-0ubuntu1
amd64 Qt 5 D-Bus module
ii libqt5gui5:amd64 5.9.5+dfsg-0ubuntu1
amd64 Qt 5 GUI module
ii libqt5network5:amd64 5.9.5+dfsg-0ubuntu1
amd64 Qt 5 network module
ii libqt5printsupport5:amd64 5.9.5+dfsg-0ubuntu1
amd64 Qt 5 print support module
ii libqt5svg5:amd64 5.9.5-0ubuntu1
amd64 Qt 5 SVG module
ii libqt5widgets5:amd64 5.9.5+dfsg-0ubuntu1
amd64 Qt 5 widgets module
ii libqt5xml5:amd64 5.9.5+dfsg-0ubuntu1
amd64 Qt 5 XML module
ii libqtassistantclient4:amd64 4.6.3-7build1
amd64 Qt Assistant client library (runtime)
ii libqtcore4:amd64 4:4.8.7+dfsg-7ubuntu1
amd64 Qt 4 core module
ii libqtdbus4:amd64 4:4.8.7+dfsg-7ubuntu1
amd64 Qt 4 D-Bus module library
ii libqtgui4:amd64 4:4.8.7+dfsg-7ubuntu1
amd64 Qt 4 GUI module
ii python-qt4 4.12.1+dfsg-2
amd64 Python bindings for Qt4
ii qt-at-spi:amd64 0.4.0-8
amd64 at-spi accessibility plugin for Qt
ii qt4-qmake 4:4.8.7+dfsg-7ubuntu1
amd64 Qt 4 qmake Makefile generator tool
ii qt5-gtk-platformtheme:amd64 5.9.5+dfsg-0ubuntu1
amd64 Qt 5 GTK+ 3 platform theme
ii qtchooser 64-ga1b6736-5
amd64 Wrapper to select between Qt development
binary versions
ii qtcore4-l10n 4:4.8.7+dfsg-7ubuntu1
all Qt 4 core module translations
ii qttranslations5-l10n 5.9.5-0ubuntu1
all translations for Qt 5
On Wed, Jan 30, 2019 at 2:12 PM Barth Netterfield <
barth.netterfield at gmail.com> wrote:
> It looks like the INSTALL scripts could use some updating, and build-kst
> needs to be removed, as qmake is no longer supported.
>
> I normally build from qtcreator, but to try building by hand, I just did
> the following:
>
> from a directory parallel to the kst source directory:
>
> cmake ../kst
> cmake -Dkst_qt5=1 -Dkst_release=1 -Dkst_merge_files=1 ../kst
> make -j 4
> ./build/bin/kst2
>
> Horray! kst runs.
>
> cbn
>
>
> On 2019-01-29 2:44 p.m., Steve Maher wrote:
>
> Hi all,
>
> I'm looking for a kind soul to guide me with building kst.
>
> I was having issues with a pyKst thingy and decided to (once again) try to
> build kst and understand/fix my own issue instead of posting for help.
>
> This is the third time in about 3 years I've attempted to build and have
> yet to succeed.
>
> I'll try and make this concise ... to attract a nibble =)
>
>
> - I'm assuming Linux is the smoothest process, so I'm on Ubuntu
> 18.04.1 and using the github tip (commit 741973 right now).
> - I've tried following both INSTALL and INSTALL.qmake (I'm not sure
> which one to follow). Both have failed. For this email, assume
> INSTALL.qmake.
> - I've installed QT5 (open source, set QTDIR to /opt/Qt), pkg-config,
> gsl-bin and generator scripting language (don't know which one kst needs -
> but it is still complaining!)
> - Because of the gsl complaint, I've DISABLED (set to 0) DISABLE_GSL,
> CFITSIO, and DIRFILE in config.pri
> - cmake --version returns 3.10.2
>
>
> output of ./build-kst
>
> mce at ubuntu18:~/git/kst$ ./build-kst
> Building Kst from /home/mce/git/kst into /home/mce/git/kst/build
> Building in Debug mode
> Reading /home/mce/git/kst/src/libkst/libkst.pro
> [/home/mce/git/kst/build/src/libkst]
> WARNING: Failure to find: builtindatasources.cpp
> WARNING: Failure to find: datasourcepluginfactory.cpp
> WARNING: Failure to find: builtindatasources.h
>
> [snip]
>
> cd src/libkst/ && make -f Makefile
> make[1]: Entering directory '/home/mce/git/kst/build/src/libkst'
> make[1]: *** No rule to make target 'builtindatasources.cpp', needed by
> 'tmp/builtindatasources.o'. Stop.
> make[1]: Leaving directory '/home/mce/git/kst/build/src/libkst'
> Makefile:48: recipe for target 'sub-src-libkst-make_default-ordered' failed
> make: *** [sub-src-libkst-make_default-ordered] Error 2
>
>
>
> The files are in the tree
>
> mce at ubuntu18:~/git/kst$ find | grep builtind
> ./src/libkstapp/builtindatasources.cpp
> ./src/libkstapp/builtindatasources.h
>
>
> I don't know enough cmake at this point to debug. Any tips would be
> GREATLY appreciated!
>
> Steve
>
> --
> C. Barth Netterfield
> 416-845-0946
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kst/attachments/20190130/28dd22ba/attachment-0001.html>
More information about the Kst
mailing list