Thread: SoundKloud
View Single Post
Old 12-22-2012, 08:31 AM   #136
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
okay so... to get this working on as many devices as we can:

The gui is the issue. since on the 3 the level of separation of the kindlet from the python layer makes handling updated files require some home-brewed methods of file watching.

It's also tricky to test locally. As the gui won't "run" on a pc, without wrapping it in something (the snake game amongst others does actually have examples of this)

so - to recap - I don't want to do it as a kindlet. I will repurpose this code to be a launcher for the Gnuboy games on the 3 perhaps.

So what do we use? And how do we get around the separation from python.


One thought would be to implement a pure c interface to the soundcloud API. as it happens someone did this a few years back - hopefully the code isn't too rotten. It was...
Spoiler:

That would require -loauth -lssl -lcrypto support.

So, to that end, I saw about building a liboauth with buildroot last night. and am playing with getting the buildroot libraries and resources available to the Toolchain.

so far I have

CFLAGS="-U_FORTIFY_SOURCE -fno-stack-protector -O2 -fno-finite-math-only -ffast-math -march=armv6j -mtune=arm1136jf-s -mfpu=vfp -pipe -fomit-frame-pointer -fPIC" /opt/arm-2007q3/bin/arm-none-linux-gnueabi-gcc test.c -o test `~/GIT/buildroot-2012.03/output/host/usr/bin/pkg-config gtk+-2.0 --cflags` -L~/GIT/buildroot/output/host/usr/arm-unknown-linux-gnueabi/sysroot/lib/ -L./lib/ -lgtk-directfb-2.0 -lgdk-directfb-2.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lpixman-1 -lpng12 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lfontconfig -lfreetype -lz -lexpat -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -ljpeg -ldirectfb-1.2 -lfusion -ldirect-1.2 -loauth -lssl -lcrypto -lcrypto1 -I./usr/include -I./usr/include/directfb


which does actually build now on the PC at least. however.. the use of the directFB calls and oauth does mean for now this nerfs my local testing. Therefore I will carry on building the Touch version and simply backport the code to the 3 when happy.

Thus allowing for local testing.

Just thought I should share the the project isn't entirely stalled. just in a holding pattern while we get the ui sorted.

Last edited by twobob; 12-24-2012 at 06:08 AM.
twobob is offline   Reply With Quote