Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux x86 upstream build NativeCore.so exception #241

Closed
ihateadmins opened this issue Nov 4, 2022 · 2 comments
Closed

linux x86 upstream build NativeCore.so exception #241

ihateadmins opened this issue Nov 4, 2022 · 2 comments

Comments

@ihateadmins
Copy link

x64 build works flawless, but x86 is displaying error msgbox in Release:
Failed to load native core functions! Couldnt find at location /home/foo/ReClass.NET-projects/ReClass.NET/build/Release/x86/NativeCore.so

and in Debug version:

Unhandled Exception:
System.IO.FileNotFoundException: Failed to load native core functions! Couldnt find at location /home/foo/ReClass.NET-projects/ReClass.NET/build/Debug/x86/NativeCore.so
at ReClassNET.Core.InternalCoreFunctions.Create () [0x0003e] in :0
at ReClassNET.Core.CoreFunctionsManager..ctor () [0x00013] in :0
at ReClassNET.Program.Main (System.String[] args) [0x000f0] in :0
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Failed to load native core functions!
Couldnt find at location /home/foo/ReClass.NET-projects/ReClass.NET/build/Debug/x86/NativeCore.so
at ReClassNET.Core.InternalCoreFunctions.Create () [0x0003e] in :0
at ReClassNET.Core.CoreFunctionsManager..ctor () [0x00013] in :0
at ReClassNET.Program.Main (System.String[] args) [0x000f0] in :0

NativeCore.so exists in both directories for build and debug x86. It is the same file as in the respective NativeCore/Unix/ x86 directories

#root@foo /h/f/R/R/b/D/x86 (master) [1]# file NativeCore.so
NativeCore.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (GNU/Linux), dynamically linked, Build
ID[sha1]=4023686347f2ac70c5ff16d1403b613bb363fe2d, with debug_info, not stripped

Arch Linux with mono-msbuild 16.10.1.xamarinxplat.2021.05.26.14.00-3

@ihateadmins
Copy link
Author

solution was using the x64 NativeCore.so also for Reclass (x86)

@AIVDNL
Copy link

AIVDNL commented Nov 5, 2022

Having the same issue but for both x86 and x64 on multiple distributions. (Ubuntu 20.04 and Debian 11)

unable to run reclass....
Unhandled Exception:
System.IO.FileNotFoundException: Failed to load native core functions! Couldnt find at location /home/foo/Desktop/ReClass.NET-master/build/Debug/x64/NativeCore.so
at ReClassNET.Core.InternalCoreFunctions.Create () [0x0003e] in <56e183184e7a42eb97954da0f4b331cf>:0
at ReClassNET.Core.CoreFunctionsManager..ctor () [0x00013] in <56e183184e7a42eb97954da0f4b331cf>:0
at ReClassNET.Program.Main (System.String[] args) [0x000f0] in <56e183184e7a42eb97954da0f4b331cf>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Failed to load native core functions! Couldnt find at location /home/foo/Desktop/ReClass.NET-master/build/Debug/x64/NativeCore.so
at ReClassNET.Core.InternalCoreFunctions.Create () [0x0003e] in <56e183184e7a42eb97954da0f4b331cf>:0
at ReClassNET.Core.CoreFunctionsManager..ctor () [0x00013] in <56e183184e7a42eb97954da0f4b331cf>:0
at ReClassNET.Program.Main (System.String[] args) [0x000f0] in <56e183184e7a42eb97954da0f4b331cf>:0

However on Arch Linux I can confirm it is only for the x86 version and the fix is indeed as you mentioned... :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants