Package Details: energia 1.8.7E21-5

Git Clone URL: https://aur.archlinux.org/energia.git (read-only)
Package Base: energia
Description: Energia is a Arduino IDE clone for use with the MSP430 launchpad
Upstream URL: http://energia.nu/
Licenses: GPL
Provides: energia
Submitter: will.price94
Maintainer: mpento
Last Packager: mpento
Votes: 24
Popularity: 0.010445
First Submitted: 2013-01-07 23:18
Last Updated: 2019-02-09 21:46

Pinned Comments

mpento commented on 2018-01-21 14:49

GTKLookAndFeel Issue

In reference to the following error:

java.lang.Error: Cannot load com.sun.java.swing.plaf.gtk.GTKLookAndFeel
    at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1351)
    at javax.swing.UIManager.initialize(UIManager.java:1459)
    at javax.swing.UIManager.maybeInitialize(UIManager.java:1426)
    at javax.swing.UIManager.getLookAndFeel(UIManager.java:492)
    at processing.app.linux.GTKLookAndFeelFixer.installGtkPopupBugWorkaround(GTKLookAndFeelFixer.java:79)
    at processing.app.linux.Platform.setLookAndFeel(Platform.java:40)
    at processing.app.Base.guardedMain(Base.java:214)
    at processing.app.Base.main(Base.java:136)

After some research, this appears to be a problem in energia itself that was fixed in the arduino ide, which energia is derived from. For reasons unknown to me, that fix has not been propagated. The energia issue for this is still open and not assigned on github (https://github.com/energia/Energia/issues/980).

To work around this problem, as root, edit the 'energia' script located in /opt/energia/, change line 28 from this:

JAVA_OPTIONS=("-DAPP_DIR=$APPDIR" "-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel")

To this:

JAVA_OPTIONS=("-DAPP_DIR=$APPDIR")

Once a fix is available, I will incorporate it here.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

whakim commented on 2014-05-08 04:20

It seems that adding staticlibs to the options solve the issue, but I still have problem on the permission during the upload process although I've add user to uucp and lock group after the installation.
So, I have to run energia through sudo.

will.price94 commented on 2014-05-07 15:34

It appears however the files are copied in the PKGBUILD the result in the pkg/ directory yields this error. Not quite sure what's going on since I can copy the files manually using the same `cp` commands without problems.

will.price94 commented on 2014-05-06 08:41

That's strange, I also get that error. I'm busy today, but I'll try and get it fixed tomorrow :)

dongfengweixiao commented on 2014-05-06 02:43

I have those error:
/opt/energia/hardware/tools/msp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld: cannot find -lm
/opt/energia/hardware/tools/msp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld: cannot find -lgcc
/opt/energia/hardware/tools/msp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld: cannot find -lc
/opt/energia/hardware/tools/msp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld: cannot find -lgcc
/opt/energia/hardware/tools/msp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld: cannot find -lcrt0
collect2: ld returned 1 exit status
If i donnot install this package,No problem!

will.price94 commented on 2014-05-04 22:59

Alright, I've updated the package... here's a changelog:

* Updated energia to 0012
* We now use a tmpfile.d configuration `legacy.conf' to override the default permissions set by arch on the /run/lock directory. This should (hopefully) cure issues with not being able to access the serial port as a user
* Use the icons bundled in the source distribution, and install them using `xdg-icon-resource'
* The desktop file has been updated a little to reflect deprecated values in the desktop specification
* Modularize the PKGBUILD to be a little more literate in style

Let me know if you have any problems (email is better than a comment)

Sorry it's been so long since the last update, I left Arch for a bit, but now I'm back :)

Mithefe commented on 2014-05-04 19:02

oops, this too

+ Icon=/opt/energia/energia_48.png

Mithefe commented on 2014-05-04 14:23

diff 009.3 -vs- 0012.1

+pkgver=0012
+pkgrel=1
+
+if [[ $CARCH == "x86_64" ]]; then
+ source=('http://energia.nu/download/downloadv3.php?file=energia-0101E0012-linux64.tgz')
+ md5sums=('5046bfda7c04f9539a36fe13063ef180' )
+else
+ source=('http://energia.nu/download/downloadv3.php?file=energia-0101E0012-linux.tgz')
+ md5sums=('bddf7f34ceb0288222d8ecddb206665b')
+fi
+build() {
+ echo
+}

duca commented on 2014-02-05 23:48

Here is an upated pkguild
https://bitbucket.org/eduardoml/archlinux-aur/src/1b1f0ecca11ed56984bfd4c3f634710fc7db468d/energia/PKGBUILD?at=default

will.price94 commented on 2013-04-02 17:12

Sorry about that, I'd left the previous icon in my src directory and it built with the error, should be fixed now.

gururise commented on 2013-04-02 15:51

regarding the last build failure, the PKGBUILD is trying to use the wrong name for the PNG image.