From fb9f41b3e52cfddada7773a65b9723cd3a96b785 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 30 Oct 2010 19:41:13 -0400 Subject: Made gettext work on most OSs. Tested on Debian, FreeBSD, Gentoo, and Windows. Added a search path option to the Config script for cmake to use when finding libraries for modules or for gettext. Fixed m_mysql and m_ssl to work under Windows, made the Windows Config program remember the last used options, and fixed Windows release builds. --- docs/LANGUAGE | 1 + docs/WIN32.txt | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) (limited to 'docs') diff --git a/docs/LANGUAGE b/docs/LANGUAGE index 6bbc59598..0a2831e69 100644 --- a/docs/LANGUAGE +++ b/docs/LANGUAGE @@ -19,6 +19,7 @@ Anope Mutli Language Support install gettext and run `msginit -l language -o anope.language.po -i anope.pot`. For example if I was translating to Spanish I could run `msginit -l es_ES -o anope.es_ES.po -i anope.pot`. Open the newly generating .po file and start translating. Once you are done simply rerun ./Config; make && make install and add the language to your services.conf. + Note that on Windows it is not quite this simple, windows.cpp must be edited and Anope recompiled and restarted. Poedit (http://www.poedit.net/) is a popular po file editor, and we recommend using it or another editor designed to edit po files (especially on Windows). diff --git a/docs/WIN32.txt b/docs/WIN32.txt index 8deb843ea..37abf16f5 100644 --- a/docs/WIN32.txt +++ b/docs/WIN32.txt @@ -91,6 +91,23 @@ Anope for Windows If you cannot find whats causing the error, please visit our forums or our IRC Support channel for assistance. + Some Anope modules require third party libraries, such as m_mysql and + m_ssl. If these libraries are installed in nonstandard locations, cmake + will probably not find them and should be told where they are by passing + additional search paths to the last question in Config, such as: + + -DEXTRA_INCLUDES:STRING=c:/openssl/include;c:/openssl/lib + + Which would have cmake search both C:\openssl\include and + C:\openssl\lib. + + Building Anope with gettext requires libintl, libiconv, libgcc and + libmingex. We have precompiled these libraries for you that you may + use if you want, they are avaiable at http://someurlwhichidonthaveXXX. + The OpenSSL and MySQL header files and libraries are also included in + this package. Once downloaded and extracted, you should pass the include, + bin, and lib paths to cmake as seen above. + 5) You are now ready to compile. If you said you wanted to use NMake in step 4, at the prompt type: -- cgit