Lidar_AI_Solution
Lidar_AI_Solution copied to clipboard
Python binding for cuOsd build failure
cuOsd builds OK but when running make pycuosd
I get following error
$ make pycuosd
Use Python Include: /home/anaconda3/include/python3.8
Use Python SO Name: python3.8
Use Python Library: /home/anaconda3/lib
Use PyBind11: /storage/demo/Lidar_AI_Solution/dependencies/pybind11/include
Compile Python CXX test/pycuosd.cpp
test/pycuosd.cpp: In member function ‘void cuOSD::rgba_source(void*, int, int, int, int)’:
test/pycuosd.cpp:145:57: error: invalid conversion from ‘void*’ to ‘int’ [-fpermissive]
cuosd_draw_rgba_source(context_, d_src, cx, cy, w, h);
^
test/pycuosd.cpp:145:57: error: invalid conversion from ‘int’ to ‘void*’ [-fpermissive]
test/pycuosd.cpp:145:57: error: too few arguments to function ‘void cuosd_draw_rgba_source(cuOSDContext_t, int, int, int, int, void*, int, int, int)’
In file included from test/pycuosd.cpp:39:0:
src/cuosd.h:144:6: note: declared here
void cuosd_draw_rgba_source(
^~~~~~~~~~~~~~~~~~~~~~
test/pycuosd.cpp: In member function ‘void cuOSD::nv12_source(void*, void*, int, int, int, int, pybind11::tuple, bool)’:
test/pycuosd.cpp:149:103: error: invalid conversion from ‘void*’ to ‘int’ [-fpermissive]
cuosd_draw_nv12_source(context_, d_src0, d_src1, cx, cy, w, h, pytocolor(mask_color), block_linear);
^
test/pycuosd.cpp:149:103: error: invalid conversion from ‘void*’ to ‘int’ [-fpermissive]
test/pycuosd.cpp:149:103: error: invalid conversion from ‘int’ to ‘void*’ [-fpermissive]
test/pycuosd.cpp:149:103: error: invalid conversion from ‘int’ to ‘void*’ [-fpermissive]
test/pycuosd.cpp:149:103: error: cannot convert ‘cuOSDColor {aka _cuOSDColor}’ to ‘int’ for argument ‘8’ to ‘void cuosd_draw_nv12_source(cuOSDContext_t, int, int, int, int, void*, void*, int, int, int, unsigned char, bool)’
Makefile:137: recipe for target 'objs/test/pycuosd.cpp.o' failed
make: *** [objs/test/pycuosd.cpp.o] Error 1