05-05-2012 12:26 AM - edited 05-05-2012 01:27 AM
So I've long since gotten everything in place for the NDK to work perfectly fine on my Fedora (x86_64) machines. It was just a matter of hunting down the right 32-bit libraries and installing them.
Now I'm trying to get the newest BB10 tools working, including the QML preview feature. I've noticed that this feature depends on two libraries that are not in the Fedora 16 repositories:
libOSMesa.so.6
libjpeg.so.8
Without these libraries installed, opening the QML editor causes an error popup complaining about them missing. So I went ahead and found the Ubuntu packages for them, extracted the libraries, and copied them into place on my machine. I've tried several sources/approaches with similar results, but have most recently used these sources:
http://packages.ubuntu.com/oneiric-updates/libosme
http://packages.ubuntu.com/oneiric/libjpeg8
Once all these libraries are installed, the missing library errors go away. Instead, opening the QML preview window now shows the following purple text in the terminal window I launched the NDK IDE from:
WRN: TJIZ failed: /usr/local/jenkins/workspace/cs4-BB10_0_04-uifw-li
WRN: TJIF failed: /usr/local/jenkins/workspace/cs4-BB10_0_04-uifw-li
Statement: tr = _MGEGL2_CompileShader(g, pProgram, pcName)
Information: Error 0x80000002: Out of memory
WRN: TJIZ failed: /usr/local/jenkins/workspace/cs4-BB10_0_04-uifw-li
WRN: TJIZ failed: /usr/local/jenkins/workspace/cs4-BB10_0_04-uifw-li
I'm not sure what these errors mean, but it seems like pretty direct information for someone at RIM with access to the source code. So any ideas?
P.S. I've tried various ways of making these libraries available, and they all ultimately have the exact same results.
The only other possible bit of useful information is that I have the nVidia graphics drivers installed on the machine.
I also tried switching to Fedora's own "nouveau" drivers, which actually causes the IDE to do an outright segfault when I open the QML editor (instead of just not showing the preview and dumping those messages to the console).
05-06-2012 09:39 PM
It's also not working on ubuntu oneiric 64 bit . At startup it says:
"/opt/bbndk/10.0.4-beta/target/linux/x86/usr/lib/l
I did install the requisite libs via the ubuntu package.
05-07-2012 04:29 PM
Please log a bug, being sure to include your actual email. From within Eclipse:
Help > Report a Bug...
Once done please reply back and I will be sure to get it escalated to development.
05-07-2012 10:52 PM
Okay, bug reported as suggested, currently in the system as TOOL-1008
05-08-2012 09:12 AM
Thanks, will escalate shortly.
Just to note that it may get rejected due to Fedora not being officially supported, but you will be able to see all changes as they occur.
05-10-2012 11:48 AM
Okay, I see the issue was rejected out of hand, as expected.
If I'm now going to find a spare hard drive and install Ubnutu, just so you'll pay attention to my bug report, can I get away with the latest version of Ubuntu that people actually run (12.04), or do I have to run a year old version no actual users care about anymore? (11.04)
05-10-2012 11:58 AM
Ubuntu *should* function as expected, so really if you use Ubuntu there should be no need to log this bug ![]()
Testing was likely focused on Ubuntu 11.04, but Ubuntu in general should function the same way. If it fails I will push to make sure we get any bug logged investigated.
05-12-2012 02:53 AM
Okay, I just reproduced the same issue on my laptop, which is freshly reinstalled with Ubuntu :-)
Going to send another bug report soon, and hopefully you'll actually look at it this time.
I'm seriously thinking its some weird conflict between the nVidia driver's libraries and libOSMesa.
Before spending all the time on this, I did a quicker Ubuntu install into VirtualBox, obviously not using the nVidia drivers, and the QML preview window actually worked.
05-12-2012 10:39 AM
Issue reproduced on the "officially supported" OS, and resubmitted as TOOL-1041.
While technically unrelated, I think the answer to Marc's issue is a step that I think is omitted from the docs at present:
$ sudo apt-get install libpng3:i386 libosmesa6:i386
05-14-2012 09:32 AM
Thanks for logging! As you are now using an OS listed as supported development should be able to investigate further. You will receive updates as they become available through the Issue Tracker Item.