Search Unity

fatal error: 'android/log.h' file not found

Discussion in 'Unity Build Automation' started by Deleted User, Mar 22, 2017.

  1. Deleted User

    Deleted User

    Guest

    I have a project using Vuforia. The Android version builds perfectly. I have set up an iOS build on Cloud Build and am getting the following error:

    6531: [xcode] In file included from /BUILD_PATH/es3inc.2017jeepcompassarus.default-ios/temp.fXwvwT/Libraries/Plugins/Android/VuforiaMediaSource/jni/SampleUtils.cpp:8:
    6532: [xcode] /BUILD_PATH/es3inc.2017jeepcompassarus.default-ios/temp.fXwvwT/Libraries/Plugins/Android/VuforiaMediaSource/jni/SampleUtils.h:13:10: fatal error: 'android/log.h' file not found
    6533: [xcode] #include <android/log.h>
    6534: [xcode] 1 error generated.

    There is no android folder with a file called log.h. Since it's an Android file, I don't understand why an iOS build is attempting to compile it.

    I can build the iOS version on my local computer and I don't get this error.

    The file SampleUtils.h contains these lines:

    #include <stdio.h>
    #include <android/log.h>

    No error occurs on stdio.h.
     
  2. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    When you select SampleUtils.h, which platforms are selected in the inspector? Can you post a screenshot?