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

fly_qgc_mission error loading shared libraries: libjson11.so #381

Closed
hamishwillee opened this issue May 3, 2018 · 3 comments
Closed

fly_qgc_mission error loading shared libraries: libjson11.so #381

hamishwillee opened this issue May 3, 2018 · 3 comments
Assignees
Labels

Comments

@hamishwillee
Copy link
Collaborator

/DroneCore/example/fly_qgc_mission/build$ ./fly_qgc_mission 
./fly_qgc_mission: error while loading shared libraries: libjson11.so: cannot open shared object file: No such file or directory
``
@julianoes julianoes added the bug label May 3, 2018
@julianoes
Copy link
Collaborator

Thx @hamishwillee

@julianoes julianoes self-assigned this May 16, 2018
@julianoes
Copy link
Collaborator

@hamishwillee I just tried this and it works for me on Fedora 28 after I do this:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
sudo ldconfig

@julianoes
Copy link
Collaborator

But building this example on macOS fails:

make
Scanning dependencies of target fly_qgc_mission
[ 50%] Building CXX object CMakeFiles/fly_qgc_mission.dir/fly_qgc_mission.cpp.o
[100%] Linking CXX executable fly_qgc_mission
Undefined symbols for architecture x86_64:
  "json11::Json::parse(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, json11::JsonParse)", referenced from:
      dronecore::MissionImpl::import_qgroundcontrol_mission(std::__1::vector<std::__1::shared_ptr<dronecore::MissionItem>, std::__1::allocator<std::__1::shared_ptr<dronecore::MissionItem> > >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in libdronecore_mission.a(mission_impl.cpp.o)
  "json11::Json::array_items() const", referenced from:
      dronecore::MissionImpl::import_mission_items(std::__1::vector<std::__1::shared_ptr<dronecore::MissionItem>, std::__1::allocator<std::__1::shared_ptr<dronecore::MissionItem> > >&, json11::Json const&) in libdronecore_mission.a(mission_impl.cpp.o)
  "json11::Json::number_value() const", referenced from:
      dronecore::MissionImpl::import_mission_items(std::__1::vector<std::__1::shared_ptr<dronecore::MissionItem>, std::__1::allocator<std::__1::shared_ptr<dronecore::MissionItem> > >&, json11::Json const&) in libdronecore_mission.a(mission_impl.cpp.o)
  "json11::Json::int_value() const", referenced from:
      dronecore::MissionImpl::import_mission_items(std::__1::vector<std::__1::shared_ptr<dronecore::MissionItem>, std::__1::allocator<std::__1::shared_ptr<dronecore::MissionItem> > >&, json11::Json const&) in libdronecore_mission.a(mission_impl.cpp.o)
  "json11::Json::operator[](std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const", referenced from:
      dronecore::MissionImpl::import_mission_items(std::__1::vector<std::__1::shared_ptr<dronecore::MissionItem>, std::__1::allocator<std::__1::shared_ptr<dronecore::MissionItem> > >&, json11::Json const&) in libdronecore_mission.a(mission_impl.cpp.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [fly_qgc_mission] Error 1
make[1]: *** [CMakeFiles/fly_qgc_mission.dir/all] Error 2
make: *** [all] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants