Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails with BUILD_PLUGIN_EXAMPLE on - error: linker command failed with exit code 1 #1

Open
ghost opened this issue Jan 22, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Jan 22, 2023

[build] [ 95%] Linking CXX executable ../../test_sgTutorial
[build] [ 95%] Built target test_Node
[build] [ 95%] Built target test_sgTutorial
[build] [ 95%] Linking CXX static library ../libospray_ui.a
[build] [ 95%] Built target ospray_ui
[build] [ 95%] Building CXX object app/CMakeFiles/ospStudio.dir/TimeSeriesWindow.cpp.o
[build] [ 96%] Building CXX object app/CMakeFiles/ospStudio.dir/MainWindow.cpp.o
[build] [ 96%] Building CXX object app/CMakeFiles/ospStudio.dir/ospStudio.cpp.o
[build] [ 96%] Building CXX object app/CMakeFiles/ospStudio.dir/Batch.cpp.o
[build] [ 98%] Building CXX object app/CMakeFiles/ospStudio.dir/Benchmark.cpp.o
[build] [100%] Building CXX object app/CMakeFiles/ospStudio.dir/PluginManager.cpp.o
[build] [100%] Building CXX object app/CMakeFiles/ospStudio.dir/AnimationManager.cpp.o
[build] [100%] Linking CXX shared library ../../libospray_studio_plugin_example.dylib
[build] Undefined symbols for architecture x86_64:
[build]   "ospray_studio::fileBrowser(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&)", referenced from:
[build]       ospray::sg::generateWidget_filename(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, ospray::sg::Node&) in PanelExample.cpp.o
[build] ld: symbol(s) not found for architecture x86_64
[build] clang: error: linker command failed with exit code 1 (use -v to see invocation)
[build] make[2]: *** [libospray_studio_plugin_example.dylib] Error 1
[build] make[1]: *** [plugins/example_plugin/CMakeFiles/ospray_studio_plugin_example.dir/all] Error 2
[build] make[1]: *** Waiting for unfinished jobs....
[build] In file included from /Users/jnam/Documents/2022/OSPRayIntegration/ospray_studio/app/MainWindow.cpp:26:
[build] /Users/jnam/Documents/2022/OSPRayIntegration/ospray_studio/sg/../sg/visitors/CollectTransferFunctions.h:24:16: warning: 20 enumeration values not handled in switch: 'GENERIC', 'PARAMETER', 'FRAME'... [-Wswitch]
[build]   switch (node.type()) {
[build]           ~~~~~^~~~~~
[build] /Users/jnam/Documents/2022/OSPRayIntegration/ospray_studio/sg/../sg/visitors/CollectTransferFunctions.h:24:16: note: add missing switch cases
[build]   switch (node.type()) {
[build]                ^
[build] 1 warning generated.
[build] [100%] Linking CXX executable ../ospStudio
[build] [100%] Built target ospStudio
[build] make: *** [all] Error 2
[proc] The command: /Applications/CMake.app/Contents/bin/cmake --build /Users/jnam/Documents/2022/OSPRayIntegration/ospray_studio/build/debug --config Debug --target install -j 18 -- exited with code: 2
[build] Build finished with exit code 2

I was trying to build it with a provided example plugin (so with BUILD_PLUGINS and BUILD_PLUGIN_EXAMPLE turned on).

Version: ospray_studio-0.11.1
macOS Ventura 13.0.1
Apple clang version 14.0.0 (clang-1400.0.29.202)

@ghost ghost added the bug Something isn't working label Jan 22, 2023
ghost pushed a commit that referenced this issue Feb 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

0 participants