Build error on OSX
jasperges opened this issue · 3 comments
jasperges commented
When running ./setup.py build
I get the following error:
running build
running build_ext
skipping 'rift.cpp' Cython extension (up-to-date)
building 'rift' extension
/usr/bin/clang -Wno-unused-result -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -pipe -O2 -I/usr/local/include/openhmd -I/opt/local/Library/Frameworks/Python.framework/Versions/3.3/include/python3.3m -c rift.cpp -o build/temp.macosx-10.8-x86_64-3.3/rift.o
/usr/bin/clang -Wno-unused-result -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -pipe -O2 -I/usr/local/include/openhmd -I/opt/local/Library/Frameworks/Python.framework/Versions/3.3/include/python3.3m -c Rift.cpp -o build/temp.macosx-10.8-x86_64-3.3/Rift.o
creating build/lib.macosx-10.8-x86_64-3.3
/usr/bin/clang++ -bundle -undefined dynamic_lookup -L/opt/local/lib build/temp.macosx-10.8-x86_64-3.3/rift.o build/temp.macosx-10.8-x86_64-3.3/Rift.o -lopenhmd -o build/lib.macosx-10.8-x86_64-3.3/rift.so
duplicate symbol __ZN4RiftC1Ev in:
build/temp.macosx-10.8-x86_64-3.3/rift.o
build/temp.macosx-10.8-x86_64-3.3/Rift.o
duplicate symbol __ZN4RiftC2Ev in:
build/temp.macosx-10.8-x86_64-3.3/rift.o
build/temp.macosx-10.8-x86_64-3.3/Rift.o
duplicate symbol __ZN4RiftD1Ev in:
build/temp.macosx-10.8-x86_64-3.3/rift.o
build/temp.macosx-10.8-x86_64-3.3/Rift.o
duplicate symbol __ZN4RiftD2Ev in:
build/temp.macosx-10.8-x86_64-3.3/rift.o
build/temp.macosx-10.8-x86_64-3.3/Rift.o
duplicate symbol __ZN4Rift15printDeviceInfoEv in:
build/temp.macosx-10.8-x86_64-3.3/rift.o
build/temp.macosx-10.8-x86_64-3.3/Rift.o
duplicate symbol __ZN4Rift5printESsi16ohmd_float_value in:
build/temp.macosx-10.8-x86_64-3.3/rift.o
build/temp.macosx-10.8-x86_64-3.3/Rift.o
duplicate symbol __ZN4Rift9inputLoopEv in:
build/temp.macosx-10.8-x86_64-3.3/rift.o
build/temp.macosx-10.8-x86_64-3.3/Rift.o
duplicate symbol __ZN4Rift4pollEv in:
build/temp.macosx-10.8-x86_64-3.3/rift.o
build/temp.macosx-10.8-x86_64-3.3/Rift.o
duplicate symbol __ZN4Rift12printSensorsEv in:
build/temp.macosx-10.8-x86_64-3.3/rift.o
build/temp.macosx-10.8-x86_64-3.3/Rift.o
duplicate symbol __ZN4Rift5sleepEd in:
build/temp.macosx-10.8-x86_64-3.3/rift.o
build/temp.macosx-10.8-x86_64-3.3/Rift.o
ld: 10 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/usr/bin/clang++' failed with exit status 1
tjnycum commented
Saw your follow up comment on his blog post. I ran into the same thing. Are you able to turn this into a request to make the filenames case-insensitively unique? Or should we file another issue?
lubosz commented
The error was apparently because of an case sensitive file system. Resolved.