-
-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
cannot compile v3.4.1 (centos) #2415
Comments
I encountered the same problem |
Hi, can you post all that is output when you do the |
I'll take a stab at replicating. I can spin up a centos vm. |
I assume the above should be boost 1.69, since 3.4.1 requires boost 1.56 or above. I am running with:
the output shows: For compatibility, CMake is ignoring the variable.
All the stuff on Centos 7 is too old to build pgrouting 3.4.1 so had to do the below: the default cmake that comes with centos is 2.8 so had to do below
outputs: cmake3 version 3.17.5
|
As suggested by @cvvergara , replacing add_definitions(-Wsign-conversion -Wfloat-conversion) -> add_definitions(-Wsign-conversion) on https://github.com/pgRouting/pgrouting/blob/v3.4.1/CMakeLists.txt#L317
|
Okay after running:
and removing the size_t z declarations on /src/trsp/trsp.c:185 and 314 the compile finished. but failed on building the .sql The .sql error I think is specific to my setup with missing locale, so I suspect most other users will not run into this issue
|
Okay success. Had to do:
and voila success:
|
Problem
when I build from source, it gives me error
I can successfully build version 3.2.2
[ 0%] Building C object src/circuits/CMakeFiles/circuits.dir/hawickCircuits.c.o
cc: error: unrecognized command line option ‘-Wfloat-conversion’
To Reproduce
make
Platform/versions
The text was updated successfully, but these errors were encountered: