-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Description
I went to the end of the tutorial and complete building the executable successfully, but the executable fails with an Reason: image not found error, basically failing to link to the dylib even though it is copied to the folder in which it resides:
$ pwd
$HOME/Downloads/src/muon/examples/create-react-app
create-react-app $ ls
README.md libglib-2.0.dylib@
b0x.yml libgmodule-2.0.0.dylib
cra-go* libgmodule-2.0.dylib@
go.mod libgobject-2.0.0.dylib
go.sum libgobject-2.0.dylib@
libAppCore.dylib libgstreamer-full-1.0.dylib
libUltralight.dylib libgthread-2.0.0.dylib
libUltralightCore.dylib libgthread-2.0.dylib@
libWebCore.dylib main.go
libgio-2.0.0.dylib public/
libgio-2.0.dylib@ webfiles/
libglib-2.0.0.dylib
create-react-app $ ./cra-go
dyld: Library not loaded: @rpath/libUltralightCore.dylib
Referenced from: $HOME/Downloads/src/muon/examples/create-react-app/./cra-go
Reason: image not found
Abort trap: 6
create-react-app $ otool -L cra-go
cra-go:
@rpath/libUltralightCore.dylib (compatibility version 0.0.0, current version 0.0.0)
@rpath/libWebCore.dylib (compatibility version 0.0.0, current version 0.0.0)
@rpath/libUltralight.dylib (compatibility version 0.0.0, current version 0.0.0)
@rpath/libAppCore.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1281.100.1)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1677.104.0)
/System/Library/Frameworks/Security.framework/Versions/A/Security (compatibility version 1.0.0, current version 59306.140.5)
create-react-app $ otool -L libUltralightCore.dylib
libUltralightCore.dylib:
@rpath/libUltralightCore.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 400.9.4)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.200.5)I resolved this by the following
$ export DYLD_LIBRARY_PATH=$PWDbut running ./cra-go after that produces no error but does nothing
Any idea what the issue is?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels