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

fix some errors


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bos93
Veteran Member
Join Date: Jul 2010
Old 12-03-2013 , 11:23   fix some errors
Reply With Quote #1

Hi. hlsdk\metamod from https://forums.alliedmods.net/showpo...4&postcount=21

First error: Andrei@5-63-157-197:~/ZombieMod3$ ../hlsdk/dlls/extdll.h:494: fatal error: archtypes.h: No such file or directory

I found this file.

Next: ../metamod/osdep.h:67: error: #error "OS unrecognized"

How to fix it?

makefile:

PHP Code:
#(C)2004-2005 AMX Mod X Development Team
# Makefile written by David "BAILOPAN" Anderson

HLSDK = ../hlsdk
MM_ROOT 
= ../metamod

### EDIT BELOW FOR OTHER PROJECTS ###

OPT_FLAGS = -O2 -funroll-loops --pipe -fomit-frame-pointer -fno-strict-aliasing
DEBUG_FLAGS 
= --ggdb3
CPP 
g++
NAME ZombieMod

BIN_SUFFIX_32 
i386.so
BIN_SUFFIX_64 
amd64.so

OBJECTS 
ZBM_Main.cpp etc...


LINK =

INCLUDE = -
I. -I$(HLSDK) -I$(HLSDK)/dlls -I$(HLSDK)/engine -I$(HLSDK)/game_shared -I$(HLSDK)/game_shared \
    -
I$(MM_ROOT) -I$(HLSDK)/common -I$(HLSDK)/pm_shared -Isdk -Iinclude

GCC_VERSION 
:= $(shell $(CPP) -dumpversion >&cut -b1)


ifeq "$(DEBUG)" "true"
    
BIN_DIR Debug
    CFLAGS 
= $(DEBUG_FLAGS)
else
    
BIN_DIR Release
    CFLAGS 
= $(OPT_FLAGS)
endif

CFLAGS += -std=c++0x -DNDEBUG -Wall -Wno-char-subscripts -Wno-unknown-pragmas -Wno-write-strings -Wno-deprecated -Wno-non-virtual-dtor -fno-exceptions -DHAVE_STDINT_H -fno-rtti -m32

ifeq 
"$(AMD64)" "true"
    
BINARY = $(NAME)_$(BIN_SUFFIX_64)
    
CFLAGS += -DPAWN_CELL_SIZE=64 -DHAVE_I64 -m64 
else
    
BINARY = $(NAME)_$(BIN_SUFFIX_32)
    
CFLAGS += -DPAWN_CELL_SIZE=32 -DJIT -DASM32
    OPT_FLAGS 
+= -march=i586
endif

OBJ_LINUX := $(OBJECTS:%.cpp=$(BIN_DIR)/%.o)

$(
BIN_DIR)/%.o: %.cpp
    
$(CPP) $(INCLUDE) $(CFLAGS) -$@ -$<

all:
    
mkdir -$(BIN_DIR)
    
mkdir -$(BIN_DIR)/sdk
    
$(MAKEZombieMod

amd64
:
    $(
MAKEall AMD64=true

ZombieMod
: $(OBJ_LINUX)
    $(
CPP) $(INCLUDE) $(CFLAGS) $(OBJ_LINUX) $(LINK) -shared -ldl -lm -o$(BIN_DIR)/$(BINARY)

debug:    
    $(
MAKEall DEBUG=true

default: all

clean
:
    
rm -rf $(BIN_DIR)/sdk/*.o
    rm -rf $(BIN_DIR)/*.o
    rm -rf $(BIN_DIR)/$(NAME)_$(BIN_SUFFIX_32)
    rm -rf $(BIN_DIR)/$(NAME)_$(BIN_SUFFIX_64) 
upd: fix: -Dlinux -D__linux__ , thanks to Asmodai


I get more errors:

[PHP]
PHP Code:
../hlsdk/dlls/enginecallback.h:79:99error'NULL' was not declared in this sco                                                                             pe
../hlsdk/dlls/enginecallback.hIn function 'void MESSAGE_BEGIN(int, int, const                                                                              float*, int*)':
../
hlsdk/dlls/enginecallback.h:80:4error'g_engfuncs' was not declared in thi                                                                             s scope
../hlsdk/dlls/enginecallback.hAt global scope:
../
hlsdk/dlls/enginecallback.h:100:27error'GET_PRIVATE' declared as an 'inli                                                                             ne' variable
../hlsdk/dlls/enginecallback.h:100:27error'edict_t' was not declared in this                                                                              scope
../hlsdk/dlls/enginecallback.h:100:36error'pent' was not declared in this sc                                                                             ope
../hlsdk/dlls/enginecallback.h:101:1errorexpected ',' or ';' before '{' toke                                                                             n
In file included from 
../metamod/sdk_util.h:55:0,
                 
from ../metamod/dllapi.h:40,
                 
from ../metamod/meta_api.h:40,
                 
from ZBM_Client.cpp:2:
../
hlsdk/dlls/util.h:27:78error'entvars_t' has not been declared
In file included from 
../metamod/sdk_util.h:55:0,
                 
from ../metamod/dllapi.h:40,
                 
from ../metamod/meta_api.h:40,
                 
from ZBM_Client.cpp:2:
../
hlsdk/dlls/util.h:29:8error'globalvars_t' does not name a type
../hlsdk/dlls/util.h:35:8error'edict_t' does not name a type
../hlsdk/dlls/util.h:40:8error'edict_t' does not name a type
../hlsdk/dlls/util.h:46:8error'edict_t' does not name a type
../hlsdk/dlls/util.h:111:9error'edict_t' does not name a type
../hlsdk/dlls/util.h:113:8error'edict_t' does not name a type
../hlsdk/dlls/util.h:114:8error'edict_t' does not name a type
../hlsdk/dlls/util.h:116:29error'edict_t' does not name a type
../hlsdk/dlls/util.h:116:38errorISO C++ forbids declaration of 'pent' with n                                                                             o type [-fpermissive]
../
hlsdk/dlls/util.hIn function 'EOFFSET OFFSET(const int*)':
../
metamod/engine_api.h:365:39error'edict_t' does not name a type
../metamod/engine_api.h:365:48errorISO C++ forbids declaration of 'pEdict' w                                                                             ith no type [-fpermissive]
../
metamod/engine_api.h:366:9error'edict_t' does not name a type
../metamod/engine_api.h:367:9error'edict_t' does not name a type
../metamod/engine_api.h:368:35errortypedef 'FN_GETMODELPTR' is initialized (                                                                             use decltype instead)
../
metamod/engine_api.h:368:35error'edict_t' was not declared in this scope
../metamod/engine_api.h:368:44error'pEdict' was not declared in this scope
../metamod/engine_api.h:370:45error'edict_t' does not name a type
../metamod/engine_api.h:370:54errorISO C++ forbids declaration of 'pEdict' w                                                                             ith no type [-fpermissive]
../
metamod/engine_api.h:371:43error'edict_t' does not name a type
../metamod/engine_api.h:371:52errorISO C++ forbids declaration of 'pEdict' w                                                                             ith no type [-fpermissive]
../
metamod/engine_api.h:379:35errortypedef 'FN_CLIENTPRINTF' is initialized                                                                              (use decltype instead)
../
metamod/engine_api.h:379:35error'edict_t' was not declared in this scope
../metamod/engine_api.h:379:44error'pEdict' was not declared in this scope
../metamod/engine_api.h:379:52error'PRINT_TYPE' was not declared in this sco                                                                             pe
../metamod/engine_api.h:379:70errorexpected primary-expression before 'const                                                                             '
../metamod/engine_api.h:384:41error'edict_t' does not name a type
../metamod/engine_api.h:384:50errorISO C++ forbids declaration of 'pEdict' w                                                                             ith no type [-fpermissive]
../
metamod/engine_api.h:385:32errortypedef 'FN_CRC32_INIT' is initialized (u                                                                             se decltype instead)
../
metamod/engine_api.h:385:32error'CRC32_t' was not declared in this scope
../metamod/engine_api.h:385:41error'pulCRC' was not declared in this scope
../metamod/engine_api.h:386:41errortypedef 'FN_CRC32_PROCESSBUFFER' is initi                                                                             alized (use decltype instead)
../
metamod/engine_api.h:386:41error'CRC32_t' was not declared in this scope
../metamod/engine_api.h:386:50error'pulCRC' was not declared in this scope
../metamod/engine_api.h:386:58errorexpected primary-expression before 'void'
../metamod/engine_api.h:386:67errorexpected primary-expression before 'int'
../metamod/engine_api.h:387:39errortypedef 'FN_CRC32_PROCESSBYTE' is initial                                                                             ized (use decltype instead)
../
metamod/engine_api.h:387:39error'CRC32_t' was not declared in this scope
../metamod/engine_api.h:387:48error'pulCRC' was not declared in this scope
../metamod/engine_api.h:387:56errorexpected primary-expression before 'unsig                                                                             ned'
../metamod/engine_api.h:388:17errorISO C++ forbids declaration of 'CRC32_t'                                                                              with no type [-fpermissive]
../
metamod/engine_api.h:388:17errortypedef 'CRC32_t' is initialized (use dec                                                                             ltype instead)
../
metamod/engine_api.h:388:19error'FN_CRC32_FINAL' was not declared in this                                                                              scope
../metamod/engine_api.h:395:35error'edict_t' does not name a type
../metamod/engine_api.h:395:44errorISO C++ forbids declaration of 'pClient'                                                                              with no type [-fpermissive]
../
metamod/engine_api.h:395:59error'edict_t' does not name a type
../metamod/engine_api.h:395:68errorISO C++ forbids declaration of 'pViewent'                                                                              with no type [-fpermissive
etc..
__________________

Last edited by Bos93; 12-03-2013 at 11:36.
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-03-2013 , 12:40   Re: fix some errors
Reply With Quote #2

Your link is wrong.

About first error, it's because you miss a path reference in your project config.
Probably something like : $(HLSDK)/public

EDIT, ah linux, well, should be the same I guess ;
EDIT2: or it doesn't matter
EDIT3: Well, are you sure your paths point directly to files ? Mine are generally like :

HLSDK = ../hlsdk/multiplayer
MM_ROOT = ../metamod/metamod
__________________

Last edited by Arkshine; 12-03-2013 at 12:45.
Arkshine is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 12-03-2013 , 12:46   Re: fix some errors
Reply With Quote #3

Quote:
Your link is wrong.
https://forums.alliedmods.net/showpo...4&postcount=21
__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
Bos93
Veteran Member
Join Date: Jul 2010
Old 12-03-2013 , 12:51   Re: fix some errors
Reply With Quote #4

Quote:
Well, are you sure your paths point directly to files ? Mine are generally like :
yep
__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
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:50.


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