Thanks for the tips Aaron. Everything is working now.

On 12/23/2010 7:22 PM, Aaron Dixon wrote:
> Carlo --
> 
> You're getting that error because you're resolving SWT 32-bit binaries
> but using a 64-bit JDK. (See
> http://stackoverflow.com/questions/2921193/swt-on-windows-64-bit)
> 
> You need to:
> 
> 1) Download and point your JAVA_HOME and PATH to a *32-bit* JDK before
> running the build.
> 
> OR
> 
> 2) Download the 64-bit SWT binaries and set them up in your repo AND
> modify the Piccolo2D swt POM to point to these.
> 
> On Thu, Dec 23, 2010 at 12:19 PM, Carlo Salinari
> <carlo.salin...@gmail.com> wrote:
>> On 12/23/2010 6:21 PM, Michael Heuer wrote:
>>> Carlo Salinari wrote:
>>>
>>>> Being maven-ignorant (I'll study it. Promise.) I need a little hand
>>>> building branches\release-1.3\swt under windows 7 64bit.
>>>>
>>>> My mvn -version says:
>>>> Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
>>>> Java version: 1.6.0_23
>>>> Java home: C:\Program Files\Java\jdk1.6.0_23\jre
>>>> Default locale: en_US, platform encoding: Cp1252
>>>> OS name: "windows 7" version: "6.1" arch: "amd64" Family: "windows"
>>>>
>>>> following http://code.google.com/p/piccolo2d/wiki/BuildSWTOnMacOSX I
>>>> tried adding this to release-1.3\swt\pom.xml:
>>>>
>>>>    <profile>
>>>>      <id>windows_64</id>
>>>>      <activation>
>>>>        <os>
>>>>          <family>windows</family>
>>>>          <arch>amd64</arch>
>>>>        </os>
>>>>      </activation>
>>>>      <properties>
>>>>        <swt.groupId>org.eclipse.swt.win32.win32</swt.groupId>
>>>>        <swt.artifactId>x86_64</swt.artifactId>
>>>>      </properties>
>>>>    </profile>
>>>>    <profile>
>>>>
>>>> but it didn't make the trick. I guess I also have to tell maven where to
>>>> fetch swt.win32.win32.x86_64, right? Should I modify the parent pom?
>>>
>>> I don't believe this should be necessary.  The mess with Mac OSX is
>>> because there are carbon and cocoa and ppc and intel versions of SWT
>>> and maven profiles can't properly distinguish between them.
>>>
>>> Our issue
>>>
>>> http://code.google.com/p/piccolo2d/issues/detail?id=151
>>>
>>> links to Maven and Eclipse issues.
>>>
>>> Try these and post here
>>>
>>> $ mvn enforcer:display-info
>>> $ mvn help:active-profiles
>>
>> mmm... seems I goofed up. You are right, the build works fine.
>>
>>>> Btw: why is the dependency
>>>>
>>>>      <version>[3.3.0-v3346,)</version>
>>>>
>>>> so strict?
>>>
>>> Eclipse artifacts currently don't play nice with the Maven world, and
>>> 3.3.0-v3346 is the latest version in the Maven central repository.
>>> Most SWT users would want to build against a more recent version,
>>> which can be installed manually using something like
>>
>> I see. But still, even if with an old swt, examples should run, right?
>>
>> Instead I'm getting a java.lang.UnsatisfiedLinkError (see attachment).
>>
>> Should this be fixed in maven or in the eclipse project?
>>
>>> $ mvn install:install-file -Dfile=./swt.jar \
>>>   -DgroupId=org.eclipse.swt.XXX\
>>>   -DartifactId=macosx \
>>>   -Dversion=XXX \
>>>   -Dpackaging=jar
>>
>> Ok, I'm trying this as soon as I understand why I'm getting the
>> UnsatisfiedLinkError.
>>
>> Thanks for your help.
>>
>> Carlo
>>
>> --
>> Piccolo2D Developers Group: 
>> http://groups.google.com/group/piccolo2d-dev?hl=en
> 

-- 
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en

Reply via email to