Hi! I'm running Manajro, and I'm tring to install butterflow using the instructions provided here.
$ sudo python setup.py install
running install
running bdist_egg
running egg_info
writing butterflow.egg-info/PKG-INFO
writing dependency_links to butterflow.egg-info/dependency_links.txt
writing entry points to butterflow.egg-info/entry_points.txt
writing top-level names to butterflow.egg-info/top_level.txt
reading manifest file 'butterflow.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.pyc' found under directory 'tests'
writing manifest file 'butterflow.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
building 'butterflow.ocl' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fno-semantic-interposition -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fPIC -I/usr/include/python3.8 -c /data/Applications/butterflow/butterflow/ocl.cpp -o build/temp.linux-x86_64-3.8/data/Applications/butterflow/butterflow/ocl.o -Wno-unused-variable -Wno-unused-function -Wno-cpp
/data/Applications/butterflow/butterflow/ocl.cpp: In function ‘PyObject* print_ocl_devices(PyObject*, PyObject*)’:
/data/Applications/butterflow/butterflow/ocl.cpp:71:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘cl_uint’ {aka ‘unsigned int’} [-Wsign-compare]
71 | for (int i = 0; i < n_platforms; i++) {
| ~~^~~~~~~~~~~~~
/data/Applications/butterflow/butterflow/ocl.cpp:89:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘cl_uint’ {aka ‘unsigned int’} [-Wsign-compare]
89 | for (int j = 0; j < n_devices; j++) {
| ~~^~~~~~~~~~~
/data/Applications/butterflow/butterflow/ocl.cpp:117:48: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘cl_uint’ {aka ‘unsigned int’} [-Wformat=]
117 | "\n Vendor Id\t\t: 0x%lx"
| ~~^
| |
| long unsigned int
| %x
......
122 | selected_string, d_num, d_name, d_vendor_id, d_vers, d_dver,
| ~~~~~~~~~~~
| |
| cl_uint {aka unsigned int}
/data/Applications/butterflow/butterflow/ocl.cpp: In function ‘int ocl_device_is_compatible(char*, char*, char*, size_t, size_t*)’:
/data/Applications/butterflow/butterflow/ocl.cpp:147:42: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘const int’ [-Wsign-compare]
147 | compatible &= d_max_work_item_sizes[0] >= MIN_FB_WORK_ITEM_SIZES[0];
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/Applications/butterflow/butterflow/ocl.cpp:148:42: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘const int’ [-Wsign-compare]
148 | compatible &= d_max_work_item_sizes[1] >= MIN_FB_WORK_ITEM_SIZES[1];
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/Applications/butterflow/butterflow/ocl.cpp:149:42: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘const int’ [-Wsign-compare]
149 | compatible &= d_max_work_item_sizes[2] >= MIN_FB_WORK_ITEM_SIZES[2];
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/Applications/butterflow/butterflow/ocl.cpp: In function ‘PyObject* compat_ocl_device_available(PyObject*, PyObject*)’:
/data/Applications/butterflow/butterflow/ocl.cpp:168:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘cl_uint’ {aka ‘unsigned int’} [-Wsign-compare]
168 | for (int i = 0; i < n_platforms; i++) {
| ~~^~~~~~~~~~~~~
/data/Applications/butterflow/butterflow/ocl.cpp:179:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘cl_uint’ {aka ‘unsigned int’} [-Wsign-compare]
179 | for (int j = 0; j < n_devices; j++) {
| ~~^~~~~~~~~~~
/data/Applications/butterflow/butterflow/ocl.cpp: In function ‘PyObject* select_ocl_device(PyObject*, PyObject*)’:
/data/Applications/butterflow/butterflow/ocl.cpp:205:32: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
205 | int preferred_device_num = PyInt_AsLong(arg);
| ^~~~~~~~~~~~
| PyLong_AsLong
/data/Applications/butterflow/butterflow/ocl.cpp:221:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘cl_uint’ {aka ‘unsigned int’} [-Wsign-compare]
221 | for (int i = 0; i < n_platforms; i++) {
| ~~^~~~~~~~~~~~~
/data/Applications/butterflow/butterflow/ocl.cpp:232:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘cl_uint’ {aka ‘unsigned int’} [-Wsign-compare]
232 | for (int j = 0; j < n_devices; j++) {
| ~~^~~~~~~~~~~
/data/Applications/butterflow/butterflow/ocl.cpp: In function ‘PyObject* set_cache_path(PyObject*, PyObject*)’:
/data/Applications/butterflow/butterflow/ocl.cpp:282:24: error: ‘PyString_AsString’ was not declared in this scope
282 | char *cache_path = PyString_AsString(arg);
| ^~~~~~~~~~~~~~~~~
/data/Applications/butterflow/butterflow/ocl.cpp: In function ‘PyObject* set_num_threads(PyObject*, PyObject*)’:
/data/Applications/butterflow/butterflow/ocl.cpp:290:21: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
290 | int n_threads = PyInt_AsLong(arg);
| ^~~~~~~~~~~~
| PyLong_AsLong
/data/Applications/butterflow/butterflow/ocl.cpp: In function ‘PyObject* get_current_ocl_device_name(PyObject*, PyObject*)’:
/data/Applications/butterflow/butterflow/ocl.cpp:299:12: error: ‘PyString_FromString’ was not declared in this scope; did you mean ‘PyLong_FromString’?
299 | return PyString_FromString(currentDevice.deviceName.c_str());
| ^~~~~~~~~~~~~~~~~~~
| PyLong_FromString
/data/Applications/butterflow/butterflow/ocl.cpp: In function ‘PyObject* initocl()’:
/data/Applications/butterflow/butterflow/ocl.cpp:320:12: error: ‘Py_InitModule’ was not declared in this scope
320 | (void) Py_InitModule("ocl", module_methods);
| ^~~~~~~~~~~~~
/data/Applications/butterflow/butterflow/ocl.cpp:321:1: warning: no return statement in function returning non-void [-Wreturn-type]
321 | }
| ^
error: command 'gcc' failed with exit status 1
Hi! I'm running Manajro, and I'm tring to install butterflow using the instructions provided here.
I've installed
opencv2from AUR, and this is where I'm at:What am I doing wrong?