Skip to main content



      Home
Home » Archived » Buckminster » [solved] Problem with Buckminster running on linux(buckminster works different running on linux vs. running under windows with a windows only targetplattform)
[solved] Problem with Buckminster running on linux [message #859167] Fri, 27 April 2012 09:45 Go to next message
Eclipse UserFriend
I noticed a different behavior of buckminster on linux after successfull tests on windows.

The First problem seems to be a classpath problem during the build phase. The plugin has a dependency on the swt class org.eclipse.swt.Display. In the targetplatform are the relevant plugin org.eclipse.swt.win32.win32.x86_3.6.1.v3655c.jar and the import works fine. But the build ends with errors.

here the Log:

INFO: importtargetdefinition '-A' '/tmp/src/swt.dependency.test.feature/targetplattform.target'
INFO: import '--properties' 'file:/tmp/src/swt.dependency.test.feature/buckminster.properties' '/tmp/src/swt.dependency.test.feature/buckminsterbuilder.cquery'
INFO: Import complete.
INFO: build '-c' '-t'
INFO: Resetting target platform Testtargetplattform
Error: file /tmp/src/swt.dependency.test/src/swt/dependency/test/Activator.java, line 6: The import org.eclipse.swt cannot be resolved
Error: file /tmp/src/swt.dependency.test/src/swt/dependency/test/Activator.java, line 22: Display cannot be resolved

To circumvent the problem with the different plattforms I set the arch, win and os properties but it doesn't help.


The second Problem is with resolving plugins recursive in the targetplattform directory. If I point the dir in the targetplattform definition file to a directory above the actutal plugins, this works fine on windows. On linux I must point the directory exactly to the directory whrere the plugins reside. Otherwise the import command fails. Fortunately this is only a minor problem.



The attached files contain an example. They are packed with 7-zip and automaticly spiltted, because of the size limitations for file uploads. The paths are based on /tmp. The src directory contains the plugin and feature projects. The relevant Buckminster files are located in the feature projects. I've added a script file for buckminster for easy testing my process.

swt.dependency.test are for the first problem
launcher.dependency.test are for the second problem
  • Attachment: files.7z.001
    (Size: 2.00MB, Downloaded 244 times)
  • Attachment: files.7z.002
    (Size: 1.85MB, Downloaded 270 times)

[Updated on: Mon, 07 May 2012 04:04] by Moderator

Re: Problem with Buckminster running on linux [message #859179 is a reply to message #859167] Fri, 27 April 2012 09:53 Go to previous messageGo to next message
Eclipse UserFriend
What's in your target platform -- following e.g. Ralf Ebert's tutorial and setting includeAllPlatforms="true" should take care of this. No explicit dependency on a particular SWT-implementation is required.

-Volker

[Updated on: Fri, 27 April 2012 10:49] by Moderator

Re: Problem with Buckminster running on linux [message #859282 is a reply to message #859179] Fri, 27 April 2012 10:58 Go to previous messageGo to next message
Eclipse UserFriend
We use our own targeplattform and these contains only the windows related implementations. But the plugins have no plattform specific dependency.

The example contains a subset of our targetplattform and a simplified plugin to demonstrate my problem. Look at the swt.dependency.test plugin.
Re: Problem with Buckminster running on linux [message #870180 is a reply to message #859167] Mon, 07 May 2012 03:38 Go to previous message
Eclipse UserFriend
I've found a solution to both problems. Adding
<environment>
  <os>win32</os>
  <ws>win32</ws>
</environment>

to the targetplattform definition, worked.
Previous Topic:Import Lastest Feature as part of TP
Next Topic:Custom editor for CSPEX
Goto Forum:
  


Current Time: Wed Jul 23 18:44:02 EDT 2025

Powered by FUDForum. Page generated in 0.05752 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top