1. How do you get WEE to run on the Raspberry PI?

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 
 

-xecronix

new topic     » topic index » view message » categorize

2. Re: How do you get WEE to run on the Raspberry PI?

xecronix said...

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. smile

make -f gtk_makefile GTK3=1 

-Greg

new topic     » goto parent     » topic index » view message » categorize

3. Re: How do you get WEE to run on the Raspberry PI?

ghaberek said...

You could just define GTK3 on the command line. smile

make -f gtk_makefile GTK3=1 

-Greg

Nice! I'm looking forward to your tutorial on "Using make for fun and profit" smile

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. smile

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.

new topic     » goto parent     » topic index » view message » categorize

4. Re: How do you get WEE to run on the Raspberry PI?

xecronix said...

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)

new topic     » goto parent     » topic index » view message » categorize

5. Re: How do you get WEE to run on the Raspberry PI?

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.

new topic     » goto parent     » topic index » view message » categorize

6. Re: How do you get WEE to run on the Raspberry PI?

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...

new topic     » goto parent     » topic index » view message » categorize

7. Re: How do you get WEE to run on the Raspberry PI?

Created a ticket with a patch.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu