Guide to Setup your PC for LibXenon Programming

Tutorials and Guides about LibXenon / Toolchain / Libraries
User avatar
tuxuser
Administrator
Administrator
Posts: 301
Joined: Sat Feb 19, 2011 4:53 pm
Location: Germany
Contact:

Re: Guide to Setup your PC for LibXenon Programming

Post by tuxuser » Wed Feb 01, 2012 5:03 pm

Create (as superuser) a file in /etc/profile.d/ named devkitxenon (or whatever you like to call it) so it's:

/etc/profile.d/devkitxenon

put the two exports line in there, save, logout & login the current user and try again
I have no idea what I am doing but atleast I am trying

Xplorer4x4

Re: Guide to Setup your PC for LibXenon Programming

Post by Xplorer4x4 » Tue Feb 14, 2012 12:39 am

[quote="tuxuser"]
login the current user
[/quote]
I usually log in as root since most of the process needs su anyways, so do you mean log back in as root or log in as "devkitxenon?"

[quote="tuxuser"]
Create (as superuser) a file in /etc/profile.d/ named devkitxenon (or whatever you like to call it) so it's:

/etc/profile.d/devkitxenon

put the two exports line in there, save, logout & login the current user and try again
[/quote]
I did that, I logged out, even rebooted just to be sure, and I still get -bash: xenon-gcc: command not found

I would really like to kit my dev machine up and running. Can some one please help me here?

I been working on getting a dev VM set up for baout 2 months, amidst computer problems though. It would be great to actually get some help so I can get down to business!


edit by tuxuser: merged double-posting!
Last edited by Xplorer4x4 on Fri Feb 17, 2012 4:53 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: Guide to Setup your PC for LibXenon Programming

Post by tuxuser » Fri Feb 17, 2012 4:55 am

Try to name it

/etc/profile.d/devkitxenon.sh

(Maybe the file-ending makes a difference)

If not: Reinstall the toolchain - It has to report: Install successfully or similar
If it doesnt report success - check build.log for errors!
I have no idea what I am doing but atleast I am trying

Xplorer4x4

Re: Guide to Setup your PC for LibXenon Programming

Post by Xplorer4x4 » Fri Feb 17, 2012 8:48 am

[quote="tuxuser"]
If it doesnt report success - check build.log for errors!
[/quote]
This! That was exactly the tip I needed! Sure enough:
configure: error: Building GCC requires GMP 4.2+, MPFR 2.3.2+ and MPC 0.8.0+.
I think it would be very useful to mention the build.log part in the guide. Also include this info from the wiki:

Code: Select all

cd gcc-4.6.1
wget ftp://ftp.gmplib.org/pub/gmp-5.0.2/gmp-5.0.2.tar.bz2
tar xvjf gmp-5.0.2.tar.bz2 && mv gmp-5.0.2 gmp
wget http://www.multiprecision.org/mpc/download/mpc-0.9.tar.gz
tar xvzf mpc-0.9.tar.gz && mv mpc-0.9 mpc 
wget http://www.mpfr.org/mpfr-current/mpfr-3.0.1.tar.gz
tar xvzf mpfr-3.0.1.tar.gz && mv mpfr-3.0.1 mpfr
cd ..
./build-xenon-toolchain toolchain
However the url for mpfr-3.0.1 is dead. The current version is mpfr-3.1.0.tar.gz.

Xplorer4x4

Re: Guide to Setup your PC for LibXenon Programming

Post by Xplorer4x4 » Mon Mar 19, 2012 7:33 am

I was trying to set up a fresh dev vm, but every time I try to compile I get an error that I can't find any info on. Configuring GCC 2nd Pass completes fine, then it tried to build libxenon and fails. I am using Debian 6 in an i686 environment. I have the dependcies listed from apt-get plus the latest versions of gmp, mpfr and mpc. I tried with older versions of gmp, mpfr and mpc but had no luck there either. I am building from the latest versions from the non-testing git repo. Here is the last few lines of my build.log:

Code: Select all

../../drivers/xenon_nand/xenon_sfcx.c: In function 'try_rawflash':
../../drivers/xenon_nand/xenon_sfcx.c:455:9: warning: implicit declaration of function 'delay' [-Wimplicit-function-declaration]
[xenon_config.c]
[ucode.c]
[edram.c]
../../drivers/xenos/edram.c: In function 'edram_p2':
../../drivers/xenos/edram.c:224:12: warning: unused variable 'k' [-Wunused-variable]
../../drivers/xenos/edram.c:224:9: warning: unused variable 'j' [-Wunused-variable]
[xe.c]
[xenos.c]
../../drivers/xenos/xenos.c: In function 'xenos_autoset_mode':
../../drivers/xenos/xenos.c:1130:3: error: too few arguments to function 'xenos_detect_hdmi_monitor'
../../drivers/xenos/xenos_edid.h:210:6: note: declared here
make: *** [../../drivers/xenos/xenos.o] Error 1
make: Leaving directory `/opt/free60-git/libxenon/libxenon/ports/xenon'

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

Re: Guide to Setup your PC for LibXenon Programming

Post by tuxuser » Mon Mar 19, 2012 8:35 am

../../drivers/xenos/xenos.c:1130:3: error: too few arguments to function 'xenos_detect_hdmi_monitor'
Sorry, was my fault. Forgot to pass the edid function as argument - should be good now (in github.com/tuxuser)
I have no idea what I am doing but atleast I am trying

Xplorer4x4

Re: Guide to Setup your PC for LibXenon Programming

Post by Xplorer4x4 » Mon Mar 19, 2012 8:53 am

Thanks for the quick fix, tux. Is there nay difference between your libxenon on free60/libxenon?
Last edited by Xplorer4x4 on Mon Mar 19, 2012 8:54 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: Guide to Setup your PC for LibXenon Programming

Post by tuxuser » Thu Aug 23, 2012 5:48 pm

Updated (and hopefully simplified) the Tutorial. See Post #1 in this thread. Enjoy - and as usual: report mistakes if you find any, thx!

UPDATE: Sorry, little flaw happened, v1.1a is up!
Last edited by tuxuser on Thu Aug 23, 2012 6:02 pm, edited 1 time in total.
I have no idea what I am doing but atleast I am trying

OOKAMI

Re: Guide to Setup your PC for LibXenon Programming

Post by OOKAMI » Wed Oct 03, 2012 7:12 pm

finally gone from windows to ubuntu and everything working now fine :)

thanks for your tutorial :)

can i suggest to add something about GIT ?

at the line
To get the required files for this step you have to make sure that you got a GIT-Client

can you add this command ?
sudo apt-get install git

like this, ubuntu (and maybe all other distros) will have internal git client with terminal :)

have a nice day :)

.

Xplorer4x4

Re: Guide to Setup your PC for LibXenon Programming

Post by Xplorer4x4 » Wed Oct 03, 2012 7:17 pm

[quote="OOKAMI"]
can you add this command ?
sudo apt-get install git

like this, ubuntu (and maybe all other distros) will have internal git client with terminal :)
[/quote]
No this does not apply to all other distros, only those, like Ubuntu, that are derived from Debian. I would assume apt-get applies to all Debian derived linux distros but I could be wrong. For example on CentOS, it would be something like yum install git.

chunkz

Re: Guide to Setup your PC for LibXenon Programming

Post by chunkz » Mon Jan 14, 2013 12:13 pm

so im trying this out i got at as far "Go into the toolchain directory now and start the actual xenon-toolchain compile and install. The part that is suposed to take 2 hours. well when i type the command it says cd command not found any help would be great. Im a total newb to this and am learning as i go thanks again.

User avatar
XeXGolden
User
User
Posts: 10
Joined: Wed Aug 28, 2013 6:26 pm
Location: USA Eastern
Contact:

Re: Guide to Setup your PC for LibXenon Programming

Post by XeXGolden » Thu Aug 29, 2013 1:08 am

Thx dude I wanted to get into more of this  :o
New to this Site :)

Im making a asteroids game!!! :)
^ libxenon

yhs5522
User
User
Posts: 1
Joined: Wed Feb 04, 2015 8:38 am

Re: Guide to Setup your PC for LibXenon Programming

Post by yhs5522 » Wed Feb 04, 2015 8:43 am

Thank you very much

Jan4V
User
User
Posts: 1
Joined: Fri Feb 20, 2015 9:31 am

Re: Guide to Setup your PC for LibXenon Programming

Post by Jan4V » Fri Feb 20, 2015 9:33 am

PDF is deactivated. What should I do...?

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

Re: Guide to Setup your PC for LibXenon Programming

Post by dreamboy » Wed May 13, 2015 7:07 pm

Jan4V wrote:PDF is deactivated. What should I do...?
You can check the tutorial here

http://www.xboxhacks.de/index.php?page= ... f37fff8ed4

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests