News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

DevKitPro

Started by calthephenom, August 23, 2009, 12:59:04 AM

Previous topic - Next topic

calthephenom

how do i setup the devkitpro lib? , i am going to download codeblocks for creating custom content for the wii

stahta01

What OS and Version?

For those who had no idea what DevKitPro is, like me, see link http://wiibrew.org/wiki/DevkitPro site.

Tim S.


C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

calthephenom

windows exp standard
1.4.9

stahta01

#3
Got it to compile and link; attached project below; no idea if safe to upload it to hardware.
Edit: My path to kit is "C:\GreenApps\devkitPro" this is hardcoded in the project search path; will need changed to the proper prefix.

Note: I put stuff in the project file that should be in the compiler setting because it was easier to test and not sure which stuff should be where.

This is just a educated guess on how to do it.

Steps
1. Copy the "GNU GCC Compiler for PowerPC" Compiler
2. Modify the new "GNU GCC Compiler for PPC for Wii" Compiler
2A. Change Compiler Installation Directory
2B. Change Program file prefix for "ppc-" to "powerpc-gekko-"
    Example change ppc-gcc.exe to powerpc-gekko-gcc.exe

Tim S.

PS: You might read this and see if it gives you an idea
http://wiki.codeblocks.org/index.php?title=Adding_support_for_non_C/C%2B%2B_files_to_the_build_system

Changed "Compile single file to object like below"; not sure if this change is needed if you do not want the .d file to be created.

$compiler $options -MMD -MP -MF $objects_output_dir/$file_name.d $includes -c $file -o $object



Attached wii project file with sample template code.


[attachment deleted by admin]
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]