I am trying to get blender working under TravisCI. So far I have been successful in getting linux to work. However when I try and get blender to work under the windows VM environment it crashes out with this complaint:
C:/Users/travis/build/douglaskastle/blender-2.82-nightly/blender.exe: error while loading shared libraries: libsndfile-1.dll: cannot open shared object file: No such file or directory
Has any one seen this before and do you know how to either fix it or bypass it? I am trying to run blender in batch mode so I have no need for the GUI interface or any sound.
I think I have seen this before when I have tried to X forward a linux session of blender back to a windows machine that was running a cygwin X server.
OK i did that and it appears that libsndfile-1.dll is side by side with the blender file I use. I also reverted to just called blender to return its version, which should only be a command-line only option, no GUI required.
> $ cd ../blender-${BLENDER_VERSION}
>
> The command "cd ../blender-${BLENDER_VERSION}" exited with 0.
>
> $ ./blender --version
>
> The command "./blender --version" exited with 127.
>
> cache.2
>
> store build cache
>
> The script chardetect.exe is installed in 'C:\Users\travis\.cache\blender\blender-2.80-windows64\2.80\python\Scripts' which is not on PATH.
>
> Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
>
> C:/Users/travis/build/douglaskastle/blender-2.80/blender.exe: error while loading shared libraries: AVIFIL32.dll: cannot open shared object file: No such file or directory
>
> nothing changed
Is it possible it fell through to prompt? I looks like is is awaiting commands, but it is in remote session I can’t background it.
$ cmd /c "dir C:\\Windows\\System32\\avifil32.dll"
Microsoft Windows [Version 10.0.17134.1006]
(c) 2018 Microsoft Corporation. All rights reserved.
C:\Users\travis\build\douglaskastle\blender-2.80>
cmd /c "blender --version"
Microsoft Windows [Version 10.0.17134.1006]
(c) 2018 Microsoft Corporation. All rights reserved.
C:\Users\travis\build\douglaskastle\blender-2.80>
Those i did try using the powershell way:
powershell Start-Process 'blender.exe --version'
It does seem to run, without hanging, but doesn’t return anything to the console. I need to get sysexit’s returned to have my system to work.
I suspect that the travisCI setup for windows is not fit for purpose here yet, shame
when i run it locally initially it popped up a new window that disappeared in under 200ms, when i added --NoNewWindow the output stayed in my terminal i ran the command from.
this thread on stack overflow may have some more ideas you can try.