Where's the .so?

Questions, comments, and news on the server side plug-ins and it's API
Post Reply
User avatar
A Meteorite
Private First Class
Private First Class
Posts: 1786
Joined: Thu Apr 28, 2005 12:56 am
Location: California, U.S.
Contact:

Where's the .so?

Post by A Meteorite »

OK, this is probably a stupid question: but where's the .so file after building?

I found a .o file in a .libs directory but no .so file anywhere to be found.
Image
Owner @ BZFX
Core Admin @ CAN

Email me: bzmet…@gmail.com
User avatar
A Meteorite
Private First Class
Private First Class
Posts: 1786
Joined: Thu Apr 28, 2005 12:56 am
Location: California, U.S.
Contact:

Post by A Meteorite »

OK, bumping is bad... but someone has to know! Really, I want to get into this plugin stuff, but I don't even know where the .so file is located.

Using Mac OS X 10.4.2.
Image
Owner @ BZFX
Core Admin @ CAN

Email me: bzmet…@gmail.com
User avatar
I_Died_Once
Special Forces
Special Forces
Posts: 635
Joined: Sun Nov 28, 2004 5:27 pm
Location: The Dark Side
Contact:

Post by I_Died_Once »

I dunno about mac, but on a linux system, they're in the /bzflag/lib/ directory in the system.

See

Code: Select all

linux:/home/death/bzflag/lib # ls
.               libairspawn.so           libhiddenAdmin.so.0             libRogueGenocide.so.0.0.0   playHistoryTracker.a
..              libairspawn.so.0         libhiddenAdmin.so.0.0.0         libSAMPLE_PLUGIN.a          playHistoryTracker.la
airspawn.a      libairspawn.so.0.0.0     libkillall.a                    libSAMPLE_PLUGIN.la         playHistoryTracker.so
airspawn.la     libBZFSplugin.a          libkillall.la                   libSAMPLE_PLUGIN.so         RogueGenocide.a
airspawn.so     libBZFSplugin.la         libkillall.so                   libSAMPLE_PLUGIN.so.0       RogueGenocide.la
chathistory.a   libBZFSplugin.so         libkillall.so.0                 libSAMPLE_PLUGIN.so.0.0.0   RogueGenocide.so
chathistory.la  libBZFSplugin.so.0       libkillall.so.0.0.0             libshockwaveDeath.a         SAMPLE_PLUGIN.a
chathistory.so  libBZFSplugin.so.0.0.0   libplayHistoryTracker.a         libshockwaveDeath.la        SAMPLE_PLUGIN.la
hiddenAdmin.a   libchathistory.a         libplayHistoryTracker.la        libshockwaveDeath.so        SAMPLE_PLUGIN.so
hiddenAdmin.la  libchathistory.la        libplayHistoryTracker.so        libshockwaveDeath.so.0      shockwaveDeath.a
hiddenAdmin.so  libchathistory.so        libplayHistoryTracker.so.0      libshockwaveDeath.so.0.0.0  shockwaveDeath.la
killall.a       libchathistory.so.0      libplayHistoryTracker.so.0.0.0  libvocaliser.a              shockwaveDeath.so
killall.la      libchathistory.so.0.0.0  libRogueGenocide.a              libvocaliser.la             vocaliser.a
killall.so      libhiddenAdmin.a         libRogueGenocide.la             libvocaliser.so             vocaliser.la
libairspawn.a   libhiddenAdmin.la        libRogueGenocide.so             libvocaliser.so.0           vocaliser.so
libairspawn.la  libhiddenAdmin.so        libRogueGenocide.so.0           libvocaliser.so.0.0.0
linux:/home/death/bzflag/lib #  
My user name on this sytem is death, and when I compile, I use --prefix=/home/death/bzflag

ls displays the contents of whatever directory you are in
...This has been a recording.
User avatar
A Meteorite
Private First Class
Private First Class
Posts: 1786
Joined: Thu Apr 28, 2005 12:56 am
Location: California, U.S.
Contact:

Post by A Meteorite »

I_Died_Once
Thanks. I'll take a look. Right now, BZFlag is compiled "globally" - everything goes in /usr . I'll poke around in that folder for a "libs".

Have you tried globally compiling without --prefix? If you could it wopuld be nice to see where it then puts the .so's.

*edit*
Some more questions... one: when you compile BZFlag do you use --enable-plugins and --prefix? Or do you only use --prefix when you compile each individual plugin?
Image
Owner @ BZFX
Core Admin @ CAN

Email me: bzmet…@gmail.com
User avatar
Tegan
Private First Class
Private First Class
Posts: 40
Joined: Fri Apr 09, 2004 8:24 am
Location: around here someplace
Contact:

Post by Tegan »

A meteorite: Maybe also try using --enable-shared.
I think the default is to build only statically linked libraries, unless you use this switch.
You can check by running ./configure --help, it should show what your default is.
User avatar
A Meteorite
Private First Class
Private First Class
Posts: 1786
Joined: Thu Apr 28, 2005 12:56 am
Location: California, U.S.
Contact:

Post by A Meteorite »

Just to update everyone on this... I can *compile* plugins now, but no .so file is ever placed in /usr/local/libs. I must admit I have gotten further as before I would get warnings/errors which wouldn't let me "make install". I only get a .o file and a .la (think that's the one...)

I'll try your suggestion Tegan. :)
Image
Owner @ BZFX
Core Admin @ CAN

Email me: bzmet…@gmail.com
Post Reply