LWJGL
May 19, 2013, 03:42:53 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL is now using GitHub
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: [BUG/RFE] MSSDK platform build  (Read 1633 times)
broumbroum
Prolific Timewaster
****
Posts: 316



WWW
« on: September 14, 2011, 10:02:44 »


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.
Code:
# 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"/>
Cheesy
Logged

Sf3JSwing project, code repo (Apache License) -  http://www.sourceforge.net/p/sf3jswing
Sf3jswing Project Forum - http://apps.sourceforge.net/phpbb/sf3jswing/
Matzon
Administrator
Demigod
*****
Posts: 2237



« Reply #1 on: September 14, 2011, 11:30:47 »

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

broumbroum
Prolific Timewaster
****
Posts: 316



WWW
« Reply #2 on: September 14, 2011, 13:05:50 »

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

Sf3JSwing project, code repo (Apache License) -  http://www.sourceforge.net/p/sf3jswing
Sf3jswing Project Forum - http://apps.sourceforge.net/phpbb/sf3jswing/
rollins
Newbie
*
Posts: 9


« Reply #3 on: September 14, 2011, 15:55:37 »

It looked for a file named delayimp.lib to LINK;

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

broumbroum
Prolific Timewaster
****
Posts: 316



WWW
« Reply #4 on: September 15, 2011, 01:39:39 »

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

Sf3JSwing project, code repo (Apache License) -  http://www.sourceforge.net/p/sf3jswing
Sf3jswing Project Forum - http://apps.sourceforge.net/phpbb/sf3jswing/
rollins
Newbie
*
Posts: 9


« Reply #5 on: September 15, 2011, 07:40:10 »

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

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!