You are not logged in.

#1 2013-01-11 13:17:51

jonoei97
Member
Registered: 2013-01-11
Posts: 3

BlackBerry Native Development Kit

I have installed the latest BlackBerry Native SDK from BlackBerry's official website, but for some reason it fails to load when attempting to run it. It returns the value of 13 back to the shell.

I have attempted installing as both root and non-root, but the problem still persists. I have some suspicions that the problem may have to do with missing 32-bit libraries, but if it is because of that, I do not know which packages to install.

Any help would be appreciated.

Offline

#2 2013-01-27 10:21:19

nwoki
Member
Registered: 2010-09-14
Posts: 67

Re: BlackBerry Native Development Kit

I get your same issue. This is the output from the log

!SESSION 2013-01-27 11:14:57.292 -----------------------------------------------
eclipse.buildId=2.1.0
java.version=1.6.0_24
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.osgi 4 0 2013-01-27 11:15:09.488
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
        /home/nwoki/.momentics/ndk-2.1.0/configuration/org.eclipse.osgi/bundles/298/1/.cp/libswt-pi-gtk-3738.so: libXtst.so.6: cannot open shared object file: No such file or directory
        no swt-pi-gtk in java.library.path
        /home/nwoki/.swt/lib/linux/x86/libswt-pi-gtk-3738.so: libXtst.so.6: cannot open shared object file: No such file or directory
        Can't load library: /home/nwoki/.swt/lib/linux/x86/libswt-pi-gtk.so

        at org.eclipse.swt.internal.Library.loadLibrary(Library.java:285)
        at org.eclipse.swt.internal.Library.loadLibrary(Library.java:194)
        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:132)
        at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:690)
        at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
        at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:153)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:95)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
        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:344)                                                   
        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:622)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1410)

trying to find out what the problem is

Offline

#3 2013-01-27 12:35:59

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,572

Re: BlackBerry Native Development Kit

java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
        /home/nwoki/.momentics/ndk-2.1.0/configuration/org.eclipse.osgi/bundles/298/1/.cp/libswt-pi-gtk-3738.so: libXtst.so.6: cannot open shared object file: No such file or directory

Archlinux supplies swt 4.2.1 , which has libswt-pi-gtk-4234.so .
The blackberry sdk needs an older version.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#4 2013-01-27 13:05:44

nwoki
Member
Registered: 2010-09-14
Posts: 67

Re: BlackBerry Native Development Kit

I sorted this out by installing the 32bit package for: libxtst

(lib32-libxtst)

let me know if this helped you

Offline

#5 2013-01-28 00:37:22

jonoei97
Member
Registered: 2013-01-11
Posts: 3

Re: BlackBerry Native Development Kit

Thanks, everyone.

I found out the solution from the following page: http://rapidberry.net/setting-up-a-64-b … velopment/. Although the instructions are for Ubuntu, the instructions do state that we need the 32-bit GTK and 32-bit X11 libraries. Add the SWT library and it should run.

Thanks again for helping me run this. smile

Offline

#6 2013-05-01 14:49:51

kaveiros
Member
From: Greece
Registered: 2010-09-08
Posts: 21

Re: BlackBerry Native Development Kit

I have the same problem. I can't start the IDE. Can anyone please tell me the exact 32bit packages that are needed? Mine are

multilib/lib32-alsa-lib 1.0.26-1
multilib/lib32-bzip2 1.0.6-1
multilib/lib32-cairo 1.12.14-3
multilib/lib32-dbus-core 1.6.8-1
multilib/lib32-expat 2.1.0-1
multilib/lib32-fontconfig 2.10.2-1
multilib/lib32-freetype2 2.4.11-1
multilib/lib32-gcc-libs 4.8.0-1
multilib/lib32-glib 1.2.10-12
multilib/lib32-glib2 2.34.3-1
multilib/lib32-glibc 2.17-4
multilib/lib32-gtk 1.2.10-13
multilib/lib32-harfbuzz 0.9.16-1
multilib/lib32-icu 51.1-1
multilib/lib32-libdrm 2.4.44-1
multilib/lib32-libffi 3.0.13-1
multilib/lib32-libgcrypt 1.5.2-1
multilib/lib32-libgpg-error 1.11-1
multilib/lib32-libice 1.0.8-1
multilib/lib32-libjpeg-turbo 1.2.1-1
multilib/lib32-libmng 1.0.10-6
multilib/lib32-libpciaccess 0.13.1-1
multilib/lib32-libpng 1.5.14-1
multilib/lib32-libsm 1.2.1-1
multilib/lib32-libtiff 4.0.3-1
multilib/lib32-libx11 1.5.0-1
multilib/lib32-libxau 1.0.7-1
multilib/lib32-libxcb 1.9-2
multilib/lib32-libxcursor 1.1.13-1
multilib/lib32-libxdamage 1.1.4-1
multilib/lib32-libxdmcp 1.1.1-1
multilib/lib32-libxext 1.3.1-1
multilib/lib32-libxfixes 5.0-1
multilib/lib32-libxft 2.3.1-1
multilib/lib32-libxi 1.7-1
multilib/lib32-libxmu 1.1.1-1
multilib/lib32-libxrandr 1.4.0-1
multilib/lib32-libxrender 0.9.7-1
multilib/lib32-libxss 1.2.2-1
multilib/lib32-libxt 1.1.3-1
multilib/lib32-libxtst 1.2.1-1
multilib/lib32-libxv 1.0.7-1
multilib/lib32-libxxf86vm 1.1.2-1
multilib/lib32-mesa 9.1.1-1
multilib/lib32-nvidia-libgl 313.30-1
multilib/lib32-nvidia-utils 313.30-1
multilib/lib32-openssl 1.0.1.e-2
multilib/lib32-pango 1.34.0-1
multilib/lib32-pcre 8.32-1
multilib/lib32-pixman 0.28.2-1
multilib/lib32-qt4 4.8.4-4
multilib/lib32-sqlite 3.7.16-1
multilib/lib32-systemd 202-1
multilib/lib32-util-linux 2.22.2-1
multilib/lib32-v4l-utils 0.9.3-1
multilib/lib32-xz 5.0.4-1
multilib/lib32-zlib 1.2.7-1

Offline

#7 2013-08-28 03:26:19

jackgris
Member
Registered: 2013-08-28
Posts: 2

Re: BlackBerry Native Development Kit

Hi! jonoei97,
Could you tell me what libraries you need install?

Thanks wink

Offline

#8 2013-08-29 15:18:58

jonoei97
Member
Registered: 2013-01-11
Posts: 3

Re: BlackBerry Native Development Kit

Sorry for the exceedingly long time I took before my reply, but I am afraid I forgot the names of the necessary packages. It has been a long time as well, and the BlackBerry Native Development Kit is no longer installed on my computer. However, I can only tell the method I used to find the necessary packages. I cross-referenced the list of 32-bit packages I installed with the list of required packages given in the link above. The package names on Ubuntu are different than those in Arch Linux, but they shouldn't differ by too much. The essential run-time packages are provided in Section Three of the above link (http://rapidberry.net/setting-up-a-64-b … velopment/). In general, the essential packages which you probably need to install relate to the 32-bit X11 and GTK ones. Remember that the 32-bit packages need to be installed and not the 64-bit ones, so be sure to enable the [multilib] repository if you run a 64-bit version of Arch Linux and to install the packages generally beginning with "lib32-(package-name)".

I am indeed sorry that I was not able to help you directly, but I hope that you can find the packages you need. I wish you the best in developing for BlackBerry!

Jonathan

Offline

#9 2013-09-29 14:48:11

kalifg
Member
Registered: 2013-09-29
Posts: 1

Re: BlackBerry Native Development Kit

Here is what I ended up needing to install (after enabling multilib repo):

To get installer to run:
lib32-libstdc++5

To get Momentics to launch:
lib32-gtk2 (pulls in a bunch of libs)
lib32-libxtst

After this Momentics would launch and looked functional except for a center window containing the error "XPCOM error 0x80004005".  Turns out the bundled xulrunner had some missing dependencies.  I installed:

lib32-alsa-lib
lib32-libxt

Which fixed some of the deps but still no luck.  I finally found
lib32-dbus-glib in the AUR (requires installing gcc-multilib, etc)
and after makepkg and install it is now working (looks like the XPCOM was for pulling up HTML documentation)!

Last edited by kalifg (2013-09-29 14:48:39)

Offline

Board footer

Powered by FluxBB