- Posts: 168
GUI
- MatCat
- Topic Author
- Offline
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.
- FDR
- Offline
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...
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
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.
- MatCat
- Topic Author
- Offline
- Posts: 168
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
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
Please Log in or Create an account to join the conversation.
- MatCat
- Topic Author
- Offline
- Posts: 168
Please Log in or Create an account to join the conversation.
- MatCat
- Topic Author
- Offline
- Posts: 168
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.
- PhracturedBlue
- Offline
- Posts: 4402
apt-get install libfltk1.1-dev
Please Log in or Create an account to join the conversation.
- MatCat
- Topic Author
- Offline
- Posts: 168
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
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.
- MatCat
- Topic Author
- Offline
- Posts: 168
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- MatCat
- Topic Author
- Offline
- Posts: 168
Please Log in or Create an account to join the conversation.
- MatCat
- Topic Author
- Offline
- Posts: 168
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
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.
Please Log in or Create an account to join the conversation.
- MatCat
- Topic Author
- Offline
- Posts: 168
And no, not using as root
Please Log in or Create an account to join the conversation.
- MatCat
- Topic Author
- Offline
- Posts: 168
[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.
- PhracturedBlue
- Offline
- Posts: 4402
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
Please Log in or Create an account to join the conversation.
- MatCat
- Topic Author
- Offline
- Posts: 168
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)
Please Log in or Create an account to join the conversation.
- MatCat
- Topic Author
- Offline
- Posts: 168
Please Log in or Create an account to join the conversation.