FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

A Question For Mac Users

 
Post new topic   Reply to topic     Forum Index -> Derelict
View previous topic :: View next topic  
Author Message
aldacron



Joined: 05 May 2004
Posts: 1322
Location: Seoul, South Korea

PostPosted: Tue Jan 03, 2012 6:53 am    Post subject: A Question For Mac Users Reply with quote

I asked this over on the Allegro forums, but got no response. So, thought I'd try here.

I need to figure out what the shared library names are for Allegro on Mac for a default install. I understand that it's possible to install as a dylib and as a framework. What I'm not clear about is the format of the file names. All I can find on google is something like this:

"Allegro-5.0.framework" and "AllegroFont-5.0.framework"
"liballegro-5.0.dylib and liballegro_font-5.0.dylib"

It seems as if the format "name-5.0.X" is not used on Mac, and that 5.0.4, 5.0.5 and so on will be installed as "name-5.0". Is there anyone here who can verify this?
_________________
The One With D | The One With Aldacron | D Bits
Back to top
View user's profile Send private message Send e-mail
doob



Joined: 06 Jan 2007
Posts: 367

PostPosted: Wed Jan 04, 2012 1:55 pm    Post subject: Reply with quote

I just compiled Allergo 5.1.0 and it outputs these files:

Code:
doob@doob ~/Downloads/allegro/Build/lib $ ls -l
total 3264
-rwxr-xr-x   1 doob  staff  1052180  4 Jan 20:50 liballegro.5.1.0.dylib
lrwxr-xr-x   1 doob  staff       22  4 Jan 20:50 liballegro.5.1.dylib -> liballegro.5.1.0.dylib
lrwxr-xr-x   1 doob  staff       20  4 Jan 20:50 liballegro.dylib -> liballegro.5.1.dylib
-rwxr-xr-x   1 doob  staff    29920  4 Jan 20:50 liballegro_acodec.5.1.0.dylib
lrwxr-xr-x   1 doob  staff       29  4 Jan 20:50 liballegro_acodec.5.1.dylib -> liballegro_acodec.5.1.0.dylib
lrwxr-xr-x   1 doob  staff       27  4 Jan 20:50 liballegro_acodec.dylib -> liballegro_acodec.5.1.dylib
-rwxr-xr-x   1 doob  staff   106680  4 Jan 20:50 liballegro_audio.5.1.0.dylib
lrwxr-xr-x   1 doob  staff       28  4 Jan 20:50 liballegro_audio.5.1.dylib -> liballegro_audio.5.1.0.dylib
lrwxr-xr-x   1 doob  staff       26  4 Jan 20:50 liballegro_audio.dylib -> liballegro_audio.5.1.dylib
-rwxr-xr-x   1 doob  staff    23928  4 Jan 20:50 liballegro_color.5.1.0.dylib
lrwxr-xr-x   1 doob  staff       28  4 Jan 20:50 liballegro_color.5.1.dylib -> liballegro_color.5.1.0.dylib
lrwxr-xr-x   1 doob  staff       26  4 Jan 20:50 liballegro_color.dylib -> liballegro_color.5.1.dylib
-rwxr-xr-x   1 doob  staff    55052  4 Jan 20:50 liballegro_dialog.5.1.0.dylib
lrwxr-xr-x   1 doob  staff       29  4 Jan 20:50 liballegro_dialog.5.1.dylib -> liballegro_dialog.5.1.0.dylib
lrwxr-xr-x   1 doob  staff       27  4 Jan 20:50 liballegro_dialog.dylib -> liballegro_dialog.5.1.dylib
-rwxr-xr-x   1 doob  staff    34008  4 Jan 20:50 liballegro_font.5.1.0.dylib
lrwxr-xr-x   1 doob  staff       27  4 Jan 20:50 liballegro_font.5.1.dylib -> liballegro_font.5.1.0.dylib
lrwxr-xr-x   1 doob  staff       25  4 Jan 20:50 liballegro_font.dylib -> liballegro_font.5.1.dylib
-rwxr-xr-x   1 doob  staff    46176  4 Jan 20:50 liballegro_image.5.1.0.dylib
lrwxr-xr-x   1 doob  staff       28  4 Jan 20:50 liballegro_image.5.1.dylib -> liballegro_image.5.1.0.dylib
lrwxr-xr-x   1 doob  staff       26  4 Jan 20:50 liballegro_image.dylib -> liballegro_image.5.1.dylib
-rwxr-xr-x   1 doob  staff    16916  4 Jan 20:50 liballegro_main.5.1.0.dylib
lrwxr-xr-x   1 doob  staff       27  4 Jan 20:50 liballegro_main.5.1.dylib -> liballegro_main.5.1.0.dylib
lrwxr-xr-x   1 doob  staff       25  4 Jan 20:50 liballegro_main.dylib -> liballegro_main.5.1.dylib
-rwxr-xr-x   1 doob  staff    18784  4 Jan 20:50 liballegro_memfile.5.1.0.dylib
lrwxr-xr-x   1 doob  staff       30  4 Jan 20:50 liballegro_memfile.5.1.dylib -> liballegro_memfile.5.1.0.dylib
lrwxr-xr-x   1 doob  staff       28  4 Jan 20:50 liballegro_memfile.dylib -> liballegro_memfile.5.1.dylib
-rwxr-xr-x   1 doob  staff    96076  4 Jan 20:50 liballegro_primitives.5.1.0.dylib
lrwxr-xr-x   1 doob  staff       33  4 Jan 20:50 liballegro_primitives.5.1.dylib -> liballegro_primitives.5.1.0.dylib
lrwxr-xr-x   1 doob  staff       31  4 Jan 20:50 liballegro_primitives.dylib -> liballegro_primitives.5.1.dylib
-rwxr-xr-x   1 doob  staff    36388  4 Jan 20:50 liballegro_shader.5.1.0.dylib
lrwxr-xr-x   1 doob  staff       29  4 Jan 20:50 liballegro_shader.5.1.dylib -> liballegro_shader.5.1.0.dylib
lrwxr-xr-x   1 doob  staff       27  4 Jan 20:50 liballegro_shader.dylib -> liballegro_shader.5.1.dylib
-rwxr-xr-x   1 doob  staff    31840  4 Jan 20:50 liballegro_ttf.5.1.0.dylib
lrwxr-xr-x   1 doob  staff       26  4 Jan 20:50 liballegro_ttf.5.1.dylib -> liballegro_ttf.5.1.0.dylib
lrwxr-xr-x   1 doob  staff       24  4 Jan 20:50 liballegro_ttf.dylib -> liballegro_ttf.5.1.dylib

As you can see, it produces a file "liballegro.dylib" which is a symlink to "liballegro.5.1.0.dylib"
Back to top
View user's profile Send private message
doob



Joined: 06 Jan 2007
Posts: 367

PostPosted: Wed Jan 04, 2012 2:10 pm    Post subject: Reply with quote

When I choose to build frameworks it produces these files:
Code:
doob@doob ~/Downloads/allegro/Build/lib $ ls -l
total 0
drwxr-xr-x   6 doob  staff  204  4 Jan 21:05 Allegro-5.1.framework
drwxr-xr-x   6 doob  staff  204  4 Jan 21:05 AllegroAcodec-5.1.framework
drwxr-xr-x   6 doob  staff  204  4 Jan 21:05 AllegroAudio-5.1.framework
drwxr-xr-x   6 doob  staff  204  4 Jan 21:05 AllegroColor-5.1.framework
drwxr-xr-x   6 doob  staff  204  4 Jan 21:05 AllegroDialog-5.1.framework
drwxr-xr-x   6 doob  staff  204  4 Jan 21:05 AllegroFont-5.1.framework
drwxr-xr-x   6 doob  staff  204  4 Jan 21:05 AllegroImage-5.1.framework
drwxr-xr-x   5 doob  staff  170  4 Jan 21:05 AllegroMain-5.1.framework
drwxr-xr-x   6 doob  staff  204  4 Jan 21:05 AllegroMemfile-5.1.framework
drwxr-xr-x   6 doob  staff  204  4 Jan 21:05 AllegroPrimitives-5.1.framework
drwxr-xr-x   6 doob  staff  204  4 Jan 21:05 AllegroShader-5.1.framework
drwxr-xr-x   6 doob  staff  204  4 Jan 21:05 AllegroTTF-5.1.framework

"Allegro-5.1.framework" seems to be the name of the framework.
Frameworks are installed in "/Library/Frameworks" and dylibs are installed with the "/usr/local" prefix, from what I can see in the cmake config.
Back to top
View user's profile Send private message
aldacron



Joined: 05 May 2004
Posts: 1322
Location: Seoul, South Korea

PostPosted: Wed Jan 04, 2012 10:49 pm    Post subject: Reply with quote

Thanks, Jacob! That clears it all up for me. Should be safe loading 5.0.framework or 5.0.dylib (rather than 5.0.5.dylib, 5.0.4.dylib and so on).
_________________
The One With D | The One With Aldacron | D Bits
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Derelict All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group