Page 1 of 1

Toolchain with SDL for D series

Posted: Wed Sep 26, 2012 11:42 am
by moldov
I installed toolchain VDLinux-ARMv7-4.4-202-toolchain-v2r2-20110630 from Samsung site and tried to compile SamyConsole but faced the problem that SDL is missing. Actually I see that "include" dir is empty.
Could anyone provide me with complete toolchain to be able to compile SamyConsole by myself. Or, if possible, straight instruction, how to create complete toolchain for D series.I read through wiki and that forum and found that info mostly related to B or C series, not for D.

My aim is to port DosBox for my UE40D7000, as it was ported for ContentLibrary on B.

I found these wery promissable
For developers:
ContentLibrary(like on B series) to execute own "games", patches and so on. Now here is SamyConsole, works with wired keyboard. To be improved, releasing as example. For more info see in SamyConsole`s HowTO.
Execute any Native application as shared object from Smarthub without any restriction (Game Launcher from loader no anymore need but will stay as sample.)
SAE framework for custom scripting
but I'm on the beginning of this way, and I need the proper tools to be able to start.

Also the Hello World example is related to B series as well, but as I see the folder with compiled SamyConsole consits of some more files (like xml etc.) then it listed in Hello World example. So, seems like there are some more requirements, then for Hello World for B series.

Sorry for the stupid questions, but I spent more then three weeks seeking through wiki and forum, but got no enough info for D series.

Thanks a lot, for any clue.

Re: Toolchain with SDL for D series

Posted: Wed Sep 26, 2012 4:54 pm
by pohybel
I'm also interested in such information.

Re: Toolchain with SDL for D series

Posted: Wed Sep 26, 2012 6:41 pm
by juusso
I don`t have working toolchain for D series, but i know, VDlinux toolchain from Samsung + SDL libraries from TV (copied to ../include) is what you need to compile working "*.so" widget... Sorry, i`m not expert in this...

Other files (like xml etc) are needed to keep widget`s structure.

Re: Toolchain with SDL for D series

Posted: Wed Sep 26, 2012 10:55 pm
by Denny
when you download source code released by samsung, you can build each SDL library by your self and copy it to extracted toolchain to correct directory whitch should be let say :

/opt/VDLinux-armv7a8/

in case you just copy files :
all prebuild librarys (shared and static) should be moved/copied to : /opt/VDLinux-armv7a8/arm-v7a8-linux-gnueabi/libc/usr/lib/

include files should be copied to : /opt/VDLinux-armv7a8/arm-v7a8-linux-gnueabi/libc/usr/include/

this is general for all librarys not only SDL, in case of SDL , i wuld sugest to copy it realy from TV out except u want to use SDL static linked.

i atach complete SamyConsole binary and source whitch is fully modified for Genoa.
SamyConsole 2.1 by geo650, 2010-08...10

30.10.2011 change by Denny :

Suport for Genoa TV...
Added InFly patch for Keyboard in libSDL.so
Added Keyboard handling done by Aquardian

Tested on :
UE55D8000 T-GAP8DEUC
UE32D6510 T-GASDEUC

Re: Toolchain with SDL for D series

Posted: Fri Sep 28, 2012 1:44 am
by moldov
all prebuild librarys (shared and static) should be moved/copied to : /opt/VDLinux-armv7a8/arm-v7a8-linux-gnueabi/libc/usr/lib/

include files should be copied to : /opt/VDLinux-armv7a8/arm-v7a8-linux-gnueabi/libc/usr/include/
That's the clue! Denny, thanks a lot!

So, I compiled all the required SDL stuff with --exec-prefix and copied to required dirs mentioned by Denny. Also I add libsamygo.so, which I got from tv. It's required by SamyConsole. Actually I couldn't compile attached "genoa_console.zip", because I need to edit Makefile slightly, as I don't have SDL for x86, but SamyConsole 2.1 got from sourceforge was compiled succesfully.

Yestreday, I managed to compile even DosBOX 8-) . Was forced to edit "configure" and "Makefile.in" files, because arm-SamyGo-linux-gnueabi toolchain, mentioned there is not like mine arm-a7v8v2r2. Also sdl-config mentioned with the prefix in "configure" file, so need to be changed as well.

The plan is to create all required xml and dat files, and wait, when my daughter will go to bed and allow me to play with TV, which is occupied by cartoons:)))

I'll post the results this weekend, hopefully!

Re: Toolchain with SDL for D series

Posted: Sun Sep 30, 2012 4:09 am
by moldov
So, out of luck.

exported CFLAGS, CXXFLAGS and CPPFLAGS as -fPIC, LDFLAGS as -fPIC -shared.
Called configure script with options

Code: Select all

../configure --host=arm-v7a8v2r2-linux-gnueabi  --prefix=/opt/arm7toolchain --exec-prefix=/opt/arm7toolchain  --with-sdl-prefix=/opt/arm7toolchain --with-sdl-exec-prefix=/opt/arm7toolchain
So first I compiled DosBox without exporting FLAGS and it was compiled successfully with size about 9 megs. But it was executable ELF not the shared object. I exported flags and compiled as shared, but the size of dosbox is aboyt 5Megs (dosbox.so for B series is about 9 Megs). Compiled and linked loader.c with the following options.

Code: Select all

arm-v7a8v2r2-linux-gnueabi-gcc  -fPIC -c loader.c
arm-v7a8v2r2-linux-gnueabi-ld -shared -soname loader.so -o -lc loader.o
created an xml and tried to run. No way!