|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
Building from source file in OpenBSD
Hello I am a bit confused on how to build applications from source files.
as example I am trying to build Kvantum https://github.com/tsujan/Kvantum/bl....md#with-cmake and I am getting : Code:
$cd build/ $ cmake ../ CMake Error at style/CMakeLists.txt:4 (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" (requested version 5.9.0) 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. -- Configuring incomplete, errors occurred! See also "/home/admin/OWEN/Kvantum/Kvantum/build/CMakeFiles/CMakeOutput.log". I am asking in general because the sources build systems, what ever they may be, are looking in the wrong places, not for openbsd. How should I force them to look at the openbsd directory convention? thanks Last edited by jamesbal0; 14th June 2020 at 10:47 AM. |
|
||||
Try installing x11/qt5/qtbase, that supplies lib/qt5/cmake/Qt5Core/Qt5CoreConfig.cmake
__________________
Are you infected with Wetiko? |
|
||||
Hah! Your way might be expedient for this one hurdle, but mine ensures all dependencies are installed and all environment variables are set correctly to configure and build. I look for a similar application in the ports tree, copy it to /usr/ports/mystuff/.../..., and edit the Makefile.
|
|
||||
^ Yes, your way does look better
__________________
Are you infected with Wetiko? |
|
||||
Long term, it's certainly easier, because I don't need to remember any of the "gotcha" issues. For example, the devel/cmake module noted above does all of this for me:
Code:
devel/cmake Adds devel/cmake to BUILD_DEPENDS and fills up CONFIGURE_ARGS, CONFIGURE_ENV and MAKE_ENV. Sets up configure target. If CONFIGURE_STYLE was not set before, sets its value to `cmake'. Changes default value of SEPARATE_BUILD to `Yes' because modern CMake requires out- of-source build anyway. Changes TEST_TARGET to `test' as this is standard for CMake projects. Also this module has the following knobs: MODCMAKE_WANTCOLOR If set to `Yes', CMake will colorize its output. Should not be used in ports Makefiles. Default value is `No'. MODCMAKE_VERBOSE If set to `Yes', CMake will print details during configure and build stages about exact command being run, etc. Should not be used in ports Makefiles. Default value is `Yes'. MODCMAKE_DEBUG If set to `Yes', CMake will produce a debug build instead of a release build. The exact effects on the build process depend on settings specified in the CMake config files. Default value is `No'. Also, ‘nojunk’ is added to DPB_PROPERTIES because CMake's include files parser cheats too much. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Building from source | mafkees1233 | OpenBSD General | 12 | 10th May 2019 09:49 PM |
Building the System from Source | hanzer | OpenBSD Installation and Upgrading | 10 | 28th October 2018 09:12 PM |
Building a 10.2 system from source | hanzer | FreeBSD Installation and Upgrading | 1 | 1st September 2015 01:36 AM |
Building OpenBSD userland from source | bceverly | OpenBSD General | 6 | 6th April 2015 07:26 PM |
*** Error code 1 building OpenBSD 5.1-stable from source | comet--berkeley | OpenBSD Installation and Upgrading | 12 | 19th May 2012 02:18 AM |