PokeLeumas / savegame-manager-gx

Automatically exported from code.google.com/p/savegame-manager-gx
0 stars 0 forks source link

Compiling error due to missing arguments in Makefile #180

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Download SVN as is.
2. Install PPC Portlibs.
3. Attempt to compile.

What is the expected output? What do you see instead?
The expected output of this should be a dol file to use on the Wii system. 
Instead, the attempt to compile fails on the first source file, saying that it 
can't find ft2build.h, which is found in portlibs/ppc/include. This isn't the 
only problem, but it was the only one apparent until finding the reason for it 
and fixing it.

What version of the product are you using? On what operating system?
r129. Tested on both Windows and Ubuntu.

Please provide any additional information below.

This was easily done by adding $(PORTLIBS) to the Makefile at the end of the 
LIBDIRS line.

Then the next error became apparent: 
/opt/devkitpro/portlibs/ppc/include/ft2build.h:56:38: fatal error: 
freetype/config/ftheader.h: No such file or directory.

I checked that, and found the file existed. So I did another change to the 
Makefile, and added -I$(PORTLIBS)/include/freetype2 to export INCLUDE. As soon 
as that was done, the program compiled without a problem.

I'm attaching a copy of the Makefile with my changes. Figured I'd save you some 
trouble from doing the hard work. Have a good day, and I hope this isn't 
something you dislike.

Original issue reported on code.google.com by Dimensio...@gmail.com on 11 Apr 2013 at 10:44

GoogleCodeExporter commented 8 years ago
i don't put portlibs in portlib folder, but in libogc folder and have no 
trouble with compile.
do you think your makefile is compatible with mine and yours installation type 
of libogc and portlibs?
thx for your interest.

Original comment by dj_sk...@hotmail.com on 13 Apr 2013 at 11:51

GoogleCodeExporter commented 8 years ago
It should be. The only thing I did to my version of the Makefile was add in the 
variable for the portlibs folder, which according to the devkitpro installation 
guide, should be in it's own folder. Makes it easier to differentiate between 
them and libogc. And if you looked inside the base_rules file in devkitPPC, 
you'll see that portlibs has been specified for a separate folder.

Original comment by Dimensio...@gmail.com on 13 Apr 2013 at 3:04

GoogleCodeExporter commented 8 years ago
I was able to find the things to add to the Makefile by looking at 2 different 
projects that also use portlibs. VBAGX and WiiXplorer.

Original comment by Dimensio...@gmail.com on 13 Apr 2013 at 3:32

GoogleCodeExporter commented 8 years ago
ok, thx, i will look about that for beta version ;)

Original comment by dj_sk...@hotmail.com on 13 Apr 2013 at 4:39