gaussian-splatting
gaussian-splatting copied to clipboard
Cannot not compile SIBR in Ubuntu (/usr/bin/ld: cannot find ... No such file or directory)
Hi! Thanks for your great work. But I got some issue when compile SIBR like the image below
In folder "extlibs", I download zip of each submodel and then build individual instead of clone and built based on dependencies.cmake file (I did it because my server has proxy blocking for gitlab)
After I build each submodel, then I build cmake for SIBR but it get error
/usr/bin/ld: cannot find -lglfw3: No such file or directory
collect2: error: ld returned 1 exit status
gmake[2]: *** [src/core/graphics/CMakeFiles/sibr_graphics.dir/build.make:410: src/core/graphics/libsibr_graphics.so] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:717: src/core/graphics/CMakeFiles/sibr_graphics.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2
The content of modified CMakeLists.txt (I add some lib because I build each submodel individual):
"""--------------------------------------------------------------------------------------------------------------""" project(sibr_system)
file(GLOB SOURCES ".cpp" ".h" "*.hpp") source_group("Source Files" FILES ${SOURCES})
add_library(${PROJECT_NAME} SHARED ${SOURCES})
include_directories( ${Boost_INCLUDE_DIRS} ${picojson_INCLUDE_DIRS} ${rapidxml_INCLUDE_DIRS} /home/vinai/Workspace/phat-intern-dev/VinAI/hierarchical-3d-gaussians/SIBR_viewers/extlibs/imgui/examples/libs/glfw/include )
add_subdirectory(${CMAKE_SOURCE_DIR}/extlibs/rapidxml ${CMAKE_BINARY_DIR}/extlibs/rapidxml) add_subdirectory(${CMAKE_SOURCE_DIR}/extlibs/nativefiledialog ${CMAKE_BINARY_DIR}/extlibs/nativefiledialog) add_subdirectory(${CMAKE_SOURCE_DIR}/extlibs/picojson ${CMAKE_BINARY_DIR}/extlibs/picojson) add_subdirectory(${CMAKE_SOURCE_DIR}/extlibs/imgui ${CMAKE_BINARY_DIR}/extlibs/imgui)
link_directories(/home/vinai/Workspace/phat-intern-dev/VinAI/hierarchical-3d-gaussians/SIBR_viewers/extlibs/imgui/examples/libs/glfw/lib-vc2010-64) (I add GLFW)
if (WIN32) target_link_libraries(${PROJECT_NAME} ${Boost_LIBRARIES} picojson clrapidxml nfd glfw (added) ) else() target_link_libraries(${PROJECT_NAME} ${Boost_LIBRARIES} picojson rapidxml nativefiledialog glfw (added) ) endif()
add_definitions( -DSIBR_SYSTEM_EXPORTS -DBOOST_ALL_DYN_LINK )
set_target_properties(${PROJECT_NAME} PROPERTIES FOLDER ${SIBR_FOLDER})
High level macro to install in an homogen way all our ibr targets
include(install_runtime)
ibr_install_target(${PROJECT_NAME}
INSTALL_PDB ## mean install also MSVC IDE *.pdb file (DEST according to target type)
)
"""--------------------------------------------------------------------------------------------------------------"""
The structure of glfw library in "imgui" folder:
Can you help me how to adding correctly "GLFW" for this problem ? Thanks for your help