User Tools

Site Tools


robotsoftware:mobotware:mobotware-ros

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
robotsoftware:mobotware:mobotware-ros [2011/11/23 22:44]
claes
— (current)
Line 1: Line 1:
-====== Compile MobotWare with ROS Electric ====== 
-DONT DO IT IT WILL FUCK UP YOUR COMPUTER!!!!!!!!!!!!! 
  
-First remove 
-  libcv-dev 
-  libhighgui 
-if you haven´t removed them, they will be removed automatically when you install ROS. 
- 
-Then [[robotsoftware:ros:ros|install ROS]], when it is installed return here. 
- 
-Execute these commands - Check you version of opencv to make sure you create the right links. 
-  sudo ln -s /usr/include/opencv-2.3.1/opencv2 /usr/include/opencv2 
-  sudo ln -s /usr/include/opencv-2.3.1/opencv /usr/include/opencv 
-   
-Update 
-  /usr/lib/pkgconfig/opencv-2-3-1.pc 
-so it look like this 
-<code> 
-# Package Information for pkg-config 
- 
-prefix=/usr 
-exec_prefix=${prefix} 
-libdir=${exec_prefix}/lib 
-includedir_old=${prefix}/include/opencv-2.3.1/opencv 
-includedir_new=${prefix}/include/opencv-2.3.1 
- 
-Name: OpenCV 
-Description: Open Source Computer Vision Library 
-Version: 2.3.1 
-#Libs:  -l${exec_prefix}/lib/libopencv_contrib.so.2.3.1 -l${exec_prefix}/lib/libopencv_legacy.so.2.3.1 -l${exec_prefix}/lib/libopencv_objdetect.so.2.3.1 -l${exec_prefix}/lib/libopencv_calib3d.so.2.3.1 -l${exec_prefix}/lib/libopencv_features2d.so.2.3.1 -l${exec_prefix}/lib/libopencv_video.so.2.3.1 -l${exec_prefix}/lib/libopencv_highgui.so.2.3.1 -l${exec_prefix}/lib/libopencv_ml.so.2.3.1 -l${exec_prefix}/lib/libopencv_imgproc.so.2.3.1 -l${exec_prefix}/lib/libopencv_flann.so.2.3.1 -l${exec_prefix}/lib/libopencv_core.so.2.3.1 
-Libs: -L${exec_prefix}/lib -lopencv_contrib -lopencv_legacy -lopencv_objdetect -lopencv_calib3d -lopencv_features2d -lopencv_video -lopencv_highgui -lopencv_ml -lopencv_imgproc -lopencv_flann -lopencv_core 
-Cflags: -I${includedir_old} -I${includedir_new} 
-</code> 
- 
-Change following make files:(This is only the first file that has to be updated. Try to find a solution so it can all be written in one file so you don´t have to change it.) 
- 
- 
-  /aurobotserves/trunk/src/ulmsserver/makefile 
-Remove 
-<code> 
-   -lcxcore 
-   -lcv 
-</code> 
-From the LDFLAGS 
-<sxh java; highlight: [1]; title: Changes in ulmsserver makefile> 
-LDFLAGS = -g3 -O0 -L../../lib -lurob4o -lugen4o -lumap4o -lcxcore -lcv -ldl -rdynamic \ 
-          -lcurses -lreadline -lpng -liau_mat 
-#-lcxcore -lcv 
-# -L/usr/lib `pkg-config opencv-2.3.1 --libs` 
-</sxh> 
-Insert 
-<code>-L/usr/lib `pkg-config opencv-2.3.1 --libs`</code> 
-in LDFLAGS 
-<sxh java; highlight: [1]; title: Changes in ulmsserver makefile> 
-LDFLAGS = -g3 -O0 -L../../lib -lurob4o -lugen4o -lumap4o -L/usr/lib `pkg-config opencv-2.3.1 --libs` -ldl -rdynamic \ 
-          -lcurses -lreadline -lpng -liau_mat 
-#-lcxcore -lcv 
-# -L/usr/lib `pkg-config opencv-2.3.1 --libs` 
-</sxh> 
robotsoftware/mobotware/mobotware-ros.1322084669.txt.gz · Last modified: 2021/08/14 04:20 (external edit)