fzi-forschungszentrum-informatik / vdb_mapping

Performantes 3D Kartierungs-Framework auf Basis von OpenVDB
Apache License 2.0
41 stars 10 forks source link

cmake failed on ubuntu 22.04 #5

Closed changyuan79 closed 11 months ago

changyuan79 commented 1 year ago

I cloned the git repo and tried to build it on ubuntu 22.04. The cmake log said that Could not find mpi (missing: MPI_FOUND_C) Reason given by package: mpi component 'c' was requested, but language c is not enabled.

It was because the project languages in CMakeLists.txt only contained "C++", but not "C". Once I changed it to: project(vdb_mapping CXX C) cmake could build successfully. Could you please add "C" to CMakeLists.txt? Thank you!

lucasw commented 1 year ago

I made this branch with that change: https://github.com/lucasw/vdb_mapping/tree/ubuntu_2304 (I'm using 23.04)

But it still doesn't build, it wants -lHalf and I'm not seeing that in 23.04- there's libghc-half-dev - half-precision floating-point but it doesn't have a libHalf.so in it.

If I comment out the target_link_libraries -lHalf:

/usr/bin/ld: CMakeFiles/mapping_tests.dir/mapping.cpp.o: undefined reference to symbol 'imath_half_to_float_table'
/usr/bin/ld: /lib/x86_64-linux-gnu/libImath-3_1.so.29: error adding symbols: DSO missing from command line
lucasw commented 1 year ago

Now it builds in 23.04 with -lImath instead of -lHalf

MGBla commented 1 year ago

Hey Lucas, Thanks for the fix. I will have a look at it tomorrow when I'm back at my laptop. Have already set up a container with 23.04 and will test around with compabilities to older OS.

MGBla commented 11 months ago

Closed by #6