BeamMP / BeamMP-Server

Server for the multiplayer mod BeamMP for BeamNG.drive
https://beammp.com
GNU Affero General Public License v3.0
131 stars 53 forks source link

libboost1.70 updated to 1.71 and now it will not compile. #26

Closed hogcycle closed 3 years ago

hogcycle commented 3 years ago

I installed libboost1.71-dev which is the only one available in apt repositories.

CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake:117 (find_package): Could not find a package configuration file provided by "boost_system" (requested version 1.71.0) with any of the following names: boost_systemConfig.cmake boost_system-config.cmake Add the installation prefix of "boost_system" to CMAKE_PREFIX_PATH or set "boost_system_DIR" to a directory containing one of the above files. If "boost_system" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake:182 (boost_find_component) /usr/share/cmake-3.13/Modules/FindBoost.cmake:264 (find_package) CMakeLists.txt:33 (find_package)

I believe it's looking for 1.70. Any ideas?

Anonymous-275 commented 3 years ago

Hello, no it appears that cmake is infact using 1.71.0 but it cannot find the system packages that you needed to install with it.

hogcycle commented 3 years ago

I have 1.71-dev installed. I installed it to my system using apt. It should look for it in $PATH right?

Anonymous-275 commented 3 years ago

cmake should do that automatically, and it listed all the .cmake files names it tried to find but didn't succeed.

Anonymous-275 commented 3 years ago

what cmake version do you have?

Anonymous-275 commented 3 years ago

on arch i have these two installed image

lionkor commented 3 years ago

@longdas more info needed. Try reinstalling boost and building from a clean repo from the latest release tag.

If you still run into the same issue, please go into the BeamMP-Server folder and post here the output of:

git show

and

lsb_release -a

as well as

cmake --version

Thank you and good luck.

lionkor commented 3 years ago

Closing as no more info was provided by @longdas and it doesn't look like a widespread issue. Reopen when that info is available.

thatguyinoz commented 3 years ago

Hi I am seeing very similar symptoms when trying to install on Ubuntu version 20.04

  $ cmake .
-- not define build type, set to release
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake:117 (find_package):
  Could not find a package configuration file provided by "boost_system"
  (requested version 1.71.0) with any of the following names:

    boost_systemConfig.cmake
    boost_system-config.cmake

  Add the installation prefix of "boost_system" to CMAKE_PREFIX_PATH or set
  "boost_system_DIR" to a directory containing one of the above files.  If
  "boost_system" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake:182 (boost_find_component)
  /usr/share/cmake-3.16/Modules/FindBoost.cmake:443 (find_package)
  CMakeLists.txt:33 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/blaine/BeamMP-Server/CMakeFiles/CMakeOutput.log".
See also "/home/blaine/BeamMP-Server/CMakeFiles/CMakeError.log".

here is the info that was previously requested:

$ git show
commit 1427966d1a87c3f6e7c53206d0160d05ae5ba504 (HEAD -> master, origin/master, origin/HEAD)
Author: Lion Kortlepel <development@kortlepel.com>
Date:   Wed Jun 23 02:08:21 2021 +0200

    private false by default

diff --git a/include/Common.h b/include/Common.h
index ee32b0e..1f40316 100644
--- a/include/Common.h
+++ b/include/Common.h
@@ -23,7 +23,7 @@ public:
             Resource("Resources"),
             MapName("/levels/gridmap/info.json"),
             MaxPlayers(10),
-            Private(true),
+            Private(false),
             MaxCars(1),
             DebugModeEnabled(false),
             Port(30814){}

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.1 LTS
Release:        20.04
Codename:       focal

$ cmake --version
cmake version 3.16.3

boost was installed using

 sudo apt install libboost1.71-dev

I hope this info assists in resolving this issue

thank you

lionkor commented 3 years ago

Hello,

I was able to reproduce and fix this on my Ubuntu 20.04.

Please try installing libboost1.71-all-dev instead of libboost1.71-dev.

lionkor commented 3 years ago

I've updated this in the README now. Can you please verify that this fixes your issue? @thatguyinoz and @longdas

thatguyinoz commented 3 years ago

We also had to install liblua5.3-dev in addition to libboost1.71-all-dev and it then compiled successfully.

Thank you very much for your assistance.

lionkor commented 3 years ago

Glad it was fixed. Enjoy!