-Sourcecode downloaded (2.0.13), extracted
-I can compile successfully bzflag, bzadmin, bzfs and all the included plugins)
-Downloaded the source for /timelimit plugin from catay (http://catay.be/bzplugins/TimeLimit/Tim ... .4.tar.bz2)
-did a ./newplug TimeLimit in the plugin folder
-pasted the cpp into the folder
-in /plugins makefile.am I added /Timelimit/Makefile
-in configure.ac I added /plugins/TimeLimit/Makefile
-added the file into the /plugin/Timelimit
-did an .autogen.sh
- configure, make, make install
As a result, I got errors, but no plugin (I made sure that uper and lower cases are correct..)
Code: Select all
make[3]: Leaving directory `/home/source/plugins/SAMPLE_PLUGIN'
Making install in TimeLimit
make[3]: Entering directory `/home/source/plugins/TimeLimit'
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../include -I../../include -I../../plugins/plugin_utils -g -O2 -Wall -W -ffast-math -fno-exceptions -c -o TimeLimit_la-TimeLimit.lo `test -f 'TimeLimit.cpp' || echo './'`TimeLimit.cpp
g++ -DHAVE_CONFIG_H -I. -I../../include -I../../include -I../../plugins/plugin_utils -g -O2 -Wall -W -ffast-math -fno-exceptions -c TimeLimit.cpp -fPIC -DPIC -o .libs/TimeLimit_la-TimeLimit.o
TimeLimit.cpp: In function 'bool isValidTime(float)':
TimeLimit.cpp:72: error: 'atof' was not declared in this scope
TimeLimit.cpp: In function 'void parseCommand(const char*)':
TimeLimit.cpp:132: error: 'atoi' was not declared in this scope
TimeLimit.cpp: In member function 'virtual bool TimeLimit::handle(int, bzApiString, bzApiString, bzAPIStringList*)':
TimeLimit.cpp:151: error: 'strcasecmp' was not declared in this scope
TimeLimit.cpp:174: error: 'strcasecmp' was not declared in this scope
TimeLimit.cpp:193: error: 'strcasecmp' was not declared in this scope
TimeLimit.cpp:201: error: 'strlen' was not declared in this scope
TimeLimit.cpp:206: error: 'atof' was not declared in this scope
make[3]: *** [TimeLimit_la-TimeLimit.lo] Error 1
make[3]: Leaving directory `/home/source/plugins/TimeLimit'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/source/plugins'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/source'
make: *** [install-strip] Error 2