So I got help from Victor Lazzarini and solved the issue with libwidgets and libvirtual not opening. Pasted is the solution that is also present somewhere in another forum. you can follow the same code subsituting libwidget for libvirtual.
"
I noticed that the installer had a problem where the libwidgets.dylib plugin was linking to a libpng.dylib that
was in /usr/local/lib, instead of the correct one that we ship inside the framework. I fixed this, but
that will only take effect at the next release. For now, you can use these commands to solve your
problem:
- first check that this is the case:
$ otool -L /Library/Frameworks/CsoundLib64.framework/Resources/Opcodes64/libwidgets.dylib
/Library/Frameworks/CsoundLib64.framework/Resources/Opcodes64/libwidgets.dylib:
libwidgets.dylib (compatibility version 0.0.0, current version 0.0.0)
@loader_path/…/…/…/…/libs/libfltk_images.1.3.dylib (compatibility version 1.3.0, current version 1.3.3)
/usr/local/lib/libpng16.16.dylib (compatibility version 23.0.0, current version 23.0.0)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
@loader_path/…/…/…/…/libs/libfltk.1.3.dylib (compatibility version 1.3.0, current version 1.3.3)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)
/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 21.0.0)
— see the line /usr/local/lib/libpng16.16.dylib (compatibility version 23.0.0, current version 23.0.0)? That’s the problem.
- Change the linked-to library. First go to the plugin dir to simplify the commands
$ cd /Library/Frameworks/CsoundLib64.framework/Resources/Opcodes64/
then use install_name_tool to change the link in libwidgets.dylib to the correct one
$ sudo install_name_tool -change /usr/local/lib/libpng16.16.dylib @loader_path/…/…/…/…/libs/libpng16.16.dylib libwidgets.dylib
- check that it’s done:
$ otool -L libwidgets.dylib
libwidgets.dylib:
libwidgets.dylib (compatibility version 0.0.0, current version 0.0.0)
@loader_path/…/…/…/…/libs/libfltk_images.1.3.dylib (compatibility version 1.3.0, current version 1.3.3)
@loader_path/…/…/…/…/libs/libpng16.16.dylib (compatibility version 23.0.0, current version 23.0.0)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
@loader_path/…/…/…/…/libs/libfltk.1.3.dylib (compatibility version 1.3.0, current version 1.3.3)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)
/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 21.0.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 104.1.0)
then it should be back working
"