Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] JNIGeneratorApp: Building C source - Again (Win32)


Hi Michael,
regarding the problem with build.xml, see the following message:
http://dev.eclipse.org/mhonarc/lists/platform-ant-dev/msg00998.html

Apart from that, you need not just VC express but the platform SDK as well:
in
http://www.microsoft.com/downloads/details.aspx?familyid=EBA0128F-A770-45F1-86F3-7AB010B398A3
last time i looked.

After you have that installed, edit build.bat and change the environment variables to match your setup.

The makefiles are written for vc version 6, so you'll have to adapt the file make_win32.mak to your version of vc: it might give errors regarding unrecognised compiler/linker options.

Jordi


I was able to solve my refresh problem.  Thanks.

Is it possible to change the buld.bat to handle a JAVA_HOME that has spaces in the name?  Changing
IF x.%JAVA_HOME%==x. set JAVA_HOME=%SWT_BUILDDIR%\ibm-jdk1.4.1
to
IF x."%JAVA_HOME%"==x. set JAVA_HOME=%SWT_BUILDDIR%\ibm-jdk1.4.1
Would solve this problem

I have not succeed completely in compiling SWT yet.  The version of the SDK that Jordi pointed me to does not have an x86 compiler, just the x64.  The latest SDK (2008) has everything that I need.  However,  I have compilation errors.

 e:\developer\javaworkspaces\swt_base\org.eclipse.swt\bin\library\os.h(604) : error C2011: '_BP_PAINTPARAMS' : 'struct' type redefinition
        [exec]         C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\uxtheme.h(1502) : see declaration of '_BP_PAINTPARAMS'

From what I can determine, this might be a bug in the MSDK http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=350341

Hopefully I will be able to get this to compile.

Michael

Back to the top