FleX icon indicating copy to clipboard operation
FleX copied to clipboard

Fresh build fails on Ubuntu 16.04 due to linker error

Open axdorferbua opened this issue 7 years ago • 3 comments

flexDemoCUDA: compiling debug ./../../../core/voxelize.cpp... build/flexDemoCUDA_debug/main.cpp.o: In function main': /home/user/FleX/demo/compiler/makelinux64/./../../main.cpp:3117: undefined reference to NvFlexDeviceGetSuggestedOrdinal()' /home/user/FleX/demo/compiler/makelinux64/./../../main.cpp:3123: undefined reference to `NvFlexDeviceCreateCudaContext(int)' collect2: error: ld returned 1 exit status Makefile.flexDemoCUDA.mk:160: recipe for target '../../../bin/linux64/NvFlexDemoDebugCUDA_x64' failed make: *** [../../../bin/linux64/NvFlexDemoDebugCUDA_x64] Error 1

axdorferbua avatar Nov 15 '17 13:11 axdorferbua

The build (FleX/demo/compiler/makelinux64 -> make) fails on a newly cloned version of Flex. Any suggestions how to correct the issue?

axdorferbua avatar Nov 15 '17 13:11 axdorferbua

Apologies for this. We are currently in the process of improving our Linux support and will address this in the next 1.2 release.

Cheers, Miles

mmacklin avatar Nov 28 '17 20:11 mmacklin

The same issue is still present in 1.2 the following patch should fix it

--- a/demo/compiler/makelinux64/Makefile.flexDemoCUDA.mk
+++ b/demo/compiler/makelinux64/Makefile.flexDemoCUDA.mk
@@ -43,6 +43,7 @@ flexDemoCUDA_release_libraries += :NvFlexExtReleaseCUDA_x64.a
 flexDemoCUDA_release_libraries += :NvFlexReleaseCUDA_x64.a
 flexDemoCUDA_release_libraries += :NvFlexExtReleaseCUDA_x64.a
 flexDemoCUDA_release_libraries += :libSDL2.a
+flexDemoCUDA_release_libraries += :NvFlexDeviceRelease_x64.a
 flexDemoCUDA_release_libraries += :libSDL2main.a
 flexDemoCUDA_release_common_cflags     := $(flexDemoCUDA_custom_cflags)
 flexDemoCUDA_release_common_cflags    += -MMD
@@ -125,6 +126,7 @@ flexDemoCUDA_debug_libraries += :NvFlexExtDebugCUDA_x64.a
 flexDemoCUDA_debug_libraries += :NvFlexDebugCUDA_x64.a
 flexDemoCUDA_debug_libraries += :NvFlexExtDebugCUDA_x64.a
 flexDemoCUDA_debug_libraries += :libSDL2.a
+flexDemoCUDA_debug_libraries += :NvFlexDeviceDebug_x64.a
 flexDemoCUDA_debug_libraries += :libSDL2main.a
 flexDemoCUDA_debug_common_cflags       := $(flexDemoCUDA_custom_cflags)
 flexDemoCUDA_debug_common_cflags    += -MMD

zyablik avatar Oct 03 '18 14:10 zyablik