updated library to work with the majority of tests which use "managed memory" 
instead of the simple interface.

was failing with j804 and j805, I think related to a bug in J, but library may 
have never worked on managed memory tests due to an ommitted function I had 
loaded at time of development.  I'll post on any concrete bugs I find later. 




----- Original Message -----
From: Thomas McGuire <[email protected]>
To: [email protected]
Sent: Sunday, January 29, 2017 9:47 PM
Subject: [Jprogramming] JFire/Arrayfire problem with dll on mac

Ok it turns out that on my Mac running Sierra I had some install issues with 
arrayfire. The cd error was due to libafcpu.dylib not finding libforge.0.dylib 
and then after putting in a link to fix that, then the libglfw3.dylib library 
also needed a link:

I also needed to install XQuartz so that I had an X11 library available. 

So on a new Mac: 
1) Install XQuartz
2) Install arrayfire
3) Make the examples for array fire and run them: add links for any libraries 
not found when running the examples
The 2 links I had to add were: 
ln -s /usr/local/lib/libforge.0.9.2.dylib /usr/local/lib/libforge.0.dylib
ln -s /usr/local/lib/libglfw.dylib /usr/local/lib/libglfw3.dylib
4) Change the code in arrayfire.ijs for the library path for arrayfire on your 
Mac
I changed 2 lines for my installation:
libAFmainlib =: libAFpath , (IFIOS + (;: 'Win Linux Android Darwin') i. 
<UNAME_z_) pick '\afcpu.dll'; ('libafcpu.so';'/system/lib/libafcpu.so'), (2 $ 
<'/libafcpu.dylib ')
and
libAFmainlib =: libAFpath , (IFIOS + (;: 'Win Linux Android Darwin') i. 
<UNAME_z_) pick ('\', a ,'.dll'); (('lib',a,'.so');'/system/lib/',a ,'.so'), (2 
$ <'/','lib',a,'.dylib ')
5) load arrayf_test.ijs
test1 ‘afcpu’  NB. Should work now

Tom McGuire


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm 
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to