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 error on branch WUT #24

Open
klpanagi opened this issue Jan 13, 2017 · 2 comments
Open

Build error on branch WUT #24

klpanagi opened this issue Jan 13, 2017 · 2 comments

Comments

@klpanagi
Copy link
Contributor

Hi @maciek-slon and @dudekw,

following rapp-project/rapp-robot-nao#15 (comment), i get a build error on branch wut (missing namespaces)

The produced error is:

/home/nao/ws_rapp_api/src/rapp-robots-api/cpp/implementations/localization.cpp:81:16: error: prototype for 'const void rapp::robot::localization::euler_from_quaternion(const rapp::object::quaternion&, std::array<float, 3u>&)' does not match any in class 'rapp::robot::localization'
     const void localization::euler_from_quaternion(const rapp::object::quaternion &rapp_quaternion, std::array<float,3> &euler){
                ^
In file included from /home/nao/ws_rapp_api/src/rapp-robots-api/cpp/implementations/localization.cpp:3:0:
/home/nao/ws_rapp_api/install/include/rapp-robots-api/localization/localization.hpp:54:24: error: candidate is: std::vector<float> rapp::robot::localization::euler_from_quaternion(rapp::object::quaternion&)
     std::vector<float> euler_from_quaternion(rapp::object::quaternion &rapp_quaternion);
                        ^
make[2]: *** [cpp/implementations/CMakeFiles/rapp_robot_localization.dir/localization.cpp.o] Error 1
make[1]: *** [cpp/implementations/CMakeFiles/rapp_robot_localization.dir/all] Error 2
make: *** [all] Error 2
[ 20%] Built target rapp_robot_communication
[ 40%] Built target rapp_robot_info
[ 60%] Building CXX object cpp/implementations/CMakeFiles/rapp_robot_localization.dir/localization.cpp.o
/home/nao/ws_rapp_api/src/rapp-robots-api/cpp/implementations/localization.cpp:81:16: error: prototype for 'const void rapp::robot::localization::euler_from_quaternion(const rapp::object::quaternion&, std::array<float, 3u>&)' does not match any in class 'rapp::robot::localization'
     const void localization::euler_from_quaternion(const rapp::object::quaternion &rapp_quaternion, std::array<float,3> &euler){
                ^
In file included from /home/nao/ws_rapp_api/src/rapp-robots-api/cpp/implementations/localization.cpp:3:0:
/home/nao/ws_rapp_api/install/include/rapp-robots-api/localization/localization.hpp:54:24: error: candidate is: std::vector<float> rapp::robot::localization::euler_from_quaternion(rapp::object::quaternion&)
     std::vector<float> euler_from_quaternion(rapp::object::quaternion &rapp_quaternion);
                        ^
make[2]: *** [cpp/implementations/CMakeFiles/rapp_robot_localization.dir/localization.cpp.o] Error 1
make[1]: *** [cpp/implementations/CMakeFiles/rapp_robot_localization.dir/all] Error 2
make: *** [all] Error 2

Can you provide a fix for this?

@dudekw
Copy link
Contributor

dudekw commented Jan 13, 2017

Did you remove the build and install folder of the ~/ws_rapp_api workspace before pulling the wut branch and compiling the rapp-robots-api repository ?

@klpanagi
Copy link
Contributor Author

klpanagi commented Jan 14, 2017

Thank you @dudekw that worked!

It would be nice to have the vm_compile_rapp_api.sh script handle this.

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

No branches or pull requests

3 participants