Author Topic: Cacko Gcc / Cramfs Development Image  (Read 2552 times)

wendell

  • Newbie
  • *
  • Posts: 9
    • View Profile
Cacko Gcc / Cramfs Development Image
« on: February 20, 2005, 12:22:42 pm »
Hello! I have been using GCC 2.95 to compile stuff on Cacko 1.22a. So far so good. However, I need the static versions of, for example, libSDL 1.2.0 included with Cacko, and I was wondering if anyone packaged the development stuff (headers, libraries, etc) into a cramfs image (or something similar) .. and if so, where to download?

I have searched the forums and found stuff for GCC 3.3.x, but I think that development image is packaged for pdaXrom and doesn't really work for Cacko. Something like this for Cacko would make developers' and porters' jobs a lot easier.

I'm not talking about just the compiler-- that part is easy. I mean the static versions of libraries like libSDL, include files, etc. that are included in the distribution.

If cross-compiling on another machine is the prefered choice for development instead of native-- I haven't done that with the Z before. Anyone have a quickstart guide? Are there images to download for this purpose? Thanks.


P.s. For example, I've moved onto a program that requires libSDL. I was able to download the libSDL 1.2.7 image, but it seems the 1.2.0 included with Cacko has had a lot of changes for the C860 (changes that make it actually work right all of the time). Compiling generates a couple of errors.. undefined reference to `SDL_main'  /   relocation truncated to fit: R_ARM_PC24 SDL_main

Thanks
Wendell

stupkid

  • Hero Member
  • *****
  • Posts: 578
    • View Profile
    • http://
Cacko Gcc / Cramfs Development Image
« Reply #1 on: February 20, 2005, 06:31:05 pm »
Maslovsky would have those libs and headers.  The ones that I have are in the feed as <libname>-dev.  At some time in the future I think that he was going to update the dev_img tools for on board development.  He just hasn't got around to it yet.  So many projects so little time you know.
« Last Edit: February 20, 2005, 06:32:00 pm by stupkid »

Zaurus SL-C3200 pdaXii13v2 5.5 / Ambicom WC1100C-CF / Socket Bluetooth Rev G


OpenMoko FreeRunner - Running Tweaked OM2008.x Image

wendell

  • Newbie
  • *
  • Posts: 9
    • View Profile
Cacko Gcc / Cramfs Development Image
« Reply #2 on: February 20, 2005, 11:54:41 pm »
Ah, well.. I'll look forward to that.

In the mean time I noticed -Dmain=SDL_main in the compile options. It occured to me the particular error I was getting was probably due to C++ style function encoding.

I edited src/gui/sdlmain.cpp and changed int main( ...   to extern "C" int main( ...  and got it to compile. Still doesn't work though

Something about not being able to find pthread in libSDL .. oh well.. I'll shelf it for now.. I'll be patient.

I might try to get GCC 3.3 working, in the mean time.

If I get SDL working, I will have dosbox compiled for Cacko/Z. I got it working on pdaXrom.  Any interest in adding that to the feed?

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
Cacko Gcc / Cramfs Development Image
« Reply #3 on: February 21, 2005, 12:27:57 am »
Yes, I'm planning to update dev-image with new libs and headers and even include preconfigured linux kernsl source, so that kernel modules could be built (kernel too but it will take ages .
I can't say when though...

The libSDL included in the ROM is Piro's version (japanese guy, the author of the kernel mods). You can search his website for the library sources.

Quote
If I get SDL working, I will have dosbox compiled for Cacko/Z. I got it working on pdaXrom. Any interest in adding that to the feed?

Yes, of course!