Build TONC library and examples

Post Reply
Chano
Posts: 28
Joined: Fri Dec 12, 2008 7:38 pm

Build TONC library and examples

Post by Chano » Wed Jun 19, 2019 1:13 pm

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.

WinterMute
Site Admin
Posts: 1845
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Build TONC library and examples

Post by WinterMute » Wed Jul 17, 2019 1:14 pm

Sorry, only just noticed this.

You can either rebuild libtonc from source or use pacman to install our prepackaged libtonc
Help keep devkitPro toolchains free, Donate today

Personal Blog

Chano
Posts: 28
Joined: Fri Dec 12, 2008 7:38 pm

Re: Build TONC library and examples

Post by Chano » Wed Jul 17, 2019 5:03 pm

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.

WinterMute
Site Admin
Posts: 1845
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Build TONC library and examples

Post by WinterMute » Fri Jul 19, 2019 2:36 pm

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.
Help keep devkitPro toolchains free, Donate today

Personal Blog

Chano
Posts: 28
Joined: Fri Dec 12, 2008 7:38 pm

Re: Build TONC library and examples

Post by Chano » Fri Jul 19, 2019 3:01 pm

It says that the selected attachment does not exist anymore.

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

WinterMute
Site Admin
Posts: 1845
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Build TONC library and examples

Post by WinterMute » Fri Jul 19, 2019 7:07 pm

Apologies, I'm not sure what happened that. I dug it out again
MusicTest.zip
(97.41 KiB) Downloaded 746 times
Help keep devkitPro toolchains free, Donate today

Personal Blog

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests