How to setup zlib library and libpng in order to use SDL and LZX library

Tutorials and Guides about LibXenon / Toolchain / Libraries
User avatar
dreamboy
Global Moderator
Global Moderator
Posts: 48
Joined: Tue May 17, 2011 1:12 am
Location: Portugal

How to setup zlib library and libpng in order to use SDL and LZX library

Post by dreamboy » Sun Jun 26, 2011 8:34 pm

First of all download libxenon:

Code: Select all

git clone git://github.com/Free60Project/libxenon.git
  After that follow this steps:

Code: Select all

cd libxenon/toolchain
sudo ./build-xenon-toolchain zlib
sudo ./build-xenon-toolchain libpng
sudo ./build-xenon-toolchain bin2s
Each step has to end with "Done", otherway check build.log in current folder.

Thats all ;)

Download ZLX: Thread
Credits for zlx file with the libraries: [glow=red,2,300][shadow=green,bottom]Ced2911[/shadow][/glow]
Last edited by dreamboy on Sat Mar 10, 2012 2:19 pm, edited 1 time in total.
[align=center]ImageImage
xbox 360 Jasper JTAG 16mb - 2TB External 3.5HDD @ Dashboard 2.0.16202.0[/align]

cocker80

Re: How to setup zlib library and libpng

Post by cocker80 » Sat Jul 16, 2011 12:13 pm

If building libpng under windows you could do the following instead of regenerating configure...

"cd libpng-1.5.4
export CFLAGS="-mcpu=cell -mtune=cell -m32 -fno-pic -mpowerpc64 $DEVKITXENON/usr/lib/libxenon.a -L$DEVKITXENON/xenon/lib/32/ -T$DEVKITXENON/app.lds -u read -u _start -u exc_base"
export CC=xenon-gcc
./configure --prefix=$DEVKITXENON/xenon --target=xenon --host=i686-pc-mingw32
make
make install"
Last edited by cocker80 on Sat Jul 16, 2011 3:27 pm, edited 1 time in total.

User avatar
dreamboy
Global Moderator
Global Moderator
Posts: 48
Joined: Tue May 17, 2011 1:12 am
Location: Portugal

Re: How to setup zlib library and libpng in order to use SDL and LZX library

Post by dreamboy » Mon Aug 15, 2011 9:10 pm

Lzx libray updated and added lzx samples  ;)
Last edited by dreamboy on Mon Aug 15, 2011 10:37 pm, edited 1 time in total.
[align=center]ImageImage
xbox 360 Jasper JTAG 16mb - 2TB External 3.5HDD @ Dashboard 2.0.16202.0[/align]

chemone

Re: How to setup zlib library and libpng in order to use SDL and LZX library

Post by chemone » Wed Aug 24, 2011 1:11 am

Hello, i have a problem with lzx, when i want to compile an example it takes me error "cApp was not declared in this scope" thanks for the help.

EDIT: Fixed!!
Last edited by chemone on Thu Aug 25, 2011 12:20 am, edited 1 time in total.

Doerek

Re: How to setup zlib library and libpng in order to use SDL and LZX library

Post by Doerek » Thu Sep 01, 2011 3:37 am

Hi Dreamboy,
In the First Code Sektion (About zlib) You posted at the Last Line this:
  [attach=1]  <----Screenshot
The brackets at the end of Line, are messing everthing up. 
BUT it comes somehow from the Board Simple Machines itself! ...when i quote youre Post they DO NOT APEAR in the Text Box.

I noticed it just after running these commands. So now my Folder Structur is a little bit Messy.
...take a look,  But i Think i can fix it... 
[attach=2]

Could you Please inform some of the other Mods :)
Imagine some kind of bug'ed BB-Code messes up all your Info or Tutorial Threads.

Thx in advice....

Greetz
Doerek
Attachments
typo_at_code..PNG
Code.PNG
Last edited by Doerek on Thu Sep 01, 2011 3:58 am, edited 1 time in total.

User avatar
tuxuser
Administrator
Administrator
Posts: 301
Joined: Sat Feb 19, 2011 4:53 pm
Location: Germany
Contact:

Re: How to setup zlib library and libpng in order to use SDL and LZX library

Post by tuxuser » Thu Sep 01, 2011 3:41 am

Yes it was a typo
I have no idea what I am doing but atleast I am trying

Doerek

Re: How to setup zlib library and libpng in order to use SDL and LZX library

Post by Doerek » Thu Sep 01, 2011 4:31 am

@ TuxUser
It is Enough to move and restore the Old Folder Structur?

Shadow LAG

Re: How to setup zlib library and libpng in order to use SDL and LZX library

Post by Shadow LAG » Fri Sep 02, 2011 9:34 am

[quote="dreamboy"]
First of all download the package from the link at the bottom...
[/quote]
I assume you are speaking about the zlib download, you forgot to add that in, here is the link for zlib

supatx

Re: How to setup zlib library and libpng in order to use SDL and LZX library

Post by supatx » Mon Sep 05, 2011 7:28 pm

I'm having some troubles with libpng. First off, there is no makefile after I run autogen.sh. So I tried to run

Code: Select all

./configure --prefix=/usr/local/xenon/usr --with-zlib-prefix=/usr/local/xenon/usr/
but it can't find the zlib library (which is there in /usr/local/xenon/usr/lib). Any suggestions?
Oh, and I am running ubuntu 11.04

User avatar
Cancerous1
Administrator
Administrator
Posts: 88
Joined: Sat Feb 19, 2011 5:25 pm

Re: How to setup zlib library and libpng in order to use SDL and LZX library

Post by Cancerous1 » Mon Sep 05, 2011 7:37 pm

[quote="Shadow LAG"]
[quote="dreamboy"]
First of all download the package from the link at the bottom...
[/quote]
I assume you are speaking about the zlib download, you forgot to add that in, here is the link for zlib
[/quote]

for clarity, he means the link at the bottom of the post that says "Download LZX: Thread"
even tho you already know this, just adding for future readers of this thread.

SynTeX

Re: How to setup zlib library and libpng in order to use SDL and LZX library

Post by SynTeX » Fri Sep 09, 2011 11:25 am

[quote="supatx"]
I'm having some troubles with libpng. First off, there is no makefile after I run autogen.sh. So I tried to run

Code: Select all

./configure --prefix=/usr/local/xenon/usr --with-zlib-prefix=/usr/local/xenon/usr/
but it can't find the zlib library (which is there in /usr/local/xenon/usr/lib). Any suggestions?
Oh, and I am running ubuntu 11.04
[/quote]

Same problem here...
please help

//EDIT:
Fixed by using this CFLAGS:
export CFLAGS="-mcpu=cell -mtune=cell -m32 -fno-pic -mpowerpc64 /usr/local/xenon/usr/lib/libxenon.a -L/usr/local/xenon/xenon/lib/32/ -T/usr/local/xenon/app.lds -u read -u _start -u exc_base -L/usr/local/xenon/usr/lib/"

which include the path to my zlib.a ...


then run configure with
"./configure --prefix=$DEVKITXENON/xenon --target=xenon --host=i686-pc-mingw32"

make with "make CROSS_COMPILE=-xenon- " throw this error:
"pngstruct.h:27:18: fatal error: zlib.h: No such file or directory"

you can fix it by changing line 27 to full path
f.e.: #include "/usr/local/xenon/usr/include/zlib.h"


Now it works :)
Last edited by SynTeX on Fri Sep 09, 2011 12:20 pm, edited 1 time in total.

switchback

Re: How to setup zlib library and libpng in order to use SDL and LZX library

Post by switchback » Tue Sep 13, 2011 5:05 am

Wow thanks so much for the tut this is a bit mot tecky then the jtag witch i never have done but i have so many boards laying around i really wonna do this one but allthough the tut really explains everything what seems to have me asking questions is the tools needed.I have done simple thing as for flashing drives and so on .I wonna tackle this but am wondering about the tools and dumping nand as i never done this.Can i make these tools is there a kit i can buy if you have the extra time to help me out as a noob i be the first noob to do this haha.any info would help.The tut really explains most everything just what all tools is needed and how to make inquire these would be awsome.Agin thanks so much that had to be allot work but is so very cool...

supatx

Re: How to setup zlib library and libpng in order to use SDL and LZX library

Post by supatx » Tue Sep 13, 2011 6:41 pm

[quote="SynTeX"]
[quote="supatx"]
I'm having some troubles with libpng. First off, there is no makefile after I run autogen.sh. So I tried to run

Code: Select all

./configure --prefix=/usr/local/xenon/usr --with-zlib-prefix=/usr/local/xenon/usr/
but it can't find the zlib library (which is there in /usr/local/xenon/usr/lib). Any suggestions?
Oh, and I am running ubuntu 11.04
[/quote]

Same problem here...
please help

//EDIT:
Fixed by using this CFLAGS:
export CFLAGS="-mcpu=cell -mtune=cell -m32 -fno-pic -mpowerpc64 /usr/local/xenon/usr/lib/libxenon.a -L/usr/local/xenon/xenon/lib/32/ -T/usr/local/xenon/app.lds -u read -u _start -u exc_base -L/usr/local/xenon/usr/lib/"

which include the path to my zlib.a ...


then run configure with
"./configure --prefix=$DEVKITXENON/xenon --target=xenon --host=i686-pc-mingw32"

make with "make CROSS_COMPILE=-xenon- " throw this error:
"pngstruct.h:27:18: fatal error: zlib.h: No such file or directory"

you can fix it by changing line 27 to full path
f.e.: #include "/usr/local/xenon/usr/include/zlib.h"


Now it works :)
[/quote]

Perfect. Thanks :)

User avatar
Pa0l0ne
User
User
Posts: 33
Joined: Mon Sep 19, 2011 8:58 pm

Re: How to setup zlib library and libpng in order to use SDL and LZX library

Post by Pa0l0ne » Tue Sep 20, 2011 2:41 pm

Hello, i'm a noob on this kind of stuff but i love to experiment and i have problem to compile mupen64-360.

Image

I think it's all related about libpng install.

I have Ubuntu 10.04 and according on the Posts above this is what i have done:

i have installed succesfuly "libtool_2.2.6b-2ubuntu3_i386.deb" wich seems to be "libtoolize 32bits"
I don't think in my enviroment i have to install also libtoolize 64bits....isn't it?

Than I have done:
sudo su
apt-get install automake
apt-get install autoconf
chmod a+x ./autogen.sh (in my libpng-1.5.2)
./autogen.sh


NOW IT'S IMPOSSIBLE FOR MY SKILL TO DO THE:
make CROSS_COMPILE=-xenon-
make CROSS_COMPILE=-xenon- install

because a "make" file doesnt exist!

So I have read about SynTeX solution and i have launched this:

export CFLAGS="-mcpu=cell -mtune=cell -m32 -fno-pic -mpowerpc64 /usr/local/xenon/usr/lib/libxenon.a -L/usr/local/xenon/xenon/lib/32/ -T/usr/local/xenon/app.lds -u read -u _start -u exc_base -L/usr/local/xenon/usr/lib/"

but he spoke about ./configure --prefix=$DEVKITXENON/xenon --target=xenon --host=i686-pc-mingw32
wich seems to be a "Windows Toolchain"....isn't it?

SO I DON'T HAVE IDEA HOW TO GO ON...

So is there anyone who help a very poor noob?

Thanks in advance!

sk1080

Re: How to setup zlib library and libpng in order to use SDL and LZX library

Post by sk1080 » Mon Jan 09, 2012 6:29 am

Well, seeing as I still encounter people that have issues installing libpng and zlib, I will post these scripts that do it automatically:

http://madhack.tk/xenon/zlib.sh
http://madhack.tk/xenon/libpng.sh

EDIT: please re-download libpng.sh, it was fail
also, http://madhack.tk/xenon/freetype.sh, for freetype
Last edited by sk1080 on Tue Jan 17, 2012 12:28 am, edited 1 time in total.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests