JuliaInterop / Cxx.jl

The Julia C++ Interface

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for ARM-based Linux

Nate711 opened this issue · comments

I'd like to use Cxx.jl on a Raspberry Pi running Raspbian, however, it looks like the build process fails because there are no binaries hosted on this github for the arm architecture. Is there a workaround I could try? Thanks!

julia> Pkg.build("Cxx")
  Building Cxx → `~/.julia/packages/Cxx/c7DTV/deps/build.log`
┌ Error: Error building `Cxx`:
│ [ Info: Building julia binary build
│ ERROR: LoadError: LoadError: Your platform ("arm-linux-gnueabihf", parsed as "arm-linux-gnueabihf-gcc7-cxx11") is not supported by this package!
│ Stacktrace:
│  [1] error(::String) at ./error.jl:33
│  [2] top-level scope at /home/pi/.julia/packages/Cxx/c7DTV/deps/build_libcxxffi.jl:28
│  [3] include at ./boot.jl:328 [inlined]
│  [4] include_relative(::Module, ::String) at ./loading.jl:1094
│  [5] include(::Module, ::String) at ./Base.jl:31
│  [6] include(::String) at ./client.jl:431
│  [7] top-level scope at /home/pi/.julia/packages/Cxx/c7DTV/deps/build.jl:53
│  [8] include at ./boot.jl:328 [inlined]
│  [9] include_relative(::Module, ::String) at ./loading.jl:1094
│  [10] include(::Module, ::String) at ./Base.jl:31
│  [11] include(::String) at ./client.jl:431
│  [12] top-level scope at none:5
│ in expression starting at /home/pi/.julia/packages/Cxx/c7DTV/deps/build_libcxxffi.jl:24
│ in expression starting at /home/pi/.julia/packages/Cxx/c7DTV/deps/build.jl:40
│ writing path.jl file
│ Tuning for julia installation at /home/pi/julia-1.2.0/bin with sources possibly at /home/pi/julia-1.2.0/bin/../..
└ @ Pkg.Operations /buildworker/worker/package_linuxarmv7l/build/usr/share/julia/stdlib/v1.2/Pkg/src/backwards_compatible_isolation.jl:647

you could do a source build(build julia with USE_BINARYBUILDER=0 and then pkg>build Cxx). note Cxx has not supported julia-1.3 yet, so don't forgot to checkout 1.2.0 when building julia from source.