본문 바로가기

IT기술(코딩)/ros29

ros2 error LNK2001: "public: virtual struct QMetaObject const * __cdecl solve. edit cmakelists. Hi I'm CreateMaker Inc. We faced error working to make ROS2 Programming. error LNK2001: "public: virtual struct QMetaObject const * __cdecl... For use UI (Qt5) at cpp. we need to use command QMetaObject::connectSlotsByName() this. When we use this we faced error like that. So we edit Cmakelists. first. set(UI_FILES ui/maingui.ui) set(${PROJECT_NAME}_HDRS include/${PROJECT_NAME}/station_gui.h inc.. 2024. 2. 13.
4일차 foxy create_subcription error LNK2019: "struct rosidl_service_type_support_t const * __cdecl rosidl_typesupport_cpp::get_service_type_support_handle 해당 링크에러 때문에 4일동안 진도를 못나가고 있다. 구글의 모든 ros2문서 부터 여러 경험담을 다 읽고 시도해 보았지만 다 실패. m_tSub_setRCCmdUSV = create_subscription("cmd_rc", 10, std::bind(&cStation_Bridge::tCallback_RCCmd, this, std::placeholders::_1)); // // update_para m_sSer_setParaUSV = create_service("para_usv", std::bind(&cStation_Bridge::sCallback_ParaUSV, this, std::placeholders::_1, std::placeholders::_2)); // // download_wpts m_sSer.. 2024. 2. 6.
ros2 create_ error 해결책좀요.. 답답합니다. tation_bridge.obj : error LNK2019: "struct rosidl_message_type_support_t const * __cdecl rosidl_typesupport_cpp::get_message_type_support_handle(void)" (??$get_message_type_support_handle@U?$CmdRc_@V?$allocator@X@std@@@msg@station_bridge23@@@rosidl_typesupport_cpp@@YAPEBUrosidl_message_type_support_t@@XZ) 외부 기호(참조 위치: "private: virtual class std::shared_ptr __cdecl std::_Func_impl_no_alloc::_Do_.. 2024. 2. 5.
모든파일이 있어도 발생하는 ros2 msg, srv에러 윈도우window버전에서는 ros2 에서 winsock2.h 가 없어서 소켓관련 기능이 동작하지 않는다. station_bridge.obj : error LNK2019: "struct rosidl_message_type_support_t const * __cdecl rosidl_typesupport_cpp::get_message_type_support_handle(void)" (??$get_message_type_support_handle@U?$CmdRc_@V?$allocator@X@std@@@msg@station_bridge23@@@rosidl_typesupport_cpp@@YAPEBUrosidl_message_type_support_t@@XZ) 외부 기호(참조 위치: "private: virtual class std::shared_ptr __cdecl std::_Func_impl_no_alloc::_Do.. 2024. 2. 5.