Bonjour,
Je programme sous Eclipse et ubuntu et j'ai récupéré des codes que je souhaiterai compiler.
Quand je compile une partie des codes, ca se passe bien mais de temps en temps j'ai des erreurs du type:
Description Resource Path Location Type
Program "ndk-build" is not found in PATH LiveCamera C/C++ Problem
Alors je suis obligé de changer le build command de
ndk-build NDK_DEBUG=1
à
/home/xxxxx/android/android-ndk-r10e/ndk-build NDK_DEBUG=1
Déjà je trouve ca bizarre alors que visiblement rien ne change au niveau des propriétés des projets. Quelqu'un pourrait-il me dire à quoi cela peut-il être du?
Ensuite j'arrive à compiler le projet en entier et j'arrive à le lancer sur mon téléphone.
Mais quand j'affiche le fichier .c qui existe dans le projet plein d'erreurs apparaissent du genre:
Pourquoi lorsque je n'ouvre pas ce fichier ca compile et des que je l'ouvre ca plante?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 Description Resource Path Location Type Symbol 'JNI_VERSION_1_6' could not be resolved CameraDecoder.c /LiveCamera/jni line 94 Semantic Error Method 'RegisterNatives' could not be resolved CameraDecoder.c /LiveCamera/jni line 90 Semantic Error Method 'DeleteLocalRef' could not be resolved CameraDecoder.c /LiveCamera/jni line 92 Semantic Error Type 'JNINativeMethod' could not be resolved CameraDecoder.c /LiveCamera/jni line 76 Semantic Error Type 'jint' could not be resolved CameraDecoder.c /LiveCamera/jni line 82 Semantic Error Symbol 'decode' could not be resolved CameraDecoder.c /LiveCamera/jni line 77 Semantic Error Method 'GetEnv' could not be resolved CameraDecoder.c /LiveCamera/jni line 84 Semantic Error Symbol 'JNI_VERSION_1_6' could not be resolved CameraDecoder.c /LiveCamera/jni line 84 Semantic Error Type 'JavaVM' could not be resolved CameraDecoder.c /LiveCamera/jni line 82 Semantic Error Type 'JNIEnv' could not be resolved CameraDecoder.c /LiveCamera/jni line 83 Semantic Error Program "ndk-build" is not found in PATH LiveCamera C/C++ Problem Method 'FindClass' could not be resolved CameraDecoder.c /LiveCamera/jni line 87 Semantic Error Symbol 'NULL' could not be resolved CameraDecoder.c /LiveCamera/jni line 89 Semantic Error Symbol 'JNI_OK' could not be resolved CameraDecoder.c /LiveCamera/jni line 84 Semantic Error Type 'jclass' could not be resolved CameraDecoder.c /LiveCamera/jni line 87 Semantic Error
Cette erreur est encore plus bizarre et ca ne se produit pas avec les autres projets.
Si quelqu'un pouvait m'éclairer sur ces erreurs?
D'avance merci.
Partager