Anope IRC Services

Anope.org => Anope General => Topic started by: T-rexke on August 12, 2006, 07:09:27 PM

Title: help with compile to windows
Post by: T-rexke on August 12, 2006, 07:09:27 PM
hi im trying to compile modules for windows and when i start the visual studio 2005 promt i get thes errors can somebody help :)

Code: [Select]
Looking for a suitable compiler...

Looking for: Microsoft Visual Studio 2005...
ERROR: Cannot find wsock32.lib - Probably missing PlatformSDK...

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...

Some of the build tools were detected on your computer, but the essential Platfo
rmSDK components were missing.
You will need to download the PlatformSDK from the URL below, ensuring that the
Core Windows files, and Debugging Tools are installed.
For more details on installing the PlatformSDK, visit http://windows.anope.org

PSDK: http://download.microsoft.com/download/a/5/f/a5f0d781-e201-4ab6-8c6a-9bb4e
fed1e1a/PSDK-x86.exe


ERROR: No suitable build tools were found!
Please ensure you have downloaded and installed a version of Visual C++ and/or P
latformSDK.
Title:
Post by: Tom65789 on August 12, 2006, 07:34:50 PM
doesnt seem like you have the MIcrosoft SDK Platform installed
Title:
Post by: T-rexke on August 12, 2006, 07:43:16 PM
i instalt it right after the visual studio :s so thats not it
Title:
Post by: Tom65789 on August 12, 2006, 07:49:52 PM
have you ensured that all the paths in the Env variables are correct? so the compiler has paths to the libraries
Title:
Post by: T-rexke on August 12, 2006, 07:55:08 PM
uhm how do you mean? (srry but i am new to this :$)
Title:
Post by: Tom65789 on August 12, 2006, 07:56:05 PM
this this into your cmd then copy and paste the results here:

set
Title:
Post by: T-rexke on August 12, 2006, 07:59:18 PM
Code: [Select]
ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\Tony Vandebosch\Application Data
CLIENTNAME=Console
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=TONY-CBFDDE7B90
ComSpec=C:\WINDOWS\system32\cmd.exe
DevEnvDir=C:\Program Files\Microsoft Visual Studio 8\Common7\IDE
FP_NO_HOST_CHECK=NO
FrameworkDir=C:\WINDOWS\Microsoft.NET\Framework
FrameworkSDKDir=C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0
FrameworkVersion=v2.0.50727
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\Tony Vandebosch
INCLUDE=C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE;
LIB=C:\Program Files\Microsoft Visual Studio 8\VC\LIB;C:\Program Files\
 Visual Studio 8\SDK\v2.0\lib;
LIBPATH=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
LOGONSERVER=\\TONY-CBFDDE7B90
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Path=C:\Program Files\Microsoft Visual Studio 8\Common7\IDE;C:\Program
rosoft Visual Studio 8\VC\BIN;C:\Program Files\Microsoft Visual Studio
\Tools;C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\bin;C:\WINDO
oft.NET\Framework\v2.0.50727;C:\Program Files\Microsoft Visual Studio 8
kages;C:\WINDOWS\SYSTEM32;C:\WINDOWS;C:\WINDOWS\SYSTEM32\WBEM;C:\PROGRA
OMMON FILES\ADOBE\AGL
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 7 Stepping 1, AuthenticAMD
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0701
ProgramFiles=C:\Program Files
PROMPT=$P$G
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\TONYVA~1\LOCALS~1\Temp
TMP=C:\DOCUME~1\TONYVA~1\LOCALS~1\Temp
USERDOMAIN=TONY-CBFDDE7B90
USERNAME=Tony Vandebosch
USERPROFILE=C:\Documents and Settings\Tony Vandebosch
VCINSTALLDIR=C:\Program Files\Microsoft Visual Studio 8\VC
VS80COMNTOOLS=C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\
VSINSTALLDIR=C:\Program Files\Microsoft Visual Studio 8
windir=C:\WINDOWS
Title:
Post by: Tom65789 on August 12, 2006, 08:03:38 PM
have you got the .NET framework also installed?
Title:
Post by: T-rexke on August 12, 2006, 08:08:48 PM
yes
Title:
Post by: heinz on August 12, 2006, 08:45:06 PM
Look in 'Program Files' for a folder entitled "Microsoft Platform SDK" or similar.. if it's not called Microsoft Platform SDK, you may need to rename it.

Microsoft changed the name of the folder it was installed to, and I don't think install.js has been updated to reflect this yet..
Title:
Post by: T-rexke on August 12, 2006, 09:13:51 PM
yes thx that was the answer :)
Title:
Post by: T-rexke on August 12, 2006, 11:06:48 PM
only one question wats this?
Code: [Select]
Generating Code...
LINK : error LNK2001: unresolved external symbol AnopeFini
cs_disablexop.lib : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\c
l.EXE"' : return code '0x2'
Stop.
Title:
Post by: heinz on August 12, 2006, 11:13:52 PM
The module doesn't declare an AnopeFini function, which we export. Just add the following to the module:

void AnopeFini() {
}
Title:
Post by: T-rexke on August 12, 2006, 11:18:10 PM
thx :)