static-libraries

Add CUDA to ROS Package

早过忘川 提交于 2020-02-21 13:06:46
问题 I would like to use cuda within a ros package. Has anyone a simple example for me? I tried to built a static library with the cuda function and add this library to my package, but I get always a linking error: Undefined reference cuda... I have built a executable instead of the library and it works. Please help! 回答1: I found a solution myself: CMakeLists.txt: cmake_minimum_required(VERSION 2.8.3) PROJECT (beginner_tutorials) FIND_PACKAGE(CUDA REQUIRED) find_package(catkin REQUIRED COMPONENTS

Add CUDA to ROS Package

那年仲夏 提交于 2020-02-21 13:06:26
问题 I would like to use cuda within a ros package. Has anyone a simple example for me? I tried to built a static library with the cuda function and add this library to my package, but I get always a linking error: Undefined reference cuda... I have built a executable instead of the library and it works. Please help! 回答1: I found a solution myself: CMakeLists.txt: cmake_minimum_required(VERSION 2.8.3) PROJECT (beginner_tutorials) FIND_PACKAGE(CUDA REQUIRED) find_package(catkin REQUIRED COMPONENTS

Add CUDA to ROS Package

假装没事ソ 提交于 2020-02-21 13:05:40
问题 I would like to use cuda within a ros package. Has anyone a simple example for me? I tried to built a static library with the cuda function and add this library to my package, but I get always a linking error: Undefined reference cuda... I have built a executable instead of the library and it works. Please help! 回答1: I found a solution myself: CMakeLists.txt: cmake_minimum_required(VERSION 2.8.3) PROJECT (beginner_tutorials) FIND_PACKAGE(CUDA REQUIRED) find_package(catkin REQUIRED COMPONENTS

Add CUDA to ROS Package

做~自己de王妃 提交于 2020-02-21 13:05:19
问题 I would like to use cuda within a ros package. Has anyone a simple example for me? I tried to built a static library with the cuda function and add this library to my package, but I get always a linking error: Undefined reference cuda... I have built a executable instead of the library and it works. Please help! 回答1: I found a solution myself: CMakeLists.txt: cmake_minimum_required(VERSION 2.8.3) PROJECT (beginner_tutorials) FIND_PACKAGE(CUDA REQUIRED) find_package(catkin REQUIRED COMPONENTS

How to link with libstdc++_pic.a with GCC?

喜夏-厌秋 提交于 2020-02-06 11:27:37
问题 I have a libstdc++_pic.a on my system (Ubuntu 12.04, gcc 4.6.3), presumably this is the version of libstdc++ created with -fPIC. I also have a libstdc++.a. I see the following error when I try to statically link libstdc++ with a shared library via the -static-libstdc++ link flag: :-1: error: /usr/lib/gcc/x86_64-linux-gnu/4.6/libstdc++.a(functexcept.o): relocation R_X86_64_32 against `std::bad_exception::~bad_exception()' can not be used when making a shared object; recompile with -fPIC So I'm

How to link with libstdc++_pic.a with GCC?

前提是你 提交于 2020-02-06 11:22:09
问题 I have a libstdc++_pic.a on my system (Ubuntu 12.04, gcc 4.6.3), presumably this is the version of libstdc++ created with -fPIC. I also have a libstdc++.a. I see the following error when I try to statically link libstdc++ with a shared library via the -static-libstdc++ link flag: :-1: error: /usr/lib/gcc/x86_64-linux-gnu/4.6/libstdc++.a(functexcept.o): relocation R_X86_64_32 against `std::bad_exception::~bad_exception()' can not be used when making a shared object; recompile with -fPIC So I'm

Specify location of static libraries for C++ application in Linux

核能气质少年 提交于 2020-02-06 06:35:28
问题 first of all, I hope that I ask the question in the right context here... I build an application in C++ with Code::Blocks. The application uses static libraries that are provided by a third party and cannot be installed on a system via the package management. Therefore I ship these libraries when I distribute my application. Here is what my target configuration looks like: <Target title="Unix_162"> <Option output="bin/my_app" prefix_auto="1" extension_auto="1" /> <Option working_dir="/home

Specify location of static libraries for C++ application in Linux

坚强是说给别人听的谎言 提交于 2020-02-06 06:31:49
问题 first of all, I hope that I ask the question in the right context here... I build an application in C++ with Code::Blocks. The application uses static libraries that are provided by a third party and cannot be installed on a system via the package management. Therefore I ship these libraries when I distribute my application. Here is what my target configuration looks like: <Target title="Unix_162"> <Option output="bin/my_app" prefix_auto="1" extension_auto="1" /> <Option working_dir="/home

Specify location of static libraries for C++ application in Linux

十年热恋 提交于 2020-02-06 06:30:25
问题 first of all, I hope that I ask the question in the right context here... I build an application in C++ with Code::Blocks. The application uses static libraries that are provided by a third party and cannot be installed on a system via the package management. Therefore I ship these libraries when I distribute my application. Here is what my target configuration looks like: <Target title="Unix_162"> <Option output="bin/my_app" prefix_auto="1" extension_auto="1" /> <Option working_dir="/home

Specify location of static libraries for C++ application in Linux

被刻印的时光 ゝ 提交于 2020-02-06 06:29:04
问题 first of all, I hope that I ask the question in the right context here... I build an application in C++ with Code::Blocks. The application uses static libraries that are provided by a third party and cannot be installed on a system via the package management. Therefore I ship these libraries when I distribute my application. Here is what my target configuration looks like: <Target title="Unix_162"> <Option output="bin/my_app" prefix_auto="1" extension_auto="1" /> <Option working_dir="/home