Windows
To build on Windows (targets win32 and win64), you will require the Windows SDK (latest possible) as well as the Microsoft Visual C++ compiler. Note that the compiler can be installed along with the Windows SDK, so you don't necessarily need the Microsoft Visual Studio.
The path of the Windows SDK and the MS Visual C++ compiler is retrieved automatically using the provided batch scripts. Do not hesitate to report any problems with these scripts, but if you do let me know which Windows and WinSDK / MSVC++ you have installed.
Hello. I am running:
Vista Home Basic;
Windows SDK with VC++ compiler installed;
No VC++ installed;
Visual C# 2008 Expression installed;
Dir list:
C:\Program Files\Microsoft SDKs\Windows\v6.0
Bin
Include
Lib
VC
Bin
INCLUDE
LIB
C:\Program Files\Microsoft Visual Studio 9.0
Common7
VC
VC#
To build win32 successfully, I have to use:
<target name="my_win32" description="Build the C++ sources for Windows 32 bit.">
<property name="path.vs" value="C:/Program Files/Microsoft SDKs/Windows/v6.0" />
<property name="path.winsdk" value="C:/Program Files/Microsoft SDKs/Windows/v6.0" />
<property name="cl" value="C:/Program Files/Microsoft SDKs/Windows/v6.0/VC/Bin/cl.exe" />
<property name="link" value="C:/Program Files/Microsoft SDKs/Windows/v6.0/VC/Bin/link.exe" />
<property name="cwd" value="C:/Program Files/Microsoft Visual Studio 9.0/Common7/IDE" />
<property name="vs.lib" value="C:/Program Files/Microsoft SDKs/Windows/v6.0/VC/lib" />
<property name="winsdk.lib" value="C:/Program Files/Microsoft SDKs/Windows/v6.0/Lib" />
<property name="arch" value="windows_x86" />
<ant target="windows.build" />
</target>
However, when running ShortExample:
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Users\pengcheng\.jsfml\windows_x86\sfml-system-2.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1778)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1674)
at java.lang.Runtime.load0(Runtime.java:770)
at java.lang.System.load(System.java:1003)
at org.jsfml.SFMLNative.loadNativeLibraries(Unknown Source)
at org.jsfml.SFMLNativeObject.<clinit>(Unknown Source)
at ShortExample.main(ShortExample.java:22)
Using MingW "objdump -x sfml-system-2.dll", this dll imports 3 dlls:
KERNEL32.dll
MSVCR100.dll
MSVCP100.dll
The last 2 of which don't exist under "C:\Windows\System32", where there does exist "msvcp60.dll, msvcp71.dll, msvcr71.dll".