Blackberry simulator: can't lower graphics settings in view menu - opengl

I downloaded the simulator for BB Bold 9930 (v. 7.1) at http://us.blackberry.com/sites/developers/resources/simulators.html
My Windows VM follows the system requirements at http://developer.blackberry.com/bbos/java/documentation/the_bb_smrtphn_simulator_447179_11.html, except for one thing: OpenGL 1.x compatibility, which I can't figure out how to test (see Windows 7 on Virtualbox virtual machine: is it OpenGL 1.x compatible?).
So installing this and launching C:\Program Files\Research In Motion......\9930.bat causes the following error to come up:
"An OpenGL 1.x + compatible video card with recent video drivers is required for graphics acceleration. Please try a lower graphics acceleration setting by navigating to the view menu".
Clicking on the view menu is impossible until I click OK on the modal dialog, but when I do so, the program immediately crashes with the message "BlackBerry Handheld Simulator has stopped working".
Is there any way around (through the command line, for instance?)

You should be able to force the simulator not to use the graphics acceleration at all (which hopefully would work around your problem).
See this BlackBerry forum thread here.
Basically, just include this in your simulator config file:
<?xml version="1.0" encoding="utf-8"?>
<fledge-configuration>
<BodyBuilder::opengl-acceleration>0</BodyBuilder::opengl-acceleration>
The setting of 0 turns off graphics acceleration. You can either turn it off by default in your simulators, or just in one particular simulator, by using the fledge-saved.conf file, or 9900-saved.conf file (for example, to change the setting on the 9900 simulator).
On a Windows system, these config files would be located somewhere like:
C:\Users\myname\net\rim\fledge-2\

Related

GLSL shaders won't compile on VM Fusion - Windows 10/Visual Studio 2017

I have VMFusion installed on an external hard drive that I have connected to my 2014 Macbook Pro Retina Display. In this VM I have Windows 10 installed (not genuine) and Visual Studio 2017. I have my solution loaded (we use OpenGL), but when I compile and run, the console complains "error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, and 1.00 ES" when compiling any of our shaders.
In the VMFusion settings menu under Display, I see that the option for "Accelerate 3D Graphics" is already on. This option supposedly "Supports DirectX 10 and OpenGL 3.3". So I'm confused as to why I'm getting the error message about GLSL when I'm running my project. Does anyone have any ideas as to what is going on or how to solve this? I have the proper nuget packages installed and it seems like all the C++ code compiles just fine. It's purely the shaders. Is this a VMFusion problem or something not set up with my laptop?
On your virtual machine, try to add next variables:
MESA_GL_VERSION_OVERRIDE 3.3
MESA_GLES_VERSION_OVERRIDE 3.2
MESA_GLSL_VERSION_OVERRIDE 330
in both sections "User variables" and "System variables"
To open "Advanced system settings" follow Control Panel -> System and Security -> System click on "Adanced system settings"
It's difficult to answer without further details (your GPU, the exact settings of the VM, etc).
However, I would suggest to check a few things:
Are VMware tools installed correctly on the guest OS?
What kind of profile are you requesting when you create your context (core or compatibility?) As far as I understand, VMware guests can get only OpenGL 3.3 core profile.
Then you can also have a look at VMware Fusion documentation about these issues here

XCode 7.2 unable to view memory profiling info / Device is offline in instruments

I'm running an iOS demo using an Objective C++ library (some .mm files) and would like to profile the app's memory usage with Instruments. However, I see that the debug tab does not show any memory information.
Attempting to profile the app in instruments shows my device, but it is grayed out and says it's offline
How can I fix my XCode to allow for memory debugging/profiling of that project? Does it have something to do with using an Objective C++ libraries?
You can check whether your project's Zombie Objects are enabled.
Open:
Product -> Scheme -> Edit scheme -> run-Diagnostics -> Enable Zombie Objects
If open please close then run.
EDIT: The issue is twofold, the "unable to profile on device is an iOS 9.x.x bug, here's a support thread: https://forums.developer.apple.com/thread/16242 . Here are the steps one of the posters suggested:
Power down the device completely.
Unplug the device from your Mac.
Close Xcode and Instruments.
Restart the device & plug it back in
once it has restarted.
Re-launch Xcode.
Here, my device was disabled
and Xcode indicated that the device was not available for use.
Clean,
Build, Profile (Command-I).
When Instruments is launched the device
was enabled.
Upon selecting it, a message was displayed with the
title "Enable this device for development?" and message "This will
open Xcode and enable this device for development."
Click "Open
Xcode".
Here I did not notice anything being displayed - no
additional messages indicating anything had been done or that the
device was or was not available for development.
Opening the Devices
window, the device appeared to be available. Here I was able to
select the device in Instruments and profile it. I was also again
able to delete installed apps from the Devices window.
Desinstalling the app from the device and then profiling works for me.

Qt camera example does not find the laptop's webcam

I'm using Debian Jessie and dmesg | grep video returns:
[ 22.280407] Linux video capture interface: v2.00
[ 22.790704] uvcvideo: Found UVC 1.00 device Lenovo EasyCamera (13d3:5170)
[ 22.796546] usbcore: registered new interface driver uvcvideo
The example compiles fine but upon launch i get a dialog telling me that the camera service is missing. I'm using Qt 5.5.0. This question points to a similar issue but it's for windows. Also I've installed Qt using the installer provided at it's web site. I've tested my webcam with Cheese application and it works but QCameraInfo::availableCameras() returns nothing.
I don't know if this is a definitive answer, but in my experience the dreaded "camera service is missing" comes down to exactly what the message says; for some reason the media back-end that Qt uses to get video input from a camera is broken or miss-configured in some way. In my case I had this problem in the following situations:
1. Building Qt from source
Qt build system SILENTLY DISABLES FEATURES if you don't have all the dependencies that it requires to include them in the build. Make sure to read this official article very carefully for your platform. I lost count of the times this has ruined my <insert favourite period of time such as day/week/year here >, and not only for the multimedia module...
2. Missing some gstreamer packages on my Ubuntu
I develop for Linux & Debian mostly, and on those platforms Qt depends on gstreamer backend. gstreamer is basically a plugin architecture in the core with every single feature added as plugins, and with endless possibilities of manual intervention through configuration files. See where is this is going? Clue: make sure you have all the plugins you want installed and configured properly. Here is a link to some gstreamer tools you can use. Same probably goes for other back-ends on other platforms.
And a pro tip in the end: Since both Qt5.5 gstreamer0.1 (old) and gstreamer1.0 (new) are supported as back-ends, and since Qt5.6 the new one is default. This will give you some room for experimenting, for example if the old does not work, you can try the new etc.
Hope this was useful!

VirtualBox Battle.net error

I recently installed windows 7 on VirtualBox and installed battle.net.
When I start battle.net I get this error: http://i.imgur.com/006cpRC.png
I googled a lot but I was not able to find an anwser :/
Also tried to put Windows 7 on VMWare but that resulted in me getting the same error.
Before this I tried downloading the driver for the GPU I have but then I get this error, http://i.imgur.com/kMacwB8.png
Hope you guys can help me :)
You may need to enable 3D acceleration on VirtualBox. By default it is disabled.
The steps to enable:
Right click the Windows 7 VM in Virtual Box and click Settings.
Click the Display category.
Check Enable 3D Acceleration and increase Video Memory as needed.
Install drivers:
While the VM is running, click Devices menu and then Install Guest Additions
Click Run VBoxWindowsAdditions.exe in the popup and run through the installer.
See: http://www.howtogeek.com/124479/how-to-enable-3d-acceleration-and-use-windows-aero-in-virtualbox/ for extra information.
Note that the article states the 3D acceleration is experimental and should run older games, but possibly not newer games. The article was written in 2012, so I'm not sure what the current state is. You should be able to tell if it's enabled by whether or not the Aero interface is usable.

Error executing cross-compiled codes in raspberry pi

I am having problems with a Qt GUI application I created. Basically I created the application in my ubuntu to check if it compiles and works properly, however, if I set up the cross compiler (followed a tutorial and tried a hello world which works properly) and execute my code in the pi the UI does not display properly and basically I cant do anything:
· Text disappears from buttons
· Mouse disappears from screen (therefore cant click buttons)
· Cant navigate buttons using tab key
Any clues? maybe I cant use .ui files in the pi and have to use qml? Thank you in advance.
2 Screenshots of what I get with the pi and what the program should actually look like (ignore the second LCD display):
what I get http://imageshack.us/a/img17/9986/img20130508093318.jpg
I’ve been told that Qt5 has different rendering platforms, the standard for my compiled version is “eglfs”, which is fullscreen EGL accelerated mobile application style. I need to run it another platform for example xcb or x11 with the command “./myprogram -platform xcb”. Unfortunatelly i only have the following platform options and none of them work: eglfs,linuxfb,minimal,minimalegl,offscreen. I dont now how to install these, i’ll google it see if i can find anything.
http://www.raspberrypi.org/phpBB3/viewtopic.php?t=26590&p=321556