Raised This Month: $32 Target: $400
 8% 

My plugin does not load in linux


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
taansari
Member
Join Date: Nov 2011
Old 12-22-2011 , 05:53   My plugin does not load in linux
Reply With Quote #1

Hi!

I've made a plugin that I ran and tested on Windows (HLDS - GoldSrc version). Now I also want to port it to Linux. So I got a new linux machine, got ubuntu, GCC installed on it, and decided to use Code::blocks for compilation.

After somewhat efforts I am now able to compile my plugin under linux hood. After installing metamod 1.18 binaries at required places etc., I updated plugins.ini file, as well as copied my plugin's .so file to the correct place.

Now when i run hlds using

sudo ./hlds_run -game cstrike -dev -autoupdate +maxplayers 20 -port 27017

command, my plugin does not load.

Running 'meta info 1' gives me:

Code:
name: (nil)
         desc: t1
       status: badfile
       action: load
     filename: addons/metamod/dlls/t1.so
         file: ctp_tracker.so
     pathname: /home/...../VALVe/HLServer/cstrike/cstrike/addons/metamod/dlls/t1.so
        index: 1
       source: ini file
     loadable:  -
   unloadable:  -
      version: (nil)
         date: (nil)
       author: (nil)
          url: (nil)
       logtag: (nil)
       ifvers: (nil)
  last loaded: Thu Jan  1 05:00:00 1970
No DLLAPI functions.
No DLLAPI-Post functions.
No NEWAPI functions.
No NEWAPI-Post functions.
No Engine functions.
No Engine-Post functions.
Registered commands:
0 commands
Registered cvars:                      float value  string value
0 cvars
No child plugins.
and running 'meta list' gives me:
Code:
Currently loaded plugins:
      description      stat pend  file              vers      src  load  unlod
 [ 1] t1              badf load  t1.so    v -       ini   -     -
Now I'm very stumped. Compiler does not complain. I've mentioned the right path otherwise it wouldnt be detected by metamod in first place....

What could I be doing wrong? Can someone please guide me in this regards?

Thanks!!!
taansari is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:10.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode