Trying to build an android app on Qt5.4. - C++ or Other Android Development Languages

Hi guys,
My first time here so if this is the wrong place (I have a strong feeling that this might be true) feel free to move/remove it.
I was trying to build a simple app for android. I'm suing Qt5.4 with qtcreator. This app is meant to calculate some properties of steam (engineering stuff). This app links to a library called freesteam, which in terms links to the GNU Scientifc Library I believe. It runs fine when build for desktop but when using the android for armeabi-v7a it fails with an error saying: "#error Bionic header ctype.h does not define either _U nor _CTYPE_U" .
I was told that this problem is not related to Qt so I started digging around the internet and found out that this might have something to do with some ctype_base.h and ctpye.h from NDK not being in sync (?) with the bionic version of ctype.h.
Any ideas of how I might go about solving this issue?
Thank you for your time and/or any replies.

Have you built the GNU SL with NDK for Android?

Related

[Q] Beginner Help: GIS app

Hey DEVs,
I've been a power user for almost a year now. I really really dig Android and I feel its about time that I should start developing for this awesome platform too.
I've previously worked in Java and MySQL but I'm completely new to Android Development. Noob is another word to sum it all up. I've tried few video tutorials by setting up SDK and Eclipse. So far that has worked pretty fine for me. I'm now planning to work on a GIS app that could at least incorporate local POIs of where I live.
Its just that I don't really know where to start things from. I've already spent few days looking for appropriate stuff but whatever I came across, was more like scattered pieces of a Jigsaw puzzle. Google Map APIs is another thing that I need alot to learn about ! so Kindly guide me through and give me something to start with ....... I'l be very very grateful !!
regards,
an aspiring dev !
I wrote a custom GIS android app in flash builder 4.5.1, the code base is flex and actionscript using ESRI's arcserver flex api and uses adobe air for native integration on a mobile device. The web service is a local service I am serving up through the town I work for, it is using ArcServer to serve the data. You can check out the app in the android market its called Vernon GIS Fire. ESRI also has an app in the market, it allows you to search their resource center for different web services, you could upload your own data in the resource center and serve it up using their resoucres
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums
Moving to Q&A

[Q] Full Java Virtual Machine - Is it a possibility?

So if this is a stupid question - please be kind.
It seems the Prime has the power to run the full Java instead of the phone based version.
I noticed this the other day when I was trying to run a java video app from within BlackBoard for one of my assignments. I just get a bunch of symbols at the top of the frame and it extends the screen endlessly to the right.
So is adding the full java something that can be done in a new firmware update or be a part of a rooting package of the future? It sure would be nice to take advantage of the power of this tablet by adding the upgraded java.
Thoughts? Suggestions? Am I crazy?
Dalvik is a full JVM, it's just that Android doesn't implement a lot of the Java libraries dedicated to writing desktop apps. It might not be too much work to get, e.g., hidden Java applets running. It would be a lot of work to get Java applications with graphical interfaces working.
I think it'd be cool to run a Minecraft server off my tablet... but that's just me.
Noxious Ninja said:
Dalvik is a full JVM, it's just that Android doesn't implement a lot of the Java libraries dedicated to writing desktop apps. It might not be too much work to get, e.g., hidden Java applets running. It would be a lot of work to get Java applications with graphical interfaces working.
Click to expand...
Click to collapse
But this tablet has the horsepower to run it if it were done, correct? I'm just thinking quad core tablet- a GB of ram. Seems like a ripe apple for the developers to add something a little more tricked out in the software now that there is hardware that would support it.
Of course I am not a developer, but my understanding is java is scaled back due to hardware limitations. The Prime is a beast of a tablet. What would it take for this to happen?
redraider II said:
What would it take for this to happen?
Click to expand...
Click to collapse
A lot of time and money? Months of work at an absolute minimum. I don't know all the missing APIs, but at least pretty much all the graphics stuff from desktop Java is missing on Android.
Noxious Ninja said:
A lot of time and money? Months of work at an absolute minimum. I don't know all the missing APIs, but at least pretty much all the graphics stuff from desktop Java is missing on Android.
Click to expand...
Click to collapse
Oh crap. Well..... I suppose that hope just went out the window.
I am happy with the Prime as it is. I was just curious about the possibilities of taking it to the next level java wise now that there are devices capable of running it.
I see you are in SA, Noxious. I'm just up the road in Austin. Have to come down there every other month or so to Methodist Transplant hospital. Had a liver transplant almost 5 years ago now. Graduated from Judson.
Thanks for your replies.
RedRaider II
You can run Java SE and even a JDK but you lose Android integration. Example: I have JRE/JDK and most of the Android SDK running on mine, in a Debian chroot. All I am missing seems to be a couple x86 C/C++ programs that I don't know where to find the source for, otherwise I could get them ported to ARM and do Android development on my tablet with the usual build system (not what terminal ide does).
But note that if you want to do GUI crap in Java, like AWT/Swing/JWT, then you need the x11/vnc stuff or to push the built code to another machine you can remote into. Running headless Java code is also possible via dalvik (just like the Android SDK does for what goes into .apk files) in some cases but I would not want to test complicated parts of core libs and classpath dancing.
Sent from my Transformer Prime TF201 using Tapatalk
Run Linux (ARMel or ARMhf) OS ontop of Android and run "ARM_Linux_Moder" from the following link after cloning it to the Linux file system
https://github.com/S0AndS0/Debian-Kit-Mods
Full directions are in readme file and I've a guide on xda and google docs to set up Linux on Android using Debian Kit.
Currently you can run JDK hard or soft float on Android and run almost any .jar file or java program that runs on PC Linux OS's using the scripts provided and install Java dependent software I've tested and scripted installers for.
I'll be working on Android SDK and NDK soon.
Sent from my SPH-D700 using xda app-developers app
Khyrdantai said:
I think it'd be cool to run a Minecraft server off my tablet... but that's just me.
Click to expand...
Click to collapse
I think it would be great too

[Q] Android technical introduction

Hi. I'm about to get my first Android phone, and would naturally like to know more about the OS. I would describe myself as intimately familiar with ordinary GNU/Linux systems, but let's face it, Android is hardly your ordinary such creature. Moreover, there seems to be very few technical introductions to Android around; those I've found tend to be idiotic user's guides (not technical at all) or focused on software development (interesting, but not what I'm looking for right now).
Things I wonder about with Android include:
There's an unusual libc, right? Is the GNU userland around, though?
The file system directory structure. It's hardly LSB-compliant, eh?
The package system. Everything I've come across is centered around the SDK, and hides many of the details of what goes on here. Sub-questions: Is it only "apps" (gah, I hate the word, I'm sorry) that use the package manager, or is everything covered by it, as in a normal Linux system?
The boot loader. Experience with other ARM/non-x86-systems indicate this is a world very different from GRUB, and also a highly varied one.
How do shared libraries fit into the Android ecosystem? Some places I get the impression everything is static. Is that really true?
What's this non-X display system? How do you configure it, etc.?
What's the init system like?
As far as I've understood, the actual phone software (is "baseband" the right terminology?) tends to be proprietary and separate from the OS. How does it fit into all of this? Does the OS execute code at some mysterious memory location? Is some special-purpose hardware run? Is it just a standard process? Is it in kernel-space?
I'm not looking to get these questions answered here. Rather, I'm asking: Are there any documents or books around that try to fill the role of bringing an experienced Linux user with decent development background and technical knowledge into Android?

Best Way to Develop A Simple App?

Hello,
I am a total novice. However, I'd like to develop a simple timecard app for Android, specifically targeted like the apps below.
http://www.appato.com/edward-pereira/wrap-time-time-card-for-film-crews/
http://www.crewtimecard.com/
These only exist for Apple products, though. What is the easiest, most straight-forward (Windows-based) software for creating such an app? I've heard of something called Eclipse...? Or there's some Google thing?
Thanks!
You need eclipse ide and android adt plugin for exclipse to code for android.Also you need android sdk for the api's.Googling "how to setup eclipse for android development" will give instructions for those from android developers website
Sent from my GT-N7000 using xda app-developers app
thanks vijai2011. Is Eclipse easy to learn? Is there something easier that may not be TOO basic, so that I can create a timecard app like the ones I linked to above?
You dont have to learn to use eclipse .All you you need to know is java and few things about android resources which you can find at android developer website.They will pretty much cover everything.
But without java,you cannot take even the first step of app coding.Heart of app coding is java.
Sent from my GT-N7000 using xda app-developers app
I see... so there really isn't something similar to Adobe Dreamweaver for android apps?
daniel178 said:
I see... so there really isn't something similar to Adobe Dreamweaver for android apps?
Click to expand...
Click to collapse
Like Adobe Dreamweaver lets you design your web layout pages with PHP coding ... Eclipse lets you design the App layout with java coding. Its pretty much similar.
You can even use Netbeans or similar IDE's, but most developers use Eclipse and its the one that's being recommended by Google, I guess.
Thanks... I am little intimidated by Eclipse. Is it mostly graphical? can I get by without any coding? You see the type of app I want to create....
Also, have you heard of Phonegap? Is this easier/better/more or less limiting?
Eclipse is fully gui.You go through a wizard to create a new project,adding app icon,creating main activit(ies),select lowest api and the api for app then you get into a screen like a text editor where you type java,then go to android manifest then added the created activity,give perm and export the app signed.Even the adb is included at the bottom toolbar for easy debugging in real time .
So its pretty much straight forward but it can take sometime for the first time.
Sent from my GT-N7000 using xda app-developers app
Hmm, sounds like there's some java (at least) coding involved. Can I get by without any manual coding at all?
Also, to create an app like the timecard things above, for Android, what version of Eclipse would be best (simplest, yet able to do the job well).?
Well....Its not some java...It 99% java the remaining 1% is for the look and feel that you put to your preference .That is why I said
But without java,you cannot take even the first step of app coding.Heart of app coding is java.
Click to expand...
Click to collapse
on post #4
No...you dont need any specific version of java.Take the latest eclipse IDE and the latest ADT plugin and code it.There is nothing you can do without manual work of typing java.You cannot do those web page design using dreamweaver here Here is my first app I wrote.There is also the source code attached at the bottom.See how long the code is just to invoke a activity of another app with a default argument.
This is how I set up eclipse:
You must have sdk pre-installed for this.Also sdk needs a 32bit java JDK to work.(you need 32bit irrespective of if u run 32 or 64bit.Dont know why is that so.SDK never recognized my 32bit JDK)
Install eclipse classic
follow this to install ADT
daniel178 said:
Hello,
I am a total novice. However, I'd like to develop a simple timecard app for Android, specifically targeted like the apps below.
http://www.appato.com/edward-pereira/wrap-time-time-card-for-film-crews/
http://www.crewtimecard.com/
These only exist for Apple products, though. What is the easiest, most straight-forward (Windows-based) software for creating such an app? I've heard of something called Eclipse...? Or there's some Google thing?
Thanks!
Click to expand...
Click to collapse
Checkout HELLS-KITCHEN. It's a great starting point. With this Distro and a million Tutorials on XDA, you should be able to find what your looking for.
what about Flash? I've watched a couple of video tutorials on using Flash 5.5 and up to create Android apps, and it seems pretty graphical-only (no or less coding -- keep in mind my app is very simple). Would this be a viable option?
What ever you try,The last and final destination is TO USE JAVA for app even if the app is a "Simple" Hello world app!You have to have a main activity,type in the codes etc....You dont get it out my clicking out on wizards like:
Do you want Android app?click next
Do you need it to be simple?click next
What features you need?Select them.
If you are too lazy to type out codes or dont know java,Why not just try any alternative in play store?It is more Graphical and is only few taps
Sent from my GT-N7000 using xda app-developers app
Alternatively you could try to use phonegap.com or usepropeller.com / simplr.mobi.

[Help] Compile Linphone with G729

I tried to build it with G729 support for testing purposes as described in some forums:
Code:
make BUILD_G729=1
App compiled but I must have dome something wrong (missing dependency or some library, who knows) cause it crashes for no apparent reason during SIP calls. Somebody more experienced with app compilation with Android willing to try building it from git? Should be a piece of cake for somebody that knows what he is doing I remember having to spend over 24H just downloading and extracting 3GB+ SDKs for Android to build this tiny app

Categories

Resources