1.8:Windows:Modules

From AnopeWiki
(Redirected from Windows:Modules)
Jump to: navigation, search

A wide variety of pre-compiled modules for Anope for Windows can be found on the Modules Site

Before you can compile modules, you need to have compiled Anope yourself. For information on how to do this, see Windows:1.8

Here are the steps you'll need to take to compile modules for Windows:

Instructions

  • Download the module's source code you would like to use in Anope and place it in ./src/modules under your Anope directory (eg. C:\Program Files\Anope\src\modules)


  • Edit the file Makefile.inc.win32 in the same directory as above and add the name(s) of your modules seperated by spaces after SRCS= eg. SRCS=file1.c file2.c file3.c


  • Using the Visual Studio command prompt, change directory to the same directory as where you put your modules and editted Makefile.inc.win32 (eg. C:\Program Files\Anope\src\modules)
  • Issue nmake -f Makefile.win32
  • Once this completes, issue nmake -f Makefile.win32 install
  • If successful you should be able to issue (on irc) /msg operserv modload yourmodulenamehere eg. /msg operserv modload os_anoperox

If you receive errors during the compilation process, it probably means the module is not coded to support Windows. You can try and contact the module author and ask them if they can support Anope for Windows if this is the case.

Personal tools