Jump to content
  • 0
Sign in to follow this  
glemor123

make plugin

Question

i received this error when i run the command make plugin for the afk command

 

        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

 

Share this post


Link to post
Share on other sites

8 answers to this question

Recommended Posts

  • 0

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)

Share this post


Link to post
Share on other sites
  • 0

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?

################  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

Share this post


Link to post
Share on other sites
  • 0

got a problem

 

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

Share this post


Link to post
Share on other sites
  • 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

Share this post


Link to post
Share on other sites
  • 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

        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

Share this post


Link to post
Share on other sites
  • 0

can you update your emulator. this should be fix on latest rev.

 

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

Share this post


Link to post
Share on other sites
  • 0

I am also using the latest REV

 

 

Latest REV with version 2.7 AFK

        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

 

 

 

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

 

 

 

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 

Edited by Mhalicot

Share this post


Link to post
Share on other sites
  • 0

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 :(

 

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.