-
Notifications
You must be signed in to change notification settings - Fork 82
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
can't build android-demo for cpu #72
Comments
@markvai: did you do a clean rebuild setting WITH_CUDA off ? |
Yes. |
@markvai: yes demo is written for CUDA, you need to modify main.lua as well. |
So...which things do we need to erase from which files? (Note that I've turned CUDA off, and erased all references to -mfpa=neon.) My error messages seem a little different; I'm getting:
|
Following what the error seemed to be trying to say, I moved |
Hello,
I am trying to compile the android-demo without cuda and receive the following errors:
Updated local.properties
Updated file ./proguard-project.txt
Android NDK: WARNING: APP_PLATFORM android-21 is larger than android:minSdkVersion 14 in ./AndroidManifest.xml
Android NDK: WARNING:jni/Android.mk:torchdemo: non-system libraries in linker flags: -lTHCUNN -lcutorch -lnnx -limage -lTHNN -ltorch -lTH -lluaT -lluajit -ltorchandroid
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] Compile++ thumb: torchdemo <= torchdemo.cpp
[armeabi-v7a] StaticLibrary : libstdc++.a
[armeabi-v7a] SharedLibrary : libtorchdemo.so
/home/mark/NVPACK/android-ndk-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lTHCUNN
/home/mark/NVPACK/android-ndk-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lcutorch
collect2: error: ld returned 1 exit status
make: *** [obj/local/armeabi-v7a/libtorchdemo.so] Error 1
any suggestions?
The text was updated successfully, but these errors were encountered: