Re: [OpenCV] Compilation error

2011-04-06 Thread 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 - raf...@sizeofvoid.org
XMPP: z...@jabber.ccc.de
Key fingerprint: BDDD 91E9 28CB 3A52 3E99  61B0 C359 2691 BAC6 A3B1



Re: [OpenCV] Compilation error

2011-04-06 Thread 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 - raf...@sizeofvoid.org
 XMPP: z...@jabber.ccc.de
 Key fingerprint: BDDD 91E9 28CB 3A52 3E99  61B0 C359 2691 BAC6 A3B1
 



Re: [OpenCV] Compilation error

2011-04-06 Thread Amit Kulkarni
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 s...@spacehopper.org 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 - raf...@sizeofvoid.org
 XMPP: z...@jabber.ccc.de
 Key fingerprint: BDDD 91E9 28CB 3A52 3E99  61B0 C359 2691 BAC6 A3B1






Re: [OpenCV] Compilation error

2011-04-06 Thread 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 - raf...@sizeofvoid.org
XMPP: z...@jabber.ccc.de
Key fingerprint: BDDD 91E9 28CB 3A52 3E99  61B0 C359 2691 BAC6 A3B1



Re: [OpenCV] Compilation error

2010-10-26 Thread Jasper Lievisse Adriaanse
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
 jas...@humppa.nlwrote:
 
  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
Description: application/tar-gz


Re: [OpenCV] Compilation error

2010-10-03 Thread Jasper Lievisse Adriaanse
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.



Re: [OpenCV] Compilation error

2010-10-03 Thread 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
jas...@humppa.nlwrote:

 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.