06-17-2012 01:33 PM
This is kinda a continuation of this Native forum thread:
And this JIRA bug ticket:
So the first issue is that two 32-bit libraries are required, that aren't mentioned upfront in the docs. Thus, you need to install the following packages:
$ sudo apt-get install libpng3:i386 libosmesa6:i386
Next, if you've installed any graphics drivers above and beyond what's shipped with Ubuntu, like the NVidia proprietary drivers, you'll still have problems. The trick is to make sure that libQtCascades-IDE.so (the library that implements QML preview) only sees Mesa's OpenGL library. You can do this, by setting the right LD_LIBRARY_PATH. For example, this is the script I use to start the IDE:
Now lets say you're like me, and run Fedora on your machine(s)... (I actually installed Ubuntu on my laptop, so RIM would acknowledge by bug reports, but I'm not reinstalling my desktop.) You still have options. You just need access to an Ubuntu machine and/or repository.
The first thing you need to do is grab the uncommon versions of libjpeg, libpng, and libosmesa that are required, from an Ubuntu machine or repository. (URLs in the linked forum thread) Then, you also need to dig up the right 32-bit Ubuntu versions of Mesa's libGL.so.* (/usr/lib/i386-linux-gnu/mesa/) and libglapi.so.* (/usr/lib/i386-linux-gnu/). These may be included with the same packages, but I don't rememeber. I just copied them off my laptop.
Once you've collected all these library, put them in some convenient directory and update the LD_LIBRARY_PATH string in the above script to point to it.
I should also mention that I've discovered a strange bug on my laptop, where it looks like the color channels are swapped in the QML preview window. (you won't notice it until you care if something is red or green). However, my desktop (which is far less of a "supported" configuration) doesn't have this problem at all.
Finally, as proof I got this working, here's a screenshot from my desktop:
06-23-2012 07:37 PM
dkonigs, could you please look and say md5 of libGL.so and libglapi.so? By the way I can't find anywhere in packages libglapi.so, at ubuntu x86. Or upload your whole folder with libs somewhere.
06-23-2012 08:35 PM
These are the Ubuntu packages for those two remaining libraries:
Just download the i386 versions, unpack them, and put the libraries somewhere in the LD_LIBRARY_PATH you set before launching the NDK IDE.
06-24-2012 02:31 AM
Wow ! You're my hero !!
06-24-2012 06:09 AM
There is new problem, libpng versions conflict. :/ Are you using Fedora 17? Or 16?
Here is log message in terminal:
libpng warning: Application built with libpng-1.2.40 but running with 1.5.10
06-24-2012 12:56 PM
I"m still on Fedora 16 here, so I have "libpng12.so.0.49.0" installed normally, as well as "libpng.so.3.49.0" to satisfy the special dependencies of libQtCascades-IDE.so.
06-24-2012 08:27 PM