Boost error on osmium install

I’m having trouble installing osmium (pip install osmium), and building the source isn’t any easier.
In part, I get the following error :

/cygdrive/e/PATH_DIR/boost_1_72_0/boost/config.hpp:22:29: fatal error: config/user.hpp: No such file or directory
22 | # define BOOST_USER_CONFIG <config/user.hpp>
| ^
compilation terminated.

The config,hpp file is there, but I don’t understand where the 22:29 came from.
What would cause this error? Do I need a different version of Boost?

1 Like

In part, I get the following error :

/cygdrive/e/PATH_DIR/boost_1_72_0/boost/config.hpp:22:29: fatal error: config/user.hpp: No such file or directory
22 | # define BOOST_USER_CONFIG <config/user.hpp>
> ^
compilation terminated.
The config,hpp file is there,

The failure pertains to the absence of file: config/user.hpp, rather.
Check if you have that file too.

but I don’t understand where the 22:29 came from.

What tries to use the above-mentioned file is the define directive found at
line number 22 of the file config.hpp at column 29.

This is where 22:29 comes from.

What would cause this error? Do I need a different version of Boost?

I’d reinstall Boost so that all files are found where needed.

1 Like

Hi Marco
The file ‘user.hpp’ is indeed in the boost\config directory.
Boost has been installed correctly, and worked for many builds. Why do you think a reinstall would make a difference to files being found?

1 Like

If the file is there and the error says:

fatal error: config/user.hpp: No such file or directory

it makes me think there might be other issues regarding file access at play.

For example: file permissions?

I suggested a library reinstallation as it would likely refresh those as well, if you uninstalled and reinstalled.

1 Like

I’m not certain, but perhaps the problem is with the version of BOOST. I installed Boost 1.75 set the path, and tried to build libosmium from the cmake file using Visual Studio, and got this > error :

Error CMake Error at E:\libosmium\libosmium\CMakeLists.txt:162 (message):
PLEASE, specify the directory where the Boost library is installed in BOOST_ROOT
libosmium E:\libosmium\libosmium\CMakeLists.txt 162

Checking the CMakeLists, there is this code :

find_package(Boost 1.38)
mark_as_advanced(CLEAR BOOST_ROOT)

if(Boost_FOUND)
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
else()
set(BOOST_ROOT “NOT FOUND: please choose” CACHE PATH “”)
message(FATAL_ERROR “PLEASE, specify the directory where the Boost library is installed in BOOST_ROOT”)
endif()

So it would seem, boost version is specific to the osmium version. I believe this is an older version of libosmium, I am trying, but perhaps the one I was trying to install was not happy with the version of boost it found.

I’ll download boost 1.38 (if it’s available) and see if that’s really the issue.

That solved nothing. :frowning: