1. How do you get WEE to run on the Raspberry PI?
- Posted by xecronix Oct 07, 2015
- 1741 views
Like this!
- sudo apt-get install libgtk-3-dev
- mkdir ~/dev
- cd ~/dev
- wget http://www.scintilla.org/scintilla361.tgz
- tar -xzvf scintilla361.tgz
- git clone https://github.com/peberlein/WEE.git
- cp WEE/scintilla/gtk_makefile scintilla/gtk/
- cd scintilla/gtk
- nano gtk_makefile
- make -f gtk_makefile
- cd ../bin
- cp scintilla.so ../../WEE/scintilla
- cd ../../WEE/scintilla
- mv scintilla32.so scintilla.i386.so
- ln -s scintilla.so scintilla32.so
- cd ..
- eui wee.exw #success
- euc wee.exw #might work...not tested yet
- ./wee #might work... not tested yet
For the nano step change
ifdef GTK3 GTKVERSION=gtk+-3.0 else GTKVERSION=gtk+-2.0 endif
To this
ifdef GTK3 GTKVERSION=gtk+-3.0 else GTKVERSION=gtk+-2.0 endif GTKVERSION=gtk+-3.0
2. Re: How do you get WEE to run on the Raspberry PI?
- Posted by ghaberek (admin) Oct 07, 2015
- 1670 views
For the nano step change
ifdef GTK3 GTKVERSION=gtk+-3.0 else GTKVERSION=gtk+-2.0 endif
To this
ifdef GTK3 GTKVERSION=gtk+-3.0 else GTKVERSION=gtk+-2.0 endif GTKVERSION=gtk+-3.0
You could just define GTK3 on the command line.
make -f gtk_makefile GTK3=1
-Greg
3. Re: How do you get WEE to run on the Raspberry PI?
- Posted by xecronix Oct 07, 2015
- 1603 views
You could just define GTK3 on the command line.
make -f gtk_makefile GTK3=1
-Greg
Nice! I'm looking forward to your tutorial on "Using make for fun and profit"
Here is the makefile I used to build wee on the raspberry pi.
all: xlate bld @echo Build complete xlate: euc -build-dir build -makefile wee.exw bld: cd build && make -j 4 -f wee.mak
I did observe several problems on the raspberry pi when compiled that don't exist when run interpreted. (Sort of)
If you start the compiled wee and then click [x] to close the window... the program hangs. At that point the only way to close the program is via killall -9 wee
If you start wee like this...
eui wee.ex
I have not discovered problems. Though I haven't spent a lot of time trying though.
However, if you start the program like this...
eui wee.ex &
Then you seem to have the same problems as the compiled version of wee.
4. Re: How do you get WEE to run on the Raspberry PI?
- Posted by xecronix Oct 08, 2015
- 1586 views
However, if you start the program like this...
eui wee.ex &
Then you seem to have the same problems as the compiled version of wee.
I tested this again this AM and found that this problem does not exist as I reported. Looking at my bash history I see the compiled version of wee was also started like...
wee &
Meaning that there is no difference between compiled wee and interpreted that I have discovered so far. In short, if you background wee when you start it, you may experience problems... especially if you attempt to execute code or close wee. (on the raspberry pi)
5. Re: How do you get WEE to run on the Raspberry PI?
- Posted by PeteE Oct 08, 2015
- 1579 views
I see the same thing on Linux x86_64. It also happens with EuGTK demos. I haven't been able to figure out what causes it, but you can enter "fg" in the same terminal, and the program will unfreeze and exit.
6. Re: How do you get WEE to run on the Raspberry PI?
- Posted by PeteE Oct 08, 2015
- 1596 views
Here's gdb had to say:
Program received signal SIGTTOU, Stopped (tty output). 0x00007f03963d16b0 in __GI_tcsetattr (fd=0, optional_actions=<optimized out>, termios_p=0x835650 <savetty>) at ../sysdeps/unix/sysv/linux/tcsetattr.c:87 87 ../sysdeps/unix/sysv/linux/tcsetattr.c: No such file or directory. (gdb) bt #0 0x00007f03963d16b0 in __GI_tcsetattr (fd=0, optional_actions=<optimized out>, termios_p=0x835650 <savetty>) at ../sysdeps/unix/sysv/linux/tcsetattr.c:87 #1 0x00000000005a9690 in Cleanup () #2 0x00000000005ac1b5 in UserCleanup () #3 0x000000000054bd6e in _39Quit () #4 0x00000000005a8fdc in general_call_back () #5 0x00007f0396fdc0c7 in ?? () #6 0x00007f0396fdc090 in ?? () #7 0x0000000000000002 in ?? () #8 0x00007f0394052a93 in g_hash_table_lookup () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #9 0x00000000020d4920 in ?? () #10 0x0000000000000000 in ?? ()
Looks like Cleanup and UserCleanup are doing something to the terminal...
7. Re: How do you get WEE to run on the Raspberry PI?
- Posted by PeteE Oct 08, 2015
- 1611 views
Created a ticket with a patch.