Forge issue: [osx 10.15.7 and ArrayFire v3.7.2 installed from binaries]

36 views
Skip to first unread message

Jason Yin

unread,
Dec 28, 2020, 2:30:25 PM12/28/20
to ArrayFire Users
Hi, 

I downloaded ArrayFire installer for osx and tried the examples. 
It seems whenever graphics is used, there's an error info (see below). 
Please help. Thanks.  
=======================================================
ArrayFire v3.7.2 (OpenCL, 64-bit Mac OSX, build 218dd2c99)
[0] APPLE: AMD Radeon Pro 5300M Compute Engine, 4080 MB
-1- APPLE: Intel(R) UHD Graphics 630, 1536 MB
ArrayFire Exception (Failed to load dynamic library. :501):
In function fg_window graphics::ForgeManager::getMainWindow()
In file src/backend/common/graphics_common.cpp:274
Error loading Forge: dlopen(libStatTimer.dylib, 2): image not found
Forge or one of it's dependencies failed to load. Try installing Forge or check if Forge is in the search path.
 0# graphics::ForgeManager::getMainWindow() in /opt/arrayfire/lib/libafopencl.3.7.2.dylib
 1# graphics::ForgeManager::getWindow(int, int, char const*, bool) in /opt/arrayfire/lib/libafopencl.3.7.2.dylib
 2# af_create_window in /opt/arrayfire/lib/libafopencl.3.7.2.dylib
 3# af::Window::initWindow(int, int, char const*) in /opt/arrayfire/lib/libafopencl.3.7.2.dylib
 4# main in /Users/gy114/Dropbox/iMacBackup/NetBeansProjects/ArrayFireTest/dist/Debug/CLang-MacOSX/arrayfiretest

In function void af::Window::initWindow(const int, const int, const char *const)
In file src/api/cpp/graphics.cpp:19
libc++abi.dylib: terminating with uncaught exception of type af::exception: ArrayFire Exception (Failed to load dynamic library. :501):
In function fg_window graphics::ForgeManager::getMainWindow()
In file src/backend/common/graphics_common.cpp:274
Error loading Forge: dlopen(libStatTimer.dylib, 2): image not found
Forge or one of it's dependencies failed to load. Try installing Forge or check if Forge is in the search path.
 0# graphics::ForgeManager::getMainWindow() in /opt/arrayfire/lib/libafopencl.3.7.2.dylib
 1# graphics::ForgeManager::getWindow(int, int, char const*, bool) in /opt/arrayfire/lib/libafopencl.3.7.2.dylib
 2# af_create_window in /opt/arrayfire/lib/libafopencl.3.7.2.dylib
 3# af::Window::initWindow(int, int, char const*) in /opt/arrayfire/lib/libafopencl.3.7.2.dylib
 4# main in /Users/gy114/Dropbox/iMacBackup/NetBeansProjects/ArrayFireTest/dist/Debug/CLang-MacOSX/arrayfiretest

In function void af::Window::initWindow(const int, const int, const char *const)
In file src/api/cpp/graphics.cpp:19

Pradeep Garigipati

unread,
Dec 28, 2020, 11:33:07 PM12/28/20
to Jason Yin, ArrayFire Users
Hello Jason,

Forge is a graphics related direct dependency of ArrayFire. It is shipped along with ArrayFire libraries in the website binaries. One key aspect of ArrayFire graphics functionality is that the required forge dynamic library is loaded at runtime when the first graphics related API call is made. Hence, you see the below error message.


libc++abi.dylib: terminating with uncaught exception of type af::exception: ArrayFire Exception (Failed to load dynamic library. :501):
In function fg_window graphics::ForgeManager::getMainWindow()
In file src/backend/common/graphics_common.cpp:274
Error loading Forge: dlopen(libStatTimer.dylib, 2): image not found
Forge or one of it's dependencies failed to load. Try installing Forge or check if Forge is in the search path.

You need to make the "$AF_PATH/lib" path available via LD_LIBRARY_PATH where the AF_PATH environment variable points to ArrayFire installation. If LD_LIBRARY_PATH doesn't work, try DYLD_LIBRARY_PATH.

That should resolve the problem I think.

Regards,
Pradeep.

--
You received this message because you are subscribed to the Google Groups "ArrayFire Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to arrayfire-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/arrayfire-users/2a29ed8c-49b9-44e8-9264-128b43c41a20n%40googlegroups.com.


--
Reply all
Reply to author
Forward
0 new messages