Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - pengcheng

Pages: [1]
1
Java / Re: How to build JSFML
« on: August 27, 2012, 10:51:21 am »
After installing WinSDK7.1 with VC++ 2010 compiler selected, and rebuilding "win32" ant target, the "Standalone" sample works!

One issue:
In my registry there's no "HKLM\SOFTWARE\Microsoft\VisualStudio\10.0\Setup\VS" "ProductDir".
Instead, there's "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\Setup\VC" "ProductDir"=C:\Program Files\Microsoft Visual Studio 10.0\VC\.

So I use:
<target name="my_win32" description="Build the C++ sources for Windows 32 bit.">
      
      <property name="path.vs" value="C:/Program Files/Microsoft Visual Studio 10.0" />
      <property name="path.winsdk" value="C:/Program Files/Microsoft SDKs/Windows/v7.1" />
      
      <property name="cl" value="${path.vs}/VC/bin/cl.exe" />
      ...


One question:
Does the end user need to install VC++ 2010 runtime (to get msvcr100.dll & msvcp100.dll under C:\Windows\System32)? What'll be the supporting Windows environments of JSFML?

2
Java / Re: How to build JSFML
« on: August 24, 2012, 07:55:46 am »

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

Pages: [1]
anything