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)


--- On Sun, 8/17/08, Michael Franz <mvfranz@xxxxxxxxx> wrote:
From: Michael Franz <mvfranz@xxxxxxxxx>
Subject: [platform-swt-dev] JNIGeneratorApp: Building C source - Again (Win32)
To: platform-swt-dev@xxxxxxxxxxx
Date: Sunday, August 17, 2008, 7:07 AM

Hi,

I found this posting while trying to figure this out on my own http://dev.eclipse.org/newslists/news.eclipse.platform.swt/msg33065.html .

However, I think I am missing something more basic.  What C compiler do I use to compile on windows?  I cannot find any instructions on what is needed, how to install and how to run.  I have the VC express installed and can compile programs, but when I use the build.bat all the environment variables all point to non-existent directories.  Using build.xml results in:

Buildfile: E:\Developer\JavaWorkspaces\SWT\org.eclipse.swt\Eclipse SWT PI\win32\library\build.xml
build_dll:

init:
refresh:


BUILD FAILED
E:\Developer\JavaWorkspaces\SWT\org.eclipse.swt\Eclipse SWT PI\win32\library\build.xml:78: The following error occurred while executing this line:

E:\Developer\JavaWorkspaces\SWT\org.eclipse.swt\Eclipse SWT PI\win32\library\build.xml:6: The following error occurred while executing this line:

E:\Developer\JavaWorkspaces\SWT\org.eclipse.swt\Eclipse SWT PI\win32\library\build.xml:10: Problem: failed to create task or type eclipse.refreshLocal

Cause: The name is undefined.
Action: Check the spelling.

Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.



I have googled and browsed the Eclipse site and have not been able to find what I seem to be missing.

Michael
--------------------------------------

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



      


Back to the top