I installed the IPCV module in a iMac under Sonoma 14.2.1, atomsLoad("IPCV") failed,

What I got :
→ p = setdiff(atomsGetInstalled(), atomsGetLoaded())
p =

“4.5.0” “I” “IPCV” “SCI/contrib/IPCV/4.5.0” “allusers”

→ atomsLoad(“IPCV”);

Start IPCV 4.5.0
Image Processing and Computer Vision Toolbox for Scilab
2020 - Scilab Academy
Load macros
Load dependencies

“”

“------------------------------------------------------”

“Error : Can not load some dependencies.”

“link: The shared archive was not loaded: dlopen(libavutil.dylib, 0x000A): tried: ‘/Applications/scilab-2024.0.0.app/Contents/share/scilab/…/…/lib/scilab//libavutil.dylib’ (no such file), ‘/libavutil.dylib’ (no such file), ‘libavutil.dylib’ (no such file), ‘/System/Volumes/Preboot/Cryptexes/OSlibavutil.dylib’ (no such file), ‘/Applications/scilab-2024.0.0.app/Contents/lib/thirdparty/libavutil.dylib’ (no such file), ‘/Applications/scilab-2024.0.0.app/Contents/lib/scilab/libavutil.dylib’ (no such file), ‘/Applications/scilab-2024.0.0.app/Contents/lib/thirdparty/libavutil.dylib’ (no such file), ‘/Applications/scilab-2024.0.0.app/Contents/thirdparty/jre/lib/libavutil.dylib’ (no such file), ‘/Applications/scilab-2024.0.0.app/Contents/lib/scilab/libavutil.dylib’ (no such file), ‘/usr/lib/libavutil.dylib’ (no such file, not in dyld cache), ‘libavutil.dylib’ (no such file), ‘/Applications/scilab-2024.0.0.app/Contents/lib/thirdparty/libavutil.dylib’ (no such file)”

“”

“------------------------------------------------------”
Load gateways
atomsLoad: An error occurred while loading ‘IPCV-4.5.0’:
exec: error on line #114: “addinter: The shared archive was not loaded: dlopen(/Applications/scilab-2024.0.0.app/Contents/share/scilab/contrib/IPCV/4.5.0/sci_gateway/cpp//libgw_ipcv.dylib, 0x000A): symbol not found in flat namespace ‘__ZTIN2cv9ExceptionE’”
at line 346 of function atomsLoad ( /Applications/scilab-2024.0.0.app/Contents/share/scilab/modules/atoms/macros/atomsLoad.sci line 362 )

Hello,

Can you do the following on Scilab command line

edit SCI/contrib/IPCV/4.5.0/etc/IPCV_unix.sci

then change line 8

ffmpeg_libs = ["avutil"; "swscale"; "avcodec"; "avformat"; "avfilter"; "avdevice"];

to

ffmpeg_libs = ["avutil"; "swscale"; "swresample"; "avcodec"; "avformat"; "avfilter"; "avdevice"];

i.e. add “swresample” just after “swscale”. atomsLoad(“IPCV”) should run fine then.

I also updated the binary of the toolbox on Atoms.

Thanks for the report.

S.

Dear Stephane,

It now works perfectly well. Superb, I am grateful.

Many thanks to you.

Amicalement, Bernard

1 Like