Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Linux libraries .a and .so

  1. #1

    Linux libraries .a and .so

    Hi! i was asking myself what's the differences between ".a" libraries and ".so" libraries.
    Also, i was compiling ODE from sources for my game, but it only generates libode.a. What about libode.so ?
    How can i make it ?

    Thanks!
    If you save your data in a proprietary format, the owner of the format owns your data.
    <br /><A href="http://msx80.blogspot.com">http://msx80.blogspot.com</A>

  2. #2
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    Linux libraries .a and .so

    I don't have as much Linux experience as I'd like, but I know that an .so file is the static equivilent of a DLL. It stands for, if I'm not mistaken, 'Static Object'. And for the majority of the common .so files are normally stored in a standard location within the installation. Things like OpenGL, OpenAL, or anything else like that...

    As for the .a I haven't a clue.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  3. #3

    Linux libraries .a and .so

    .so(shared object) files are the *nix equivalent of a .dll(dynamic link library)
    .o(object) files are the GNU tools equivalent of .obj files and are used in conjunction with .a(object-archive) files.
    Basically you should be able to link .o/.a files using FPC, look @ docs, see {$linklib } directive.
    The future must be... Fast and OpenSource so...
    <br />Think Open and Lightning Fast!

  4. #4

    Linux libraries .a and .so

    [quote="Lightning"].so(shared object) files are the *nix equivalent of a .dll(dynamic ]

    Thanks! I don't think that i can link the library in my exe, becouse it is dinamically loaded by the headers (odeimport.dll), like for example OpenGl are in DelphiJedi.
    I need to obtain the .so.. do you know how can i do this ?

    Thank you :mrgreen:
    If you save your data in a proprietary format, the owner of the format owns your data.
    <br /><A href="http://msx80.blogspot.com">http://msx80.blogspot.com</A>

  5. #5

    Linux libraries .a and .so

    This is what I was told to do and it worked for me on Mandrake 10...

    <quote>
    In the top-level-directory Makefile, add this line after line number 250 (the
    command which creates the static library)

    $(CC) -shared -o libode.so $(ODE_OBJECTS) -L$(OPCODE_DIRECTORY) -lopcode -lm
    </quote>
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

  6. #6

    Linux libraries .a and .so

    Quote Originally Posted by savage
    This is what I was told to do and it worked for me on Mandrake 10...

    <quote>
    In the top-level-directory Makefile, add this line after line number 250 (the
    command which creates the static library)

    $(CC) -shared -o libode.so $(ODE_OBJECTS) -L$(OPCODE_DIRECTORY) -lopcode -lm
    </quote>
    Thanks! i'm trying this evening.
    If you save your data in a proprietary format, the owner of the format owns your data.
    <br /><A href="http://msx80.blogspot.com">http://msx80.blogspot.com</A>

  7. #7

    Linux libraries .a and .so

    Quote Originally Posted by {MSX}
    Thanks! i'm trying this evening.
    It didn't worked..
    If you save your data in a proprietary format, the owner of the format owns your data.
    <br /><A href="http://msx80.blogspot.com">http://msx80.blogspot.com</A>

  8. #8

    Linux libraries .a and .so

    I could send you one I already have.
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

  9. #9

    Linux libraries .a and .so

    Quote Originally Posted by savage
    I could send you one I already have.
    That would be nice Thank you!
    What type do you have? i'm looking for the last version, release, with mesh geom support.

    You should already have my email address
    If you save your data in a proprietary format, the owner of the format owns your data.
    <br /><A href="http://msx80.blogspot.com">http://msx80.blogspot.com</A>

  10. #10

    Linux libraries .a and .so

    Hmm I may try to build it again with the latest source then
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •