Raised This Month: $51 Target: $400
 12% 

Tutorial how to make a module for linux?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Gizmo
Senior Member
Join Date: May 2006
Location: Sweden
Old 11-17-2009 , 16:55   Tutorial how to make a module for linux?
Reply With Quote #1

I would really like to se a tutorial on how to make a module for linux.
The things i would like to see is what "stuff" is needed with stuff i mean sdk and the things necessary for compiling, a simple example module would ofcourse be great also, i do not understand this stuff yet so i cant say if there is anything else that could be useful also but the experienced coders here that are able to make a tutorial know that
__________________
Gizmo is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 11-17-2009 , 18:15   Re: Tutorial how to make a module for linux?
Reply With Quote #2

Just download the files.. Look for "fun" module -> MakeFile....

So then just change the options.

I do that and work perfects
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
Gizmo
Senior Member
Join Date: May 2006
Location: Sweden
Old 11-19-2009 , 08:12   Re: Tutorial how to make a module for linux?
Reply With Quote #3

I have tried to compile fun and some othe modules now but it wont work, i have fedora 8 64bit.
I have trieds to change
CPP = gcc-4.1
to
gcc-4.1.2
gcc-4.1.2-33

And i get the same error everytime.

Code:
[christer@localhost fun]$ make
/bin/sh: gcc-4.1: command not found
mkdir -p Release
mkdir -p Release/sdk
make fun
/bin/sh: gcc-4.1: command not found
make[1]: Entering directory `/home/christer/moduletest/fun'
gcc-4.1 -I. -I../hlsdk -I../hlsdk/dlls -I../hlsdk/engine -I../hlsdk/game_shared -I../hlsdk/game_shared -I../metamod -I../hlsdk/common -Isdk -O2 -funroll-loops -s -pipe -fomit-frame-pointer -fno-strict-aliasing -march=i586 -DNDEBUG -Wall -Wno-non-virtual-dtor -Werror -fno-exceptions -DHAVE_STDINT_H -fno-rtti -static-libgcc -m32 -DPAWN_CELL_SIZE=32 -DJIT -DASM32 -o Release/sdk/amxxmodule.o -c sdk/amxxmodule.cpp
make[1]: gcc-4.1: Kommandot hittades inte
make[1]: *** [Release/sdk/amxxmodule.o] Fel 127
make[1]: Leaving directory `/home/christer/moduletest/fun'
make: *** [all] Fel 2

Here is what i get when i search for gcc in webmin

Code:
 	compat-gcc-34 3.4.6-8 	Development/Languages 	Compatibility GNU Compiler Collection
	compat-gcc-34-c++ 3.4.6-8 	Development/Languages 	C++ support for compatibility compiler
	gcc 4.1.2-33 	Development/Languages 	Various compilers (C, C++, Objective-C, Java, ...)
	gcc-c++ 4.1.2-33 	Development/Languages 	C++ support for GCC
	gcc-gfortran 4.1.2-33 	Development/Languages 	Fortran 95 support
	libgcc 4.1.2-33 	System Environment/Libraries 	GCC version 4.1 shared support library
	libgcc 4.1.2-33 	System Environment/Libraries 	GCC version 4.1 shared support library
	libgcj 4.1.2-33 	System Environment/Libraries 	Java runtime library for gcc
	libgcj 4.1.2-33 	System Environment/Libraries 	Java runtime library for gcc
	libgomp 4.1.2-33 	System Environment/Libraries 	GCC OpenMP 2.5 shared support library
	libgomp 4.1.2-33 	System Environment/Libraries 	GCC OpenMP 2.5 shared support library
__________________
Gizmo is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 11-19-2009 , 10:10   Re: Tutorial how to make a module for linux?
Reply With Quote #4

I use Ubuntu 32 Bits... and in any moment I get an error. But I will try to search that error for you...
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 11-19-2009 , 13:32   Re: Tutorial how to make a module for linux?
Reply With Quote #5

Quote:
Originally Posted by Gizmo View Post
/bin/sh: gcc-4.1: command not found
Check your PATH environment variable and where gcc-4.1 binary is.
You might edit /etc/profile to modifiy your PATH variable.
__________________

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
Gizmo
Senior Member
Join Date: May 2006
Location: Sweden
Old 11-19-2009 , 15:08   Re: Tutorial how to make a module for linux?
Reply With Quote #6

I will looka at that, thx
__________________
Gizmo is offline
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 02:50.


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