Hi
is there a simple example around on how to use cmake ( android-cmake ) with ndk ( C++, OpenGL ).
Basically I only look for a simple way to compile a *.cpp which uses opengl for Android 4.
Many thanks
Related
Hello!
I would like to ask about compiling existing C/C++/asm sourcecode on Android, specifically the code of the libav codec system. After that, I would like to statically link against it, and build the x264 commandline video encoder. I don't need any fancy GUI video encoding stuff, just the statically linked x264 cli tool. The libav is needed to be able to read H.264/AVC input, the x264 to encode somewhat similar H.264/AVC output.
I do have some experience in compiling that code on x86/x86_64 and MIPSEL (chinese Loongson-2f specifically) architectures in Linux with gcc/yasm, but I am a total noob, when it comes to cross-compiling unfortunately, I have only built the code sitting directly on the target system so far.
What I do have here, is a CentOS 6.0 x86_64 multilib Linux, GNU make and autoconf tools, latest Android SDK (probably not needed) and latest Android NDK toolchain (definitely needed) as well as the yasm assembler to build the ARMv7 assembler codepaths of libav and x264. I'm also able to fall back to pure C/C++ in case the asm stuff is impossible. I have found some guys having done the x264 alone using Google search, but info on how exactly they did it is quite scarce.
My primary target platform is Android 2.2 on a TI OMAP3 chipset with an ARM Cortex A8 processor that I believe has a hardware FPU, but no NEON SIMD extensions. I may also want to target slightly different hardware, but all using the ARMv7 instruction set basically.
So, if anyone has experience in cross-compiling libav/x264 or similar stuff like ffmpeg, I would greatly appreciate help in getting that done. At the moment I'm quite at a loss with cross-compiling using the NDK..
I hope I am posting in the correct subforum, it's my first post here. Thanks for any help you might be able to provide!!
I have a C++ Application that work on Ubuntu/any Distro via Terminal, And all what i want is to run it on my Android.
I have a Compressed file of the source code, So if i Followed these:
HTML:
cd /src
make
it will work on Ubuntu like a charm, now the thing i Copied this to my Droid, i had some problems with noexec, so i moved it to /data/tmp and now i don't have this issue anymore, now i get an "Magic 7F bla bla.." Error, I Think this because the source code has been compiled for Intel Architecture, so how can i Compile it for ARM?:crying:
hello linux fans
i have done this manipulation on several android devices
each time i succeed to be root
first i set a linux distribution on a sdcard for example raspbian for the arm devices
then i use a script of my own http://jeanmichel.gens.free.fr/etc/install
then
i can use every from linux
fore examples apache2 server, sshd server etc ...
you can add packages you need by apt-get install
I use all Xwindow program trought a Xserver android application but my final track is to use microxwin
any help for that will be nice you can contact me by mail [email protected] ( or hangouts )
or by this thread
i have done this manipulation on several netbooks and smartphones as soon they are rooted
there is no risk ( in my script )
of course you have the habitual risk when you are root
Hi,
i`m trying to develop simple ubuntu application. This application should connect to remove mysql server, query and display data in UbuntuListView. Project was created in Qt Creator 3.1.1 as QML app with c++ plugin (cmake).
In my cpp class, i connect to mysql server using QSqlDatabase db = QSqlDatabase::addDatabase("QMYSQL"); according to qt documentation.
On my desktop (ubuntu 14.04) application works fine (after installing libqt5sql5-mysql), but when i tried to run this application on my aquaris E4.5 ubuntu edition (using Framework ubuntu-sdk-14.10) i got this error:
QSqlDatabase: QMYSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE
Open database: false
I have found package libqt5sql5-mysql 5.3.0+dfsg-2ubuntu9 (armhf binary) for utopic unicorn. In qt creator, under Tools->Options->Ubuntu, I clicked on Maintain button in Framework ubuntu-sdk-14.10 and install that package. But this didn`t solve my problem.
Do yo have any ideas ?
If you want to include said libaries, you need to ship them as .so files in your click package. Don't ask me how to do it (I don't know in this specific case), but simply installing it in your chroot won't work.
Does anyone have a build of lz4 compression or could explain to me how I can build it with NDK for Android? I want to run this compression utility from ADB on my phones (OnePlusOne and Galaxy S7).
I found lz4 source code here:
https://android.googlesource.com/platform/external/lz4/
Apparently NDK now uses .bp files instead of .mk.
kdar1987 said:
Does anyone have a build of lz4 compression or could explain to me how I can build it with NDK for Android? I want to run this compression utility from ADB on my phones (OnePlusOne and Galaxy S7).
I found lz4 source code here:
https://android.googlesource.com/platform/external/lz4/
Apparently NDK now uses .bp files instead of .mk.
Click to expand...
Click to collapse
If you want to build it for unnoficial devices such as the ones youve listed, follow any tutorial to download the CyanogenMod source (or other rom that supports those) and after lunching the device you want to build for, run 'make liblz4'
For device-independent tools like lz4, you can also lunch for some generic device with a matching CPU architecture.
And you need "make lz4" if you want the CLI tool.
kdar1987 said:
Does anyone have a build of lz4 compression or could explain to me how I can build it with NDK for Android? I want to run this compression utility from ADB on my phones (OnePlusOne and Galaxy S7).
I found lz4 source code here:
https://android.googlesource.com/platform/external/lz4/
Apparently NDK now uses .bp files instead of .mk.
Click to expand...
Click to collapse
It's ndk build/aosp build env methods aren't straight forward to make it a binary, only a lib, so i went ahead and compiled it into a binary. I didn't test it or anything, just compiled it statically for arm.
I tried using this and got
: Error 65 : Allocation error : not enough memory
Would this be because the program was built for 32-bit and my tablet is 64-bit? Can anyone tell if that message is from the system, that the program never loaded; or if that message is being printed by the program?