Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cbi-dev] Natives compile issue on Windows and Mac

Hi Everyone,

I think I figured some of this out. The pom file currently specifies the following:

    <exec executable="make_x64.bat" newenvironment="false" dir="../org.eclipse.core.filesystem/natives/win32/x64/"/>

I guess you can't call the bat file directly as an executable, instead calling it via cmd shell using the following seems to work.

    <exec executable="cmd" newenvironment="false" dir="../org.eclipse.core.filesystem/natives/win32/x64/">
        <arg value="/c"/>
        <arg value="make_x64.bat"/>
    </exec>


When I look into the directory ../org.eclipse.core.filesystem/natives/win32/x64 I can see a new file exists now localfile.obj so I guess make_x64.bat ran.

I still have some concerns though. When I look at make_x64.bat I see in one of the lines it's trying to call a file which does not exist on my system so I don't know where it comes from:

    call "%MSSDK%\bin\SetEnv.Cmd" /Release /x64 /xp

Does anyone know where this SetEnv.Cmd is supposed to come from?

My other concern is in org.eclipse.core.filesystem.win32.x86_64 I noticed the timestamp on the file os/win32/x86_64/localfile_1_0_0.dll is from a month ago which makes me think that we did not compile anything to replace this file. Is this expected?

Anyway with the modifications mentioned above I'm able to complete the full build on Windows 64bit.

Thanks,


Thanh

On 31/07/2012 3:33 PM, Thanh Ha wrote:

I was able to get my Windows environment working. After some investigation I discovered that SWT Windows build.bat seems to expect packages to be installed in very specific locations (see attached build.bat).

Specifically for Windows x86_64 I had to install the following:

Windows Server 2003 SP1 SDK to:    C:\BUILD\swt-builddir\MSSDKs\Windows Server 2003 SP1 SDK\
Java SDK to:    C:\BUILD\swt-builddir\ibm-sdk50-x86_64\

Once these were in place I was able to successfully build org.eclipse.swt.win32.win32.x86_64.


I'm now running into build issues with org.eclipse.core.filesystem.win32.x86_64 which seems to be complaining about not being able to find make_x64.bat for some reason (see attached org.eclipse.core.filesystem.win32.x86_64log).

Looking in the pom.xml file I can see that it's looking for this file in the directory ../org.eclipse.core.filesystem/natives/win32/x64/ and I can see it existing:

$ ls ../org.eclipse.core.filesystem/natives/win32/x64/
make_x64.bat

Does anyone know why the build is having trouble executing this file?


Back to the top