Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile error, 'stdio.h' file not found #69

Closed
Jefferson-111 opened this issue Jun 3, 2018 · 11 comments
Closed

compile error, 'stdio.h' file not found #69

Jefferson-111 opened this issue Jun 3, 2018 · 11 comments
Labels

Comments

@Jefferson-111
Copy link

Android OS Version: android 8.0
code branch: zoff99/dev003
Description: I didn't run this project on my Android Studion, and error info is:
/my_codes/ToxAndroidRefImpl/android-refimpl-app/library/src/main/jni/include/speex/coffeecatch.c
Error:(44, 10) fatal error: 'stdio.h' file not found
Warning:warning: -Wl,--no-merge-exidx-entries: 'linker' input unused [-Wunused-command-line-argument]
/Users/wangxuefang/my_codes/ToxAndroidRefImpl/android-refimpl-app/library/src/main/jni/libspeexdsp/os_support.h
Error:(37, 10) fatal error: 'string.h' file not found

Screenshots (if possible):

image

Hope you can help me to solve this problem

@vynmera
Copy link

vynmera commented Jun 5, 2018

I'm having the same issue on Windows.

@zoff99
Copy link
Owner

zoff99 commented Jun 5, 2018

what does this mean:
I didn't run this project on my Android Studion
if you do not compile it as documented i can not really help

@zoff99
Copy link
Owner

zoff99 commented Jun 5, 2018

to compile use the official Android Studio and follow these steps exactly:
https://github.com/zoff99/ToxAndroidRefImpl#compile-in-android-studio

@vynmera
Copy link

vynmera commented Jun 5, 2018

@zoff99 I'm not sure about OP, but I followed those instructions with no luck.

@zoff99
Copy link
Owner

zoff99 commented Jun 5, 2018

@vynmera did you install NDK and Cmake in android studio?

@vynmera
Copy link

vynmera commented Jun 5, 2018

@zoff99 Yep, those are installed.

@zoff99
Copy link
Owner

zoff99 commented Jun 6, 2018

@vynmera can you upload a screenshot of your exact errors please.

@askymore
Copy link

askymore commented Jun 12, 2018

@wangxuefang @vynmera I have the same issue on Windows.To solve this problem,you should not use the latest version of NDK.You can download r13b or r15b ,and change NDK location in the project structure

image

@zoff99
Copy link
Owner

zoff99 commented Jun 12, 2018

@askymore can you provide full screenshots for all steps please?
so we can add it to the README.md

@askymore
Copy link

askymore commented Jun 12, 2018

This issue seems to caused by the AS3.0 and the latest version of NDK, nothing to do with Windows or Linux.To solve this problem,you should download NDK version r13b( http://dl.google.com/android/repository/android-ndk-r13b-linux-x86_64.zip ) Unzip the file to somewhere like '\home\kevin\android-ndk', and then change NDK location in the project structure

the menu path is File->Project Structure

image

change the default Android NDK Location to the old version of NDK , and it works!
image

@stale
Copy link

stale bot commented Jul 24, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jul 24, 2020
@stale stale bot closed this as completed Aug 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants