Hi, I'm new to OpenCV and I'm giving it a try.
I had compiled OpenCV 2.4.7 source in an old AMD Athlon 2.2 Ghz machine with Ubuntu.
The examples don't work, I receive SIGILL, illegal instruction for instruction cvtps2pd .
Is this an issue with cmake or anything related in the building process?
I've followed the instructions from http://docs.opencv.org/doc/tutorials/introduction/linux_install/linux_install.html
wich lead to:
cd ~/opencv mkdir release cd release cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local .. make sudo make install
Here is the stack from GDB and some info on the machine.
====================================================
This GDB was configured as "i686-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Lendo símbolos de /home/usuario/opencv-2.4.7/release/bin/c-example-contours...(no debugging symbols found)...concluído.
(gdb) r
Starting program: /home/usuario/opencv-2.4.7/release/bin/c-example-contours
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
**Program received signal SIGILL, Illegal instruction.
0xb7bbe891 in cv::initInterTab2D(int, bool) ()**
from /home/usuario/opencv-2.4.7/release/lib/libopencv_imgproc.so.2.4
**(gdb) bt**
#0 0xb7bbe891 in cv::initInterTab2D(int, bool) ()
from /home/usuario/opencv-2.4.7/release/lib/libopencv_imgproc.so.2.4
#1 0xb7b10b05 in _GLOBAL__sub_I_imgwarp.cpp ()
from /home/usuario/opencv-2.4.7/release/lib/libopencv_imgproc.so.2.4
#2 0xb7fed206 in call_init (env=0xbffff2dc, argv=0xbffff2d4, argc=1,
l=<optimized out>) at dl-init.c:84
#3 call_init (l=<optimized out>, argc=1, argv=0xbffff2d4, env=0xbffff2dc)
at dl-init.c:34
#4 0xb7fed2ec in _dl_init (main_map=0xb7fff938, argc=1, argv=0xbffff2d4,
env=0xbffff2dc) at dl-init.c:133
#5 0xb7fdf1cf in _dl_start_user () from /lib/ld-linux.so.2
**(gdb) x/i 0xb7bbe891**
=> 0xb7bbe891 <_ZN2cvL14initInterTab2DEib+1041>: **cvtps2pd %xmm0,%xmm7**
====================================================
lscpu
Arquitetura: i686
Modo(s) operacional da CPU32-bit
Byte Order: Little Endian
CPU(s): 1
On-line CPU(s) list: 0
Thread(s) per núcleo 1
Núcleo(s) por soquete:1
Soquete(s): 1
ID de fornecedor: AuthenticAMD
Família da CPU: 6
Modelo: 8
Step: 1
CPU MHz: 2200.131
BogoMIPS: 4400.26
cache de L1d: 64K
cache de L1i: 64K
cache de L2: 256K
====================================================
uname -a
Linux sempron2600 3.11.0-14-generic #21-Ubuntu SMP Tue Nov 12 17:07:40 UTC 2013 i686 athlon i686 GNU/Linux
====================================================