Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. ANDROID_NDK_ROOT missing
Forum Updated to NodeBB v4.3 + New Features

ANDROID_NDK_ROOT missing

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 3 Posters 10.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    janbor
    wrote on last edited by
    #1

    I have installed the android ndk and qt 5.2. I launch qtCreator and follow the description on how to make the Notepad demo program. Compilation goes fine, but when I try to run I get the message: "You need to set the ANDROID_NDK_ROOT environment variable to point to your Android NDK.". I have set this variable:

    env |grep NDK
    ANDROID_NDK_ROOT=/opt/android-ndk-r9b/

    ..... but that changes nothing. I have also run the script setenv-android.sh setting a bunch of parameters, but this also changes nothing. Anyone??

    I use Fedora 20.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kriu
      wrote on last edited by
      #2

      it's about the internal settings for QtCreator, not about environmental variables.

      Tools -> Options -> Android

      1 Reply Last reply
      0
      • J Offline
        J Offline
        janbor
        wrote on last edited by
        #3

        Oh, yeah. Thanks.

        1 Reply Last reply
        0
        • K Offline
          K Offline
          khazaddim
          wrote on last edited by
          #4

          If anyone is having this problem on windows try adding a new environment variable to windows (outside of Qt Creator), ANDROID_NDK_ROOT and giving it the path (C:\Android\AndroidNDK e.g.). In order to get my system to work I had to:

          1. Create this variable in Windows environment variables
          2. Have the setting in my Qt environment variables
          3. have the setting in Qt->Tools -> Options -> Android..

          I am using Windows 64 bit.
          Qt 5.2

          So you would add it to System->Advanced system settings->Environment variables->new...

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved