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

Help compiling module on unix


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 12-30-2004 , 20:11   Help compiling module on unix
Reply With Quote #1

OK I have the makefile.pl file set up correctly. But check out these errors:
it's yelling at me b/c of code in the SDK, how is this possible? I'm not supposed to edit that....

Quote:
geesu@tux war3ft_amxx $ ./Makefile.pl
gcc -march=i386 -O2 -ffast-math -funroll-loops -fomit-frame-pointer -s -DNDEBUG -Wall -Wno-unknown-pragmas -DOPT_TYPE="optimized" -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2 -Dstrcmpi=strcasecmp -fPIC -I../hlsdk -I. -I../metamod -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -c war3ft.cpp -o bin.opt.i386/war3ft.o
In file included from ../hlsdk/dlls/extdll.h:72,
from amxxmodule.h:15,
from war3ft.h:1,
from war3ft.cpp:1:
../hlsdk/dlls/vector.h:112:7: warning: no newline at end of file
In file included from ../hlsdk/dlls/extdll.h:79,
from amxxmodule.h:15,
from war3ft.h:1,
from war3ft.cpp:1:
../hlsdk/engine/progdefs.h:224:21: warning: no newline at end of file
In file included from ../hlsdk/dlls/extdll.h:83,
from amxxmodule.h:15,
from war3ft.h:1,
from war3ft.cpp:1:
../hlsdk/engine/eiface.h:524:8: warning: extra tokens at end of #endif directive
In file included from ../hlsdk/dlls/extdll.h:86,
from amxxmodule.h:15,
from war3ft.h:1,
from war3ft.cpp:1:
../hlsdk/dlls/cdll_dll.h:46:7: warning: no newline at end of file
In file included from ../hlsdk/dlls/util.h:23,
from ../metamod/sdk_util.h:50,
from ../metamod/dllapi.h:40,
from ../metamod/meta_api.h:40,
from amxxmodule.h:16,
from war3ft.h:1,
from war3ft.cpp:1:
../hlsdk/dlls/enginecallback.h:17:9: warning: #pragma once is obsolete
../hlsdk/dlls/enginecallback.h:1585: warning: no newline at end of file
In file included from ../metamod/sdk_util.h:50,
from ../metamod/dllapi.h:40,
from ../metamod/meta_api.h:40,
from amxxmodule.h:16,
from war3ft.h:1,
from war3ft.cpp:1:
../hlsdk/dlls/util.h: In function `BOOL FStrEq(const char*, const char*)':
../hlsdk/dlls/util.h:193: error: `strcmp' undeclared (first use this function)
../hlsdk/dlls/util.h:193: error: (Each undeclared identifier is reported only
once for each function it appears in.)

In file included from ../metamod/osdep.h:40,
from ../metamod/dllapi.h:41,
from ../metamod/meta_api.h:40,
from amxxmodule.h:16,
from war3ft.h:1,
from war3ft.cpp:1:
/usr/include/string.h: At global scope:
/usr/include/string.h:97: error: `int strcmp(const char*, const char*)' used
prior to declaration

gcc -march=i386 -O2 -ffast-math -funroll-loops -fomit-frame-pointer -s -DNDEBUG -Wall -Wno-unknown-pragmas -DOPT_TYPE="optimized" -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2 -shared -ldl -lm bin.opt.i386/war3ft.o bin.opt.i386/amxxmodule.o -o bin.opt.i386/war3ft_amxx_i386.so
gcc: bin.opt.i386/war3ft.o: No such file or directory
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
DS
SourceMod Developer
Join Date: Sep 2004
Location: WI, USA
Old 12-30-2004 , 22:09  
Reply With Quote #2

I can't immediately tell what the problem might be. Of course I'm probably just stupid and I am quite the *nix newbie anyways. I'm sure I can't help, but I guess I'll give it a shot...

What exactly do you have included in either war3ft.cpp and war3ft.h? Don't necessarily have to show all the source, just what you have with #include. And also, I might guess what you have compiles completely fine in MSVC or whatever you're using on Windows?

I recall someone else having weird issues with files from the SDK, but it was on Windows. Apparently he had an incomplete installation of all the source code. Some files were missing and some individual files weren't even complete. It's possible that could be a problem. But I don't really know.

Also, Metamod.org has a download for a Linux patch on the SDK to make it more Linux friendly. I don't know if you have that or not.

All in all, I guess I don't know...
__________________
エル・プサイ・コングルゥ
DS is offline
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 12-31-2004 , 16:20  
Reply With Quote #3

Worked like a charm, it compiled fine when I used the linux SDK, thanks so much.

Josh
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
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 18:30.


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