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
C:\temp\piccolo2d.java\branches\release-1.3>mvn help:active-profiles
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] Piccolo2D Parent
[INFO] Piccolo2D Core
[INFO] Piccolo2D Extras
[INFO] Piccolo2D SWT
[INFO] Piccolo2D Examples
[INFO] Piccolo2D SWT Examples
[INFO] Piccolo2D
[INFO] Searching repository for plugin with prefix: 'help'.
[INFO] ------------------------------------------------------------------------
[INFO] Building Piccolo2D
[INFO] task-segment: [help:active-profiles] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] [help:active-profiles {execution: default-cli}]
[INFO]
Active Profiles for Project 'org.piccolo2d:piccolo2d-parent:pom:1.4-SNAPSHOT':
There are no active profiles.
Active Profiles for Project 'org.piccolo2d:piccolo2d-core:bundle:1.4-SNAPSHOT':
There are no active profiles.
Active Profiles for Project
'org.piccolo2d:piccolo2d-extras:bundle:1.4-SNAPSHOT':
There are no active profiles.
Active Profiles for Project 'org.piccolo2d:piccolo2d-swt:bundle:1.4-SNAPSHOT':
The following profiles are active:
- windows (source: pom)
Active Profiles for Project
'org.piccolo2d:piccolo2d-examples:bundle:1.4-SNAPSHOT':
There are no active profiles.
Active Profiles for Project
'org.piccolo2d:piccolo2d-swt-examples:bundle:1.4-SNAPSHOT':
There are no active profiles.
Active Profiles for Project 'org.piccolo2d:piccolo2d-complete:pom:1.4-SNAPSHOT':
There are no active profiles.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Thu Dec 23 18:57:41 CET 2010
[INFO] Final Memory: 13M/328M
[INFO] ------------------------------------------------------------------------
C:\temp\piccolo2d.java\branches\release-1.3>mvn enforcer:display-info
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] Piccolo2D Parent
[INFO] Piccolo2D Core
[INFO] Piccolo2D Extras
[INFO] Piccolo2D SWT
[INFO] Piccolo2D Examples
[INFO] Piccolo2D SWT Examples
[INFO] Piccolo2D
[INFO] Searching repository for plugin with prefix: 'enforcer'.
[INFO] ------------------------------------------------------------------------
[INFO] Building Piccolo2D Parent
[INFO] task-segment: [enforcer:display-info]
[INFO] ------------------------------------------------------------------------
[INFO] [enforcer:display-info {execution: default-cli}]
[INFO] Maven Version: 2.2.1
[INFO] JDK Version: 1.6.0_23 normalized as: 1.6.0-23
[INFO] OS Info: Arch: amd64 Family: windows Name: windows 7 Version: 6.1
[INFO] ------------------------------------------------------------------------
[INFO] Building Piccolo2D Core
[INFO] task-segment: [enforcer:display-info]
[INFO] ------------------------------------------------------------------------
[INFO] [enforcer:display-info {execution: default-cli}]
[INFO] Maven Version: 2.2.1
[INFO] JDK Version: 1.6.0_23 normalized as: 1.6.0-23
[INFO] OS Info: Arch: amd64 Family: windows Name: windows 7 Version: 6.1
[INFO] ------------------------------------------------------------------------
[INFO] Building Piccolo2D Extras
[INFO] task-segment: [enforcer:display-info]
[INFO] ------------------------------------------------------------------------
[INFO] [enforcer:display-info {execution: default-cli}]
[INFO] Maven Version: 2.2.1
[INFO] JDK Version: 1.6.0_23 normalized as: 1.6.0-23
[INFO] OS Info: Arch: amd64 Family: windows Name: windows 7 Version: 6.1
[INFO] ------------------------------------------------------------------------
[INFO] Building Piccolo2D SWT
[INFO] task-segment: [enforcer:display-info]
[INFO] ------------------------------------------------------------------------
[INFO] [enforcer:display-info {execution: default-cli}]
[INFO] Maven Version: 2.2.1
[INFO] JDK Version: 1.6.0_23 normalized as: 1.6.0-23
[INFO] OS Info: Arch: amd64 Family: windows Name: windows 7 Version: 6.1
[INFO] ------------------------------------------------------------------------
[INFO] Building Piccolo2D Examples
[INFO] task-segment: [enforcer:display-info]
[INFO] ------------------------------------------------------------------------
[INFO] [enforcer:display-info {execution: default-cli}]
[INFO] Maven Version: 2.2.1
[INFO] JDK Version: 1.6.0_23 normalized as: 1.6.0-23
[INFO] OS Info: Arch: amd64 Family: windows Name: windows 7 Version: 6.1
[INFO] ------------------------------------------------------------------------
[INFO] Building Piccolo2D SWT Examples
[INFO] task-segment: [enforcer:display-info]
[INFO] ------------------------------------------------------------------------
[INFO] [enforcer:display-info {execution: default-cli}]
[INFO] Maven Version: 2.2.1
[INFO] JDK Version: 1.6.0_23 normalized as: 1.6.0-23
[INFO] OS Info: Arch: amd64 Family: windows Name: windows 7 Version: 6.1
[INFO] ------------------------------------------------------------------------
[INFO] Building Piccolo2D
[INFO] task-segment: [enforcer:display-info]
[INFO] ------------------------------------------------------------------------
[INFO] [enforcer:display-info {execution: default-cli}]
[INFO] Maven Version: 2.2.1
[INFO] JDK Version: 1.6.0_23 normalized as: 1.6.0-23
[INFO] OS Info: Arch: amd64 Family: windows Name: windows 7 Version: 6.1
[INFO]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ------------------------------------------------------------------------
[INFO] Piccolo2D Parent ...................................... SUCCESS [0.452s]
[INFO] Piccolo2D Core ........................................ SUCCESS [0.001s]
[INFO] Piccolo2D Extras ...................................... SUCCESS [0.001s]
[INFO] Piccolo2D SWT ......................................... SUCCESS [0.001s]
[INFO] Piccolo2D Examples .................................... SUCCESS [0.001s]
[INFO] Piccolo2D SWT Examples ................................ SUCCESS [0.001s]
[INFO] Piccolo2D ............................................. SUCCESS [0.003s]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Thu Dec 23 18:55:38 CET 2010
[INFO] Final Memory: 12M/232M
[INFO] ------------------------------------------------------------------------Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-win32-3346 or
swt-win32 in swt.library.path, java.library.path or the jar file
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:219)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:151)
at org.eclipse.swt.internal.C.<clinit>(C.java:21)
at org.eclipse.swt.widgets.Display.<clinit>(Display.java:126)
at
edu.umd.cs.piccolox.swt.examples.SWTBasicExample.main(SWTBasicExample.java:90)