1. 程式人生 > >編譯ROS的package包出錯,提示recipe for target 'all' failed

編譯ROS的package包出錯,提示recipe for target 'all' failed

最近在學習ROS機器人作業系統,嘗試自己新建node,發現編譯始終不通過

貼出問題程式碼

/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
chapter2_tutorials/CMakeFiles/example1_c.dir/build.make:113: recipe for target '/home/jier/dev/catkin_ws/devel/lib/chapter2_tutorials/example1_c' failed
make[2]: *** [/home/jier/dev/catkin_ws/devel/lib/chapter2_tutorials/example1_c] Error 1
CMakeFiles/Makefile2:915: recipe for target 'chapter2_tutorials/CMakeFiles/example1_c.dir/all' failed
make[1]: *** [chapter2_tutorials/CMakeFiles/example1_c.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed

後來發現是個弱智錯誤,新建的example1_c.cpp檔案裡面沒有寫東西

解決方案:

1、刪除空cpp檔案

2、或者在cpp檔案裡寫程式碼

重新編譯即可通過

相關推薦

編譯ROS的package出錯提示recipe for target 'all' failed

最近在學習ROS機器人作業系統,嘗試自己新建node,發現編譯始終不通過貼出問題程式碼/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o: In function `_start': (.text+

交叉編譯openssh出現錯誤Makefile:548: recipe for target 'install_sw' failed

交叉編譯openssh出現錯誤 將OpenSSH移植到ARM Linux,交叉編譯openssh時,在第二步編譯openssl時,make install出現如下錯誤: cp: 'e_os2.h' and '/home/word/iTOP-4412-Li

Makefile:160: recipe for target 'all' failed(ubuntu16.04+opencv3.4+gcc5.4.0)

安裝並編譯的步驟如下 wget https://github.com/opencv/opencv/archive/3.4.0.zip 2、 Unzip it and create a build folder: sudo unzip 3.4.0.zip cd

opencv recipe for target 'all' failed解決

在編譯opencv3.0的時候,編譯到了90%都成功了,然後報了這個異常,網上搜索,也沒找到正確方法 最後解決方式是: 之前的指令碼都需要執行 在執行apt-get update時,下載一個東西,下載了1000多遍也不成,把update註釋掉,再執行前面的安裝 再編譯,就

Ubuntu 14.04 LTS 下用RVM 安裝ruby時出錯提示For 404 check your sources configured in...

ubuntu 系統下配置ROR程式設計環境,可以使用Rbenv和RVM安裝但是一些rubyer在使用RVM安裝到ruby時會出現下面的錯誤提示: ++ case "${TERM:-dumb}" in ++ case "$1" in ++ [[ -t 2 ]] ++ retu

[7]_編譯核心錯誤提示2:recipe for target 'kernel/timeconst.h' failed 和 "mkimage" command not found

----------------------------------------------------------------編譯核心出現的錯誤---------------------------

【已解決】MSSQL Server 2008 R2執行出錯提示未找到mscorilib.tlb

環境 Windows7 64位系統 Microsoft SQL Server 2008 R2 發現問題 開啟SQL Server Management Studio時,出現錯誤,未找到mscorilib.tlb,如下圖。 解決問題

今天遇到一個開心事在eclipse編寫的程式碼在命令視窗中編譯後無法執行提示 “錯誤: 找不到或無法載入主類”

java中帶package和不帶package的編譯執行方式是不同的。 首先來了解一下package的概念:簡單定義為,package是一個為了方便管理組織java檔案的目錄結構,並防止不同java檔案之間發生命名衝突而存在的一個java特性。不同package中的類的名字可以相同,只是在使用時要帶上pac

Ubuntu18.04編譯Nginx報錯objs/Makefile:460: recipe for target 'objs/src/core/ngx_murmurhash.o' failed

問題描述 在Ubuntu18.04上安裝Ngnix,在編譯步驟出現如下錯誤: cc1: all warnings being treated as errors objs/Makefile:460:

內網編譯安裝net-snmp提示relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a share

    公司需要在內網環境下(不能訪問外網),通用原始檔編譯安裝net-snmp,監控內網伺服器的引數資訊,但是在編譯,即make的情況下,出現了Error,因為對linux的深度使用不是很熟悉,所以經過幾天的測試才找到解決辦法,下面是錯誤:    /usr/bin/l

Caffe-ssd編譯錯誤:Makefile:570: recipe for target '.build_release/lib/libcaffe.so.1.0.0-rc3' failed

在編譯Caffe-SSD時候遇到以下問題: Makefile:570: recipe for target '.build_release/lib/libcaffe.so.1.0.0-rc3' fail

通過composer安裝擴充套件提示[Composer\Exception\NoSslException]

在安裝位置通過命令列,開啟composer 安裝擴充套件包時提示 報錯 [Composer\Exception\NoSslException] The openssl extension is required for SSL/TLS protection but is not av

Android Studio compile project新增一個本地專案依賴提示程式不存在

問題情景 在一個專案裡,建了一個library專案和application專案,在application專案的build.gradle將library專案compile project進來,編譯的時候都正常,但是執行的時候,提示程式包不存在。 解決辦法

ubuntu編譯android6.0錯誤recipe for target 'out/host/linux-x86/obj/lib/libart.so' failed

trip: libpagemap_32 (out/target/product/xx/obj_arm/lib/libpagemap.so) target Strip: librilutils_32 (out/target/product/xx/obj_arm/lib/lib

用Xftp上傳檔案到伺服器出錯提示錯誤(14)

如題,想要將本機資料夾A使用Xftp上傳到伺服器(Linux系統)資料夾B中,上傳失敗,出現錯誤(14) 解決辦法:在伺服器中將資料夾B許可權更改,在終端中執行命令:chmod 777 資料夾B的檔名(注意三個引數中間用空格隔開) 還有一種情況是你當前傳輸的資料夾在伺服器

yum groupinstall "X Window System" -y 出錯提示Error Summary錯誤解決方法

首先說明一下,一般常用的yum安裝方式為yum install,這次安裝"X Window System"就使用了yum groupinstall,那麼這兩個命令有什麼區別那? yum 提供二種安裝軟體的方式 1,yum install 它安裝單個軟體,以及這個軟體的依賴關

-lrt問題即:shm_open的標頭檔案存在編譯卻不通過提示undefined

C programming in the UNIX environment的程式設計手冊,一般都會為程序間用共享記憶體的方法通訊提供兩組方法: 1.      POSIX定義的: int shm_open(const char *name, int oflag, mo

寫了一個hello.py執行出錯提示 File "" , line 1

寫了一個hello.py,僅有一句,print 'hello world', 執行 python hello.py 出錯,提示: File "<stdin>" , line 1 python hello.py 解釋: In the shell you

window service 學習之路(三)【學習筆記】 -- 啟動服務出錯提示1053 刪掉服務

先把錯誤的圖粘出來,大家看看: 出現這個症狀後,服務“半死不活”了,一直處理“啟動”中這個狀態,沒完沒了的啟動中了。 眾所周知,一般服務狀態是“已啟動”,“已禁用”等等,沒有這個啟動中啊。 所以看著這個“半死不活”的服務就煩,想辦法“幹掉”它。 於是,百度,Google了

【Git學習】解決git push操作的時候出錯提示 error: unpack failed: unable to create temporary object directory

一、問題描述 剛剛在敲完某個模組的程式碼,提交程式碼到那麼本地分支,然後push到遠端分支的時候,出現了下面的錯誤,提示我Push rejected。然後沒有其他的提示了。 使用 git bash 終端,輸入git push 命令,也提示被拒絕,如下所示