Search found 56 matches

by nebiun
Thu Oct 11, 2018 6:06 pm
Forum: Gamecube/Wii Development
Topic: Incompatible libraries (portlibs)?
Replies: 2
Views: 4706

Re: Incompatible libraries (portlibs)?

More subtle problem: previous version of freetype library required zip library (option -lz), new version requires bz2 library (option -lbz2).
Now I need to link with both libraries because libpng requires -lz and freetype requires -lbz2.

Solved!
Thanks
by nebiun
Sun Oct 07, 2018 10:26 am
Forum: Gamecube/Wii Development
Topic: Incompatible libraries (portlibs)?
Replies: 2
Views: 4706

Incompatible libraries (portlibs)?

Compiling an old project with last PPC version I have this errors during linking phase: C:/devkitPro/portlibs/ppc/lib\libfreetype.a(ftbzip2.o): In function `ft_bzip2_stream_close': ftbzip2.c:(.text+0x3c): undefined reference to `BZ2_bzDecompressEnd' C:/devkitPro/portlibs/ppc/lib\libfreetype.a(ftbzip...
by nebiun
Wed Sep 12, 2018 6:17 pm
Forum: Gamecube/Wii Development
Topic: Error compiling wii examples
Replies: 2
Views: 4154

Re: Error compiling wii examples

Solved!
Thanks
by nebiun
Sun Sep 09, 2018 10:58 am
Forum: Gamecube/Wii Development
Topic: Error compiling wii examples
Replies: 2
Views: 4154

Error compiling wii examples

After a fresh installation on windows (using devkitProUpdater-3.0.3), running Makefile from C:\devkitPro\examples\wii, I have this error: make[1]: ingresso nella directory "/opt/devkitpro/examples/wii/filesystem/directory" directory.c C:/devkitPro/examples/wii/filesystem/directory/source/directory....
by nebiun
Wed Apr 05, 2017 7:18 am
Forum: devkitPPC
Topic: undefined reference to `access' using devkitPPC r29-1
Replies: 10
Views: 17597

Re: undefined reference to `access' using devkitPPC r29-1

Sorry, my fault.
This is what I had in my mind:

What is the problem?
undefined reference to `access'
How you find the problem?
compiling libpng-1.6.28
Can you solve it by yourself?
Yes, but I think that newlib must have an "access" implementation.

and then I open the issue.
by nebiun
Tue Apr 04, 2017 9:37 am
Forum: devkitPPC
Topic: undefined reference to `access' using devkitPPC r29-1
Replies: 10
Views: 17597

Re: undefined reference to `access' using devkitPPC r29-1

The problem here isn't that the library won't compile but that the associated tools and tests won't compile. These tools and tests are useless for bare metal so these have been patched out of the build process. Even if they compiled they would still serve no purpose for a bare metal cross compiler ...
by nebiun
Mon Apr 03, 2017 6:05 pm
Forum: devkitPPC
Topic: undefined reference to `access' using devkitPPC r29-1
Replies: 10
Views: 17597

Re: undefined reference to `access' using devkitPPC r29-1

The access error is coming from attempting to build tools for the host platform which makes no sense for our use case. The simplest way to get latest libpng built for devkitARM or devkitPPC is to patch out the tool binaries & tests which require this function. I would probably do this anyway even i...
by nebiun
Sat Apr 01, 2017 3:06 pm
Forum: devkitPPC
Topic: undefined reference to `access' using devkitPPC r29-1
Replies: 10
Views: 17597

Re: undefined reference to `access' using devkitPPC r29-1

You can use this function to replace the "acccess function": static int wii_access (const char *pathname, int mode) { struct stat st; if (stat(pathname, &st) < 0) return -1; return 0; //With Wii the file/dir is considered always accessible if it exists } #define access wii_access Problem is not emu...
by nebiun
Sat Mar 25, 2017 4:49 pm
Forum: devkitPPC
Topic: undefined reference to `access' using devkitPPC r29-1
Replies: 10
Views: 17597

Re: undefined reference to `access' using devkitPPC r29-1

And in devkitPPC r27. :shock:

access prototype and defines needed for call the function are present in

devkitPPC/powerpc-eabi/include/sys/unistd.h

but the function is not in the library
by nebiun
Sat Mar 25, 2017 3:59 pm
Forum: devkitPPC
Topic: undefined reference to `access' using devkitPPC r29-1
Replies: 10
Views: 17597

Re: undefined reference to `access' using devkitPPC r29-1

Same problem with devkitPPC r28