View Single Post
Old 08-11-2013, 07:26 PM   #7
KevinShort
Addict
KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.
 
KevinShort's Avatar
 
Posts: 348
Karma: 209937
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
Quote:
Originally Posted by fat265 View Post
I have followed your instructions ( thanks heaps )and have managed to compile a small helloworld.c file with no errors but when i run it on the kobo it gives me a error so I thinkI have done something wrong.
Yoq's guide is only for firmware 2.6 and above. For previous firmware you need to use a different compiler. On Ubuntu you can install an arm compiler for older firmware with 'sudo apt-get install gcc-arm-linux-gnueabi'.

In firmware 2.6 Kobo switched to a hard-float compiler. Before that they used a soft float compiler, so when you're compiling your own software for the Kobo you need to make sure you're using the right compiler for the right firmware version.

I've used this helloworld.cpp file on my Kobo:
Code:
#include <iostream>
using namespace std;

int main()
{
	cout << "Hello world!" << endl;
	return 0;
}
KevinShort is offline   Reply With Quote