OpenSpace / OpenSpace

This is the official GitHub repository for OpenSpace: an open source astrovisualization project. For instructions on how to build and run OpenSpace, see the Getting Started Guides on the wiki page at http://docs.openspaceproject.com.
http://openspaceproject.com
Other
795 stars 123 forks source link

Undefined symbols for architecture x86_64: "std::__1::vector<openspace::scripting::LuaLibrary::Function, std::__1::allocator<openspace::scripting::LuaLibrary::Function> >::~vector()" #477

Closed sophiavanvalkenburg closed 6 years ago

sophiavanvalkenburg commented 6 years ago

Hi, I am trying to build the Release version on MacOS (High Sierra 10.13.1) with Xcode 9.2. Debug version builds successfully. However, with Release version selected, I'm getting the following error:

ld: warning: directory not found for option '-L/Users/Sophia/workspace/OpenSpace/Release'
Undefined symbols for architecture x86_64:
  "std::__1::vector<openspace::scripting::LuaLibrary::Function, std::__1::allocator<openspace::scripting::LuaLibrary::Function> >::~vector()", referenced from:
      openspace::GlobeBrowsingModule::luaLibrary() const in libopenspace-module-globebrowsing.a(globebrowsingmodule.o)
  "std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::operator<<<char, std::__1::char_traits<char>, std::__1::allocator<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
      ghoul::filesystem::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, ghoul::filesystem::Directory const&) in libGhoul.a(directory.o)
      ghoul::filesystem::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, ghoul::filesystem::File const&) in libGhoul.a(file.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

If I mkdir Release in /Users/Sophia/workspace/OpenSpace/ that error goes away but the other errors remain.

alexanderbock commented 6 years ago

I could reproduce your error and will have a look at fixing it. Thanks for bringing it up!

alexanderbock commented 6 years ago

@sophiavanvalkenburg could you try it now if it works for you?

sophiavanvalkenburg commented 6 years ago

@alexanderbock unfortunately it looks like the error is still there. I'm going to follow this issue https://github.com/OpenSpace/OpenSpace/issues/504 since it looks similar.