Linux IDE Installation Questions

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Linux IDE Installation Questions

1,973件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mitch_feaster on Fri Apr 22 22:19:38 MST 2011
Hi, I have a few questions about the Linux IDE installer. I'm using Arch Linux. I know it's impossible to support every Linux distro, but since I don't have a copy of Windows and run Arch on all my machines I'm kind of out of options short of installing a new OS, so I'd love to get this debug'd.

Can I please know exactly what the installer did to my system? I don't really like the super-user requirement, I wanted to place it in a non-privileged area (somewhere under /opt) anyways, and I'm not sure I like the idea of your installer trampsing around my system with root doing whatever it pleases... That being said, I went ahead and ran it (it's not working -- see next question) but I'm also getting strange libusb errors while doing things unrelated to lpc (does the installer mess with my libusb??? Please say no...) It would be a lot easier for those of us not on Ubuntu to get stuff working if the installer were a self-extracting shell script with any proprietary binaries tacked on to the end (like what Eagle and others do).

After installation, I'm unable to start the IDE. I've pasted below the output on my console when I try to start it, the .log file that gets produces, as well as the output from a few possibly relevant commands. Anyone know what's going on here? It's complaining about a few files that appear to exist on my system, so I'm guessing it's just some java path configuration...

Thanks!


mgalgs@sonch[!511,0.25]$ /opt/lpc/eclipse/lpcxpresso
Gtk-Message: Failed to load module "canberra-gtk-module": libcanberra-gtk-module.so: cannot open shared object file: No such file or directory

(lpcxpresso:3792): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks",

(lpcxpresso:3792): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks",

(lpcxpresso:3792): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks",

(lpcxpresso:3792): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks",

(lpcxpresso:3792): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks",

(lpcxpresso:3792): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks",

(lpcxpresso:3792): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks",

(lpcxpresso:3792): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks",

(lpcxpresso:3792): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks",

(lpcxpresso:3792): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks",

(lpcxpresso:3792): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks",

(lpcxpresso:3792): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks",

(lpcxpresso:3792): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks",

(lpcxpresso:3792): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks",

(lpcxpresso:3792): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks",

(lpcxpresso:3792): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks",
Gtk-Message: Failed to load module "canberra-gtk-module": libcanberra-gtk-module.so: cannot open shared object file: No such file or directory
Gtk-Message: Failed to load module "gnomesegvhandler": libgnomesegvhandler.so: cannot open shared object file: No such file or directory


Even though:

mgalgs@sonch[!514,0.29]$ locate libcanberra-gtk-module.so
/usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so



The log file:

!SESSION 2011-04-22 21:22:10.369 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_18
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments:  -os linux -ws gtk -arch x86

!ENTRY org.eclipse.equinox.ds 4 0 2011-04-22 21:22:11.532
!MESSAGE 
!STACK 0
org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Import-Package: org.eclipse.equinox.internal.util.event; version="1.0.0"
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1313)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1297)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:309)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:370)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1068)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:557)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:464)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:248)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:445)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:337)

!ENTRY org.eclipse.osgi 4 0 2011-04-22 21:22:14.106
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3557 or swt-pi-gtk in swt.library.path, java.library.path or the jar file
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:254)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:159)
at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:22)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
at org.eclipse.swt.widgets.Display.<clinit>(Display.java:131)
at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:516)
at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:143)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:88)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)


even though:

mgalgs@sonch[!517,0.23]$ locate libswt
/home/mgalgs/.eclipse/1430446636/configuration/org.eclipse.osgi/bundles/205/1/.cp/libswt-gtk-3557.so
/home/mgalgs/.eclipse/1430446636/configuration/org.eclipse.osgi/bundles/205/1/.cp/libswt-pi-gtk-3557.so
/home/mgalgs/.eclipse/org.eclipse.platform_3.6.1_1543616141/configuration/org.eclipse.osgi/bundles/276/1/.cp/libswt-atk-gtk-3659.so
/home/mgalgs/.eclipse/org.eclipse.platform_3.6.1_1543616141/configuration/org.eclipse.osgi/bundles/276/1/.cp/libswt-cairo-gtk-3659.so
/home/mgalgs/.eclipse/org.eclipse.platform_3.6.1_1543616141/configuration/org.eclipse.osgi/bundles/276/1/.cp/libswt-gnome-gtk-3659.so
/home/mgalgs/.eclipse/org.eclipse.platform_3.6.1_1543616141/configuration/org.eclipse.osgi/bundles/276/1/.cp/libswt-gtk-3659.so
/home/mgalgs/.eclipse/org.eclipse.platform_3.6.1_1543616141/configuration/org.eclipse.osgi/bundles/276/1/.cp/libswt-pi-gtk-3659.so
/home/mgalgs/.eclipse/org.eclipse.platform_3.6.1_1543616141/configuration/org.eclipse.osgi/bundles/276/1/.cp/libswt-xpcominit-gtk-3659.so


Thanks again for any pointers! (no pun intended...)
0 件の賞賛
返信
5 返答(返信)

1,832件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by f.altenberger on Sat Aug 30 02:12:16 MST 2014
Hi mitch!

The answer might come to late, but I was successful in running LPCXpresso 4 on Arch Linux in the past. Now I have switched to version 7.3 and in encountered the same GTK warning. Installing 'lib32-gtk-engines' from AUR solved that problem. Beside that I have only checked the other lib recommendations and it seems to work...
0 件の賞賛
返信

1,832件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mitch_feaster on Sat Apr 30 14:34:56 MST 2011
Well, I've run eclipse 3.6.2 (Helios) on my machine for at least 6 months, so I know that works... I'll have to look into the dependencies for installing 3.5...

For now I've installed Ubuntu 11.04 in a VM and will be trying it out in there

I would still love to know exactly what the installer did to my system... I did have [FONT=Courier New]libusb-1.0.so.0[/FONT] already installed in [FONT=Courier New]/usr/lib[/FONT]. It was a symbolic link, not a physical file, are you checking for that? Just looking at mtimes, are these files roughly everything that got stuck in [FONT=Courier New]/usr/lib[/FONT]? Anything else I should be aware of?


-rwxr-xr-x  1 root root   128444 Apr  8 10:55 libgdb_remote_cm3_nxp.so
-rwxr-xr-x  1 root root   128444 Apr  8 10:54 libgdb_remote_a9_nxp.so
-rwxr-xr-x  1 root root   280508 Apr  8 10:53 libproc_a9.so
-rwxr-xr-x  1 root root   284524 Apr  8 10:53 libchip_flash_cm3_nxp.so
-rwxr-xr-x  1 root root   259932 Apr  8 10:52 libproc_a7.so
-rwxr-xr-x  1 root root   128444 Apr  8 10:51 libgdb_remote_a7_nxp.so
-rwxr-xr-x  1 root root    46592 Apr  8 10:50 libusb-1.0.so.0
-rwxr-xr-x  1 root root   268172 Apr  8 10:50 libchip_flash_a9_nxp.so
-rwxr-xr-x  1 root root   128444 Apr  8 10:50 libgdb_remote_lpc11_13_nxp.so
-rwxr-xr-x  1 root root   260156 Apr  8 10:50 libproc_cm3.so
-rwxr-xr-x  1 root root     9628 Apr  8 10:49 libRDB_Link.so
-rwxr-xr-x  1 root root    17944 Apr  8 10:49 libelf.so
-rwxr-xr-x  1 root root   276364 Apr  8 10:49 libchip_flash_a7_nxp.so
-rwxr-xr-x  1 root root     9628 Apr  8 10:49 libLPC_Link.so
-rwxr-xr-x  1 root root   284524 Apr  8 10:49 libchip_flash_lpc11_13_nxp.so



Sorry about my delayed response, and thanks for the suggestions. I'll let you know how it goes.
0 件の賞賛
返信

1,832件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Luis Digital on Sat Apr 23 11:37:37 MST 2011
It seems as if eclipse can not find the path to your files. A problem of the environment variable. We must remember that you need to reboot the system so that everything is in order the first time.

It also may recommend installing eclipse in distribution, if it works, then no problems installing LPCXpresso.
0 件の賞賛
返信

1,832件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Sat Apr 23 01:00:57 MST 2011
I'm sorry you are having these issues, but we do clearly state which distros of Linux we work with. We have to do this as there are so many distros and many of them do not have the components or features we require. It is also impossible to test on every distro - it is hard enough with the ones we do support.

I don't know anything about your Linux distro, but I would guess from what you have posted, that one of the problems is that it does not support the version of GTK that eclipse requires. You might try searching for information on how to run Eclipse on your distro - this version of LPCXpresso uses the Eclipse v3.5 ("Galileo") release.

We don't particularly like having to install as root, but this is mainly due to the way certain functions we require on USB have been implemented in Linux requires the debug driver to run as root. Yes, we do install libusb-1.0.so, but (and I need to double-check this) only if it does not already exist.

I think your best route forward is to do as larryvc suggested and install a VM, install one of the supported distros in there, and then install LPCXpresso for Linux. Of course, there is still no guarantee that LPCXpresso will work, if the underlying OS or hardware isn't up to it.

Best Regards
0 件の賞賛
返信

1,832件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by larryvc on Fri Apr 22 23:10:58 MST 2011

Quote: mitch_feaster
Hi, I have a few questions about the Linux IDE installer. I'm using Arch Linux. I know it's impossible to support every Linux distro, but since I don't have a copy of Windows and run Arch on all my machines I'm kind of out of options short of installing a new OS, so I'd love to get this debug'd...

Thanks again for any pointers! (no pun intended...)



Hi Mitch,

Unfortunately I think you will find that you are out of luck for your Arch Linux distro.  I'm sure you saw this, you need to login:

http://lpcxpresso.code-red-tech.com/LPCXpresso/Linux

You could run Ubuntu in a VM and install LPCXpresso there.

CodeRedSupport will probably be better able to answer your questions.

Whenever I give pointers the pun is intended.:)

Former unix/linux guru - well almost,
Larry
0 件の賞賛
返信