.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   HPB_bot (http://forums.bots-united.com/forumdisplay.php?f=35)
-   -   HPB_BOT badf load, (not loading) (http://forums.bots-united.com/showthread.php?t=6991)

Weasel 05-03-2011 09:09

Re: HPB_BOT badf load, (not loading)
 
! RESOLVED !

Based on what Whistler posted, I tried the LD_PRELOAD environment variable again, but this time "exported" it. I put that option in my script that launches HLServer, right before the "hlds_run" command, like this:

Quote:

cd /data/games/hlserver
export LD_PRELOAD=/usr/lib/libm.so
./hlds_run -secure -game dmc +port 28019 -sport 28119
Now HPB_Bot loads-up fine on my DMC server , and peacefully coexists with my other mods (AMX-Mod-X, etc.).

Code:

meta list
Currently loaded plugins:
      description      stat pend  file              vers      src  load  unlod
 [ 1] AMX Mod X        RUN  -    amxmodx_mm_i386.  v1.8.1.3  ini  Start ANY
 [ 2] HLGuard          RUN  -    hlguard_mm_optim  v1.8      ini  Chlvl Chlvl
 [ 3] HPB_Bot          RUN  -    HPB_bot_i386.so  v4.0.4    ini  Start ANY
 [ 4] Fun              RUN  -    fun_amxx_i386.so  v1.8.1.3  pl1  ANY  ANY
 [ 5] Engine          RUN  -    engine_amxx_i386  v1.8.1.3  pl1  ANY  ANY
 [ 6] FakeMeta        RUN  -    fakemeta_amxx_i3  v1.8.1.3  pl1  ANY  ANY
6 plugins, 6 running

Thanks Whistler!

:punk:

Whistler 06-03-2011 08:31

Re: HPB_BOT badf load, (not loading)
 
Quote:

Originally Posted by The Storm (Post 63266)
Very strange, I though that when you compile shared library all the dependencies must be provided to the linker else you will get an error...

you'll get an error when compiling an application but not a static library (.a) or shared library (.so) :)

The Storm 06-03-2011 15:26

Re: HPB_BOT badf load, (not loading)
 
Yeah for static library is clear why, there is no even a linker operation there, but for shared I don't see a reason for not doing it... However these questions perhaps are for the creators of GCC. :)

Whistler 09-03-2011 05:12

Re: HPB_BOT badf load, (not loading)
 
that way it's easier to reference symbols from the main executable which linked the library or other shared libraries.

twitch 26-03-2011 18:54

Re: HPB_BOT badf load, (not loading)
 
is it possible to recompile the .so that it will work without having to mess with anything else? If so, can someone post a link for that new compiled hpb bot .so file?


All times are GMT +2. The time now is 13:02.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.