GP32X.com - GP32 GP2X Pandora The Wiz - open source entertainment: Openwiz Toolchain - GP32X.com - GP32 GP2X Pandora The Wiz - open source entertainment

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Openwiz Toolchain

#1 User is offline   Orkie

  • Super Duper Mega GP Mania
  • Icon
  • Group: GP Guru
  • Posts: 2,242
  • Joined: 22-March 06
  • Location:UK

Posted 16 December 2008 - 10:18 PM

Was messing around earlier. Here is a package of stuff you need to get started developing for the Wiz under Linux. It is derived from the Open2x stuff. Copy the config file as .config into a crosstool-ng 1.2.4 setup and build the toolchain with that. Then run the library build script.

It isn't very well tested yet, but if your stuff builds with this it will probably work on an OpenWiz firmware (I will be using the libs compiled in this way). I might post up some raw hardware code at some point soon too.

http://x11.gp2x.de/o...-161208.tar.bz2

#2 User is offline   quasist

  • !DIZ IZ WIZ!
  • PipPipPipPipPipPip
  • Group: GP32 Hardcore
  • Posts: 1,104
  • Joined: 05-July 07
  • Location:Gorod Khotkovo
  • Interests:A B C ... C++

Posted 16 December 2008 - 11:58 PM

Is there a version for penguin haters? (Windows users I mean)

#3 User is offline   Orkie

  • Super Duper Mega GP Mania
  • Icon
  • Group: GP Guru
  • Posts: 2,242
  • Joined: 22-March 06
  • Location:UK

Posted 17 December 2008 - 08:52 AM

Not yet, it is a mega pain to compile a toolchain for Windows that targets Linux.

#4 User is offline   Pickle

  • Mega GP Mania
  • Icon
  • View blog
  • Group: GP Guru
  • Posts: 2,569
  • Joined: 30-May 06
  • Gender:Male
  • Location:Detroit, Michigan

Posted 12 January 2009 - 04:41 PM

Orkie do you have any plans to rework the libs for the wiz?

#5 User is offline   Orkie

  • Super Duper Mega GP Mania
  • Icon
  • Group: GP Guru
  • Posts: 2,242
  • Joined: 22-March 06
  • Location:UK

Posted 12 January 2009 - 05:57 PM

I have a script somewhere to build the Open2x libs for the Wiz if that's what you mean. I will dig it out an upload it sometime. I also have the latest SDL source code, and this version seems to have some kind of hardware acceleration in it, though I don't know exactly what or how much of a difference it makes to anything.

This post has been edited by Orkie: 12 January 2009 - 05:57 PM


#6 User is offline   Pickle

  • Mega GP Mania
  • Icon
  • View blog
  • Group: GP Guru
  • Posts: 2,569
  • Joined: 30-May 06
  • Gender:Male
  • Location:Detroit, Michigan

Posted 12 January 2009 - 06:23 PM

QUOTE(Orkie @ Jan 12 2009, 12:57 PM) View Post
I have a script somewhere to build the Open2x libs for the Wiz if that's what you mean. I will dig it out an upload it sometime. I also have the latest SDL source code, and this version seems to have some kind of hardware acceleration in it, though I don't know exactly what or how much of a difference it makes to anything.


When ever you have time and yeah a script works. SDL is main thing im looking for (doesnt everything build off it anyway?) Someone already had time to add hw accel? Thats a plus, I was only expecting fb for a while.
Shouldnt we be able to keep the exisiting new-libs and have both scripts/makefilesfor both units?

Update:
Ok I misunderstood the contents of the zip. I didnt know you had scripts in there to rebuild the toolchain and libs. I thought it was only the toolchain.

Update #2:

Ive not used this cross build script before. Downloaded from Here

Where exactly do you put the .config file? I tried to put it in the config folder of the crosstool-NG install.

I was going to follow these commands from the crosstool-NG site:
QUOTE


./configure --prefix=/some/place
make
make install
export PATH="${PATH}:/some/place/bin"
cd /your/development/directory
ct-ng help
ct-ng menuconfig
ct-ng build


ok i got it to make, and tried ct-ng menuconfig but it bombed, ct-ng config seem to work. But Im guessing the .config you gave replaces this, then I can run the build.
Just where does .config go? (update menuconfig needed the ncurses devel package)

Figured it out it goes in the root folder of the crossinstall, not the config folder.
I had to create a /toolchain folder for the script. Now its failing on downloaded source, which may not be the script.

Update #3
Things are going! Had to set these variables in the .config to use my proxy
CT_PROXY_TYPE="http"
CT_PROXY_USER=""
CT_PROXY_PASS=""
CT_PROXY_HOST=""
CT_PROXY_PORT=""

Update #4
To get wget to get through a proxy use:
export http_proxy="http://username:password@proxy.example.com:8080"

This post has been edited by Pickle: 13 January 2009 - 06:04 PM


#7 User is offline   Orkie

  • Super Duper Mega GP Mania
  • Icon
  • Group: GP Guru
  • Posts: 2,242
  • Joined: 22-March 06
  • Location:UK

Posted 13 January 2009 - 03:51 PM

QUOTE(Pickle @ Jan 12 2009, 06:23 PM) View Post

I didnt know you had scripts in there to rebuild the toolchain and libs. I thought it was only the toolchain.

Neither did I, I had forgotten biggrin.gif.

#8 User is offline   Pickle

  • Mega GP Mania
  • Icon
  • View blog
  • Group: GP Guru
  • Posts: 2,569
  • Joined: 30-May 06
  • Gender:Male
  • Location:Detroit, Michigan

Posted 13 January 2009 - 04:14 PM

QUOTE(Orkie @ Jan 13 2009, 10:51 AM) View Post
QUOTE(Pickle @ Jan 12 2009, 06:23 PM) View Post

I didnt know you had scripts in there to rebuild the toolchain and libs. I thought it was only the toolchain.

Neither did I, I had forgotten biggrin.gif .


Well im working my way through the cross build im getting though gdb now. UPDATE: toolchain done! yeah!
Do you mind if I upload the final install to the archives (once the archives are up)?

Also some other tips to anyone trying this:

ct-ng build RESTART=<step>

This will let you restart at certain steps in the process. For example I got all the way to gdb and I was missing some packages. That command saved another 60 min of of rework.

This post has been edited by Pickle: 13 January 2009 - 04:15 PM


#9 User is offline   Orkie

  • Super Duper Mega GP Mania
  • Icon
  • Group: GP Guru
  • Posts: 2,242
  • Joined: 22-March 06
  • Location:UK

Posted 13 January 2009 - 04:20 PM

Sure, do whatever with it.

#10 User is offline   Pickle

  • Mega GP Mania
  • Icon
  • View blog
  • Group: GP Guru
  • Posts: 2,569
  • Joined: 30-May 06
  • Gender:Male
  • Location:Detroit, Michigan

Posted 13 January 2009 - 04:46 PM

QUOTE(Orkie @ Jan 13 2009, 11:20 AM) View Post
Sure, do whatever with it.

thanks, (I think the change to download the package at the time of running the script and then apply patches is a good idea)

Update
Trying to build the libs and ive noticed -mcpu=arm920t is still in there from open2x.

Orkie, bigger problem the libtool in libjpeg has references to the open2x toolchain (im going to try and switch them all to my settings)

Also is SDL really going to work with the gp2x-video enabled (from the makefile)?
--enable-video\
--enable-video-gp2x\

This post has been edited by Pickle: 13 January 2009 - 05:45 PM


#11 User is offline   rlyeh

  • GP32 Hardcore
  • Icon
  • Group: GP Guru
  • Posts: 277
  • Joined: 25-March 03
  • Location:49°9' East latitude, 126°43' South longitude: in your deeper thoughts.
  • Interests:sex what else!

Post icon  Posted 19 January 2009 - 06:11 PM

Ok, downloading! Thanks once more Orkie! :-)


#12 User is offline   Pickle

  • Mega GP Mania
  • Icon
  • View blog
  • Group: GP Guru
  • Posts: 2,569
  • Joined: 30-May 06
  • Gender:Male
  • Location:Detroit, Michigan

Posted 19 January 2009 - 09:58 PM

Ive uploaded the toolchain to the archives: here

That said I would like to upload the libs also, but some are failing:
flac error:
/opt/toolchains/openwiz/arm-openwiz-linux-gnu/bin/../lib/gcc/arm-openwiz-linux-gnu/4.2.4/../../../../arm-openwiz-linux-gnu/bin/ld: skipping incompatible /lib/libc.so.6 when searching for /lib/libc.so.6
/opt/toolchains/openwiz/arm-openwiz-linux-gnu/bin/../lib/gcc/arm-openwiz-linux-gnu/4.2.4/../../../../arm-openwiz-linux-gnu/bin/ld: cannot find /lib/libc.so.6
collect2: ld returned 1 exit status

Thats are far as i get into the build from the start. I can though build sdl, sdl_mixer.


#13 User is offline   pea

  • developer
  • PipPipPipPipPipPip
  • Group: GP32 Hardcore
  • Posts: 1,084
  • Joined: 03-October 04
  • Gender:Male
  • Location:New Zealand
  • Interests:Programming, Flash, Gaming

Posted 25 January 2009 - 07:06 AM

If there is ever a version for Windows, please let me know!

What is involved getting it working on Windows? Is there a general guide somewhere to compiling a toolchain for Windows that can be used as a basis?

#14 User is offline   Franxis

  • MAME 4 ALL
  • Icon
  • Group: GP Guru
  • Posts: 762
  • Joined: 22-August 04
  • Location:Spain

Posted 25 January 2009 - 10:23 AM

QUOTE(pea @ Jan 25 2009, 08:06 AM) View Post

If there is ever a version for Windows, please let me know!

What is involved getting it working on Windows? Is there a general guide somewhere to compiling a toolchain for Windows that can be used as a basis?


I compile with DevKitGp2x without problems... I only have to remove '-static' flag in the linking phase...
DevKitGp2x can be only used to compile an executable without dependencies with other libraries (e.g. -lpthread).

#15 User is offline   Alex.

  • Raskolnikovfan
  • Icon
  • View blog
  • Group: GP Guru
  • Posts: 4,503
  • Joined: 24-August 05
  • Gender:Male

Posted 25 January 2009 - 04:30 PM

The Open2x app toolchain for Cygwin works perfectly:

http://wiki.open2x.o...n#Windows_users

I made the mistake of being lazy and initially used the very old GP2XSDK for Wiz, baaad idea biggrin.gif

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic