>
>
> Quick note: By linker bug I really meant a bug in your make system, not in
> the linker itself :-) But I guess that's how you interpreted it.
>
> Dag Sverre
>
> _______________________________________________
>
Here is a pure cython example that exhibits the same behavior. The cimports
are simply .pxd files of header prototypes.
#---------- purecython.pyx -----------------#
cimport c_cxcore
cimport c_highgui
cimport c_cv
cimport c_constants
cdef tester():
cdef c_cxcore.IplImage* img1
cdef c_cxcore.IplImage* img2
img1 = c_highgui.cvLoadImage("2.bmp", 1)
img2 = c_cxcore.cvCreateImage(c_cxcore.cvSize(640, 480), 8, 3)
c_cv.cvResize(img1, img2, c_constants.CV_INTER_AREA)
c_highgui.cvNamedWindow("test", 1)
c_highgui.cvShowImage("test", img2)
c_highgui.cvWaitKey(0)
def test():
tester()
What do you mean by problem with my make system? Meaning a problem with my
setup.py or a problem with the compiler?
here is my setup.py script:
#-------------- setup.py --------------------#
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
sourcefiles = ['cy_constants.pyx', 'cy_cvtypes.pyx', 'cy_cxcore.pyx',
'cy_highgui.pyx', 'cy_cv.pyx', 'cyopencv.pyx']
include_dirs = ['C:\\OpenCVsvn\\build\\include\\opencv']
library_dirs = ['C:\\OpenCVsvn\\build\\lib']
libraries = ['highgui110',
'cxcore110',
'cv110',
'cvaux110',
'cxts110',
'cvhaartraining',
'ml110']
for source in sourcefiles:
setup(
cmdclass = {'build_ext': build_ext},
ext_modules = [Extension(source.rstrip('.pyx'), [source],
include_dirs=include_dirs,
library_dirs=library_dirs,
libraries = libraries)]).
Cheers!
Chris
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev