<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Using libraries</title>
<description> Hi, I&amp;#039;m kind of new to C and completely new to Wii programming but I have a fair bit of experience with other languages and am very enthusiastic about learning. So, over the past two days I&amp;#039;ve made a program that will download a file you specify (see here) and experienced my fair share of code dumps and infinite loops. Fun times.

Anyway, this is all in preparation of writing an RSS reader/web browser (let it never be said that I pick easy first projects ;-) ). This will be a lot easier if I can use some libraries, but I don&amp;#039;t really know how to use stuff that&amp;#039;s not included with devkitppc. I want to use mini-xml, but I don&amp;#039;t know how to get started. Do I need to recompile this for PPC or anything, or basically how should I proceed?

Edit: Solved by people on #wiidev, at least for the time being. Someone already ported mxml to Wii, and it is here: [code.google.com] . But I still would be interested in general links on how libraries work, how to compile them, how to create them, etc.</description><link>http://forum.wiibrew.org/read.php?11,7856,7856#msg-7856</link><lastBuildDate>Thu, 18 Jun 2026 10:22:53 +0200</lastBuildDate>
<generator>Phorum 5.2.23</generator>
<item>
<guid>http://forum.wiibrew.org/read.php?11,7856,7929#msg-7929</guid>
<title>Re: Using libraries</title><link>http://forum.wiibrew.org/read.php?11,7856,7929#msg-7929</link><description><![CDATA[ I don&#039;t know x86 asm unfortunately, only a little MIPS ;-). Cool, thanks for the info. I still don&#039;t quite understand how you compile to a .a file, but I&#039;ll probably look more into it later. Is a .a file the same as a .dol but not executable or something? And isn&#039;t compiling for the wii on your PC already cross compiling anyway?]]></description>
<dc:creator>iofthestorm</dc:creator>
<category>Coding</category><pubDate>Thu, 15 Jan 2009 00:14:34 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,7856,7928#msg-7928</guid>
<title>Re: Using libraries</title><link>http://forum.wiibrew.org/read.php?11,7856,7928#msg-7928</link><description><![CDATA[ First off, we&#039;re always talking C/C++ code here (eg: x86 ASM is a no-go).<br /><br />For compiling existing libraries for use on the Wii, see the set of instructions I included in the <a href="http://www.wiibrew.org/w/images/3/3d/FreeType-PPC.rar" rel="nofollow">Freetype compile</a> I did. This applies to other libraries as well. They call this "cross-compiling" - meaning compiling on one architecture (eg: x86) for another (PPC). Some libraries compile without any modifications required, while others may have "endian" issues, in which case the code needs to be modified to use big-endian. There may be other incompatibilities for various reasons (eg: C standards, buffer sizes, file access code, etc). But, again, many of the well-established and better written libraries already avoid these issues.<br /><br />For using a library, you need to include it in your makefile (eg: -lmxml), and use an #include for the .h file.<br /><br />For making your own Wii library, there are some best-practices (eg: global vars are bad), and other than that, just compile your code into a .a file, and you&#039;re ready to go! A library as far as the Wii is concerned is just some precompiled code, very little black arts voodoo magic is involved. ;)]]></description>
<dc:creator>Tantric</dc:creator>
<category>Coding</category><pubDate>Wed, 14 Jan 2009 23:58:55 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,7856,7856#msg-7856</guid>
<title>Using libraries</title><link>http://forum.wiibrew.org/read.php?11,7856,7856#msg-7856</link><description><![CDATA[ Hi, I&#039;m kind of new to C and completely new to Wii programming but I have a fair bit of experience with other languages and am very enthusiastic about learning. So, over the past two days I&#039;ve made a program that will download a file you specify (see <a href="http://code.google.com/p/wiihttp/source/browse/trunk/source/main.c" rel="nofollow">here</a>) and experienced my fair share of code dumps and infinite loops. Fun times.<br /><br />Anyway, this is all in preparation of writing an RSS reader/web browser (let it never be said that I pick easy first projects ;-) ). This will be a lot easier if I can use some libraries, but I don&#039;t really know how to use stuff that&#039;s not included with devkitppc. I want to use <a href="http://www.minixml.org/" rel="nofollow">mini-xml</a>, but I don&#039;t know how to get started. Do I need to recompile this for PPC or anything, or basically how should I proceed?<br /><br />Edit: Solved by people on #wiidev, at least for the time being. Someone already ported mxml to Wii, and it is here: [<a href="http://code.google.com/p/wiichat/" rel="nofollow">code.google.com</a>] . But I still would be interested in general links on how libraries work, how to compile them, how to create them, etc.]]></description>
<dc:creator>iofthestorm</dc:creator>
<category>Coding</category><pubDate>Tue, 13 Jan 2009 23:41:41 +0100</pubDate></item>
</channel>
</rss>