![]() This means that most software is still built to run on amd64 processors so when we install OpenCV, there is a strong chance your computer, or dependency manager, tries to install an amd64 version. However, computers using arm64 processors are a very small subset compared to the billions of amd64 computers that have been around for the last 15 years. Macs with M1 processors use the arm64 architecture which is incompatible with the amd64 architecture used by the likes of Intel and AMD. Its dependency list includes packages like ffmpeg, libgfortran, and pixman which is where the issues start, especially for the M1. OpenCV is a large library with a lot of dependencies though. It provides a large set of image manipulation tools that are very useful for processing images and image streams often for use with machine learning algorithms. Src/_dp.OpenCV is one of the most popular computer vision libraries. # with a previous Python 3 version, which might make them differ in naming.Ĭlang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -DCONFD_PY_PRODUCT_NCS=1 -DCONFD_C_PRODUCT_NCS=1 -D_TM=\"_ncs\" -UNDEBUG -I/Users/user/confd/include -Iinclude -c _ncs/_ncs.c -o build/_ncs/_ncs_p圓.abi3.so/_ncs/_ncs.o -std=c99Ĭlang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -DCONFD_PY_PRODUCT_NCS=1 -DCONFD_C_PRODUCT_NCS=1 -D_TM=\"_ncs\" -UNDEBUG -I/Users/user/confd/include -Iinclude -c src/_cdb.c -o build/_ncs/_ncs_p圓.abi3.so/src/_cdb.o -std=c99Ĭlang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -DCONFD_PY_PRODUCT_NCS=1 -DCONFD_C_PRODUCT_NCS=1 -D_TM=\"_ncs\" -UNDEBUG -I/Users/user/confd/include -Iinclude -c src/_dp.c -o build/_ncs/_ncs_p圓.abi3.so/src/_dp.o -std=c99 # Clean all Python 3 so files, including possible leftovers. PROD=NCS /Library/Developer/CommandLineTools/usr/bin/make src/gen_add_lib_const.c I then tried to compile ncs, but I get this error: ❰user❙~/n/s/n/pyapi❱✘≻ make ncs-p圓 logs/ncs-python-vm -i l2vpnįile "/Users/user/nso-5.8/src/ncs/pyapi/ncs_pyvm/startup.py", line 6, in įile "/Users/user/nso-5.8/src/ncs/pyapi/ncs_pyvm/ncsctlsock.py", line 5, in įile "/Users/user/nso-5.8/src/ncs/pyapi/_ncs/_init_.py", line 12, in When I go to the tailf site, ConfD basic installs are no longer available (currently).įrom logs/ncs-python-vm.log I can see: ::14:07:03.970 MAC ncs: l2vpn :: Starting python3 -u /Users/user/nso-5.8/src/ncs/pyapi/ncs_pyvm/startup.py -l info -f. It's also necessary to have access to a built libconfd library. The build requires gcc and GNU make and the development libraries Which I'm guessing is because I don't have a local install of the ConfD library. ![]() Make: *** No rule to make target `./ncs/dm/tailf-ncs.yang', needed by `tmp_fxs/tailf-ncs.fxs'. Make: *** No rule to make target `_confd/_confd.c', needed by `_confd/_confd_p圓.abi3.so'. I tried going into the src/ncs/pyapi/ directory to try to remake the files, however the make of the pyapi fails with the following error. ImportError: dlopen(/Users/sam/Documents/ncs/install-5.5.2.12/src/ncs/pyapi/_ncs/_ncs_p圓.abi3.so, 0x0002): tried: '/Users/sam/Documents/ncs/install-5.3.5.1/src/ncs/pyapi/_ncs/_ncs_p圓.abi3.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')) ![]() ![]() ![]() Looking in the ncs-python-vm.log, it states that the mach-o file is of type x86_64. The NSO Darwin install of NSO for my M1 Macbook works fine for ncs and java, however the python vm fails to load. ![]()
0 Comments
Leave a Reply. |