Author Topic: EGSL 1.6 and wxWidgets  (Read 1142 times)

Tomaaz

  • Guest
EGSL 1.6 and wxWidgets
« on: 03. November 2013, 13:47:03 »
EGSL 1.6 works with wxWidgets (see the screenshot - wxLua GUI app and an EGSL program are running in the same time). All you need to do is to download .zip file from wxLua website (http://sourceforge.net/projects/wxlua/files/wxlua/2.8.12.3/). In the bin folder you will find wx.dll. Copy it to your EGSL folder and that's it. :)

The wxWindows Licence has been approved by the Open Source Initiative and, as I understand, it means that the software can be freely used, modified, and shared.

EDIT: I've tried it only on Windows.
« Last Edit: 03. November 2013, 13:52:44 by Tomaaz »

Cybermonkey

  • Administrator
  • Hero Member
  • *****
  • Posts: 573
    • View Profile
    • Home of EGSL
Re: EGSL 1.6 and wxWidgets
« Reply #1 on: 03. November 2013, 15:20:48 »
Oh, that's cool. So this should work with EGSL2, too. I need to try it on Linux, though.
Best regards,
Cybermonkey

GEEK

  • Jr. Member
  • **
  • Posts: 83
  • want to learn c++, if you want to teach me, pm me!
    • View Profile
Re: EGSL 1.6 and wxWidgets
« Reply #2 on: 03. November 2013, 19:57:45 »
hey! nice to know, i'm working on a John Conway's Game of Life(EGSL) to (:

GEEK

  • Jr. Member
  • **
  • Posts: 83
  • want to learn c++, if you want to teach me, pm me!
    • View Profile
Re: EGSL 1.6 and wxWidgets
« Reply #3 on: 04. November 2013, 01:15:51 »
hmmm, tried it but it keeps crashing...

GEEK

  • Jr. Member
  • **
  • Posts: 83
  • want to learn c++, if you want to teach me, pm me!
    • View Profile
Re: EGSL 1.6 and wxWidgets
« Reply #4 on: 05. November 2013, 19:01:36 »
EGSL 1.6 works with wxWidgets (see the screenshot - wxLua GUI app and an EGSL program are running in the same time). All you need to do is to download .zip file from wxLua website (http://sourceforge.net/projects/wxlua/files/wxlua/2.8.12.3/). In the bin folder you will find wx.dll. Copy it to your EGSL folder and that's it. :)

The wxWindows Licence has been approved by the Open Source Initiative and, as I understand, it means that the software can be freely used, modified, and shared.

EDIT: I've tried it only on Windows.

can you help me make wxwidgets work please?

Tomaaz

  • Guest
Re: EGSL 1.6 and wxWidgets
« Reply #5 on: 08. November 2013, 15:32:56 »
can you help me make wxwidgets work please?

Copy wx.dll to your EGSL folder (where all libraries are placed). Add require "wx" at the beginning of your program. It should work (if it doesn't you need to ask someone smarter than me for help - possibly wxLua developers ;)). Remember, this is Windows-only solution.
« Last Edit: 08. November 2013, 15:34:54 by Tomaaz »

GEEK

  • Jr. Member
  • **
  • Posts: 83
  • want to learn c++, if you want to teach me, pm me!
    • View Profile
Re: EGSL 1.6 and wxWidgets
« Reply #6 on: 08. November 2013, 17:22:26 »
i did that, can you give me an example code please?

Tomaaz

  • Guest
Re: EGSL 1.6 and wxWidgets
« Reply #7 on: 08. November 2013, 17:46:32 »
i did that, can you give me an example code please?

There is a "sample" folder in wxLua .zip file, however the examples are meant to be run with wxlua.exe. If you want to run it with plain Lua interpreter or EGSL you need do add require "wx" at the beginning. Also, make sure you're using .dll from wxLua 5.2. I'm not sure if it matters, but EGSL 1.6 uses liblua5.2, so that's probably a better choice.

It's not like I don't want to post any example code. I just haven't written anything by myself. At the moment I'm using wxPython and just wanted to try if there was a option to use wxWidgets with Lua. All examples I tried (calculator, temperature converter, empty window and a few more) worked with EGSL.