How to initialize AASSET_Manager on SDL android app - c++

How do i use assetmanager.h from an SDL android app from android studio? Do i have to edit SDL_Activity.java? With what?
Calling the functions from assetmanager.h crashes the app. Someone then commented that i need to get the java object or something along those lines before using the API.
I've been trying for weeks without success...
Aassetmager_openDir will crash the app on Android.
I have already added the -landroid to the mk file...
C++, on Android studio and using the SDL2 library...

Related

wxWidgets failed to register window class on Windows when using wxMathPlot as DLL

I am writing a cross platform application in C++ that is creating some plots. For GUI I am using wxWidgets 3.1.3 and for plots wxMathPlot.
On linux it works great but on Windows I get the following error:
...\src\msw\window.cpp[3994]:assert "wclass" failed in wxWindow::MSWCreate(): failed to register window class?
I am using Visual Studio 2019. The error is present on both Debug and Release, but only when I am using wxMathPlot as DLL.
I've tried to recompile wxWidgets and to add propriety sheet from wxWidgets to wxMathPlot project but I get the same error.
It's not a requirement of the project to use wxMathPlot as DLL but I am curious on why this behavior happens.
It's not clear if you use wxWidgets as a DLL as well, but you really need to do it in order for it to work, i.e. both the mathplot DLL and your main application must define WXUSINGDLL when compiling and link with the DLL import libraries. Otherwise you'd end up with 2 copies of the same static library in the same process, which can create many problems.

No QAudioDeviceInfo::availableDevices on Windows

I'm using Visual Studio 2015 Community to make a Qt-based GUI in C++ which includes a microphone input. I'm testing the microphone part, and am looping through QAudioDeviceInfo::AvailableDevices(QAudio::Mode::AudioInput) (and AudioOutput for that matter) and nothing is coming up. I've checked that my project includes QtMultimedia, and I definitely have audio devices on this computer. I'm stuck with an existing compiled Qt (since this application is plugging into another project), but I've verified that the Qt install has the QtMultimedia and the Windows audio plugins. The Qt version is 5.9.3.
The only thing I can think of is that the project isn't including the right plugin, but I don't know how to change that.
The issue was that I needed to run "windeployqt" on the built executable to get all of the plugins into the right place. I'm curious why it didn't work without that, but that's a VS + Qt plugin problem, not a Qt problem.

Cannot find MSVCP140D_APP.dll

I am trying to make a simple rendering engine using opengl & freeglut. I am doing the rendering engine part in a seperate c++ project under the same solution and compiling it as a DLL, then using it in the "main" engine project.
I am having some trouble when I try to initialize the rendering engine. It complains about not being able to find MSVCP140D_APP.dll and VCRUNTIME140D_APP.dll
I know these dll's are related to microsoft visual C++ redist package, but I do have the very newest version installed. Could this be something wrong with my project properties on my Rendering Project?
Image of solution setup

Android app doesn't recognize changes made in XCode

I'm trying to build a project in cocos2d-x, but when I modify a class in XCode, the iOS version changes, but when I run the app in my Android device by Eclipse, the app doesn't change.
How can I fix this?
I just did the setup as said in the cocos-2d X v3.0 and runned build_native.py.
Cocos2d-x 3.0 eclipse projects do not rebuild the native code. You need to run the build_native.py script from the command line each time you change C++ code. Then you can load it onto your android device (through eclipse if you want).

How to get Qt working on the blackberry playbook

I am completely frustrated because I have been trying to install Qt on Blackberry Playbook for over a month now. I have followed every single tutorial out there (so much that every time I google Qt and playbook, all links are purple instead of blue). I have downloaded Qt-everywhere source code and tried to compile it using the flags found here, but it tells me that it cannot install opengl, sqlite etc, so I use the --continue option with ./configure and that too crashes saying that it can't find qcc.
I have noticed a Qt library directory when browsing incudes in the qnx IDE, in the project explorer. The thing is when i write a Qt application it can't find the headers.
So Please Help, anyone who has done this in the RECENT past . ps. i am new to cross compiling on linux systems.
Probably quite late to say, but I have created a BlackBerry Native Plugin for Visual Studio 2015, where you can develop apps for BlackBerry PlayBook and Qt in particular.
Simply create new project "Other Languages / BlackBerry Projects / Qt / PlayBook - Qt4 Core Application" and you are ready to go. It downloads all required libraries via NuGet during first build.