[CLOSED] MSSDK platform build

Started by broumbroum, September 14, 2011, 17:02:44

Previous topic - Next topic

broumbroum


I recently was building on a Windows platform, and I noticed that the build.xml in platform_build missed one or two lines to run with the MSSDK I used (I did not have to install VisualStudio), along with the PATH=jdkhome and MSSDK=mssdkhome windows environment variables.
# This patch file was generated by NetBeans IDE
# Following Index: paths are relative to: LWJGL-SVN\platform_build\windows_ant
# This patch can be applied using context Tools: Patch action on respective folder.
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
Index: build.xml
--- build.xml Base (BASE)
+++ build.xml Locally Modified (Based On LOCAL)
@@ -8,7 +8,8 @@
 	<target name="compile_dir">
 		<apply dir="." failonerror="true" executable="cl" dest="." skipemptyfilesets="true">
 			<arg line="/Ox /W2 /nologo /Ox /Ob2 /Oi /Ot /Oy /FD /EHsc /MT /Gy /W2 /nologo /c"/>
-			<arg value="/I${sdkhome}\include"/>
+			<arg value="/I${sdkhome}\Include"/>
+                        <arg value="/I${sdkhome}\VC\INCLUDE"/>
 			<arg value="/I${java.home}\..\include"/>
 			<arg value="/I${java.home}\..\include\win32"/>
 			<arg value="/I${native}\common"/>
@@ -32,6 +33,7 @@
 			<arg line="/LD /nologo"/>
 			<srcfile/>
 			<arg line="/Fe${dllname} /link"/>
+			<arg value="/LIBPATH:${sdkhome}\VC\LIB\"/>
 			<arg value="/LIBPATH:${java.home}\..\lib"/>
 			<arg value="/LIBPATH:${sdkhomelib}"/>
 			<arg value="/OPT:REF"/>

:D

Matzon

Do you now have issues with /delayload not working when linking ?

broumbroum

Not sure about that, but I think so, kind of message I received when building. It looked for a file named delayimp.lib to LINK; after adding the SDK LIBPATH and VC/Include it worked fine.

rollins

Quote from: broumbroum on September 14, 2011, 20:05:50
It looked for a file named delayimp.lib to LINK;

where did u find that? i dont have it, and i tried a similar .

broumbroum

I'm building LWJGL with Netbeans 7 on Windows Vista 32 bits.
to summarize the process :
I just had to download MS Platform SDK for Vista (Google) which installs C+ and Net frameworks (~70MB from web).
the MSSDK folder has Include\ VC\Include and VC\LIB; the two latter subdirectories contain C+ header (e.g. stdio.h) and link (e.g. delayimp.lib) files.
+
user environment variables of windows
- PATH=%PATH%;C:\program files\...\java\jdk5\bin
- MSSDK=C:\program files\Microsoft SDKs\Windows\v6.0\


PC Windows Vista 32 bits, JDK 5 (or 6 as well), Netbeans 7, MS SDK Platform for Windows, this config builds fine LWJGL 2.7.1.

rollins

i have windows 7 64bit..but i have vista 32 bit on my laptop. gonna try on laptop. thanx