[OpenCV] Compilation error

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

[OpenCV] Compilation error

Benjamin GUILLER
Hello world,

I am trying to install OpenCV library onto my laptop for making
a robot running on OpenBSD.

I need to install OpenCV library, so I've read the OpenCV's manual,
I've downloaded sources using svn, and I've prepared compilation
with cmake.

The compilation stops when it tries to link .o files using the dl library.

Here is the error :

Linking CXX shared library ../../lib/libcxcore.so
/usr/bin/ld: cannot find -ldl
collect2: ld returned 1 exit status
gmake[2]: *** [lib/libcxcore.so.2.1] Error 1
gmake[1]: *** [src/cxcore/CMakeFiles/cxcore.dir/all] Error 2
gmake: *** [all] Error 2

I know that there is no libdl on OpenBSD, and I've search into Makefiles,
and I havent found any information about ldl

Regards
Reply | Threaded
Open this post in threaded view
|

Re: [OpenCV] Compilation error

Jasper Lievisse Adriaanse-4
On Sat, Oct 02, 2010 at 07:43:57PM +0200, Benjamin GUILLER wrote:

> Hello world,
>
> I am trying to install OpenCV library onto my laptop for making
> a robot running on OpenBSD.
>
> I need to install OpenCV library, so I've read the OpenCV's manual,
> I've downloaded sources using svn, and I've prepared compilation
> with cmake.
>
> The compilation stops when it tries to link .o files using the dl library.
>
> Here is the error :
>
> Linking CXX shared library ../../lib/libcxcore.so
> /usr/bin/ld: cannot find -ldl
> collect2: ld returned 1 exit status
> gmake[2]: *** [lib/libcxcore.so.2.1] Error 1
> gmake[1]: *** [src/cxcore/CMakeFiles/cxcore.dir/all] Error 2
> gmake: *** [all] Error 2
>
> I know that there is no libdl on OpenBSD, and I've search into Makefiles,
> and I havent found any information about ldl
>
> Regards

I have a working port for OpenCV which I will polish and send out
later this week.

--
Cheers,
Jasper

Stay Hungry. Stay Foolish.

Reply | Threaded
Open this post in threaded view
|

Re: [OpenCV] Compilation error

Benjamin GUILLER
Okay, okay.
Question : Does the webcam work in your port Jasper ?

On Sun, Oct 3, 2010 at 3:16 PM, Jasper Lievisse Adriaanse
<[hidden email]>wrote:

> On Sat, Oct 02, 2010 at 07:43:57PM +0200, Benjamin GUILLER wrote:
> > Hello world,
> >
> > I am trying to install OpenCV library onto my laptop for making
> > a robot running on OpenBSD.
> >
> > I need to install OpenCV library, so I've read the OpenCV's manual,
> > I've downloaded sources using svn, and I've prepared compilation
> > with cmake.
> >
> > The compilation stops when it tries to link .o files using the dl
> library.
> >
> > Here is the error :
> >
> > Linking CXX shared library ../../lib/libcxcore.so
> > /usr/bin/ld: cannot find -ldl
> > collect2: ld returned 1 exit status
> > gmake[2]: *** [lib/libcxcore.so.2.1] Error 1
> > gmake[1]: *** [src/cxcore/CMakeFiles/cxcore.dir/all] Error 2
> > gmake: *** [all] Error 2
> >
> > I know that there is no libdl on OpenBSD, and I've search into Makefiles,
> > and I havent found any information about ldl
> >
> > Regards
>
> I have a working port for OpenCV which I will polish and send out
> later this week.
>
> --
> Cheers,
> Jasper
>
> Stay Hungry. Stay Foolish.
>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenCV] Compilation error

Jasper Lievisse Adriaanse-4
On Sun, Oct 03, 2010 at 07:38:54PM +0200, Benjamin GUILLER wrote:
> Okay, okay.
> Question : Does the webcam work in your port Jasper ?
FWIW, attached is a port that build and installs fine on i386, but gives an ICE
on amd64. I may have a further look at a later point.

In the meantime, attached is the WIP port.

> On Sun, Oct 3, 2010 at 3:16 PM, Jasper Lievisse Adriaanse
> <[hidden email]>wrote:
>
> > On Sat, Oct 02, 2010 at 07:43:57PM +0200, Benjamin GUILLER wrote:
> > > Hello world,
> > >
> > > I am trying to install OpenCV library onto my laptop for making
> > > a robot running on OpenBSD.
> > >
> > > I need to install OpenCV library, so I've read the OpenCV's manual,
> > > I've downloaded sources using svn, and I've prepared compilation
> > > with cmake.
> > >
> > > The compilation stops when it tries to link .o files using the dl
> > library.
> > >
> > > Here is the error :
> > >
> > > Linking CXX shared library ../../lib/libcxcore.so
> > > /usr/bin/ld: cannot find -ldl
> > > collect2: ld returned 1 exit status
> > > gmake[2]: *** [lib/libcxcore.so.2.1] Error 1
> > > gmake[1]: *** [src/cxcore/CMakeFiles/cxcore.dir/all] Error 2
> > > gmake: *** [all] Error 2
> > >
> > > I know that there is no libdl on OpenBSD, and I've search into Makefiles,
> > > and I havent found any information about ldl
> > >
> > > Regards
> >
> > I have a working port for OpenCV which I will polish and send out
> > later this week.
> >
> > --
> > Cheers,
> > Jasper
> >
> > Stay Hungry. Stay Foolish.
> >
--
Cheers,
Jasper

Stay Hungry. Stay Foolish.

opencv.tgz (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [OpenCV] Compilation error

Rafael Sadowski
On Tue Oct 26, 2010 at 11:32:03AM +0200, Jasper Lievisse Adriaanse wrote:
> On Sun, Oct 03, 2010 at 07:38:54PM +0200, Benjamin GUILLER wrote:
> > Okay, okay.
> > Question : Does the webcam work in your port Jasper ?
> FWIW, attached is a port that build and installs fine on i386, but gives an ICE
> on amd64. I may have a further look at a later point.
>
> In the meantime, attached is the WIP port.
>

Hi Jasper,

is there a new status on amd64? Do you have a new version? I would like
test it because currently we use opencv over javacv in a small
university project.

best regards

        Rafael
--
http://www.sizeofvoid.org - [hidden email]
XMPP: [hidden email]
Key fingerprint: BDDD 91E9 28CB 3A52 3E99  61B0 C359 2691 BAC6 A3B1

Reply | Threaded
Open this post in threaded view
|

Re: [OpenCV] Compilation error

Jasper Lievisse Adriaanse-2
On Mon, Mar 28, 2011 at 01:57:27PM +0200, Rafael Sadowski wrote:

> On Tue Oct 26, 2010 at 11:32:03AM +0200, Jasper Lievisse Adriaanse wrote:
> > On Sun, Oct 03, 2010 at 07:38:54PM +0200, Benjamin GUILLER wrote:
> > > Okay, okay.
> > > Question : Does the webcam work in your port Jasper ?
> > FWIW, attached is a port that build and installs fine on i386, but gives an ICE
> > on amd64. I may have a further look at a later point.
> >
> > In the meantime, attached is the WIP port.
> >
>
> Hi Jasper,
>
> is there a new status on amd64? Do you have a new version? I would like
> test it because currently we use opencv over javacv in a small
> university project.
>
> best regards
>
> Rafael
> --
> http://www.sizeofvoid.org - [hidden email]
> XMPP: [hidden email]
> Key fingerprint: BDDD 91E9 28CB 3A52 3E99  61B0 C359 2691 BAC6 A3B1
Hi,

I didn't look any further at this anymore...feel free to pick it up though.

--
Cheers,
Jasper

"Capable, generous men do not create victims, they nurture them."

Reply | Threaded
Open this post in threaded view
|

Re: [OpenCV] Compilation error

Rafael Sadowski
On Mon Mar 28, 2011 at 05:17:25PM +0200, Jasper Lievisse Adriaanse wrote:
> Hi,
>
> I didn't look any further at this anymore...feel free to pick it up though.
>
> --
> Cheers,
> Jasper
>
> "Capable, generous men do not create victims, they nurture them."

Hi Jasper, Hi @ports,

I'm working on OpenCV 2.2 port, but this version needs gcc 4.3. How can
I build a port with gcc 4.3. Any advice or example port.

GCC4.2 will seg:

[ 39%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/alloc.o
cd /usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/modules/core && /usr/bin/c++   -Dopencv_core_EXPORTS -DHAVE_CONFIG_H -DCVAPI_EXPORTS -O2 -pipe    -Wall -pthread -ffunction-sections  -DNDEBUG  -fomit-frame-pointer -DNDEBUG  -fPIC -I/usr/local/lib/python2.6/site-packages/numpy/core/include -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/. -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0 -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/include -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/include/opencv -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/modules/core/../../3rdparty/include -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/modules/core/include -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/modules/core/src -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/modules/core   -D PYTHON_USE_NUMPY=1  -include /usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/modules/core/precomp.hpp -Winvalid-pch  -o CMakeFiles/opencv_core.dir/src/alloc.o -c /usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/modules/core/src/alloc.cpp
<command-line>:0: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
*** Error code 1

best regards

        Rafael Sadowski

--
http://www.sizeofvoid.org - [hidden email]
XMPP: [hidden email]
Key fingerprint: BDDD 91E9 28CB 3A52 3E99  61B0 C359 2691 BAC6 A3B1

Reply | Threaded
Open this post in threaded view
|

Re: [OpenCV] Compilation error

Stuart Henderson
the gcc 4.3 port is not really usable; I would suggest either
trying to track down what in 4.3 fixes it and see if it can be
re-implemented for 4.2 (but not using a direct patch as 4.3
is GPLv3), or trying it with CLang



On 2011/04/06 12:22, Rafael Sadowski wrote:

> On Mon Mar 28, 2011 at 05:17:25PM +0200, Jasper Lievisse Adriaanse wrote:
> > Hi,
> >
> > I didn't look any further at this anymore...feel free to pick it up though.
> >
> > --
> > Cheers,
> > Jasper
> >
> > "Capable, generous men do not create victims, they nurture them."
>
> Hi Jasper, Hi @ports,
>
> I'm working on OpenCV 2.2 port, but this version needs gcc 4.3. How can
> I build a port with gcc 4.3. Any advice or example port.
>
> GCC4.2 will seg:
>
> [ 39%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/alloc.o
> cd /usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/modules/core && /usr/bin/c++   -Dopencv_core_EXPORTS -DHAVE_CONFIG_H -DCVAPI_EXPORTS -O2 -pipe    -Wall -pthread -ffunction-sections  -DNDEBUG  -fomit-frame-pointer -DNDEBUG  -fPIC -I/usr/local/lib/python2.6/site-packages/numpy/core/include -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/. -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0 -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/include -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/include/opencv -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/modules/core/../../3rdparty/include -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/modules/core/include -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/modules/core/src -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/modules/core   -D PYTHON_USE_NUMPY=1  -include /usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/modules/core/precomp.hpp -Winvalid-pch  -o CMakeFiles/opencv_core.dir/src/alloc.o -c /usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/modules/core/src/alloc.cpp
> <command-line>:0: internal compiler error: Segmentation fault
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://gcc.gnu.org/bugs.html> for instructions.
> *** Error code 1
>
> best regards
>
> Rafael Sadowski
>
> --
> http://www.sizeofvoid.org - [hidden email]
> XMPP: [hidden email]
> Key fingerprint: BDDD 91E9 28CB 3A52 3E99  61B0 C359 2691 BAC6 A3B1
>

Reply | Threaded
Open this post in threaded view
|

Re: [OpenCV] Compilation error

Amit Kulkarni-5
Or if you really want gcc. look at the gcc patches freebsd imported in
last few weeks before the switch to GPL3. This way, they can also be
applied to gcc in base. FreeBSD has patches on top of 4.2.1, same as
ours.

On Wed, Apr 6, 2011 at 5:36 AM, Stuart Henderson <[hidden email]> wrote:

> the gcc 4.3 port is not really usable; I would suggest either
> trying to track down what in 4.3 fixes it and see if it can be
> re-implemented for 4.2 (but not using a direct patch as 4.3
> is GPLv3), or trying it with CLang
>
>
>
> On 2011/04/06 12:22, Rafael Sadowski wrote:
>> On Mon Mar 28, 2011 at 05:17:25PM +0200, Jasper Lievisse Adriaanse wrote:
>> > Hi,
>> >
>> > I didn't look any further at this anymore...feel free to pick it up though.
>> >
>> > --
>> > Cheers,
>> > Jasper
>> >
>> > "Capable, generous men do not create victims, they nurture them."
>>
>> Hi Jasper, Hi @ports,
>>
>> I'm working on OpenCV 2.2 port, but this version needs gcc 4.3. How can
>> I build a port with gcc 4.3. Any advice or example port.
>>
>> GCC4.2 will seg:
>>
>> [ 39%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/alloc.o
>> cd /usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/modules/core && /usr/bin/c++   -Dopencv_core_EXPORTS -DHAVE_CONFIG_H -DCVAPI_EXPORTS -O2 -pipe    -Wall -pthread -ffunction-sections  -DNDEBUG  -fomit-frame-pointer -DNDEBUG  -fPIC -I/usr/local/lib/python2.6/site-packages/numpy/core/include -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/. -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0 -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/include -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/include/opencv -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/modules/core/../../3rdparty/include -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/modules/core/include -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/modules/core/src -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/modules/core   -D PYTHON_USE_NUMPY=1  -include /usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/modules/core/precomp.hpp -Winvalid-pch  -o CMakeFiles/opencv_core.dir/src/alloc.o -c /usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/modules/core/src/alloc.cpp
>> <command-line>:0: internal compiler error: Segmentation fault
>> Please submit a full bug report,
>> with preprocessed source if appropriate.
>> See <URL:http://gcc.gnu.org/bugs.html> for instructions.
>> *** Error code 1
>>
>> best regards
>>
>>       Rafael Sadowski
>>
>> --
>> http://www.sizeofvoid.org - [hidden email]
>> XMPP: [hidden email]
>> Key fingerprint: BDDD 91E9 28CB 3A52 3E99  61B0 C359 2691 BAC6 A3B1
>>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: [OpenCV] Compilation error

Rafael Sadowski
On Wed Apr 06, 2011 at 08:24:48AM -0500, Amit Kulkarni wrote:
> Or if you really want gcc. look at the gcc patches freebsd imported in
> last few weeks before the switch to GPL3. This way, they can also be
> applied to gcc in base. FreeBSD has patches on top of 4.2.1, same as
> ours.

;-) Thanks for this advice but I think it will works without fucking gcc
4.3

>
> >> GCC4.2 will seg:
> >>
> >> [ 39%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/alloc.o
> >> cd /usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/modules/core && /usr/bin/c++   -Dopencv_core_EXPORTS -DHAVE_CONFIG_H -DCVAPI_EXPORTS -O2 -pipe    -Wall -pthread -ffunction-sections  -DNDEBUG  -fomit-frame-pointer -DNDEBUG  -fPIC -I/usr/local/lib/python2.6/site-packages/numpy/core/include -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/. -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0 -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/include -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/include/opencv -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/modules/core/../../3rdparty/include -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/modules/core/include -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/modules/core/src -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/modules/core   -D PYTHON_USE_NUMPY=1  -include /usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/modules/core/precomp.hpp -Winvalid-pch  -o CMakeFiles/opencv_core.dir/src/alloc.o -c /usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/modules/core/src/alloc.cpp
> >> <command-line>:0: internal compiler error: Segmentation fault
> >> Please submit a full bug report,
> >> with preprocessed source if appropriate.
> >> See <URL:http://gcc.gnu.org/bugs.html> for instructions.
> >> *** Error code 1
> >>

CXX_DEFINES like "-Dopencv_core_EXPORTS -DHAVE_CONFIG_H -DCVAPI_EXPORTS"
effect the Segmentation fault. CMake create CXX_DEFINES flags in some
files after configure. How can I patch after configure?

best regards

        rs

--
http://www.sizeofvoid.org - [hidden email]
XMPP: [hidden email]
Key fingerprint: BDDD 91E9 28CB 3A52 3E99  61B0 C359 2691 BAC6 A3B1