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
Add Linux support #15
Comments
(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) execution issues:
./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 to 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. |
@Toiffel, I noticed you've been working on Linux support in your fork. I'll be checking in shortly changes that improve Linux compatibility as well as the package to run/deploy on Linux. |
Yeah, I've almost finished cmake-based build system as well as the native starter application. However there are some wxgtk-specific bugs left. |
I took a different path and packaged wxlua as a debian package. This will pull wxwidgets and all other modules as dependencies; you can then launch ZBS as |
I've sent an email two days ago but still no reply (double-checked the email address on your website). Maybe it was blocked by spam filter or something else? |
Responded over email. |
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. |
…red dependencies on Linux (covers most of #15).
@Toiffel, make sense. I just pushed linux updates, that should pull all wxlua dependencies ( |
Well done! :) I've seamlessly installed the dependencies package on fresh Ubuntu 12.04.1 installation (only had to run |
Some known Linux issues:
|
On Linux DWELLSTART event seems to be generated even for those editor windows that are not active. What's worse, when generated the event seems to report "old" position when retrieved using event:GetX and event:GetY, so instead we use wxGetMousePosition.
The current master has been tested to run on Ubuntu 10.04, Ubuntu 12.04, ArchLinux, Fedora 18 (32/64bit); it has also been seen running on Xubuntu 12.10, Gentoo, and Mint. |
No description provided.
The text was updated successfully, but these errors were encountered: