NVlabs / nvblox_torch

nvblox Torch
Other
29 stars 4 forks source link

nvblox installation failure #5

Closed Entongsu closed 8 months ago

Entongsu commented 8 months ago

Hi,

I have tried to install the nvblox by make -j32 but I got the error of

utilities.cc:(.text+0x999): undefined reference to `_Ux86_64_getcontext'
/usr/bin/ld: utilities.cc:(.text+0x9b2): undefined reference to `_ULx86_64_init_local'
/usr/bin/ld: utilities.cc:(.text+0xa1e): undefined reference to `_ULx86_64_get_reg'
/usr/bin/ld: utilities.cc:(.text+0xa7b): undefined reference to `_ULx86_64_step'

Could you give me some hints on how to fix this problem? Thank you.

balakumar-s commented 8 months ago

Can you try with this docker here: https://github.com/NVlabs/curobo/blob/88eac64edca2d2b641c1622e63f3e750157596c4/docker/x86.dockerfile#L108

It would be hard to track down where your error comes from. So if you can try with our docker first and report any errors you have in it, we could find the issue.

Sepirence commented 8 months ago

I solve this problem. It happens that cmake does not find Unwind library. I solved this problem by adding links in cmake file. Change this file.

Add this lines

set(Unwind_INCLUDE_DIR "/usr/include/x86_64-linux-gnu")
set(Unwind_LIBRARY "/usr/lib/x86_64-linux-gnu/libunwind.so")

include_directories(${Unwind_INCLUDE_DIR})
link_directories(${Unwind_LIBRARY})

# When linking against a target:
target_link_libraries(your_target_name ${Unwind_LIBRARY})

You can find your paths with dpkg -L libunwind-dev And if you do not know which target you should link, just add ${Unwind_LIBRARY} to every target_link_libraries()

balakumar-s commented 8 months ago

We haven't tested with the https://github.com/nvidia-isaac/nvblox though it should work. We are using a fork of it here: https://github.com/valtsblukis/nvblox