From: Benoît R. <ben...@ho...> - 2016-08-13 08:26:52
|
Hi all, I'm new to the list, I just subscribed because I have a case, that you may well consider stupid, but I'm stuck with it and unable to go on... Basically, I can't install wxLua to run under Linux. I tried several ways, but to no avail... The context is that, a few years ago, I began a proto videogame named "Stars of Call" for my Sci-Fi universe "Hoshikaze 2250", as a TC using the excellent, open-source NAEV space videogame. NAEV uses Lua as its scripting engine, and so I found that language quite good. Now I've decided to make some standalone dev under Lua and I need a GUI... So I looked at possible GUIs and found wxWidgets and of course, wxLua. I have two computers, one WIndows and one Linux and for a bunch of IRL reasons, I must be able to develop on both and synch them in between. I'm not a dev, I used to be, but that were the '90s and I never dived totally into it. So I'm not so familiar with dev tools, not at all with current dev tools, and I just have distant memories of then tools. On the Windows (Win7), I installed wxLua and wxFormBuilder, and it works fine. On the Linux (Ubuntu Xenial), I installed wxFormBuilder, and also wxMaxima, both work fine. But I just can't get a working wxLua. I first tried to install with the reps, but here's the output of the "apt list --installed | grep wx" command. I may have fumbled somewhere and that's why I have some extra packages for utopic among the xenial packages... libwxbase3.0-0-unofficial/stable,now 3.0.2-1.utopic amd64 [installé] libwxbase3.0-0v5/xenial,now 3.0.2+dfsg-1.3 amd64 [installé, automatique] libwxbase3.0-dbg/stable,now 3.0.2-1.utopic amd64 [installé] libwxbase3.0-dev/xenial,now 3.0.2+dfsg-1.3 amd64 [installé] libwxgtk3.0-0-unofficial/stable,now 3.0.2-1.utopic amd64 [installé] libwxgtk3.0-0v5/xenial,now 3.0.2+dfsg-1.3 amd64 [installé] libwxgtk3.0-dbg/stable,now 3.0.2-1.utopic amd64 [installé] libwxgtk3.0-dev/xenial,now 3.0.2+dfsg-1.3 amd64 [installé] python-wxgtk3.0/xenial,now 3.0.2.0+dfsg-1build1 amd64 [installé, automatique] python-wxversion/xenial,xenial,now 3.0.2.0+dfsg-1build1 all [installé, automatique] wx-common/xenial,now 3.0.2+dfsg-1.3 amd64 [installé] wx3.0-doc/xenial,xenial,now 3.0.2+dfsg-1.3 all [installé] wx3.0-examples/xenial,xenial,now 3.0.2+dfsg-1.3 all [installé] wx3.0-headers/xenial,now 3.0.2+dfsg-1.3 amd64 [installé] wx3.0-i18n/xenial,xenial,now 3.0.2+dfsg-1.3 all [installé] wxformbuilder/xenial,now 3.5.02-0ubuntu1~xenial1 amd64 [installé] wxmaxima/xenial,now 15.08.2-1 amd64 [installé] Now, when I type wxLua or wxLuaEdit in a terminal, it tells me the exec is not found. When I try to run some wxLua program that runs fine under Windows, it tells me the following error : lua: Main.lua:21: module 'wx' not found: no field package.preload['wx'] no file './wx.lua' no file '/usr/local/share/lua/5.1/wx.lua' no file '/usr/local/share/lua/5.1/wx/init.lua' no file '/usr/local/lib/lua/5.1/wx.lua' no file '/usr/local/lib/lua/5.1/wx/init.lua' no file '/usr/share/lua/5.1/wx.lua' no file '/usr/share/lua/5.1/wx/init.lua' no file './wx.so' no file '/usr/local/lib/lua/5.1/wx.so' no file '/usr/lib/x86_64-linux-gnu/lua/5.1/wx.so' no file '/usr/lib/lua/5.1/wx.so' no file '/usr/local/lib/lua/5.1/loadall.so' no file './wx.dll' no file './wx.so' no file '../lib/wx.so' no file '../lib/vc_dll/wx.dll' no file '../lib/bcc_dll/wx.dll' no file '../lib/mingw_dll/wx.dll' stack traceback: [C]: in function 'require' Main.lua:21: in main chunk [C]: ? So, I'm wondering if I got wxWidgets itself, Lua itself, but not actually the wxLua package to link them... I first tried to follow the install page's simple method (http://wxlua.sourceforge.net/docs/install.html) : Install the wxwidgets and wxwidgets-devel prebuilt packages for your Linux distribution and you're done... * They may be called wxBase, wxGTK and wxBase-devel, wxGTK-devel But I can't get apt recognize any of these 4 names. Is there a specific repo to add ? I searched to internet, but to no avail, these seem to be menial things, totally implicit for those who wrote everything I read. But for me, it's not... Then I downloaded the source package and tried to use the method listed just after in the same page (http://wxlua.sourceforge.net/docs/install.html). Creating and running the ./configure-gtk2ud.sh script as is gives me : leschouchous@Ryoh-Oh-Ki:~/Documents/installation/Dev/Langages/Lua/wxLua/wxLua-2.8.12.3-src/build_gtk2ud$ ./configure-gtk2ud.sh ./configure-gtk2ud.sh: ligne 1: ../configure: Aucun fichier ou dossier de ce type ./configure-gtk2ud.sh: ligne 2: --enable-gtk2 : commande introuvable ./configure-gtk2ud.sh: ligne 3: --enable-unicode : commande introuvable ./configure-gtk2ud.sh: ligne 4: --enable-shared : commande introuvable ./configure-gtk2ud.sh: ligne 5: --enable-optimise=no : commande introuvable ./configure-gtk2ud.sh: ligne 6: --enable-mem_tracing=no : commande introuvable ./configure-gtk2ud.sh: ligne 7: --enable-profile=no : commande introuvable ./configure-gtk2ud.sh: ligne 8: --with-dmalloc=no : commande introuvable ./configure-gtk2ud.sh: ligne 9: $'\r' : commande introuvable ./configure-gtk2ud.sh: ligne 10: --enable-debug : commande introuvable ./configure-gtk2ud.sh: ligne 11: --enable-debug_flag : commande introuvable ./configure-gtk2ud.sh: ligne 12: --enable-debug_info : commande introuvable ./configure-gtk2ud.sh: ligne 13: --enable-debug_gdb : commande introuvable ./configure-gtk2ud.sh: ligne 14: --enable-debug_cntxt : commande introuvable ./configure-gtk2ud.sh: ligne 15: $'\r' : commande introuvable ./configure-gtk2ud.sh: ligne 16: --with-sdl : commande introuvable ./configure-gtk2ud.sh: ligne 17: --with-gnomeprint : commande introuvable ./configure-gtk2ud.sh: ligne 18: $'\r' : commande introuvable ./configure-gtk2ud.sh: ligne 19: --with-opengl : commande introuvable ./configure-gtk2ud.sh: ligne 20: --enable-sound : commande introuvable ./configure-gtk2ud.sh: ligne 21: --enable-mediactrl : commande introuvable ./configure-gtk2ud.sh: ligne 22: --enable-graphics_ctx : commande introuvable ./configure-gtk2ud.sh: ligne 23: --enable-controls : commande introuvable ./configure-gtk2ud.sh: ligne 24: --enable-dataviewctrl : commande introuvable Failure was predictable and it was foolish of me to try to run it, as there is anyway no "configure" script in the wxLua-2.8.12.3-src directory... So I tried to search for a configure script within the source package, but I only found it in "modules/wxstedit". I don't know what it's supposed to be, but I tried it and it told me : configure: WARNING: you should use --build, --host, --target configure: WARNING: invalid host type: ' not recognizedystem type... Invalid configuration ` failedre: error: /bin/bash ../build/config.sub ./configure-gtk2ud.sh: ligne 2: --enable-gtk2 : commande introuvable ./configure-gtk2ud.sh: ligne 3: --enable-unicode : commande introuvable ./configure-gtk2ud.sh: ligne 4: --enable-shared : commande introuvable ./configure-gtk2ud.sh: ligne 5: --enable-optimise=no : commande introuvable ./configure-gtk2ud.sh: ligne 6: --enable-mem_tracing=no : commande introuvable ./configure-gtk2ud.sh: ligne 7: --enable-profile=no : commande introuvable ./configure-gtk2ud.sh: ligne 8: --with-dmalloc=no : commande introuvable ./configure-gtk2ud.sh: ligne 9: $'\r' : commande introuvable ./configure-gtk2ud.sh: ligne 10: --enable-debug : commande introuvable ./configure-gtk2ud.sh: ligne 11: --enable-debug_flag : commande introuvable ./configure-gtk2ud.sh: ligne 12: --enable-debug_info : commande introuvable ./configure-gtk2ud.sh: ligne 13: --enable-debug_gdb : commande introuvable ./configure-gtk2ud.sh: ligne 14: --enable-debug_cntxt : commande introuvable ./configure-gtk2ud.sh: ligne 15: $'\r' : commande introuvable ./configure-gtk2ud.sh: ligne 16: --with-sdl : commande introuvable ./configure-gtk2ud.sh: ligne 17: --with-gnomeprint : commande introuvable ./configure-gtk2ud.sh: ligne 18: $'\r' : commande introuvable ./configure-gtk2ud.sh: ligne 19: --with-opengl : commande introuvable ./configure-gtk2ud.sh: ligne 20: --enable-sound : commande introuvable ./configure-gtk2ud.sh: ligne 21: --enable-mediactrl : commande introuvable ./configure-gtk2ud.sh: ligne 22: --enable-graphics_ctx : commande introuvable ./configure-gtk2ud.sh: ligne 23: --enable-controls : commande introuvable ./configure-gtk2ud.sh: ligne 24: --enable-dataviewctrl : commande introuvable I'll go and look at the configure man page to understand what the 1st error means. But as I'm not fluent in configure/make tools, I'm totally unable to debug what was supposed to be, as read from the install page, a quite straightforward process. I just hope it's only my lack of skill and a small advice will remove the block... So could someone help me ? Thanks in advance ! @+ Benoît 'Mutos' Robin http://hoshikaze.net ben...@ho... |