Author Topic: DevKitPro  (Read 7152 times)

calthephenom

  • Guest
DevKitPro
« on: August 23, 2009, 12:59:04 am »
how do i setup the devkitpro lib? , i am going to download codeblocks for creating custom content for the wii

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7592
    • My Best Post
Re: DevKitPro
« Reply #1 on: August 23, 2009, 01:23:21 am »
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++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

calthephenom

  • Guest
Re: DevKitPro
« Reply #2 on: August 23, 2009, 05:35:33 am »
windows exp standard
1.4.9

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7592
    • My Best Post
Re: DevKitPro
« Reply #3 on: August 23, 2009, 06:45:44 am »
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.
Code
$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]
« Last Edit: August 23, 2009, 09:46:35 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org