Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/cmake/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在将TrajOpt安装到我的catkin工作区时,如何解决此Cmake错误?_Cmake_Ubuntu 18.04_Ros - Fatal编程技术网

在将TrajOpt安装到我的catkin工作区时,如何解决此Cmake错误?

在将TrajOpt安装到我的catkin工作区时,如何解决此Cmake错误?,cmake,ubuntu-18.04,ros,Cmake,Ubuntu 18.04,Ros,我正在尝试安装到我的catkin工作区。我已经达到了make-j。请参阅下面的终端输出 我该如何进行?提前谢谢你 $ make -j Scanning dependencies of target json Scanning dependencies of target utils Scanning dependencies of target bpmpd_caller Scanning dependencies of target gtest [ 1%] Building CXX objec

我正在尝试安装到我的catkin工作区。我已经达到了
make-j
。请参阅下面的终端输出

我该如何进行?提前谢谢你

$ make -j
Scanning dependencies of target json
Scanning dependencies of target utils
Scanning dependencies of target bpmpd_caller
Scanning dependencies of target gtest
[  1%] Building CXX object src/sco/CMakeFiles/bpmpd_caller.dir/bpmpd_caller.cpp.o
[  3%] Building CXX object src/utils/CMakeFiles/utils.dir/stl_to_string.cpp.o
[  5%] Building CXX object src/utils/CMakeFiles/utils.dir/config.cpp.o
[  7%] Building CXX object src/utils/CMakeFiles/utils.dir/logging.cpp.o
[  9%] Building CXX object src/utils/CMakeFiles/utils.dir/clock.cpp.o
[ 10%] Building CXX object ext/json/CMakeFiles/json.dir/src/lib_json/json_value.cpp.o
[ 12%] Building CXX object ext/json/CMakeFiles/json.dir/src/lib_json/json_reader.cpp.o
[ 14%] Building CXX object ext/json/CMakeFiles/json.dir/src/lib_json/json_writer.cpp.o
[ 16%] Building CXX object ext/gtest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
[ 18%] Linking CXX executable ../../bin/bpmpd_caller
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(bpmdll.o): relocation R_X86_64_32S against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(mprnt.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(pddrv.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(readpar.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(rowact.o): relocation R_X86_64_32 against `.bss' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(rowdup.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(rowsng.o): relocation R_X86_64_32 against `.bss' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(scale.o): relocation R_X86_64_32S against `.bss' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(wrimps.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(aggreg.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(bndchk.o): relocation R_X86_64_32 against `.bss' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(bpmpd.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(cdiag.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(cdircc.o): relocation R_X86_64_32S against `.bss' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(cdirpc.o): relocation R_X86_64_32S against `.bss' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(cfixvar.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(chepdu.o): relocation R_X86_64_32 against `.bss' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(coldbl.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(colsng.o): relocation R_X86_64_32 against `.bss' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(cstpcrt.o): relocation R_X86_64_32 against `.bss' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(cstplen.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(dblrow.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(duchek.o): relocation R_X86_64_32S against `.bss' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(facts5c.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(factsnb3.o): relocation R_X86_64_32S against `.bss' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(fbtran8.o): relocation R_X86_64_32 against `.bss' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(itrefsol.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(lindep.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(nfacts5c.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(nfactsb3.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(pbcgm.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(pbqmr.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(refactm.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(rngchk.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(setlam.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(sparsr.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(supnode.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(symfactq.o): relocation R_X86_64_32 against `.bss' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(symmfo.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(unroll.o): relocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(warmstrt.o): relocation R_X86_64_32S against `.bss' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(affsdir.o): relocation R_X86_64_32S against `.bss' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(ordctl.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(metis.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(mfillind.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /home/sophie/caris_ws/trajopt/3rdpartylib/bpmpd_linux64.a(mfillin.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
src/sco/CMakeFiles/bpmpd_caller.dir/build.make:95: recipe for target 'bin/bpmpd_caller' failed
make[2]: *** [bin/bpmpd_caller] Error 1
CMakeFiles/Makefile2:286: recipe for target 'src/sco/CMakeFiles/bpmpd_caller.dir/all' failed
make[1]: *** [src/sco/CMakeFiles/bpmpd_caller.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 20%] Linking CXX shared library ../../lib/libjson.so
[ 20%] Built target json
[ 21%] Linking CXX shared library ../../lib/libutils.so
[ 21%] Built target utils
[ 23%] Linking CXX static library ../../lib/libgtest.a
[ 23%] Built target gtest
Makefile:94: recipe for target 'all' failed
make: *** [all] Error 2

我也有同样的问题。看起来master trajopt存储库已经有几年没有更新了,但是有一个分叉存储库最近有一些分支,它为我解决了这个错误。然后,我遇到了另一个问题,我可以通过以下方法解决

结帐新trajopt分行:

git checkout https://github.com/cedriclmenard/trajopt.git
cd trajopt
git checkout --track origin/fixes-cedric
修复新错误:

sudo apt-get install libopenscenegraph-dev
sudo cp /usr/include/osg/CameraNode usr/local/include/osg/
sudo apt-get remove libopenscenegraph-dev
完成trajopt的生成(我在make命令中添加了1,这样我就没有出现“内存不足”错误):


变量名(
GUROBI_库
)表明错误与GUROBI库有关。你安装好了吗?谢谢!也许这就是问题所在。我要检查我的gurobi安装我检查了我的gurobi绝缘并用我的许可证解决了这个问题。因此,我编辑了我的问题。他们说,中的提交解决了这个问题。确保您正在尝试安装最新的Trajopt版本。哦,那么我应该从那个repo中克隆?为什么安装页面会把我指向这个回购协议
cd ..
mkdir build_trajopt
cmake path/to/trajopt
make -j 1