You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However when trying to compile this library in a golang project using the same android tool chain I get the error
fatal error: 'hwloc.h' file not found
How can I make the compiler recognize the built hwloc libraries? Sorry if this is a dumb question but I'm not very good with understanding cross compilation or where the libraries are gotten from
The text was updated successfully, but these errors were encountered:
I see that hwloc gets installed in TARGET_DIR=$EXTERNAL_LIBS_ROOT/hwloc/$ANDROID_ABI hence the lib is under "lib" there while hwloc.h is under "include" there. Can you check that hwloc.h is indeed there? It should since you call "make install".
Then I see -DHWLOC_INCLUDE_DIR="$EXTERNAL_LIBS_ROOT/hwloc/$ANDROID_ABI/include " in xmrig-build.sh. But that variable isn't used anywhere else? Or is cmake clever enough to understand where it has be passed to the compiler? In the end, you should run a "verbose" build to see entire compile lines and check whether there's a -I parameter with the hwloc include dir.
I'm currently on ubuntu trying to cross compile for android on golang. I'm able to successfully build the hwloc libraries for each android architecture using https://github.com/XMRig-for-Android/xmrig-for-android/tree/main/xmrig/lib-builder
However when trying to compile this library in a golang project using the same android tool chain I get the error
fatal error: 'hwloc.h' file not found
How can I make the compiler recognize the built hwloc libraries? Sorry if this is a dumb question but I'm not very good with understanding cross compilation or where the libraries are gotten from
The text was updated successfully, but these errors were encountered: