Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: error when compiling a module of anope for windows  (Read 6564 times)

0 Members and 1 Guest are viewing this topic.

Snake99

  • Guest
error when compiling a module of anope for windows
« on: September 29, 2006, 01:17:28 PM »

Code: [Select]
C:Documents and SettingsAdminEscritorioanope-1.7.15srcmodules>nmake -f Mak
efile.win32

Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.

        cl /LD /MD /D MODULE_COMPILE /nologo   /O2 /MD /I"../include" /I"../../i
nclude"  bs_autoassign.c ..mod_version.c /link ../anope.lib wsock32.lib wsock32
.lib advapi32.lib /NODEFAULTLIB:libcmtd.lib   /export:AnopeInit /export:AnopeFin
i
bs_autoassign.c
c:Documents and SettingsAdminEscritorioanope-1.7.15includeservices.h(19) :
 fatal error C1083: Cannot open include file: 'sysconf.h': No such file or direc
tory
mod_version.c
..mod_version.c(1) : fatal error C1083: Cannot open include file: 'version.h':
No such file or directory
Generating Code...
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.


How could i repair it?
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
(No subject)
« Reply #1 on: September 29, 2006, 02:04:47 PM »

Guessing you haven't compiled anope itself.
Logged

Snake99

  • Guest
(No subject)
« Reply #2 on: September 29, 2006, 02:31:44 PM »

Code: [Select]
Setting environment for using Microsoft Visual Studio .NET 2003 tools.
(If you have another version of Visual Studio or Visual C++ installed and wish
to use its tools from the command line, run vcvars32.bat for that version.)

C:\WINDOWS\Fonts>cd C:\Documents and Settings\Admin\Escritorio\anope-1.7.15

C:\Documents and Settings\Admin\Escritorio\anope-1.7.15>cscript /nologo install.
js
   ___
  / _ \  http://www.anope.org
 | /_\ | _ __  _ _  _ _   ___
 |  _  || '_ \/ _ \/ _ \ / _ \
 | | | || | |  |_|  |_| |  __/
 |_| |_||_| |_\___/|  _/ \___|
                   | |
                   |_| IRC Services
                             1.7.15.1128
This program will help you to compile your Services, and ask you
questions regarding the compile-time settings of it during the
process.

Anope is a set of Services for IRC networks that allows users to
manage their nicks and channels in a secure and efficient way,
and administrators to manage their network with powerful tools.

For all your Anope needs please visit our portal at www.anope.org


Press Enter to Begin...


Do you want to compile Anope with MySQL Support?
NOTE: You will need to have installed MySQL 3.23 or Above

Available Options: yes, no
Default Answer: no

Enable MySQL Support?


Do you want to compile Anope with Encrypted Passwords?
NOTE: Once passwords are encrypted, they CANNOT be recovered!
NOTE: Enabling Encrypted Passwords will also disable GETPASS/SENDPASS

Available Options: yes, no
Default Answer: no

Enable Encrypted Passwords?



Looking for a suitable compiler...

Looking for: Microsoft Visual Studio 2005...
ERROR: Cannot find MSVCRT.lib - This version is probably not installed...

Looking for: Microsoft Visual Studio .NET 2003...
ERROR: Cannot find MSVCRT.lib - This version is probably not installed...

Looking for: Microsoft Visual Studio 98...
ERROR: Cannot find MSVCRT.lib - This version is probably not installed...


ERROR: No suitable build tools were found!
Please ensure you have downloaded and installed a version of Visual C++ and/or P
latformSDK.

For more information on the tools needed to build Anope on Windows, see:
http://windows.anope.org


C:\Documents and Settings\Admin\Escritorio\anope-1.7.15>
Logged

Tom65789

  • Anope User
  • Offline Offline
  • Posts: 343
    • www.t65789.co.uk
(No subject)
« Reply #3 on: September 29, 2006, 03:00:30 PM »

have you got all the requirements like the SDK Platform and you will probably want to use Visual Studio 2005 instead of 2003

katsklaw

  • Guest
(No subject)
« Reply #4 on: September 30, 2006, 01:11:27 AM »

Read docs/WIN32.txt for an up-to-date list of requirments to compile.
Logged

Snake99

  • Guest
(No subject)
« Reply #5 on: September 30, 2006, 08:44:55 AM »

1) Download the required files:

        * Current Anope source:
            http://zero.org:7467/viewcvs/trunk.tar.gz

that URL does not work

Code: [Select]
An Exception Has Occurred

Tarball generation is disabled

HTTP Response Status

403 Forbidden

Python Traceback

Traceback (most recent call last):
  File "/usr/local/viewcvs-1.0-dev/lib/viewcvs.py", line 3470, in main
    request.run_viewcvs()
  File "/usr/local/viewcvs-1.0-dev/lib/viewcvs.py", line 388, in run_viewcvs
    self.view_func(self)
  File "/usr/local/viewcvs-1.0-dev/lib/viewcvs.py", line 2884, in download_tarball
    '403 Forbidden')
ViewCVSException: 403 Forbidden: Tarball generation is disabled
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
(No subject)
« Reply #6 on: September 30, 2006, 09:20:29 AM »

I suggest you fix your other problems first.
Logged

katsklaw

  • Guest
(No subject)
« Reply #7 on: September 30, 2006, 02:09:52 PM »

As chaz suggested, fix the other stuff first. Personally, I recommend installing subversion for win32. That way you can fetch anope in the same fashion as *n?x users can. svn commands work well in the Visual Studio 2005 Command Prompt, thus making only 1 "window" required from start to finish.

something like:

1: open VS cmd prompt
2: cd to desired directory
3: issue svn cmd (svn co svn://zero.org/repos/anope/trunk anope)
4: cd anope
5: cscript /nologo install.js
6: nmake -f Makefile.win32
7: configure Anope
8: enjoy!

[Edited on 30-9-2006 by katsklaw]
Logged
Pages: [1]   Go Up