MKBundled Mono Exe checks dependency in library folder

I linked Exe to Mono on Mac using

export AS="as -arch i386"
export CC="cc -arch i386 -framework CoreFoundation -lobjc -liconv"
export PATH=/Library/Frameworks/Mono.framework/Versions/4.0.3/bin:$PATH
mkbundle -- static myapp.exe  MonoMac.dll --deps -o myapp

He successfully creates his own app myapp. I copied the lib directory from the mono folder and pasted it onto the desktop because the application uses GTK for the user interface.

I am trying to run the application using the following script.sh

VAR=`pwd`
export DYLD_FALLBACK_LIBRARY_PATH="$VAR/lib:/usr/lib"
./myapp

The application launches successfully, provided that Mono is installed in the Library folder if I remove Mono.Framework from the library folder. I get the following error.

enter image description here

- , Mono Runtime Exe ( GTK, DYLIB). Mono ?

+4

Source: https://habr.com/ru/post/1619310/


All Articles