Toolchain with SDL for D series

Here for general support for D series TVs, request and problem solve area.
Post Reply

moldov
Posts: 8
Joined: Tue Aug 21, 2012 12:03 pm

Toolchain with SDL for D series

Post 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.
User avatar
pohybel
Posts: 45
Joined: Wed Jun 13, 2012 4:35 pm
Location: Poland

Re: Toolchain with SDL for D series

Post by pohybel »

I'm also interested in such information.
Last edited by pohybel on Thu Sep 27, 2012 11:20 pm, edited 1 time in total.
User avatar
juusso
SamyGO Moderator
Posts: 10129
Joined: Sun Mar 07, 2010 6:20 pm

Re: Toolchain with SDL for D series

Post 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.
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE
Denny
Official SamyGO Developer
Posts: 350
Joined: Thu Sep 30, 2010 12:18 pm
Location: Croatia

Re: Toolchain with SDL for D series

Post 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
You do not have the required permissions to view the files attached to this post.
Denny - 데니 - 丹尼 (card2000)
UE55C8000 UE55D8000 UE32D6510 BD-C9600 3xDM8000
Reversing HW Demux Drivers and API from Samsung´s TV
moldov
Posts: 8
Joined: Tue Aug 21, 2012 12:03 pm

Re: Toolchain with SDL for D series

Post 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!
moldov
Posts: 8
Joined: Tue Aug 21, 2012 12:03 pm

Re: Toolchain with SDL for D series

Post 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!

Post Reply

Return to “[D] Support”