Compiling static libs with GCC on OSX

Community Forums/General Help/Compiling static libs with GCC on OSX

JoshK(Posted 2011) [#1]
I need help compiling the FreeType 2 static lib with GCC on Xcode. This has been getting put off for about 9 months now. Does anyone have experience with this?


N(Posted 2011) [#2]
Wouldn't it just be ./configure && make?


JoshK(Posted 2011) [#3]
What does that mean? I just say those words and it works?


N(Posted 2011) [#4]
Pop open a terminal window, go to the freetype directory, and type it. Barring that, read the readme, 'cause I never had any trouble building it.


JoshK(Posted 2011) [#5]
It just says permission denied.

Last edited 2011


N(Posted 2011) [#6]
Where exactly did you put the source?


JoshK(Posted 2011) [#7]
It's on the desktop. Here's the terminal session:
Last login: Sat Jun 11 13:27:22 on ttys000
Josh-Klints-iMac:~ jklint$ cd /Users/jklint/Desktop/freetype-2.4.3 
Josh-Klints-iMac:freetype-2.4.3 jklint$ ./configure && make
-bash: ./configure: Permission denied
Josh-Klints-iMac:freetype-2.4.3 jklint$

Permissions for the "configure" file are "Read & Write" for everyone.

Last edited 2011


N(Posted 2011) [#8]
I don't think I can diagnose that without access to the system, so best thing I can suggest is check the permissions for: ~/Desktop, ~/Desktop/freetype-2.4.3, ~/, etc. and see if any of them have unusual permissions that would not allow you to read/write from them.

For reference, my results (just now).

It built fine.


JoshK(Posted 2011) [#9]
Want to send me the compile static lib for OSX? This is the last part I need to build LE3 on OSX.

Last edited 2011


N(Posted 2011) [#10]
Assuming your address hasn't changed, I sent a .zip file to you with the 2.4.4 static library (I think it was the right one). On the other hand, there's also a dylib, so who knows.


JoshK(Posted 2011) [#11]
Okay, I added the .a file into the project tree, and it appears like the framework icons. Then I include these two files in my main header:

#include "../Source/Libraries/freetype-2.4.4/include/ft2build.h"
#include "../Source/Libraries/freetype-2.4.4/include/freetype/ftlcdfil.h"
#include FT_FREETYPE_H

and I get a lot of errors like this:

error: #include expects "FILENAME" or <FILENAME>

on lines like these:

#include FT_INTERNAL_OBJECTS_H
#include FT_INTERNAL_DEBUG_H

So I wonder if I am including the right header file?

Last edited 2011

Last edited 2011


JoshK(Posted 2011) [#12]
Argh, I had to remove the old .c files I had included.

LEADWERKS ENGINE 3 JUST BUILT FOR OSX FOR THE FIRST TIME!!!

No graphics window yet, but it compiles and links.

Thanks!


N(Posted 2011) [#13]
Cool beans.