installing opencv with homebrew: error 'dispatch_apply_f' was not declared in this scope - opencv

I'm trying to install opencv with homebrew on OS 10.5.8 but I'm totally stumped by this error:
brew install -v opencv
/tmp/opencv-Qk23/opencv-2.4.6.1/modules/core/src/parallel.cpp:106:39: error: dispatch/dispatch.h: No such file or directory
/tmp/opencv-Qk23/opencv-2.4.6.1/modules/core/src/parallel.cpp: In function 'void cv::parallel_for_(const cv::Range&, const cv::ParallelLoopBody&, double)':
/tmp/opencv-Qk23/opencv-2.4.6.1/modules/core/src/parallel.cpp:267: error: 'dispatch_queue_t' was not declared in this scope
/tmp/opencv-Qk23/opencv-2.4.6.1/modules/core/src/parallel.cpp:267: error: expected `;' before 'concurrent_queue'
/tmp/opencv-Qk23/opencv-2.4.6.1/modules/core/src/parallel.cpp:268: error: 'concurrent_queue' was not declared in this scope
/tmp/opencv-Qk23/opencv-2.4.6.1/modules/core/src/parallel.cpp:268: error: 'dispatch_apply_f' was not declared in this scope
make[2]: *** [modules/core/CMakeFiles/opencv_core.dir/src/parallel.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
make: *** [all] Error 2
Any suggestions?

Related

installing DCAP on sgx linux server

I am going to install DCAP On my linux server with Kernel : Intel(R) Xeon(R) Platinum 8370C CPU # 2.80GHz
when I run sudo ./sgx_linux_x64_driver_1.36.2.bin I get error :
'make' KDIR=/lib/modules/5.15.0-1023-azure/build....(bad exit status: 2)
ERROR (dkms apport): binary package for sgx: 1.36.2 not found
Error! Bad return status for module build on kernel: 5.15.0-1023-azure (x86_64)
Consult /var/lib/dkms/sgx/1.36.2/build/make.log for more information.
Does any one knows the reason?
cat /var/lib/dkms/sgx/1.36.2/build/make.log
DKMS make.log for sgx-1.36.2 for kernel 5.15.0-1023-azure (x86_64)
Wed 14 Dec 2022 11:57:05 AM UTC
make -C /lib/modules/5.15.0-1023-azure/build M=/var/lib/dkms/sgx/1.36.2/build CFLAGS_MODULE="-I/var/lib/dkms/sgx/1.36.2/build -I/var/lib/dkms/sgx/1.36.2/build/include" modules
make[1]: Entering directory '/usr/src/linux-headers-5.15.0-1023-azure'
CC [M] /var/lib/dkms/sgx/1.36.2/build/encl.o
CC [M] /var/lib/dkms/sgx/1.36.2/build/main.o
/var/lib/dkms/sgx/1.36.2/build/main.c: In function ‘sgx_init’:
/var/lib/dkms/sgx/1.36.2/build/main.c:792:9: note: #pragma message: kernel version may not be supported
792 | #pragma message "kernel version may not be supported"
| ^~~~~~~
CC [M] /var/lib/dkms/sgx/1.36.2/build/driver.o
CC [M] /var/lib/dkms/sgx/1.36.2/build/ioctl.o
LD [M] /var/lib/dkms/sgx/1.36.2/build/intel_sgx.o
MODPOST /var/lib/dkms/sgx/1.36.2/build/Module.symvers
ERROR: modpost: "kallsyms_lookup_name" [/var/lib/dkms/sgx/1.36.2/build/intel_sgx.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:134: /var/lib/dkms/sgx/1.36.2/build/Module.symvers] Error 1
make[2]: *** Deleting file '/var/lib/dkms/sgx/1.36.2/build/Module.symvers'
make[1]: *** [Makefile:1818: modules] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-1023-azure'
make: *** [Makefile:22: default] Error 2

zlib can't be found by make

I wanted to compile RetroArch for my Wii U but after I did make -j6 -f Makefile.wiiu, I got this error:
make: *** [Makefile.wiiu:302: objs/wiiu/./libretro-common/streams/trans_stream_zlib.o] Error 1
make: *** Waiting for unfinished jobs....
libretro-common/file/archive_file_zlib.c:34:10: fatal error: zlib.h: No such file or directory
34 | #include <zlib.h>
| ^~~~~~~~
compilation terminated.
make: *** [Makefile.wiiu:302: objs/wiiu/./libretro-common/file/archive_file_zlib.o] Error 1
I already installed zlib with pacman

RxCocoa error while starting the app on device

Currently I'm having a problem with starting the app on device. After installing rxcocoa and rxswift through cocoapods - on emulator everything is good but not on device. The error says that rxcocoa cannot be found
Here is the error log:
dyld: Library not loaded: #rpath/RxCocoa.framework/RxCocoa Referenced
from:
/private/var/containers/Bundle/Application/542D3903-715B-4FB9-9418-D25860F6F5AA/rx_goodslist.app/rx_goodslist
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/542D3903-715B-4FB9-9418-D25860F6F5AA/rx_goodslist.app/Frameworks/RxCocoa.framework/RxCocoa:
code signature invalid for
'/private/var/containers/Bundle/Application/542D3903-715B-4FB9-9418-D25860F6F5AA/rx_goodslist.app/Frameworks/RxCocoa.framework/RxCocoa'
/private/var/containers/Bundle/Application/542D3903-715B-4FB9-9418-D25860F6F5AA/rx_goodslist.app/Frameworks/RxCocoa.framework/RxCocoa:
stat() failed with errno=25
/private/var/containers/Bundle/Application/542D3903-715B-4FB9-9418-D25860F6F5AA/rx_goodslist.app/Frameworks/RxCocoa.framework/RxCocoa:
code signature invalid for
'/private/var/containers/Bundle/Application/542D3903-715B-4FB9-9418-D25860F6F5AA/rx_goodslist.app/Frameworks/RxCocoa.framework/RxCocoa'
/private/var/containers/Bundle/Application/542D3903-715B-4FB9-9418-D25860F6F5AA/rx_goodslist.app/Frameworks/RxCocoa.framework/RxCocoa:
stat() failed with errno=1
/private/var/containers/Bundle/Application/542D3903-715B-4FB9-9418-D25860F6F5AA/rx_goodslist.app/Frameworks/RxCocoa.framework/RxCocoa:
code signature invalid for
'/private/var/containers/Bundle/Application/542D3903-715B-4FB9-9418-D25860F6F5AA/rx_goodslist.app/Frameworks/RxCocoa.framework/RxCocoa'
/private/var/containers/Bundle/Application/542D3903-715B-4FB9-9418-D25860F6F5AA/rx_goodslist.app/Frameworks/RxCocoa.framework/RxCocoa:
stat() failed with errno=1 (lldb)
UPDATE: SOLVED
I just commented “use_fraemworks” in pod file and everything worked well

Opencv 3.4.1 error invalid register for .seh_savexmm

I am getting following error when I run mingw32-make
D:\MAS\AppData\Local\Temp\ccksf6tI.s: Assembler messages:
D:\MAS\AppData\Local\Temp\ccksf6tI.s:21573: Error: invalid register for .seh_savexmm
D:\MAS\AppData\Local\Temp\ccksf6tI.s:21575: Error: invalid register for .seh_savexmm
D:\MAS\AppData\Local\Temp\ccksf6tI.s:21577: Error: invalid register for .seh_savexmm
D:\MAS\AppData\Local\Temp\ccksf6tI.s:21579: Error: invalid register for .seh_savexmm
D:\MAS\AppData\Local\Temp\ccksf6tI.s:21581: Error: invalid register for .seh_savexmm
D:\MAS\AppData\Local\Temp\ccksf6tI.s:21583: Error: invalid register for .seh_savexmm
D:\MAS\AppData\Local\Temp\ccksf6tI.s:21585: Error: invalid register for .seh_savexmm
D:\MAS\AppData\Local\Temp\ccksf6tI.s:21587: Error: invalid register for .seh_savexmm
D:\MAS\AppData\Local\Temp\ccksf6tI.s:21589: Error: invalid register for .seh_savexmm
D:\MAS\AppData\Local\Temp\ccksf6tI.s:21591: Error: invalid register for .seh_savexmm
D:\MAS\AppData\Local\Temp\ccksf6tI.s:21593: Error: invalid register for .seh_savexmm
D:\MAS\AppData\Local\Temp\ccksf6tI.s:21595: Error: invalid register for .seh_savexmm
D:\MAS\AppData\Local\Temp\ccksf6tI.s:21597: Error: invalid register for .seh_savexmm
D:\MAS\AppData\Local\Temp\ccksf6tI.s:21599: Error: invalid register for .seh_savexmm
mingw32-make[2]: * [modules\dnn\CMakeFiles\opencv_dnn.dir\build.make:1016: modules/dnn/CMakeFiles/opencv_dnn.dir/layers/layers_common.avx512_skx.cpp.obj] Error 1
mingw32-make[1]: * [CMakeFiles\Makefile2:4083: modules/dnn/CMakeFiles/opencv_dnn.dir/all] Error 2
mingw32-make: *** [Makefile:162: all] Error 2
I have already tested by passing -fno-asynchronous-unwind-tables to cmake3.11
I am running windows 10 ver 1709
Try disabling Dispatched CPU optimizations by passing the -DCPU_DISPATCH= flag to CMake.
Edit: Your compiler doesn't support AVX optimizations. If you're building with CMake, clear the CPU_DISPATCH row of anything AVX-related.

Could not find gem 'byebug x64-mingw32' for run server ruby on rails?

I when run server i get above error i try to install 'gem install web-console,byebug,tzinfo-data' i get this error :
C:\Users\RaminFP>gem install web-console
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
C:\RubyDevKit\bin\rm.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0
C:\RubyDevKit\bin\sh.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0
C:\RubyDevKit\bin\echo.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0
ERROR: Error installing web-console:
ERROR: Failed to build gem native extension.
C:/Ruby22-x64/bin/ruby.exe -r ./siteconf20160212-7132-1g0f7us.rb extconf.rb
creating Makefile
make "DESTDIR=" clean
0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487
AllocationBase 0x0, BaseAddress 0x60E90000, RegionSize 0x290000, State 0x10000
C:\RubyDevKit\bin\rm.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0
makefile:187: recipe for target 'clean-static' failed
make: [clean-static] Error 1 (ignored)
0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487
AllocationBase 0x0, BaseAddress 0x60E90000, RegionSize 0x290000, State 0x10000
C:\RubyDevKit\bin\sh.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0
makefile:170: recipe for target 'clean' failed
make: [clean] Error 1 (ignored)
make "DESTDIR="
0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487
AllocationBase 0x0, BaseAddress 0x60E90000, RegionSize 0x290000, State 0x10000
C:\RubyDevKit\bin\echo.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0
makefile:260: recipe for target 'debug_inspector-x64-mingw32.def' failed
make: *** [debug_inspector-x64-mingw32.def] Error 1
make failed, exit code 2
Gem files will remain installed in C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/debug_inspector-0.0.2 for inspection.
Results logged to C:/Ruby22-x64/lib/ruby/gems/2.2.0/extensions/x64- mingw32/2.2.0/debug_inspector-0.0.2/gem_make.out
i use IDE intellij for runserver and get error , not find,
what happen here?
i believe you need to rebase dlls in your bin directory by doing:-
rebase.exe -b 0x50000000 msys-1.0.dll
reference: http://jakob.engbloms.se/archives/1403

Resources