You are not logged in.

#1 2020-09-02 07:30:17

ibrokemypie
Member
Registered: 2016-06-27
Posts: 9

[SOLVED] CMake Error Imported target "Boost::system"

When building some packages that use cmake and include boost, such as musikcube or yuzu, they fail to build mentioning the eror below numerous times. This occurs both through makepkg and when attempting to build from source manually. The whole system is up to date, including cmake and boost, and the same packages succeed to build on another up to date arch system, so the issue must be configuration somehow but I have no idea where to look

The errors all look similar to this:

CMake Error in src/core/CMakeLists.txt:
  Imported target "Boost::system" includes non-existent path

    "/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

Here is the full output of trying to build musikcube from source, following the instructions here
https://hastebin.com/gatogeriwe.rb

Help would be greatly appreciated!

Last edited by ibrokemypie (2020-09-02 08:30:31)

Offline

#2 2020-09-02 08:24:35

loqs
Member
Registered: 2014-03-06
Posts: 11,563

Re: [SOLVED] CMake Error Imported target "Boost::system"

What is the output of

pacman -Qikk boost boost-libs

Online

#3 2020-09-02 08:29:03

ibrokemypie
Member
Registered: 2016-06-27
Posts: 9

Re: [SOLVED] CMake Error Imported target "Boost::system"

I seem to have worked it out! It turns out my login manager (ly) overrides the path variable? Comparing my path locally to path on a system that worked it was totally different, and I discovered it was being set in /etc/ly/config.ini to

path = /sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin

Changing this to

path = /usr/local/sbin:/usr/local/bin:/usr/bin

, the path that was on the working machine, and then rebooting, totally solved the issue!

Offline

#4 2020-09-02 08:29:41

ibrokemypie
Member
Registered: 2016-06-27
Posts: 9

Re: [SOLVED] CMake Error Imported target "Boost::system"

loqs wrote:

What is the output of

pacman -Qikk boost boost-libs

I solved the issue but heres the output anyway!

  pacman -Qikk boost boost-libs
Name            : boost
Version         : 1.72.0-2
Description     : Free peer-reviewed portable C++ source libraries - development headers
Architecture    : x86_64
URL             : https://www.boost.org/
Licenses        : custom
Groups          : None
Provides        : None
Depends On      : boost-libs=1.72.0
Optional Deps   : python: for python bindings [installed]
                  python2: for python2 bindings [installed]
Required By     : lgogdownloader  musikcube-git
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 175.72 MiB
Packager        : Evangelos Foutras <evangelos@foutrelis.com>
Build Date      : Mon 27 Apr 2020 18:06:59
Install Date    : Fri 07 Aug 2020 15:00:24
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

boost: 15599 total files, 0 altered files
Name            : boost-libs
Version         : 1.72.0-2
Description     : Free peer-reviewed portable C++ source libraries - runtime libraries
Architecture    : x86_64
URL             : https://www.boost.org/
Licenses        : custom
Groups          : None
Provides        : libboost_atomic.so=1.72.0-64  libboost_chrono.so=1.72.0-64  libboost_container.so=1.72.0-64  libboost_context.so=1.72.0-64  libboost_contract.so=1.72.0-64  libboost_coroutine.so=1.72.0-64
                  libboost_date_time.so=1.72.0-64  libboost_fiber.so=1.72.0-64  libboost_filesystem.so=1.72.0-64  libboost_graph.so=1.72.0-64  libboost_graph_parallel.so=1.72.0-64  libboost_iostreams.so=1.72.0-64
                  libboost_locale.so=1.72.0-64  libboost_log.so=1.72.0-64  libboost_log_setup.so=1.72.0-64  libboost_math_c99.so=1.72.0-64  libboost_math_c99f.so=1.72.0-64  libboost_math_c99l.so=1.72.0-64
                  libboost_math_tr1.so=1.72.0-64  libboost_math_tr1f.so=1.72.0-64  libboost_math_tr1l.so=1.72.0-64  libboost_mpi.so=1.72.0-64  libboost_numpy27.so=1.72.0-64  libboost_numpy38.so=1.72.0-64
                  libboost_prg_exec_monitor.so=1.72.0-64  libboost_program_options.so=1.72.0-64  libboost_python27.so=1.72.0-64  libboost_python38.so=1.72.0-64  libboost_random.so=1.72.0-64
                  libboost_regex.so=1.72.0-64  libboost_serialization.so=1.72.0-64  libboost_stacktrace_addr2line.so=1.72.0-64  libboost_stacktrace_basic.so=1.72.0-64  libboost_stacktrace_noop.so=1.72.0-64
                  libboost_system.so=1.72.0-64  libboost_thread.so=1.72.0-64  libboost_timer.so=1.72.0-64  libboost_type_erasure.so=1.72.0-64  libboost_unit_test_framework.so=1.72.0-64  libboost_wave.so=1.72.0-64
                  libboost_wserialization.so=1.72.0-64
Depends On      : bzip2  zlib  icu  zstd
Optional Deps   : openmpi: for mpi support [installed]
Required By     : adriconf  assimp  boost  ceph-libs  krita  libtorrent-rasterbar  monero  monero-gui  mupen64plus  pamixer  pulseeffects
Optional For    : openexr
Conflicts With  : None
Replaces        : None
Installed Size  : 10.52 MiB
Packager        : Evangelos Foutras <evangelos@foutrelis.com>
Build Date      : Mon 27 Apr 2020 18:06:59
Install Date    : Fri 07 Aug 2020 14:57:48
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

boost-libs: 179 total files, 0 altered files

Offline

#5 Today 10:27:11

KatsukiMizutani
Member
Registered: 2017-02-12
Posts: 2

Re: [SOLVED] CMake Error Imported target "Boost::system"

ibrokemypie wrote:

I seem to have worked it out! It turns out my login manager (ly) overrides the path variable? Comparing my path locally to path on a system that worked it was totally different, and I discovered it was being set in /etc/ly/config.ini to

path = /sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin

Changing this to

path = /usr/local/sbin:/usr/local/bin:/usr/bin

, the path that was on the working machine, and then rebooting, totally solved the issue!

I have the same problem, I am using ly too. This worked for me. Thank you. big_smile

Offline

Board footer

Powered by FluxBB