Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add Linux support #15
(from Javier Guerra Giraldez)
it launches! and it shows the tutorial docs, links work, etc.
weird UI issues:
Lua: Error while running chunk src/editor/commands.lua:499: wxLua: Unable to call an unknown method 'ShowFullScreen' on a 'wxFrame' type.
(hitting Ctr-C (twice) at the terminal kills it)
./turtle.lua:338: wxLua: Expected an 'unsigned integer' for parameter 1, but got a 'number'. Function called: 'wxMilliSleep(number)' 01. wxMilliSleep(integer) stack traceback: (command line):1: in function <(command line):1> [C]: in function 'wxMilliSleep' ./turtle.lua:338: in function 'wait' ./spirograph.lua:33: in function 'spiro' ...ack-0.30/myprograms/zerobrane-lessons/05-running.lua:11: in main chunk [C]: in function 'dofile' (command line):1: in function <(command line):1> [C]: in function 'xpcall' (command line):1: in main chunk [C]: ? Program completed in 0.12 seconds (pid: 26405).
this seems a (design?) glitch of wxLua, changing that line from
else wx.wxMilliSleep(stillneed); return
else wx.wxMilliSleep(math.floor(stillneed)); return
allows it to run and show some graphs. still not sure if they look as
in all, not bad for a first try, considering all the (squeaky) moving parts.
Yeah, I've almost finished cmake-based build system as well as the native starter application. However there are some wxgtk-specific bugs left.
Thanks! Now I'm able to complete Linux version of CMake script. Next week I'll also try to add Windows/Mac support. This should greatly simplify building and installing ZBS. However all dependencies (wxWidgets, wxLua etc) still need to be compiled manually; maybe I'll write a simple bash script to automate this.
@Toiffel, I'm slightly confused. I don't plan to have a compiled launcher for linux or mac. Users should be able to run
The windows version is a bit different as the executable also includes icons and provides a more convenient way than a batch file.
The setup for Mac is already checked in; you can see it in macos-build branch. It is a bit more involved, but mostly because of Mac .app format. The linux version should be simpler; as long as you have wxwidgets and wxlua setup, you should be able to run src/main.lua to get the IDE. I'll provide assistance with getting wxlua and all the dependencies.
I don't see any problem here. Users will always be able to run IDE with
The compiled launcher has some advantages over the shell script: on Linux it can show nice wxWidgets error dialog (instead of printing to terminal and dying), also having a binary executable is conventional for GUI apps and it's more consistent across all platforms. I think it should be left as an option for advanced users and developers.
Some known Linux issues: