almalence / OpenCamera

Open camera project - multi-functional camera application for android.
Other
1.11k stars 417 forks source link

android-ndk-r9d\ndk-build" not found in PATH #11

Closed D3ATHLY closed 10 years ago

D3ATHLY commented 10 years ago

Hello i have problem, when i export project for .apk i get this error in eclipse;

11:11:15 \ Build of configuration Default for project OpenCamera ** "C:\Users\Yasin\workspace2\android-ndk-r9d\ndk-build" NDK_DEBUG=0 Cannot run program "C:\Users\Yasin\workspace2\android-ndk-r9d\ndk-build": Launching failed

Error: Program "C:\Users\Yasin\workspace2\android-ndk-r9d\ndk-build" not found in PATH PATH=[C:\Users\Yasin\workspace2]

11:11:15 Build Finished (took 18ms)

someone can help me? I'm using latest ADT Eclipse

almalence commented 10 years ago

Hi

Set PATH environment variable correctly - add path to ndk-build. Seems it's not configured. Or check that ndk-build is where you set.

D3ATHLY commented 10 years ago

Hi,

in environment my path is this "C:\Users\Yasin\workspace2\android-ndk-r9d" and ndk path is in here but same error :( Here is ss from my computer http://i61.tinypic.com/nnwk28.jpg

almalence commented 10 years ago

Not sure how it should be under Windows... but Eclipse has settings for project - Properties/C/C++ Build/Environment and here you can set PATh variable.

In you case it seems to be just PATH=[C:\Users\Yasin\workspace2] you should also add C:\Users\Yasin\workspace2\android-ndk-r9d\ndk-build

like PATH=C:\Users\Yasin\workspace2:C:\Users\Yasin\workspace2\android-ndk-r9d\ndk-build

check how it should be configured under windows.

D3ATHLY commented 10 years ago

Okay correct, i change C:\Users\Yasin\workspace2\android-ndk-r9d\ndk-build to C:\Users\Yasin\workspace2\android-ndk-r9d\ndk-build.cmd build finished but i get new error;

11:24:58 \ Build of configuration Default for project OpenCamera ** "C:\Users\Yasin\workspace2\android-ndk-r9d\ndk-build.cmd" NDK_DEBUG=0 Android NDK: WARNING:jni/yuvimage/Android.mk:yuvimage: non-system libraries in linker flags: jni/yuvimage/../prebuilt/armeabi-v7a/libandroid_runtime.so
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
[armeabi-v7a] Install : libalmalib.so => libs/armeabi-v7a/libalmalib.so [armeabi-v7a] SharedLibrary : libutils-image.so jni/utils/ImageConversionUtils.cpp:277: error: undefined reference to 'GOMP_parallel' collect2.exe: error: ld returned 1 exit status make.exe: *\ [obj/local/armeabi-v7a/libutils-image.so] Error 1

11:24:58 Build Finished (took 466ms)

almalence commented 10 years ago

Looks like some windows specific problem - checking what it can be.

D3ATHLY commented 10 years ago

Thanks now i cannot make any process right?

almalence commented 10 years ago

You can search for solution on web :)

the problem is with #pragma omp parallel for num_threads(10)

I'm waiting for response from developer who built under windows.

D3ATHLY commented 10 years ago

Okay im waiting your reply ^^

D3ATHLY commented 10 years ago

You found any solution?

almalence commented 10 years ago

All developers are building under Linux and Mac OS.

As I can see from google search - there are such problems, probably can be solved with different flags. Also try to find which toolchain is used. http://stackoverflow.com/questions/9685377/undefined-reference-to-omp-get-max-threads

vikasfuter commented 8 years ago

java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.almalence.opencam-2/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]] couldn't find "libutils-image.so"