make plugin

glemor123

New member
Messages
287
Points
0
i received this error when i run the command make plugin for the afk command

Code:
        MAKE    mt19937armake[1]: Entering directory `/root/server/3rdparty/mt19937ar'make[1]: Nothing to be done for `all'.make[1]: Leaving directory `/root/server/3rdparty/mt19937ar'        MAKE    libconfigmake[1]: Entering directory `/root/server/3rdparty/libconfig'make[1]: Nothing to be done for `all'.make[1]: Leaving directory `/root/server/3rdparty/libconfig'        MAKE    common_sqlmake[1]: Entering directory `/root/server/src/common'make[1]: Nothing to be done for `sql'.make[1]: Leaving directory `/root/server/src/common'        MAKE    plugin.omake[1]: Entering directory `/root/server/src/plugins'make[1]: *** No rule to make target `o'.  Stop.make[1]: Leaving directory `/root/server/src/plugins'make: *** [plugin.o] Error 2
 
What OS you use?

is this quote didn't solve your problem?

 
No No, If you put the .c files in src/plugins and edited src/plugins/makefile.in and then do

make plugins

then .so file will be automatically created at /plugins folder. so just do the steps:

1) Copy .c files in src/plugins

2) Edit src/plugins/makefile.in (As stated above)

3) Do "make plugins"

4) Edit conf/plugins.conf

5) Run your server.(And plugins will be loaded)
 
What OS you use?

is this quote didn't solve your problem?

No No, If you put the .c files in src/plugins and edited src/plugins/makefile.in and then do

make plugins

then .so file will be automatically created at /plugins folder. so just do the steps:

1) Copy .c files in src/plugins

2) Edit src/plugins/makefile.in (As stated above)

3) Do "make plugins"

4) Edit conf/plugins.conf

5) Run your server.(And plugins will be loaded)
centos

What OS you use?

is this quote didn't solve your problem?

No No, If you put the .c files in src/plugins and edited src/plugins/makefile.in and then do

make plugins

then .so file will be automatically created at /plugins folder. so just do the steps:

1) Copy .c files in src/plugins

2) Edit src/plugins/makefile.in (As stated above)

3) Do "make plugins"

4) Edit conf/plugins.conf

5) Run your server.(And plugins will be loaded)
is this correct?

Code:
################  PLUGIN CONFIGURATION  ###############################                                                                    ## When you add a plugin, add its name here:                          ## Example: if you have a plugin named my_cool_plugin.c and another   ## one named my_second_plugin.c, add them to the list like this:      ##                                                                    ## MYPLUGINS = my_cool_plugin my_second_plugin                        ##                                                                    ## Note: DO NOT include the .c extension!!!                           #MYPLUGINS = afk#                                                                    ##########  DO NOT EDIT ANYTHING BELOW THIS LINE!!!  ##################PLUGINS = sample db2sql HPMHooking $(MYPLUGINS)COMMON_D = ../commonCOMMON_H = $(wildcard $(COMMON_D)/*.h)CONFIG_D = ../configCONFIG_H = $(wildcard $(CONFIG_D)/*.h) $(wildcard $(CONFIG_D)/*/*.h)MAP_H = $(wildcard ../map/*.h)CHAR_H = $(wildcard ../char/*.h)LOGIN_H = $(wildcard ../login/*.h)ALL_H = $(COMMON_H) $(CONFIG_H) $(MAP_H) $(CHAR_H) $(LOGIN_H)@SET_MAKE@CC = @CC@export CC#####################################################################.PHONY: all $(PLUGINS) clean buildclean helpall: $(PLUGINS) Makefile$(PLUGINS): %: ../../plugins/%@DLLEXT@buildclean:	@echo "	CLEAN	plugins (build temp files)"	@rm -rf *.o	clean: buildclean	@echo "	CLEAN	plugins"	@rm -rf ../../plugins/*@DLLEXT@help:	@echo "possible targets are $(PLUGINS:%='%') 'all' 'clean' 'help'"	@echo ""	@echo "$(PLUGINS:%='%')"	@echo "              - builds a specific plugin"	@echo "'all'         - builds all above targets"	@echo "'clean'       - cleans builds and objects"	@echo "'buildclean'  - cleans build temporary (object) files, without deleting the"	@echo "                compiled plugins"	@echo "'help'        - outputs this message"#####################################################################Makefile: Makefile.in	@$(MAKE) -C ../.. src/plugins/Makefile.SECONDEXPANSION:../../plugins/%@DLLEXT@: %.c $(ALL_H) $$(shell ls %/* 2>/dev/null)	@echo "	CC	$<"	@$(CC) @DEFS@ @CFLAGS@ @CPPFLAGS@ @LDFLAGS@ @SOFLAGS@ -o $@ $<
What OS you use?

is this quote didn't solve your problem?

No No, If you put the .c files in src/plugins and edited src/plugins/makefile.in and then do

make plugins

then .so file will be automatically created at /plugins folder. so just do the steps:

1) Copy .c files in src/plugins

2) Edit src/plugins/makefile.in (As stated above)

3) Do "make plugins"

4) Edit conf/plugins.conf

5) Run your server.(And plugins will be loaded)
i already did this steps; i have my afk.c at my src/plugins, i edited make file .in stated above. then if i try to run the command make plugins it gives me error

 
Last edited by a moderator:
got a problem

Code:
make[1]: Entering directory `/root/server/src/plugins'        CC      sample.c        CC      db2sql.c        CC      HPMHooking.c        CC      afk.cafk.c: In function 'plugin_init':afk.c:71: warning: implicit declaration of function 'addAtcommand'afk.c:71: error: 'afk' undeclared (first use in this function)afk.c:71: error: (Each undeclared identifier is reported only onceafk.c:71: error: for each function it appears in.)afk.c:72:2: warning: no newline at end of filemake[1]: *** [../../plugins/afk.so] Error 1make[1]: Leaving directory `/root/server/src/plugins'make: *** [plugins] Error 2
 
what revision you use? please update your Emulator because @afk supports rev 13300 or greater. or try to use older version of @afk, download @afk v 2.0

 
what revision you use? please update your Emulator because @afk supports rev 13300 or greater. or try to use older version of @afk, download @afk v 2.0
i'm using hercules svn 13307

what revision you use? please update your Emulator because @afk supports rev 13300 or greater. or try to use older version of @afk, download @afk v 2.0
also i tried the 2.7 afk from your link this is the error

Code:
        CONFIGUREReconfiguring with options:config.status: creating Makefileconfig.status: creating src/common/Makefileconfig.status: creating 3rdparty/mt19937ar/Makefileconfig.status: creating 3rdparty/libconfig/Makefileconfig.status: creating src/char/Makefileconfig.status: creating src/login/Makefileconfig.status: creating src/map/Makefileconfig.status: creating src/plugins/Makefileconfig.status: creating src/tool/Makefileconfig.status: creating src/test/Makefileconfig.status: creating tools/HPMHookGen/Makefile        MAKE    pluginsmake[1]: Entering directory `/root/server/src/plugins'        CC      afk.cafk.c:71:2: warning: no newline at end of file
 
Last edited by a moderator:
can you update your emulator. this should be fix on latest rev.

I cant reproduce your problem because I am using windows OS ..

 
I am also using the latest REV

Latest REV with version 2.7 AFK

Code:
        CONFIGUREReconfiguring with options:config.status: creating Makefileconfig.status: creating src/common/Makefileconfig.status: creating 3rdparty/mt19937ar/Makefileconfig.status: creating 3rdparty/libconfig/Makefileconfig.status: creating src/char/Makefileconfig.status: creating src/login/Makefileconfig.status: creating src/map/Makefileconfig.status: creating src/plugins/Makefileconfig.status: creating src/tool/Makefileconfig.status: creating src/test/Makefileconfig.status: creating tools/HPMHookGen/Makefile        MAKE    pluginsmake[1]: Entering directory `/home/****/trunk/src/plugins'        CC      afk.cafk.c: In function 'plugin_init':afk.c:69: warning: implicit declaration of function 'ACMD_A'afk.c:69: error: 'afk' undeclared (first use in this function)afk.c:69: error: (Each undeclared identifier is reported only onceafk.c:69: error: for each function it appears in.)make[1]: *** [../../plugins/afk.so] Error 1make[1]: Leaving directory `/home/trincli0082/trunk/src/plugins'make: *** [plugins] Error 2
Latest Rev using Old AFK

Code:
afk.c: In function 'plugin_init':afk.c:69: warning: implicit declaration of function 'ACMD_A'afk.c:69: error: 'afk' undeclared (first use in this function)afk.c:69: error: (Each undeclared identifier is reported only onceafk.c:69: error: for each function it appears in.)make[1]: *** [../../plugins/afk.so] Error 1make[1]: Leaving directory `/home/8888888/trunk/src/plugins'make: *** [plugins] Error 2
also

Code:
autoattack.c: In function 'autoattack_timer':autoattack.c:61: warning: passing argument 2 of 'timer->add' from incompatible pointer typeautoattack.c:61: note: expected 'TimerFunc' but argument is of type 'int (*)(int,  unsigned int,  int,  intptr_t)'autoattack.c: In function 'atcommand_autoatk':autoattack.c:78: warning: passing argument 2 of 'timer->add' from incompatible pointer typeautoattack.c:78: note: expected 'TimerFunc' but argument is of type 'int (*)(int,  unsigned int,  int,  intptr_t)'autoattack.c: In function 'plugin_init':autoattack.c:97: warning: implicit declaration of function 'ACMD_A'autoattack.c:97: error: 'autoatk' undeclared (first use in this function)autoattack.c:97: error: (Each undeclared identifier is reported only onceautoattack.c:97: error: for each function it appears in.)make[1]: *** [../../plugins/autoattack.so] Error 1make[1]: Leaving directory `/home/trincli0082/trunk/src/plugins'make: *** [plugins] Error 2
 
Last edited by a moderator:
You are wrong about youd download file 

Latest REV with version 2.7 AFK
you download 2.7z which is Outdated file.

you must download the latest one which is 2.3.7z

7z is stand for 7zip it is a File extension
default_sad.png


sorry if this confused you..

Sir please download the Last (Jan,4) update, @autoatk 1.3 it is already solved by then.

You are using an outdated autoatk.

 
Last edited by a moderator:
Back
Top