weimingtom / angel-engine

Automatically exported from code.google.com/p/angel-engine
0 stars 0 forks source link

angel fails to build on Mac OS X 10.6.7 (issue with freetype config) #53

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. building Angel on a Mac with 10.6 (2010 Mac Mini in my case, 10.6.7)
2.
3.

What is the expected output? What do you see instead?
successful build expected.
Project built in xcode for several minutes, but finally died trying to build 
freetype 2.3.7.
Error seen in xcode just says gcc incapable of building an executable. However, 
looking
in config.log (which the error message in xcode suggests looking at), I found 
the output below.
Looks to me like it's looking for 10.6 CRT in the 10.5 SDK folder, but I can't 
see how I can easily
tweak this. There doesn't seem to be a configure.ac in the freetype dir, for 
example, so I'm really
not sure how to resolve it.

Has anyone in your team ever tried on Slow Leopard (10.6) as opposed to 10.5 ?

Best Regards,
Andy (andysouthwell@hotmail.com)

configure:2538: gcc -V >&5
gcc-4.2: argument to `-V' is missing
configure:2542: $? = 1
configure:2565: checking for C compiler default output file name
configure:2587: gcc -O -g -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch i386 
-arch ppc  -arch i386 -arch ppc conftest.c  >&5
ld: library not found for -lcrt1.10.6.o
collect2: ld returned 1 exit status
lipo: can't open input file: 
/var/folders/MV/MVG5uKMVHkWh2G2q8ExKSU+++TI/-Tmp-//cc9bNeCT.out (No such file 
or directory)
configure:2591: $? = 1
configure:2629: result: 
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "FreeType"
| #define PACKAGE_TARNAME "freetype"
| #define PACKAGE_VERSION "2.3.7"
| #define PACKAGE_STRING "FreeType 2.3.7"
| #define PACKAGE_BUGREPORT "freetype@nongnu.org"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2636: error: C compiler cannot create executables

What version of the product are you using? On what operating system? Is it
a downloaded distribution or from SVN?

- latest version available as of yesterday - Angel v2.2. System as described 
above.
- downloaded from your website (not from SVN)

Please provide any additional information below.

Original issue reported on code.google.com by a.t.sout...@gmail.com on 10 May 2011 at 6:31

GoogleCodeExporter commented 8 years ago
One thing I forgot to mention: I would like to add that the required CRT lib 
does exist on my system, but in the 10.6 SDK dir, wheras I suspect freetype's 
makefile is looking in the 105 SDK directory.

Original comment by a.t.sout...@gmail.com on 10 May 2011 at 6:33

GoogleCodeExporter commented 8 years ago
I build on Snow Leopard pretty regularly (in fact, as far as I know Angel 
doesn't build on anything older anymore). Haven't seen this problem, though. My 
guess would be something going awry with the FreeType configure script, which 
gets run as a build stage early in the process. 

Could you attach the output of the FreeType build step? 

Original comment by lieseg...@gmail.com on 10 May 2011 at 7:38

GoogleCodeExporter commented 8 years ago
Thanks for your response. Good to hear this platform is definitely
supported. I've attached the full config.log file from freetype's build
directory (an excerpt from which I posted in the original issue report). Is
this what you need? If not, can you tell me exactly which file(s) you do
need, please, and I'll gladly send them your way.

Original comment by a.t.sout...@gmail.com on 10 May 2011 at 8:54

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Have you tried building from SVN? Does the problem persist?

Original comment by lieseg...@gmail.com on 14 May 2011 at 1:55

GoogleCodeExporter commented 8 years ago
It was the downloaded version.

Just tried checking out head from SVN (revision 584). Now I get completely
different errors (when building the Mac project file - ie not the iOS one)
:-

Run custom shell script "Generate Lua Wrapping"
swig error: Unrecognized option -debug-typedef
Use 'swig -help' for available options

Compile AngleLuaWrappingIntroGame.cpp
Macro "SWIG_fail_arg" requires 3 arguments, but only 1 given
(repeated 1308 times)

If there's another version you'd like me to try from SVN, please let me know

Original comment by a.t.sout...@gmail.com on 16 May 2011 at 6:37

GoogleCodeExporter commented 8 years ago
What version of SWIG are you running? Is it installed from MacPorts? The 
version of SWIG that comes with Snow Leopard is unfortunately very out of date. 

Original comment by lieseg...@gmail.com on 16 May 2011 at 7:28

GoogleCodeExporter commented 8 years ago
I had the version of swig that came with Snow Leopard (tbh I've never even
heard of swig before). Via mac-ports I've now installed the latest swig,
plus swig-lua, and it all builds fine now, and the app seems to startup fine
too.

Thank you very much for your support. In terms of the original issue report
I raised, it's fixed for me now - fetching from SVN was the solution. That
doesn't address the original report though - that the downloadable version
still has a funny build problem with freetype. I guess that still stands.

Original comment by a.t.sout...@gmail.com on 17 May 2011 at 6:36

GoogleCodeExporter commented 8 years ago
Yup, the downloadable version doesn't build on Snow Leopard. SVN is much more 
up to date, and 3.0 should be released once my real-life project slows down a 
bit. 

Glad you could get it working! Sorry for the hassle -- the nix-prereqs.sh is 
supposed to handle installing all the prerequisites on OS X (or at least 
alerting you to what you need to do) but it's not terribly obvious. 

Original comment by lieseg...@gmail.com on 17 May 2011 at 7:16

GoogleCodeExporter commented 8 years ago

Original comment by lieseg...@gmail.com on 17 May 2011 at 7:16

GoogleCodeExporter commented 8 years ago
Cool - looking forward to 3.0 then! Thanks again.

Andy

Original comment by a.t.sout...@gmail.com on 17 May 2011 at 8:07