Skip to content

linux x86 upstream build NativeCore.so exception #241

Closed

Description

@ihateadmins

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

Activity

  1. ihateadmins commented on Nov 5, 2022

    @ihateadmins
    Author

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

  2. AIVDNL commented on Nov 5, 2022

    @AIVDNL

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions