Closed chihyuwang closed 6 years ago
Looks like it's missing the header for ARM NEON intrinsics. Adding #include <arm_neon.h>
(if I recall correctly) should fix it.
However, note that lycon is untested on aarch64
and there may be further issues.
thanks for your help.
sudo apt-get install cmake build-essential libjpeg-dev libpng-dev
Converting all the offending calls from cv_vrndq_u32_f32
and cv_vrndq_s32_f32
to vcvtnq_u32_f32
and vcvtnq_s32_f32
, respectively, also works and the resulting code compiles and runs on Intel CPUs (in my hands) as well as Apple Silicon. This method does not introduce a dependency on OpenCV as in PR #18 .
Following the install instructions, (1)my first step : checking all the dependency , sudo apt-get install cmake build-essential libjpeg-dev libpng-dev below is the result:
nvidia@tegra-ubuntu:~$ sudo apt-get install cmake build-essential libjpeg-dev libpng-dev Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'libpng12-dev' instead of 'libpng-dev' build-essential is already the newest version (12.1ubuntu2). libjpeg-dev is already the newest version (8c-2ubuntu8). libpng12-dev is already the newest version (1.2.54-1ubuntu1). cmake is already the newest version (3.5.1-1ubuntu3). The following packages were automatically installed and are no longer required: bind9-host geoip-database libavahi-core7 libbind9-140 libdns162 libgeoip1 libisc160 libisccc140 libisccfg140 liblwres141 Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 17 not upgraded.
(2)my second step : install lycon, sudo pip install lycon below is the result:
nvidia@tegra-ubuntu:~$ sudo pip install lycon The directory '/home/nvidia/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. The directory '/home/nvidia/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Collecting lycon Downloading lycon-0.1.9.tar.gz (129kB) 100% |████████████████████████████████| 133kB 1.2MB/s Requirement already satisfied: numpy in /usr/local/lib/python2.7/dist-packages (from lycon) Installing collected packages: lycon Running setup.py install for lycon ... error Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-nYL9iq/lycon/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-x2BoCo-record/install-record.txt --single-version-externally-managed --compile: running install running build running build_py creating build creating build/lib.linux-aarch64-2.7 creating build/lib.linux-aarch64-2.7/lycon copying lycon/enum.py -> build/lib.linux-aarch64-2.7/lycon copying lycon/init.py -> build/lib.linux-aarch64-2.7/lycon copying lycon/core.py -> build/lib.linux-aarch64-2.7/lycon running egg_info writing requirements to lycon.egg-info/requires.txt writing lycon.egg-info/PKG-INFO writing top-level names to lycon.egg-info/top_level.txt writing dependency_links to lycon.egg-info/dependency_links.txt warning: manifest_maker: standard file '-c' not found
Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-nYL9iq/lycon/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-x2BoCo-record/install-record.txt --single-version-externally-managed --compile" failed with error code 255 in /tmp/pip-build-nYL9iq/lycon/ nvidia@tegra-ubuntu:~$
How to fix the errors?