Tibieson / pyueye

Automatically exported from code.google.com/p/pyueye
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Compilation fails with numpy 1.7.1 #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Tried to compile pyueye but it failed on Xubuntu 13.04 with nympy 1.7.1:

warning: ueye/ueye.pyx:2116:61: local variable 'factors' referenced before 
assignment
building 'ueye.ueye' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/ueye
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 
-Wall -Wstrict-prototypes -fPIC -I. -I/usr/include/python2.7 -c ueye/ueye.c -o 
build/temp.linux-x86_64-2.7/ueye/ueye.o -D__LINUX__
In file included from /usr/include/python2.7/numpy/ndarraytypes.h:1728:0,
                 from /usr/include/python2.7/numpy/ndarrayobject.h:17,
                 from /usr/include/python2.7/numpy/arrayobject.h:15,
                 from ueye/ueye.c:258:
/usr/include/python2.7/numpy/npy_deprecated_api.h:11:2: warning: #warning 
"Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API 
NPY_1_7_API_VERSION" [-Wcpp]
ueye/ueye.c: In function ‘__pyx_pf_4ueye_4ueye_4bitspixel’:
ueye/ueye.c:1653:32: error: ‘IS_CM_BAYER_RG8’ undeclared (first use in this 
function)
ueye/ueye.c:1653:32: note: each undeclared identifier is reported only once for 
each function it appears in
ueye/ueye.c:1708:34: error: ‘IS_CM_BAYER_RG12’ undeclared (first use in 
this function)
ueye/ueye.c:1723:36: error: ‘IS_CM_BAYER_RG16’ undeclared (first use in 
this function)
ueye/ueye.c:1730:38: error: ‘IS_CM_BGR555_PACKED’ undeclared (first use in 
this function)
ueye/ueye.c:1900:38: error: ‘IS_CM_RGB10V2_PACKED’ undeclared (first use in 
this function)
ueye/ueye.c:1907:40: error: ‘IS_CM_BGR10V2_PACKED’ undeclared (first use in 
this function)
ueye/ueye.c: In function ‘__pyx_pf_4ueye_4ueye_3Cam_6GetExposureRange’:
ueye/ueye.c:3097:3: warning: implicit declaration of function 
‘is_GetExposureRange’ [-Wimplicit-function-declaration]
ueye/ueye.c: In function ‘__pyx_pf_4ueye_4ueye_3Cam_8SetExposureTime’:
ueye/ueye.c:3215:3: warning: implicit declaration of function 
‘is_SetExposureTime’ [-Wimplicit-function-declaration]
ueye/ueye.c: In function ‘__pyx_pf_4ueye_4ueye_3Cam_16GetPixelClockRange’:
ueye/ueye.c:3613:3: warning: implicit declaration of function 
‘is_GetPixelClockRange’ [-Wimplicit-function-declaration]
ueye/ueye.c: In function ‘__pyx_pf_4ueye_4ueye_3Cam_18SetPixelClock’:
ueye/ueye.c:3716:3: warning: implicit declaration of function 
‘is_SetPixelClock’ [-Wimplicit-function-declaration]
ueye/ueye.c: In function ‘__pyx_pf_4ueye_4ueye_3Cam_22SetBlCompensation’:
ueye/ueye.c:4007:3: warning: implicit declaration of function 
‘is_SetBlCompensation’ [-Wimplicit-function-declaration]
ueye/ueye.c: In function ‘__pyx_pf_4ueye_4ueye_3Cam_38SetAOI’:
ueye/ueye.c:4937:3: warning: implicit declaration of function ‘is_SetAOI’ 
[-Wimplicit-function-declaration]
ueye/ueye.c: In function ‘__pyx_pf_4ueye_4ueye_3Cam_40SetImagePos’:
ueye/ueye.c:5095:3: warning: implicit declaration of function 
‘is_SetImagePos’ [-Wimplicit-function-declaration]
ueye/ueye.c: In function 
‘__pyx_pf_4ueye_4ueye_3Cam_62LoadBadPixelCorrectionTable’:
ueye/ueye.c:6252:3: warning: implicit declaration of function 
‘is_LoadBadPixelCorrectionTable’ [-Wimplicit-function-declaration]
ueye/ueye.c: In function 
‘__pyx_pf_4ueye_4ueye_3Cam_64SaveBadPixelCorrectionTable’:
ueye/ueye.c:6353:3: warning: implicit declaration of function 
‘is_SaveBadPixelCorrectionTable’ [-Wimplicit-function-declaration]
ueye/ueye.c: In function 
‘__pyx_pf_4ueye_4ueye_3Cam_66SetBadPixelCorrection’:
ueye/ueye.c:6489:3: warning: implicit declaration of function 
‘is_SetBadPixelCorrection’ [-Wimplicit-function-declaration]
ueye/ueye.c: In function 
‘__pyx_pf_4ueye_4ueye_3Cam_68SetBadPixelCorrectionTable’:
ueye/ueye.c:6642:33: error: ‘IS_SET_BADPIXEL_LIST’ undeclared (first use in 
this function)
ueye/ueye.c:6767:5: warning: implicit declaration of function 
‘is_SetBadPixelCorrectionTable’ [-Wimplicit-function-declaration]
ueye/ueye.c:6819:33: error: ‘IS_GET_BADPIXEL_LIST’ undeclared (first use in 
this function)
ueye/ueye.c:6841:88: error: ‘IS_GET_LIST_SIZE’ undeclared (first use in 
this function)
ueye/ueye.c: In function ‘__pyx_pf_4ueye_4ueye_3Cam_76SetConvertParam’:
ueye/ueye.c:7768:3: warning: implicit declaration of function 
‘is_SetConvertParam’ [-Wimplicit-function-declaration]
ueye/ueye.c: In function ‘__pyx_pf_4ueye_4ueye_3Cam_78SetEdgeEnhancement’:
ueye/ueye.c:7869:3: warning: implicit declaration of function 
‘is_SetEdgeEnhancement’ [-Wimplicit-function-declaration]
ueye/ueye.c: In function ‘__pyx_pf_4ueye_4ueye_3Cam_92GetGlobalFlashDelays’:
ueye/ueye.c:8615:3: warning: implicit declaration of function 
‘is_GetGlobalFlashDelays’ [-Wimplicit-function-declaration]
In file included from /usr/include/python2.7/numpy/ufuncobject.h:311:0,
                 from ueye/ueye.c:259:
ueye/ueye.c: At top level:
/usr/include/python2.7/numpy/__ufunc_api.h:236:1: warning: ‘_import_umath’ 
defined but not used [-Wunused-function]
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Original issue reported on code.google.com by riklau...@gmail.com on 1 Sep 2013 at 5:51