MW-AHRSv2U 컴파일 문제 > Module_Forum

본문 바로가기
사이트 내 전체검색

Module_Forum

MW-AHRSv2U 컴파일 문제

페이지 정보

profile_image
작성자 jstar0525
댓글 1건 조회 2,225회 작성일 23-08-28 19:05

본문

구매한 Sensor: MW-AHRSv2U

사용 환경: ROS melodic (Ubuntu 18.04)

개발 언어: c++ or python

위 환경으로 아래 링크의 환경을 catkin_make하면
아래와 같은 애러가 나옵니다.
해결 방법이 있을까요??

https://github.com/ntrexlab/STELLA_N1_N2_X4_ROS1_v2.0




/root/test_ws/src/STELLA_N1_N2_X4_ROS1_v2.0/stella/stella_ahrs/src/listener.cpp: In function ‘int main(int, char**)’:
/root/test_ws/src/STELLA_N1_N2_X4_ROS1_v2.0/stella/stella_ahrs/src/listener.cpp:223:49: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
    MW_AHRS_Serial_Connect("/dev/AHRS", 115200,3);
                                                ^
/root/test_ws/src/STELLA_N1_N2_X4_ROS1_v2.0/stella/stella_md/src/main.cpp: In function ‘int main(int, char**)’:
/root/test_ws/src/STELLA_N1_N2_X4_ROS1_v2.0/stella/stella_md/src/main.cpp:154:38: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  MW_Serial_Connect("/dev/MW", 115200);
                                      ^
[ 95%] Linking CXX executable /root/test_ws/devel/lib/stella_ahrs/stella_ahrs_node
/usr/bin/ld: /root/test_ws/src/STELLA_N1_N2_X4_ROS1_v2.0/stella/stella_ahrs/lib/MW_AHRS_aarch64.a(MW_serial.o): Relocations in generic ELF (EM: 183)
/usr/bin/ld: /root/test_ws/src/STELLA_N1_N2_X4_ROS1_v2.0/stella/stella_ahrs/lib/MW_AHRS_aarch64.a(MW_serial.o): Relocations in generic ELF (EM: 183)
/usr/bin/ld: /root/test_ws/src/STELLA_N1_N2_X4_ROS1_v2.0/stella/stella_ahrs/lib/MW_AHRS_aarch64.a(MW_serial.o): Relocations in generic ELF (EM: 183)
/usr/bin/ld: /root/test_ws/src/STELLA_N1_N2_X4_ROS1_v2.0/stella/stella_ahrs/lib/MW_AHRS_aarch64.a(MW_serial.o): Relocations in generic ELF (EM: 183)
/usr/bin/ld: /root/test_ws/src/STELLA_N1_N2_X4_ROS1_v2.0/stella/stella_ahrs/lib/MW_AHRS_aarch64.a(MW_serial.o): Relocations in generic ELF (EM: 183)
/usr/bin/ld: /root/test_ws/src/STELLA_N1_N2_X4_ROS1_v2.0/stella/stella_ahrs/lib/MW_AHRS_aarch64.a(MW_serial.o): Relocations in generic ELF (EM: 183)
/usr/bin/ld: /root/test_ws/src/STELLA_N1_N2_X4_ROS1_v2.0/stella/stella_ahrs/lib/MW_AHRS_aarch64.a(MW_serial.o): Relocations in generic ELF (EM: 183)
/usr/bin/ld: /root/test_ws/src/STELLA_N1_N2_X4_ROS1_v2.0/stella/stella_ahrs/lib/MW_AHRS_aarch64.a(MW_serial.o): Relocations in generic ELF (EM: 183)
/usr/bin/ld: /root/test_ws/src/STELLA_N1_N2_X4_ROS1_v2.0/stella/stella_ahrs/lib/MW_AHRS_aarch64.a(MW_serial.o): Relocations in generic ELF (EM: 183)
/root/test_ws/src/STELLA_N1_N2_X4_ROS1_v2.0/stella/stella_ahrs/lib/MW_AHRS_aarch64.a: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
STELLA_N1_N2_X4_ROS1_v2.0/stella/stella_ahrs/CMakeFiles/stella_ahrs_node.dir/build.make:196: recipe for target '/root/test_ws/devel/lib/stella_ahrs/stella_ahrs_node' failed
make[2]: *** [/root/test_ws/devel/lib/stella_ahrs/stella_ahrs_node] Error 1
CMakeFiles/Makefile2:1081: recipe for target 'STELLA_N1_N2_X4_ROS1_v2.0/stella/stella_ahrs/CMakeFiles/stella_ahrs_node.dir/all' failed
make[1]: *** [STELLA_N1_N2_X4_ROS1_v2.0/stella/stella_ahrs/CMakeFiles/stella_ahrs_node.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[100%] Linking CXX executable /root/test_ws/devel/lib/stella_md/stella_md_node
/usr/bin/ld: /root/test_ws/src/STELLA_N1_N2_X4_ROS1_v2.0/stella/stella_md/lib/MW_MotorDriver_aarch64.a(MW_value.o): Relocations in generic ELF (EM: 183)
/usr/bin/ld: /root/test_ws/src/STELLA_N1_N2_X4_ROS1_v2.0/stella/stella_md/lib/MW_MotorDriver_aarch64.a(MW_value.o): Relocations in generic ELF (EM: 183)
/usr/bin/ld: /root/test_ws/src/STELLA_N1_N2_X4_ROS1_v2.0/stella/stella_md/lib/MW_MotorDriver_aarch64.a(MW_value.o): Relocations in generic ELF (EM: 183)
/root/test_ws/src/STELLA_N1_N2_X4_ROS1_v2.0/stella/stella_md/lib/MW_MotorDriver_aarch64.a: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
STELLA_N1_N2_X4_ROS1_v2.0/stella/stella_md/CMakeFiles/stella_md_node.dir/build.make:246: recipe for target '/root/test_ws/devel/lib/stella_md/stella_md_node' failed
make[2]: *** [/root/test_ws/devel/lib/stella_md/stella_md_node] Error 1
CMakeFiles/Makefile2:3070: recipe for target 'STELLA_N1_N2_X4_ROS1_v2.0/stella/stella_md/CMakeFiles/stella_md_node.dir/all' failed
make[1]: *** [STELLA_N1_N2_X4_ROS1_v2.0/stella/stella_md/CMakeFiles/stella_md_node.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j12 -l12" failed

댓글목록

profile_image

최고관리자님의 댓글

최고관리자 작성일

안녕하세요.
아이디어 로봇입니다.
우선 현재 Ahrs를 사용하시는 환경에 맞춰
stella_ahrs안에 lib 파일을 변경하셔야 됩니다.
아래의 url을 참고하셔서 사용하시면 됩니다.

https://github.com/ntrexlab/2th_NtrexAHRS_lib_ROS

감사합니다.

회원로그인

회원가입