View Single Post
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