Raised This Month: $ Target: $400
 0% 

Module compile on linux


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
serengeor
Junior Member
Join Date: Jan 2011
Old 09-12-2012 , 05:30   Module compile on linux
Reply With Quote #1

What is required to compile module on linux, to make it load properly by amxx?
I've tried to load minimal module and I always keep getting "bad load".

Placed my module like this: "amxmodx/modules/filename_amxx.so"
and in modules .ini wrote "filename" part.

Compiled with gcc 2.9.5

EDIT:
Added extension and full name of the file, now the server simply just freezes.

Last edited by serengeor; 09-12-2012 at 05:52.
serengeor is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-12-2012 , 06:04   Re: Module compile on linux
Reply With Quote #2

Attach the .so.
__________________
Arkshine is offline
serengeor
Junior Member
Join Date: Jan 2011
Old 09-12-2012 , 09:17   Re: Module compile on linux
Reply With Quote #3

Quote:
Originally Posted by Arkshine View Post
Attach the .so.
Yes that seams to do the job, though it looks a bit weird like that.

Any idea why this would still happen though:
Code:
unknown                 unknown     unknown           eeinf_test.amxx  bad load 
( 21) Load fails: Module/Library "eeinf" required for plugin.  Check modules.ini
serengeor is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-12-2012 , 09:31   Re: Module compile on linux
Reply With Quote #4

I'm talking to attach the .so, here.
__________________
Arkshine is offline
serengeor
Junior Member
Join Date: Jan 2011
Old 09-12-2012 , 09:37   Re: Module compile on linux
Reply With Quote #5

Quote:
Originally Posted by Arkshine View Post
I'm talking to attach the .so, here.
Oh, I thought attach the extension to filename which indeed helped to load it, but other problems started.

Here is the .so

EDIT:
Hm, It seams I've solved the problem, not sure how though.

Arkshine, which gcc versions would work with amxx?
Could I use anything newer than 2.9.5?

Also is it possible to use any optimization modes -O, -O2, -O3?
Attached Files
File Type: so eeinf_amxx_i386.so (256.7 KB, 183 views)

Last edited by serengeor; 09-12-2012 at 09:42.
serengeor is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-12-2012 , 09:47   Re: Module compile on linux
Reply With Quote #6

It loads fine for me :

[ 5] eeinf 1 ShaKe running

Tried under Ubuntu (Though VirtualBox) and tried on another test server.

Try to set meta_debug to 1, and restart and see if you get more infos in the logs/console.
Also what says meta list/amxx modules/meta refresh/meta reload # (# = index of module)

EDIT: And your module should be named : eeinf_amxx_i386.so
__________________

Last edited by Arkshine; 09-12-2012 at 09:49.
Arkshine is offline
serengeor
Junior Member
Join Date: Jan 2011
Old 09-12-2012 , 09:59   Re: Module compile on linux
Reply With Quote #7

Quote:
Originally Posted by Arkshine View Post
It loads fine for me
Yeah, I got it to work too. If you could please answer the questions in my above post
serengeor is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-12-2012 , 11:12   Re: Module compile on linux
Reply With Quote #8

You question is kind of unrelated to Amxx, but more to your linux system of your server. You can use obviously newer versions, Amxx if I don't say bullshots is compiled with 4.1. You can see yourself how it's compiled looking at MakeFile file from amxx/modules source code.
__________________
Arkshine is offline
serengeor
Junior Member
Join Date: Jan 2011
Old 09-13-2012 , 10:24   Re: Module compile on linux
Reply With Quote #9

Quote:
Originally Posted by Arkshine View Post
You question is kind of unrelated to Amxx, but more to your linux system of your server. You can use obviously newer versions, Amxx if I don't say bullshots is compiled with 4.1. You can see yourself how it's compiled looking at MakeFile file from amxx/modules source code.
I see, thanks for all your help then
serengeor is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 09-13-2012 , 17:43   Re: Module compile on linux
Reply With Quote #10

I use gcc-3.4 / gcc-4.4 / gcc-4.5 without any problems
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
Reply



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 14:02.


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