DLLs for Linx and Mac?

Started by
31 comments, last by Cromulent 15 years, 10 months ago
Yes I know that they are different file formats that require different methods to compile but I'm pretty sure there must be a way to make something like a DLL thats compatible cross platform. So my question is how?
This is your life, and it's ending one minute at a time. - Fight club
Advertisement
On Linux and Mac the equivalent to DLLs from Windows are .so (Shared Object) files.
DLLs are just like executable files and inherently non cross platform. You still have to compile the code for each platform separately.
Actually, it's more typical for shared libraries to have a .dylib extension on the Mac. There's a subtle distinction between .dylibs and .sos, though.

Each platform also has its own convention about where it looks for shared libraries and how to change these search paths. You should research a little in to that, too.

MSDN and developer.apple.com will help you out for Windows and Mac OS X. For linux, it's usually something like the LD_LIBRARY_PATH environment variable (among others).
Quote:Original post by the_edd
For linux, it's usually something like the LD_LIBRARY_PATH environment variable (among others).


Same for Macs although they also look for the DYLD_LIBRARY_PATH as well. Generally speaking as long as you put your dylibs in standard place (/usr/lib or /usr/local/lib) then you will be okay.
So how does 3DS Max deal with it's plug-ins?
This is your life, and it's ending one minute at a time. - Fight club
Quote:Original post by EmptyVoid
So how does 3DS Max deal with it's plug-ins?


3D Studio Max is not available for Linux or Macs. So it does not have to worry about it.
Quote:Original post by Cromulent
Quote:Original post by EmptyVoid
So how does 3DS Max deal with it's plug-ins?


3D Studio Max is not available for Linux or Macs. So it does not have to worry about it.


That answered my question very well. Thanks lol

One thing though why on earth would you want a Mac or Linux in that case?...
This is your life, and it's ending one minute at a time. - Fight club
Here is a good question do DLLs work on a Xbox 360 since Microsoft made it?
This is your life, and it's ending one minute at a time. - Fight club
Quote:Original post by EmptyVoid
Quote:Original post by Cromulent
Quote:Original post by EmptyVoid
So how does 3DS Max deal with it's plug-ins?


3D Studio Max is not available for Linux or Macs. So it does not have to worry about it.


That answered my question very well. Thanks lol

One thing though why on earth would you want a Mac or Linux in that case?...


Because there are just as good if not better 3D packages available for the Mac? Maya, Houdini, Blender, Lightwave etc.

Quote:Original post by Cromulent
Quote:Original post by EmptyVoid
Quote:Original post by Cromulent
Quote:Original post by EmptyVoid
So how does 3DS Max deal with it's plug-ins?


3D Studio Max is not available for Linux or Macs. So it does not have to worry about it.


That answered my question very well. Thanks lol

One thing though why on earth would you want a Mac or Linux in that case?...


Because there are just as good if not better 3D packages available for the Mac? Maya, Houdini, Blender, Lightwave etc.


I've worked with all of them there not as good for video games.
This is your life, and it's ending one minute at a time. - Fight club

This topic is closed to new replies.

Advertisement