Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having build issues when trying to build from source #7015

Open
sahussain5599 opened this issue Aug 12, 2024 · 3 comments
Open

Having build issues when trying to build from source #7015

sahussain5599 opened this issue Aug 12, 2024 · 3 comments

Comments

@sahussain5599
Copy link

Issue

I am following the following steps to build the OSRM backend from source on my local system:

sudo apt install build-essential git cmake pkg-config
libbz2-dev libxml2-dev libzip-dev libboost-all-dev
lua5.2 liblua5.2-dev libtbb-dev

then,

mkdir -p build
cd build
cmake ..
cmake --build .
sudo cmake --build . --target install

as I run the command cmake --build . I run into the following error. Bare in mind the error is few thousand lines but this is a small snapshot of it

error

This is being run on WSL and all the C++ versions and everything is fine apparently.

I would really appreciate if someone will be able to help me out with this. Cheers!

@woodpeck
Copy link
Contributor

Confirm this happens on a plain Ubuntu 22.04 setup when following "building from source" instructions which claim to target Ubuntu 22.04. If this is no longer true and a different distribution, or a different version of Ubuntu, is now suggested for a clean build, it would be great if the instructions could be modified accordingly.

@woodpeck
Copy link
Contributor

On Ubuntu 24.04, the particular error mentioned above does not occur, but compilation aborts at a later time complaining about out-of-bounds array subscripts. Commenting out the warnings from CMakeLists.txt as described in #6704 (note line numbers are +2 now) then allows building under 24.04.

@somogyirolandhu
Copy link

Hello,
Make sure to check the appropriate repo after cloning.
Use git checkout v5.27.1 after git clone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants