Cross compilation Android



  • Hello,
    I have developed an upnp device for my computer with the cybergarage library .
    Now, I want to compile this program into a android device with necessitas.
    Is there anyone have an idea of how to do that?

    Thank you



  • I have make this in my library folder

    @./configure
    CXXFLAGS=/home/ddps/necessitas/android-ndk/toolchains/
    arm-linux-androideabi-4.4.3/prebuilt/linux-x86/arm-linux-androideabi/bin/g++
    CXX=/home/ddps/necessitas/android-ndk/toolchains/
    arm-linux-androideabi-4.4.3/prebuilt/linux-x86/arm-linux-androideabi/bin/gcc@

    and then, I copy the library into Android/libs/armeabi

    to finish, I modify my project.pro like this:
    @
    unix:!macx: LIBS += -L$$PWD/android/libs/armeabi/cybergarage/lib/unix/ -lclink

    INCLUDEPATH += $$PWD/android/libs/armeabi/cybergarage/lib/unix
    DEPENDPATH += $$PWD/android/libs/armeabi/cybergarage/lib/unix

    unix:!macx: PRE_TARGETDEPS += $$PWD/android/libs/armeabi/cybergarage/lib/unix/libclink.a@

    it don't work any.
    I think that the solution is not far...


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.