Page 1 of 1

Build TONC library and examples

Posted: Wed Jun 19, 2019 1:13 pm
by Chano
Hi,

I cant' build TONC library and examples with the latest version of devkitARM.

When the root Makefile is built using make, it throws the following error:

Code: Select all

tte_main.c:(.text+0x240): undefined reference to `__ctype_ptr__'
Do you have any ideas?
Thanks.

Re: Build TONC library and examples

Posted: Wed Jul 17, 2019 1:14 pm
by WinterMute
Sorry, only just noticed this.

You can either rebuild libtonc from source or use pacman to install our prepackaged libtonc

Re: Build TONC library and examples

Posted: Wed Jul 17, 2019 5:03 pm
by Chano
The libtonc bundled with devkitARM works as expected, but it comes without its examples (I think).

I just want to fiddle with Tonc's examples, but I can't build them from source.

Re: Build TONC library and examples

Posted: Fri Jul 19, 2019 2:36 pm
by WinterMute
I still have to run through the examples and look at standardising them for our environment. I'm still a bit undecided about keeping libgba separate or trying to merge both and focusing on a single library.

The packaging of libtonc & it's examples are a bit unfortunate in that source, examples and binaries are all in a monolithic bundle which kind of conflicts with how we set up devkitPro distributed tools & libraries. It needs a bit of work to tidy up.

There's a reasonable template attached to https://devkitpro.org/viewtopic.php?f=3 ... 249#p16249. Many of the simpler examples should work fine if you replace the Makefile with something like that.

Re: Build TONC library and examples

Posted: Fri Jul 19, 2019 3:01 pm
by Chano
It says that the selected attachment does not exist anymore.

I'll try to build each example with the template Makefile.

Re: Build TONC library and examples

Posted: Fri Jul 19, 2019 7:07 pm
by WinterMute
Apologies, I'm not sure what happened that. I dug it out again
MusicTest.zip
(97.41 KiB) Downloaded 762 times