thegooglecodearchive / pyopencv

Automatically exported from code.google.com/p/pyopencv
0 stars 0 forks source link

build segmentation fault #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

python setup.py build produces a segmentation fault. Steps

1. Downloaded and installed OpenCV2.1.0
2. Downloaded and installed both Boost.Python(boost.org) and 
bjam(sourceforge)
3. created a config file as per config file eg. viz;
"
import os
from glob import glob

# OpenCV 2.x library, to be linked against using bjam+gcc
opencv_dir = "/usr/local"
opencv_include_dirs = [opencv_dir+"/include/opencv"]
opencv_library_dirs = [opencv_dir+"/lib"]
opencv_libraries = ["highgui", "ml", "cvaux", "cv", "cxcore"]
opencv_runtime_library_dirs = []
opencv_runtime_libraries_to_be_bundled = []

# Boost library's source distribution, to be linked against using bjam+gcc 
and bundled with
boost_include_dirs = ["/home/paul/boost_1_41_0"]
boost_library_dirs = []
boost_libraries = []
boost_runtime_library_dirs = []
boost_runtime_libraries_to_be_bundled = []
"
4. download pyopencv via svn
5. ran build and the output follows below:
"
====== BEGIN OUTPUT ======
Segmentation fault

EXIT STATUS: 139
====== END OUTPUT ======

LD_LIBRARY_PATH="/usr/bin:/usr/lib:/usr/lib32:/usr/lib64:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH

    PYTHONPATH="bin/gcc-4.3.3/release/link-static"
export PYTHONPATH
 "python" "_get_ext.py"   > "bin/test_ext.test/gcc-4.3.3/release/link-
static/test_ext.output" 2>&1
    status=$?
    echo >> "bin/test_ext.test/gcc-4.3.3/release/link-
static/test_ext.output"
    echo EXIT STATUS: $status >> "bin/test_ext.test/gcc-4.3.3/release/link-
static/test_ext.output"
    if test $status -eq 0 ; then
        cp "bin/test_ext.test/gcc-4.3.3/release/link-
static/test_ext.output" "bin/test_ext.test/gcc-4.3.3/release/link-
static/test_ext"
    fi
    verbose=0
    if test $status -ne 0 ; then
        verbose=1
    fi
    if test $verbose -eq 1 ; then
        echo ====== BEGIN OUTPUT ======
        cat "bin/test_ext.test/gcc-4.3.3/release/link-
static/test_ext.output"
        echo ====== END OUTPUT ======
    fi
    exit $status

...failed capture-output bin/test_ext.test/gcc-4.3.3/release/link-
static/test_ext...
...failed updating 1 target...
...skipped 1 target...
...updated 250 targets...
error: command 'bjam' failed with exit status 1

"

Original issue reported on code.google.com by paul.mat...@gmail.com on 13 Apr 2010 at 2:31

GoogleCodeExporter commented 9 years ago
The other guy who filed issue 7 also posted the same bug and I haven't figured 
out
what happened. Could you please do me a favor? First, please run cxcoretest and
cvtest to make sure that the shared OpenCV library can be loaded and run 
properly.
Then, please search for a file named 'pyopencvext.so' in the 'bin' folder or the
'build' folder. Go to that folder. Send the command 'python', and then 'import
pyopencvext'. And tell me if there is error occurred. Thanks.

Cheers,
Minh-Tri

Original comment by pmtri80@gmail.com on 13 Apr 2010 at 2:44

GoogleCodeExporter commented 9 years ago
I think I have found a bug at the bjamcompiler.py file. Could you please, for 
now,
install numpy 1.3.0 or later first, and then try installing PyOpenCV again?

Thanks,

Cheers,
Minh-Tri

Original comment by pmtri80@gmail.com on 13 Apr 2010 at 3:33

GoogleCodeExporter commented 9 years ago
I have patched code to fix this bug in file 'bjamcompiler.py'. If you are still
experiencing problems, please feel free re-open this issue.

Cheers,
Minh-Tri

Original comment by pmtri80@gmail.com on 17 Apr 2010 at 8:05