OpenCV Native Samples are not building

后端 未结 2 989
情话喂你
情话喂你 2020-12-05 03:23

I have spent a long while trying to get this thing to work, and I think my error is very trivial but I have been unable to fix it. Plus, I know there have been questions abo

相关标签:
2条回答
  • 2020-12-05 03:57

    If you use Windows 7, you can set it like this:

    1. Right click on "My Computer"
    2. Click on "Properties"
    3. Click on "Advanced System"
    4. Make a new variable NDKROOT
    5. Change the value to your NDK path
    6. Restart Eclipse
    7. Click "OK"
    0 讨论(0)
  • 2020-12-05 04:08

    Try the following steps:

    1. Head to the project's properties. If you're using Windows, the shortcut is Alt + Enter; or simply right-click the project name to find its properties.

    2. Go to the C/C++ Build section; under Builder Settings tab in Build command: text box you're likely to find something similar to that below, if it's empty then type in the similar text - namely: ${NDKROOT}/ndk-build.cmd where NDKROOT, as its name implies, refers to the path where your NDK root folder exists. enter image description here

    3. Now you must inform eclipse what NDKROOT equates to; as in, where is the NDK root path. You can do this by heading to (in your project's properties) C/C++ Build > Environment > press Add…

    4. Now add your environment variable named NDKROOT (the Name) with the relevant path (Value). Note that you're to repeat this per NDK project. You would get a window similar to that below. enter image description here

    5. Press OK to the New variable input window and then OK again to the properties window.

    0 讨论(0)
提交回复
热议问题