GithubHelp home page GithubHelp logo

ARM support on Linux? about zerobranestudio HOT 6 CLOSED

Vovkiv avatar Vovkiv commented on June 10, 2024
ARM support on Linux?

from zerobranestudio.

Comments (6)

Vovkiv avatar Vovkiv commented on June 10, 2024 1

Yep, it builds now

from zerobranestudio.

pkulchenko avatar pkulchenko commented on June 10, 2024

Yes, it should be possible, but you'd have to build it yourself (using the included build script). See #745 for details and related arm-build discussion.

from zerobranestudio.

Vovkiv avatar Vovkiv commented on June 10, 2024

Oh, thanks!

from zerobranestudio.

Vovkiv avatar Vovkiv commented on June 10, 2024

Welp, i tried to build it, but i can't?

#!/bin/bash
sudo dnf install -y gcc-c++ git cmake gtk3-devel wget sqlite mesa-libGL-devel lua
git clone https://github.com/pkulchenko/ZeroBraneStudio.git ~/ZerobraneSource/
cd ~/ZerobraneSource/build/
./build-linux.sh lua wxwidgets wxlua luasocket

but it fails on building wxlua:
[ 95%] Building CXX object modules/luamodule/CMakeFiles/wxLuaModule.dir/__/wxlua/wxlstate.cpp.o
make[2]: *** No rule to make target "~/Downloads/ZeroBraneStudio-master/build/deps/lib/libwx_gtk3u_gl-3.1.a", needed by "lib/MinSizeRel/libwx.so".  Stop
make[2]: *** Waiting for unfinished jobs...
[ 97%] Building CXX object modules/luamodule/CMakeFiles/wxLuaModule.dir/__/wxlua/wxlua_bind.cpp.o
make[1]: *** [CMakeFiles/Makefile2:378: modules/luamodule/CMakeFiles/wxLuaModule.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
Error: failed to build wxLua

cmake ./

I'm not really big expert in cmake, building from source and in bash in general, so i might doing something wrong.
lua, wxwidgets, luasocket, builds without errors. I tried to build it on Raspberry Pi 4 itself, with Fedora Workstation 37, with everything updated.

from zerobranestudio.

pkulchenko avatar pkulchenko commented on June 10, 2024

It looks like gl library is not found for some reason; I suspect it may be because some of its dependencies are missing, wxwidgets didn't build it.

you can try removing gl from the following two lines in build-linux.sh to see if this helps (as gl library is not strictly needed for the IDE):

diff --git a/build/build-linux.sh b/build/build-linux.sh
index b0944b62..a75d1f93 100755
--- a/build/build-linux.sh
+++ b/build/build-linux.sh
@@ -303,8 +303,8 @@ if [ $BUILD_WXLUA ]; then
     -DCMAKE_BUILD_TYPE=$WXLUABUILD -DBUILD_SHARED_LIBS=FALSE \
     -DCMAKE_SKIP_RPATH=TRUE \
     -DwxWidgets_CONFIG_EXECUTABLE="$INSTALL_DIR/bin/wx-config" \
-    -DwxWidgets_COMPONENTS="xrc;xml;stc;gl;html;aui;adv;core;net;base" \
-    -DwxLuaBind_COMPONENTS="xrc;xml;stc;gl;html;aui;adv;core;net;base" \
+    -DwxWidgets_COMPONENTS="xrc;xml;stc;html;aui;adv;core;net;base" \
+    -DwxLuaBind_COMPONENTS="xrc;xml;stc;html;aui;adv;core;net;base" \
     -DwxLua_LUA_LIBRARY_USE_BUILTIN=FALSE \
     -DwxLua_LUA_INCLUDE_DIR="$INSTALL_DIR/include" -DwxLua_LUA_LIBRARY="$INSTALL_DIR/lib/liblua.a" .
   (cd modules/luamodule; make $MAKEFLAGS) || { echo "Error: failed to build wxLua"; exit 1; }

from zerobranestudio.

pkulchenko avatar pkulchenko commented on June 10, 2024

You'd only need to rerun the wxlua build: ./build-linux.sh wxlua luasocket

from zerobranestudio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.