GUI

More
28 Apr 2012 02:14 #73 by MatCat
GUI was created by MatCat
I hear GUI work is needed... I am interested in helping out on that :).

I am going to look around and see what is going on thus far here on this forum...

Please Log in or Create an account to join the conversation.

More
28 Apr 2012 08:53 - 28 Apr 2012 11:05 #75 by FDR
Replied by FDR on topic Re: GUI
Welcome aboard!

We are not yet there. The boys are working on the drivers...


Edit: Sorry, I've just read PhracturedBlue's post on the RCGroups which state otherwise... :oops:
Last edit: 28 Apr 2012 11:05 by FDR.

Please Log in or Create an account to join the conversation.

More
28 Apr 2012 15:30 #76 by PhracturedBlue
Replied by PhracturedBlue on topic Re: GUI
We need to figure out how the GUI should be designed. My expectation is to build it in the emulator, and then port it back to the actual Tx once we have everything worked out. I am not yet sure how to deal with the filesystem. the 4kB sector-size may be an issue for us. So my thought is to just design the GUI on the PC where we can just use the native filesystem to get everything working, and then figure out how to implement it on the actual hardware.

I just committed some fixes to get the emulator to accept the mouse as a touch sensor, so we should have access to enough hardware in the emulator to get started.

The emulator supports:
* The same screen API and size as the Devo8
* 10 buttons (we can easily add more)
* virtual sticks
* Using the Mouse as a touch pointer

I was thinking of using either 16bit BMP as the file format. It has a pretty big header that we don't need, but is universally supported. We'll need to fill in the LCD_DrawImage().

Please Log in or Create an account to join the conversation.

More
28 Apr 2012 18:17 #77 by MatCat
Replied by MatCat on topic Re: GUI
I am hoping to have the emulator setup soon, the Linux distro I use CentOS is missing a lot of prerequisites to build the arm chain so I am working on that at the moment...

Please Log in or Create an account to join the conversation.

More
28 Apr 2012 19:00 - 28 Apr 2012 19:04 #78 by PhracturedBlue
Replied by PhracturedBlue on topic Re: GUI
You don't need any of that for the emulator.
Just checkout the source and do:
make TARGET=emu_devo8
You will need libfltk-dev (I used 1.1 but 1.xx should work)

To build for ARM, you should just get this:
github.com/esden/summon-arm-toolchain

and build everything you need from there, but that isn't needed for the emulator
Last edit: 28 Apr 2012 19:04 by PhracturedBlue.

Please Log in or Create an account to join the conversation.

More
28 Apr 2012 21:57 #79 by MatCat
Replied by MatCat on topic Re: GUI
Yeah I am trying to get the arm toolchain itself working too, I got all prerequisites going but it doesn't seem to see the gmp/mpfr/mpc libraries for some reason... I hate CentOS for development, maybe I will install a copy of debian tonight on my laptop ontop of Windows 8 developer preview :).

Please Log in or Create an account to join the conversation.

More
28 Apr 2012 22:03 #80 by MatCat
Replied by MatCat on topic Re: GUI
Appears some files are missing:

target/emu_devo8/fltk.cpp:19:19: error: FL/Fl.H: No such file or directory
target/emu_devo8/fltk.cpp:20:26: error: FL/Fl_Window.H: No such file or directory
target/emu_devo8/fltk.cpp:21:23: error: FL/Fl_Box.H: No such file or directory
target/emu_devo8/fltk.cpp:22:24: error: FL/fl_draw.H: No such file or directory
target/emu_devo8/fltk.cpp:41: error: expected initializer before â*â token
target/emu_devo8/fltk.cpp:44: error: expected class-name before â{â token
target/emu_devo8/fltk.cpp: In constructor âmywin::mywin(int, int)â:
target/emu_devo8/fltk.cpp:46: error: class âmywinâ does not have any field named âFl_Windowâ
target/emu_devo8/fltk.cpp: In member function âint mywin::handle(int)â:
target/emu_devo8/fltk.cpp:62: error: âFL_FOCUSâ was not declared in this scope
target/emu_devo8/fltk.cpp:63: error: âFL_UNFOCUSâ was not declared in this scope
target/emu_devo8/fltk.cpp:65: error: âFL_KEYDOWNâ was not declared in this scope
target/emu_devo8/fltk.cpp:67: error: âFlâ has not been declared
target/emu_devo8/fltk.cpp:72: error: âFlâ has not been declared
target/emu_devo8/fltk.cpp:109: error: âFL_KEYUPâ was not declared in this scope
target/emu_devo8/fltk.cpp:110: error: âFlâ has not been declared
target/emu_devo8/fltk.cpp:116: error: âFl_Windowâ has not been declared
target/emu_devo8/fltk.cpp: In function âvoid LCD_DrawStart()â:
target/emu_devo8/fltk.cpp:130: error: âFlâ has not been declared
target/emu_devo8/fltk.cpp:131: error: âFlâ has not been declared
target/emu_devo8/fltk.cpp: In function âvoid LCD_DrawStop()â:
target/emu_devo8/fltk.cpp:134: error: âFlâ has not been declared
target/emu_devo8/fltk.cpp: In function âvoid LCD_Init()â:
target/emu_devo8/fltk.cpp:139: error: âwindowâ was not declared in this scope
target/emu_devo8/fltk.cpp:144: error: âFlâ has not been declared
target/emu_devo8/fltk.cpp: In function âvoid LCD_DrawPixel(unsigned int)â:
target/emu_devo8/fltk.cpp:163: error: âFl_Colorâ was not declared in this scope
target/emu_devo8/fltk.cpp:163: error: expected `;' before âcâ
target/emu_devo8/fltk.cpp:164: error: âcâ was not declared in this scope
target/emu_devo8/fltk.cpp:164: error: âfl_colorâ was not declared in this scope
target/emu_devo8/fltk.cpp:165: error: âfl_pointâ was not declared in this scope
target/emu_devo8/fltk.cpp: In function âvoid LCD_DrawPixelXY(unsigned int, unsigned int, unsigned int)â:
target/emu_devo8/fltk.cpp:177: error: âFl_Colorâ was not declared in this scope
target/emu_devo8/fltk.cpp:177: error: expected `;' before âcâ
target/emu_devo8/fltk.cpp:178: error: âcâ was not declared in this scope
target/emu_devo8/fltk.cpp:178: error: âfl_colorâ was not declared in this scope
target/emu_devo8/fltk.cpp:179: error: âFlâ has not been declared
target/emu_devo8/fltk.cpp:180: error: âFlâ has not been declared
target/emu_devo8/fltk.cpp:181: error: âfl_pointâ was not declared in this scope
make: *** [objs/emu_devo8/fltk.o] Error 1

Please Log in or Create an account to join the conversation.

More
28 Apr 2012 22:28 #81 by PhracturedBlue
Replied by PhracturedBlue on topic Re: GUI
As I said. You need to install libfltk-dev In Ubuntu I:
apt-get install libfltk1.1-dev

Please Log in or Create an account to join the conversation.

More
28 Apr 2012 22:32 #82 by MatCat
Replied by MatCat on topic Re: GUI
Yeah I am going to have to setup a development linux distro tonight on my laptop, what ubuntu version are you using?

Please Log in or Create an account to join the conversation.

More
28 Apr 2012 22:43 #83 by PhracturedBlue
Replied by PhracturedBlue on topic Re: GUI
You shouldn't really need to. fltk with cygwin/mingw should work fine in Windows. The code is simple enough, it would probably compile with MSVC even.

In any case, I'm currently running Lucid, and am in the process of moving to Precise. I came really close to going back to Debian this time around. Ubuntu just isn't well suited to my servers any longer, but I love the PPAs and didn't want to give them up.

Please Log in or Create an account to join the conversation.

More
28 Apr 2012 23:24 #84 by MatCat
Replied by MatCat on topic Re: GUI
The linux boxes I am running are all for web server use, so centos it is, however it's a crappy development distro. I have been wanting to setup a linux distro on my laptop anyway so it makes sense to me to do it. I used to run Backtrack, but it's not suited for my purposes now. So I am trying to consider what to run for a more desktop / development style. I am thinking Ubuntu but I am not sure.

Please Log in or Create an account to join the conversation.

More
29 Apr 2012 01:49 #85 by PhracturedBlue
Replied by PhracturedBlue on topic Re: GUI
I run Xubuntru on Virtualbox on my laptop and am quite satisfied with it for development. My servers are more troublesome, but they get upgraded less frequently.

Please Log in or Create an account to join the conversation.

More
29 Apr 2012 01:57 #86 by MatCat
Replied by MatCat on topic Re: GUI
Yeah I am running Ubuntu 12.04 now, I had my one monitor in portrait mode and for the life of me just couldn't get it to rotate right, so I put it back to landscape, and it doesn't see my samba network... other then that everything seems good sofar :)

Please Log in or Create an account to join the conversation.

More
29 Apr 2012 05:45 #87 by MatCat
Replied by MatCat on topic Re: GUI
Ok I compiled the EMU but it crashes my Linux box when I try to run it, quite odd.

Please Log in or Create an account to join the conversation.

More
29 Apr 2012 14:18 - 29 Apr 2012 19:33 #88 by PhracturedBlue
Replied by PhracturedBlue on topic Re: GUI
run:
gdb ./emu_devo8
r
(wait for it to crash)
bt
and send that to me

Edit: I think I read that wrong.; You said it actually crashes your Linux box? Are you running as root? No application should be able to do that. Still, these instructions are probably the best I've got as to how you can proceed.
Last edit: 29 Apr 2012 19:33 by PhracturedBlue.

Please Log in or Create an account to join the conversation.

More
29 Apr 2012 20:04 - 29 Apr 2012 20:04 #89 by MatCat
Replied by MatCat on topic Re: GUI
I am about to do the gdb test, but yes it crashes my entire system! Hard drive activity goes SOLID.

And no, not using as root :)
Last edit: 29 Apr 2012 20:04 by MatCat.

Please Log in or Create an account to join the conversation.

More
29 Apr 2012 20:05 #90 by MatCat
Replied by MatCat on topic Re: GUI
Starting program: /home/matcat/deviation/src/emu_devo8.elf
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff64512fa in XDrawPoint () from /usr/lib/x86_64-linux-gnu/libX11.so.6
(gdb) bt
#0 0x00007ffff64512fa in XDrawPoint ()
from /usr/lib/x86_64-linux-gnu/libX11.so.6
#1 0x0000000000402d19 in fl_point (x=0, y=0) at /usr/include/FL/fl_draw.H:156
#2 0x0000000000402af1 in LCD_DrawPixel (color=0)
at target/emu_devo8/fltk.cpp:201
#3 0x000000000040283b in LCD_Clear (color=0) at screen/qvga/lcd_string.c:118
#4 0x0000000000400ff8 in main () at main.c:33

Please Log in or Create an account to join the conversation.

More
29 Apr 2012 21:59 - 29 Apr 2012 22:01 #91 by PhracturedBlue
Replied by PhracturedBlue on topic Re: GUI
Well, that is odd and not helpful.
Please answer the following:
what distro/version?
what is the value of 'fltk-config --version'
what window manager?
does the screen display before it crashes (in gdb)?
what is the result of 'ldd emu_devo8.elf'

Can you send your binary to me?

If you want to, you can try the attached compiled version. It is for 64bit Ubuntu using fltk 1.3.0, but I've verified with 1.3.0 and 1.1.10, and both seem fine.

FYI, I have tested on 64bit Xubuntu Lucid, 32bit Xubuntu Lucid, and 64bit Xubuntu Precise without issue.

Now with attachment
Attachments:
Last edit: 29 Apr 2012 22:01 by PhracturedBlue.

Please Log in or Create an account to join the conversation.

More
29 Apr 2012 22:10 - 29 Apr 2012 22:12 #92 by MatCat
Replied by MatCat on topic Re: GUI
Ubuntu 12.04LTE standard installed window manager 64 Bit

fltk is 1.3.0

Screen with GDB shows grey background window with no contents (contents do get drawn without GDB)

matcat@MatCatLi:~/deviation/src$ ldd emu_devo8.elf
linux-vdso.so.1 => (0x00007fff9e5ff000)
libfltk.so.1.3 => /usr/lib/x86_64-linux-gnu/libfltk.so.1.3 (0x00007f5cb03a2000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f5cb018c000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f5cafdce000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f5caface000)
libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f5caf8bd000)
libXft.so.2 => /usr/lib/x86_64-linux-gnu/libXft.so.2 (0x00007f5caf6a7000)
libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f5caf471000)
libXinerama.so.1 => /usr/lib/x86_64-linux-gnu/libXinerama.so.1 (0x00007f5caf26e000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f5caf069000)
libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f5caed35000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f5caeb18000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f5cae81d000)
/lib64/ld-linux-x86-64.so.2 (0x00007f5cb06f4000)
libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f5cae581000)
libXrender.so.1 => /usr/lib/x86_64-linux-gnu/libXrender.so.1 (0x00007f5cae376000)
libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f5cae14c000)
libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f5cadf2e000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f5cadd16000)
libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f5cadb13000)
libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f5cad90d000)


File Attachment:

File Name: emu_devo8.elf.tar.gz
File Size:22 KB
Attachments:
Last edit: 29 Apr 2012 22:12 by MatCat.

Please Log in or Create an account to join the conversation.

More
29 Apr 2012 22:14 #93 by MatCat
Replied by MatCat on topic Re: GUI
I tried your binary and got the same exact result

Please Log in or Create an account to join the conversation.

Time to create page: 0.106 seconds
Powered by Kunena Forum