Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Does the current svn compile on windows?  (Read 16481 times)

0 Members and 2 Guests are viewing this topic.

therock247uk

  • Anope User
  • Offline Offline
  • Posts: 51
    • http://www.247fixes.com/
Does the current svn compile on windows?
« on: December 18, 2008, 10:51:16 PM »

If so which visual studio is needed? 2005? 2008?
Logged

Naram Qashat

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 192
    • CBX's Sprite Animations
Re: Does the current svn compile on windows?
« Reply #1 on: December 19, 2008, 12:09:49 AM »

As of yesterday, CMake is required to create the build files needed to compile 1.9.  So the first thing you'll need is to download the Windows version of CMake, and I would recommend telling it to add itself to your system path when installing it.  After that, you can run Config.bat which will ask some questions and then run CMake for you.  It'll detect which version of Visual Studio you have installed and utilize it.  I've only been able to test compile under Visual Studio .NET 2003, but I'm sure if it worked with that, it should work with 2005 or 2008.  However, if it doesn't, let me know so I can look into it.
Logged

therock247uk

  • Anope User
  • Offline Offline
  • Posts: 51
    • http://www.247fixes.com/
Re: Does the current svn compile on windows?
« Reply #2 on: December 19, 2008, 12:49:56 AM »

I compiled anope before sucessfully many times but... this...

Code: [Select]
Setting environment for using Microsoft Visual Studio 2005 x86 tools.

E:\Program Files\Microsoft Visual Studio 8\VC>c:

C:\>cd C:\Anope-trunk.r1846\trunk.r1846

C:\Anope-trunk.r1846\trunk.r1846>config
   ___
  / _ \  http://www.anope.org
 | /_\ | _ __  _ _  _ _   ___
 |  _  || '_ \/ _ \/ _ \ / _ \
 | | | || | |  |_|  |_| |  __/
 |_| |_||_| |_\___/|  _/ \___|
                   | |
                   |_| IRC Services
                             1.9.0.0-git
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...


In what directory do you want Anope to be installed?

Install directory:
c:/anope
c:/anope does not exist.  Create it ([yes]/no)?

yes

Would you like to build using NMake instead of using Visual Studio?
NOTE: If you decide to use NMake, you must be in an environment where
      NMake can function, such as the Visual Studio command line.
      If you say yes to this while not in an environment that can run
      NMake, it can cause the CMake configuration to enter an endless
      loop.

Available Options: yes, no
Default Answer: no

Use NMake?
yes

Would you like to build a debug version of Anope?

Available Options: yes, no
Default Answer: no

Build debug?
no


Anope will be compiled with the following options:

        Install Directory:              [C:/ANOPE]
        Use NMake:              [YES]
        Debug:          [NO]
        Anope Version:                  1.9.0.0-git

To continue, please press Enter...

cmake -DINSTDIR:STRING=c:/anope -G"NMake Makefiles" -DCMAKE_BUILD_TYPE:STRING=RE
LEASE C:\Anope-trunk.r1846\trunk.r1846\

-- The CXX compiler identification is MSVC
-- Check for CL compiler version
-- Check for CL compiler version - 1400
-- Check if this is a free VC compiler
-- Check if this is a free VC compiler - no
-- Check CL platform
-- Check CL platform - 32 bit
-- Check for working CXX compiler: E:/Program Files/Microsoft Visual Studio 8/VC
/bin/cl.exe
-- Check for working CXX compiler: E:/Program Files/Microsoft Visual Studio 8/VC
/bin/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- The C compiler identification is MSVC
-- Check for working C compiler: E:/Program Files/Microsoft Visual Studio 8/VC/b
in/cl.exe
-- Check for working C compiler: E:/Program Files/Microsoft Visual Studio 8/VC/b
in/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for execinfo.h
-- Looking for execinfo.h - not found
-- Looking for strings.h
-- Looking for strings.h - not found
-- Looking for sys/select.h
-- Looking for sys/select.h - not found
-- Looking for gethostbyname
-- Looking for gethostbyname - not found
-- Looking for gettimeofday
-- Looking for gettimeofday - not found
-- Looking for setgrent
-- Looking for setgrent - not found
-- Looking for strcasecmp
-- Looking for strcasecmp - not found
-- Looking for stricmp
-- Looking for stricmp - found
-- Looking for strlcat
-- Looking for strlcat - not found
-- Looking for strlcpy
-- Looking for strlcpy - not found
-- Looking for umask
-- Looking for umask - found
-- Looking for stdint.h
-- Looking for stdint.h - not found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of uint8_t
-- Check size of uint8_t - failed
-- Check size of u_int8_t
-- Check size of u_int8_t - failed
-- Check size of int16_t
-- Check size of int16_t - failed
-- Check size of uint16_t
-- Check size of uint16_t - failed
-- Check size of u_int16_t
-- Check size of u_int16_t - failed
-- Check size of int32_t
-- Check size of int32_t - failed
-- Check size of uint32_t
-- Check size of uint32_t - failed
-- Check size of u_int32_t
-- Check size of u_int32_t - failed
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Anope-trunk.r1846/trunk.r1846

To compile Anope, run 'nmake'. To install, run 'nmake install'.

If you update Anope, you should run this script again to ensure
all available options are set.

C:\Anope-trunk.r1846\trunk.r1846>nmake

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

Scanning dependencies of target langcomp
[  0%] Building CXX object lang/CMakeFiles/langcomp.dir/langcomp.c.obj
langcomp.c
C:\Anope-trunk.r1846\trunk.r1846\lang\langcomp.c(73) : warning C4996: 'fopen' wa
s declared deprecated
        E:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(234) : see
 declaration of 'fopen'
        Message: 'This function or variable may be unsafe. Consider using fopen_
s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help
 for details.'
C:\Anope-trunk.r1846\trunk.r1846\lang\langcomp.c(161) : warning C4996: 'strcpy'
was declared deprecated
        E:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(73) : see
 declaration of 'strcpy'
        Message: 'This function or variable may be unsafe. Consider using strcpy
_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online hel
p for details.'
C:\Anope-trunk.r1846\trunk.r1846\lang\langcomp.c(195) : warning C4996: 'fopen' w
as declared deprecated
        E:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(234) : see
 declaration of 'fopen'
        Message: 'This function or variable may be unsafe. Consider using fopen_
s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help
 for details.'
C:\Anope-trunk.r1846\trunk.r1846\lang\langcomp.c(199) : warning C4996: 'fopen' w
as declared deprecated
        E:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(234) : see
 declaration of 'fopen'
        Message: 'This function or variable may be unsafe. Consider using fopen_
s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help
 for details.'
C:\Anope-trunk.r1846\trunk.r1846\lang\langcomp.c(216) : warning C4996: 'sprintf'
 was declared deprecated
        E:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(345) : see
 declaration of 'sprintf'
        Message: 'This function or variable may be unsafe. Consider using sprint
f_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online he
lp for details.'
Linking CXX executable langcomp.exe
[  0%] Built target langcomp
Scanning dependencies of target language
[  0%] Generating index
NMAKE : fatal error U1077: '"E:\Program Files\Borland\BDS\4.0\Bin\grep.exe"' : r
eturn code '0x1'
Stop.
NMAKE : fatal error U1077: '"E:\Program Files\Microsoft Visual Studio 8\VC\BIN\n
make.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"E:\Program Files\Microsoft Visual Studio 8\VC\BIN\n
make.exe"' : return code '0x2'
Stop.

C:\Anope-trunk.r1846\trunk.r1846>
Logged

therock247uk

  • Anope User
  • Offline Offline
  • Posts: 51
    • http://www.247fixes.com/
Re: Does the current svn compile on windows?
« Reply #3 on: December 19, 2008, 12:55:52 AM »

Using the .sln....

Code: [Select]
Error 22 error PRJ0019: A tool returned an error code from "Generating en_us" language
Error 44 error C2440: '=' : cannot convert from 'const char *' to 'char *' c:\Anope-trunk.r1846\trunk.r1846\src\users.c 524
Error 45 error C2440: '=' : cannot convert from 'const char *' to 'char *' c:\Anope-trunk.r1846\trunk.r1846\src\users.c 527
Error 60 fatal error C1083: Cannot open include file: 'language.h': No such file or directory C:\Anope-trunk.r1846\trunk.r1846\include\pseudo.h 16
Error 112 fatal error C1083: Cannot open include file: 'language.h': No such file or directory C:\Anope-trunk.r1846\trunk.r1846\include\pseudo.h 16
Error 175 error C2440: '=' : cannot convert from 'const char *' to 'char *' c:\Anope-trunk.r1846\trunk.r1846\src\process.c 49
Error 176 error C2440: '=' : cannot convert from 'const char *' to 'char *' c:\Anope-trunk.r1846\trunk.r1846\src\process.c 51
Error 177 error C2440: '=' : cannot convert from 'const char *' to 'char *' c:\Anope-trunk.r1846\trunk.r1846\src\process.c 124
Error 178 error C2440: '=' : cannot convert from 'const char *' to 'char *' c:\Anope-trunk.r1846\trunk.r1846\src\process.c 125
Error 179 error C2440: '=' : cannot convert from 'const char *' to 'char *' c:\Anope-trunk.r1846\trunk.r1846\src\process.c 180
Error 180 error C2440: '=' : cannot convert from 'const char *' to 'char *' c:\Anope-trunk.r1846\trunk.r1846\src\process.c 182
Error 195 fatal error C1083: Cannot open include file: 'language.h': No such file or directory C:\Anope-trunk.r1846\trunk.r1846\include\pseudo.h 16
Error 210 fatal error C1083: Cannot open include file: 'language.h': No such file or directory C:\Anope-trunk.r1846\trunk.r1846\include\pseudo.h 16
Error 225 fatal error C1083: Cannot open include file: 'language.h': No such file or directory C:\Anope-trunk.r1846\trunk.r1846\include\pseudo.h 16
Error 240 fatal error C1083: Cannot open include file: 'language.h': No such file or directory c:\Anope-trunk.r1846\trunk.r1846\src\modules.c 15
Error 255 fatal error C1083: Cannot open include file: 'language.h': No such file or directory c:\Anope-trunk.r1846\trunk.r1846\src\modulemanager.cpp 12
Error 270 fatal error C1083: Cannot open include file: 'language.h': No such file or directory c:\Anope-trunk.r1846\trunk.r1846\src\module.cpp 12
Error 289 fatal error C1083: Cannot open include file: 'language.h': No such file or directory c:\Anope-trunk.r1846\trunk.r1846\src\misc.c 17
Error 304 fatal error C1083: Cannot open include file: 'language.h': No such file or directory c:\Anope-trunk.r1846\trunk.r1846\src\messages.c 17
Error 319 fatal error C1083: Cannot open include file: 'language.h': No such file or directory C:\Anope-trunk.r1846\trunk.r1846\include\pseudo.h 16
Error 394 fatal error C1083: Cannot open include file: 'language.h': No such file or directory c:\Anope-trunk.r1846\trunk.r1846\src\mail.c 16
Error 409 fatal error C1083: Cannot open include file: 'language.h': No such file or directory C:\Anope-trunk.r1846\trunk.r1846\include\pseudo.h 16
Error 424 fatal error C1083: Cannot open include file: 'language.h': No such file or directory c:\Anope-trunk.r1846\trunk.r1846\src\language.c 16
Error 454 fatal error C1083: Cannot open include file: 'language.h': No such file or directory C:\Anope-trunk.r1846\trunk.r1846\include\pseudo.h 16
Error 469 fatal error C1083: Cannot open include file: 'language.h': No such file or directory C:\Anope-trunk.r1846\trunk.r1846\include\pseudo.h 16
Error 484 fatal error C1083: Cannot open include file: 'language.h': No such file or directory C:\Anope-trunk.r1846\trunk.r1846\include\pseudo.h 16
Error 499 fatal error C1083: Cannot open include file: 'language.h': No such file or directory c:\Anope-trunk.r1846\trunk.r1846\src\events.c 15
Error 621 fatal error C1083: Cannot open include file: 'language.h': No such file or directory c:\Anope-trunk.r1846\trunk.r1846\src\commands.c 17
Logged

Naram Qashat

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 192
    • CBX's Sprite Animations
Re: Does the current svn compile on windows?
« Reply #4 on: December 19, 2008, 02:44:19 AM »

Hmm, so I might need to put in some more conditions to not allow grep to be used, for one thing.  The second set of errors from the Solution is odd, though.  That doesn't seem right.  I'll have to look into this, but it might not be tonight, so I'll reply to this when I've figured out what's going on with that.
Logged

therock247uk

  • Anope User
  • Offline Offline
  • Posts: 51
    • http://www.247fixes.com/
Re: Does the current svn compile on windows?
« Reply #5 on: December 19, 2008, 03:07:00 PM »

Yea seems like it needs some updating to work with vs 2005/2008, 2003 is fine :/
Logged

therock247uk

  • Anope User
  • Offline Offline
  • Posts: 51
    • http://www.247fixes.com/
Re: Does the current svn compile on windows?
« Reply #6 on: December 19, 2008, 03:54:41 PM »

Cept when using the sln version.
Logged

Naram Qashat

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 192
    • CBX's Sprite Animations
Re: Does the current svn compile on windows?
« Reply #7 on: December 19, 2008, 08:16:24 PM »

I just committed a slight update to the CMake stuff, that should at least fix the issue with grep trying to be used.  I'm looking to see if I can have VS .NET 2005 or 2008 Express installed alongside VS .NET 2003.
Logged

therock247uk

  • Anope User
  • Offline Offline
  • Posts: 51
    • http://www.247fixes.com/
Re: Does the current svn compile on windows?
« Reply #8 on: December 19, 2008, 08:46:28 PM »

Should have no issues doing that. :)
Logged

therock247uk

  • Anope User
  • Offline Offline
  • Posts: 51
    • http://www.247fixes.com/
Re: Does the current svn compile on windows?
« Reply #9 on: December 23, 2008, 03:04:48 PM »

nmake when using the latest svn works :D

just trying the sln version now.
Logged

therock247uk

  • Anope User
  • Offline Offline
  • Posts: 51
    • http://www.247fixes.com/
Re: Does the current svn compile on windows?
« Reply #10 on: December 23, 2008, 03:44:17 PM »

working fine :D
Logged

Naram Qashat

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 192
    • CBX's Sprite Animations
Re: Does the current svn compile on windows?
« Reply #11 on: December 23, 2008, 09:01:46 PM »

Yeah, I had to do some work to get it to work better, but overall it's a lot better than last week. :P
Logged
Pages: [1]   Go Up