Quantcast
Channel: Qt DevNet forums: Installation and Deployment
Viewing all articles
Browse latest Browse all 2113

Qt Creator on OSX10.9 - Developing for Android problems

$
0
0
Hi everyone, A friend of mine and I are creating a very simple calculator app for a computer science project. I built it for desktop using Qt creator and it was suggested that we port it to Android. I began by following the instructions found here: http://qt-project.org/wiki/Qt5ForAndroidBuilding to the best of my abilities. I created a very basic project (I didn’t add any code at all) and tried to build. The first Error I got was: “You need to set the ANDROID_NDK_ROOT environment variable to point to your Android NDK.” It didn’t stop any building, but I was loathe to just have it sit there so I tried to figure out the problem. From my projects: ANDROID_NDK_ROOT is set to “/Users/jonathanburns/android-ndk-r9d” Which I guarantee exists (I checked like 10 times). From the previous tutorial I assumed that all it wanted was the path to the NDK and not any specific files. I also got the error “Could not read qmake configuration file”. The qmake was already set for me in Preferences -> Build & Run as “Qt/5.2.1/android_etc” Next I had a problem building period, none of the Android Virtual Machines were appearing in the list at all. I created some in the SVM and they refused to acknowledge that they were compatible. I fixed that problem via this post: http://qt-project.org/forums/viewthread/40543/ and got it past that stage. Next came the build errors. The first one was that: “bits/c++config.h was not found” My solution to this was to check to see if I had it anywhere else since the consensus on the internet was that it wasn’t looking in the right place . So I went and found the c++config.h from a different folder in the NDK, this might seem silly but I was pretty frustrated at this point. After about 10 more “Cannot find something.h”, which I moved over, I got the the error I’m at now: “error: cannot find -lgnustl_shared” “main.cpp:10: error: undefined reference to ‘__cxa_end_cleanup’” “main.o(.ARM.extab+0×0):-1: error: error: undefined reference to ‘__gxx_personality_v0’” And those errors repeated roughly 4 times each. Is there anything obvious I’m doing wrong? I’d appreciate any help at this point. Thanks :)

Viewing all articles
Browse latest Browse all 2113

Trending Articles