Compiling ROS with Ubuntu 11.04 (Natty)

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Compiling ROS with Ubuntu 11.04 (Natty)

Dr. Markus Eich
Dear all,

I am facing a problem with compiling the ROS sources under Natty.

While building the opencv2 package, I got the following linking error:


==============================
Linking CXX static library ../../lib/libopencv_haartraining_engine.a
[ 80%] Built target opencv_haartraining_engine
Scanning dependencies of target opencv_createsamples
[ 80%] Building CXX object
modules/haartraining/CMakeFiles/opencv_createsamples.dir/createsamples.o
Linking CXX executable ../../bin/opencv_createsamples
../../lib/libopencv_highgui.so.2.2.0: undefined reference to
`cvCreateCameraCapture_V4L(int)'
collect2: ld returned 1 exit status
make[2]: *** [bin/opencv_createsamples] Fehler 1
make[1]: ***
[modules/haartraining/CMakeFiles/opencv_createsamples.dir/all] Fehler 2
==============================

It seems it has to do with the linking of V4L. I have the lib4vl-dev
package installed.
According to my prior web search there seems to be the issue that V4L
has moved out of the kernel source.

Do you have any clues?

Cheers,

Markus
_______________________________________________
ros-users mailing list
[hidden email]
https://code.ros.org/mailman/listinfo/ros-users
Reply | Threaded
Open this post in threaded view
|

Re: Compiling ROS with Ubuntu 11.04 (Natty)

Dr. Markus Eich
I solved the issue.
Inorder to build ROS from source under Natty I just applied this
modified patch (copied it to the opencv2 folder) and added the line

SVN_PATCH = pythontest.patch v4l_2.6.38.patch

to the Makefile.

The Opencv package now builds with Natty (but i guess not with older
Ubuntu anymore ;-)

Make sure that libv4l-dev is installed.


Cheers,

Markus








On 03.05.2011 22:41, Markus Eich wrote:

> Dear all,
>
> I am facing a problem with compiling the ROS sources under Natty.
>
> While building the opencv2 package, I got the following linking error:
>
>
> ==============================
> Linking CXX static library ../../lib/libopencv_haartraining_engine.a
> [ 80%] Built target opencv_haartraining_engine
> Scanning dependencies of target opencv_createsamples
> [ 80%] Building CXX object
> modules/haartraining/CMakeFiles/opencv_createsamples.dir/createsamples.o
> Linking CXX executable ../../bin/opencv_createsamples
> ../../lib/libopencv_highgui.so.2.2.0: undefined reference to
> `cvCreateCameraCapture_V4L(int)'
> collect2: ld returned 1 exit status
> make[2]: *** [bin/opencv_createsamples] Fehler 1
> make[1]: ***
> [modules/haartraining/CMakeFiles/opencv_createsamples.dir/all] Fehler 2
> ==============================
>
> It seems it has to do with the linking of V4L. I have the lib4vl-dev
> package installed.
> According to my prior web search there seems to be the issue that V4L
> has moved out of the kernel source.
>
> Do you have any clues?
>
> Cheers,
>
> Markus
> _______________________________________________
> ros-users mailing list
> [hidden email]
> https://code.ros.org/mailman/listinfo/ros-users

--
Dipl. Inf. Markus Eich
Researcher

DFKI Bremen
Robotics Innovation Center
Mary-Somerville-Str. 9
28359 Bremen, Germany

Phone: +49 (0)421 17845-4105
Fax:   +49 (0)421 17845-4150
E-Mail: [hidden email]

Weitere Informationen: http://www.dfki.de/robotik
-----------------------------------------------------------------------
Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster
(Vorsitzender) Dr. Walter Olthoff
Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
Amtsgericht Kaiserslautern, HRB 2313
Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
USt-Id.Nr.:    DE 148646973
Steuernummer:  19/673/0060/3
-----------------------------------------------------------------------


_______________________________________________
ros-users mailing list
[hidden email]
https://code.ros.org/mailman/listinfo/ros-users

v4l_2.6.38.patch (1010 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Compiling ROS with Ubuntu 11.04 (Natty)

tfoote
Hi Markus,

I'm glad to hear things are working for you now.  I suggest that you file a ticket on the opencv tracker to make sure this gets fixed for everyone.   https://code.ros.org/trac/opencv/wiki

Tully

On Wed, May 4, 2011 at 1:12 AM, Markus Eich <[hidden email]> wrote:
I solved the issue.
Inorder to build ROS from source under Natty I just applied this modified patch (copied it to the opencv2 folder) and added the line

SVN_PATCH = pythontest.patch v4l_2.6.38.patch

to the Makefile.

The Opencv package now builds with Natty (but i guess not with older Ubuntu anymore ;-)

Make sure that libv4l-dev is installed.


Cheers,

Markus









On 03.05.2011 22:41, Markus Eich wrote:
Dear all,

I am facing a problem with compiling the ROS sources under Natty.

While building the opencv2 package, I got the following linking error:


==============================
Linking CXX static library ../../lib/libopencv_haartraining_engine.a
[ 80%] Built target opencv_haartraining_engine
Scanning dependencies of target opencv_createsamples
[ 80%] Building CXX object
modules/haartraining/CMakeFiles/opencv_createsamples.dir/createsamples.o
Linking CXX executable ../../bin/opencv_createsamples
../../lib/libopencv_highgui.so.2.2.0: undefined reference to
`cvCreateCameraCapture_V4L(int)'
collect2: ld returned 1 exit status
make[2]: *** [bin/opencv_createsamples] Fehler 1
make[1]: ***
[modules/haartraining/CMakeFiles/opencv_createsamples.dir/all] Fehler 2
==============================

It seems it has to do with the linking of V4L. I have the lib4vl-dev
package installed.
According to my prior web search there seems to be the issue that V4L
has moved out of the kernel source.

Do you have any clues?

Cheers,

Markus
_______________________________________________
ros-users mailing list
[hidden email]
https://code.ros.org/mailman/listinfo/ros-users


--
Dipl. Inf. Markus Eich
Researcher

DFKI Bremen
Robotics Innovation Center
Mary-Somerville-Str. 9
28359 Bremen, Germany

Phone: <a href="tel:%2B49%20%280%29421%2017845-4105" value="+49421178454105" target="_blank">+49 (0)421 17845-4105
Fax:   <a href="tel:%2B49%20%280%29421%2017845-4150" value="+49421178454150" target="_blank">+49 (0)421 17845-4150
E-Mail: [hidden email]

Weitere Informationen: http://www.dfki.de/robotik
-----------------------------------------------------------------------
Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster
(Vorsitzender) Dr. Walter Olthoff
Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
Amtsgericht Kaiserslautern, HRB 2313
Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
USt-Id.Nr.:    DE 148646973
Steuernummer:  19/673/0060/3
-----------------------------------------------------------------------


_______________________________________________
ros-users mailing list
[hidden email]
https://code.ros.org/mailman/listinfo/ros-users




--
Tully Foote
Systems Engineer
Willow Garage, Inc.
[hidden email]
(650) 475-2827

_______________________________________________
ros-users mailing list
[hidden email]
https://code.ros.org/mailman/listinfo/ros-users
Reply | Threaded
Open this post in threaded view
|

Re: Compiling ROS with Ubuntu 11.04 (Natty)

Dr. Markus Eich
Hi Tully,


The patch was actually taken from opencv Ticket. I just modified it to work with the ROS build system. Maybe this slightly modified patch can be added to the /vision_opencv/opencv2 package with an updated Makefile?

Is there a way to check the Ubuntu Version somehow in the Makefile of the opencv stack? So that the patch is only applied if ubuntu version >= 11.04?

Cheers,

Markus






On 04.05.2011 10:22, Tully Foote wrote:
Hi Markus,

I'm glad to hear things are working for you now.  I suggest that you file a ticket on the opencv tracker to make sure this gets fixed for everyone.   https://code.ros.org/trac/opencv/wiki

Tully

On Wed, May 4, 2011 at 1:12 AM, Markus Eich <[hidden email]> wrote:
I solved the issue.
Inorder to build ROS from source under Natty I just applied this modified patch (copied it to the opencv2 folder) and added the line

SVN_PATCH = pythontest.patch v4l_2.6.38.patch

to the Makefile.

The Opencv package now builds with Natty (but i guess not with older Ubuntu anymore ;-)

Make sure that libv4l-dev is installed.


Cheers,

Markus









On 03.05.2011 22:41, Markus Eich wrote:
Dear all,

I am facing a problem with compiling the ROS sources under Natty.

While building the opencv2 package, I got the following linking error:


==============================
Linking CXX static library ../../lib/libopencv_haartraining_engine.a
[ 80%] Built target opencv_haartraining_engine
Scanning dependencies of target opencv_createsamples
[ 80%] Building CXX object
modules/haartraining/CMakeFiles/opencv_createsamples.dir/createsamples.o
Linking CXX executable ../../bin/opencv_createsamples
../../lib/libopencv_highgui.so.2.2.0: undefined reference to
`cvCreateCameraCapture_V4L(int)'
collect2: ld returned 1 exit status
make[2]: *** [bin/opencv_createsamples] Fehler 1
make[1]: ***
[modules/haartraining/CMakeFiles/opencv_createsamples.dir/all] Fehler 2
==============================

It seems it has to do with the linking of V4L. I have the lib4vl-dev
package installed.
According to my prior web search there seems to be the issue that V4L
has moved out of the kernel source.

Do you have any clues?

Cheers,

Markus
_______________________________________________
ros-users mailing list
[hidden email]
https://code.ros.org/mailman/listinfo/ros-users


--
Dipl. Inf. Markus Eich
Researcher

DFKI Bremen
Robotics Innovation Center
Mary-Somerville-Str. 9
28359 Bremen, Germany

Phone: <a moz-do-not-send="true" href="tel:%2B49%20%280%29421%2017845-4105" value="+49421178454105" target="_blank">+49 (0)421 17845-4105
Fax:   <a moz-do-not-send="true" href="tel:%2B49%20%280%29421%2017845-4150" value="+49421178454150" target="_blank">+49 (0)421 17845-4150
E-Mail: [hidden email]

Weitere Informationen: http://www.dfki.de/robotik
-----------------------------------------------------------------------
Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster
(Vorsitzender) Dr. Walter Olthoff
Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
Amtsgericht Kaiserslautern, HRB 2313
Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
USt-Id.Nr.:    DE 148646973
Steuernummer:  19/673/0060/3
-----------------------------------------------------------------------


_______________________________________________
ros-users mailing list
[hidden email]
https://code.ros.org/mailman/listinfo/ros-users




--
Tully Foote
Systems Engineer
Willow Garage, Inc.
[hidden email]
(650) 475-2827
_______________________________________________ ros-users mailing list [hidden email] https://code.ros.org/mailman/listinfo/ros-users


-- 
Dipl. Inf. Markus Eich
Researcher

DFKI Bremen
Robotics Innovation Center
Mary-Somerville-Str. 9
28359 Bremen, Germany

Phone: +49 (0)421 17845-4105
Fax:   +49 (0)421 17845-4150
E-Mail: [hidden email]

Weitere Informationen: http://www.dfki.de/robotik
-----------------------------------------------------------------------
Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster
(Vorsitzender) Dr. Walter Olthoff
Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
Amtsgericht Kaiserslautern, HRB 2313
Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
USt-Id.Nr.:    DE 148646973
Steuernummer:  19/673/0060/3 
-----------------------------------------------------------------------

_______________________________________________
ros-users mailing list
[hidden email]
https://code.ros.org/mailman/listinfo/ros-users
Reply | Threaded
Open this post in threaded view
|

Re: Compiling ROS with Ubuntu 11.04 (Natty)

enddl22
This post has NOT been accepted by the mailing list yet.
In reply to this post by Dr. Markus Eich
Good job Marcus.

Cheers.