Python Forum
problems with netcdf if I compile Android
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
problems with netcdf if I compile Android
#1
Hi,

I try to compile this repository for Android:
https://github.com/OpenSoaring/OpenSoar

I get this error:
root@Werkstatt:/home/dirk/openvario/android/OpenSoar# make TARGET=ANDROIDFAT
* TARGET = ANDROIDFAT
Features for Android, UNIX, Windows, OpenVario...
PROGRAM_NAME is OpenSoar
PROGRAM_VERSION is 7.43-3.24
GIT_TAG is tags/opensoar-7.43-3.24
fatal: Benötigte einen einzelnen Commit
GIT_COMMIT_ID is 6fa110dd0b
RELEASE_COMMIT_ID is
Git commits: HEAD = 6fa110dd0b vs. RELEASE =
make[1]: Verzeichnis „/home/dirk/openvario/android/OpenSoar“ wird betreten
* TARGET = ANDROID7
* DEBUG = y
* RUN_ARGS = output/ANDROID/armeabi-v7a/dbg/bin/libOpenSoar.so
Features for Android, UNIX, Windows, OpenVario...
PROGRAM_NAME is OpenSoar
PROGRAM_VERSION is 7.43-3.24
GIT_TAG is tags/opensoar-7.43-3.24
fatal: Benötigte einen einzelnen Commit
GIT_COMMIT_ID is 6fa110dd0b
RELEASE_COMMIT_ID is
Git commits: HEAD = 6fa110dd0b vs. RELEASE =
libtiff is using HAVE_GEOTIFF
OpenSoar is using SKYSIGHT_FORECAST
./build/thirdparty.py ./output/ANDROID/armeabi-v7a/lib "armv7a-linux-androideabi" "-mfloat-abi=softfp -mfpu=neon -fpic -funwind-tables -target armv7a-linux-androideabi21" "-I./output/ANDROID/include -DHAVE_POSIX -DHAVE_VASPRINTF -DANDROID -DTWO_LOGO_APP -DHAVE_SKYSIGHT -DSKYSIGHT_LIVE -DSKYSIGHT_FORECAST -DSKYSIGHT_OFFLINE_MODE -DUSE_GEOTIFF -isystem ./output/ANDROID/armeabi-v7a/lib/armv7a-linux-androideabi/include -DEYE_CANDY -DBIONIC -DLIBCPP_NO_IOSTREAM " "-Wl,--no-undefined -Wl,--fix-cortex-a8 -static-libstdc++ -lunwind" "/root/opt/android-ndk-r28/toolchains/llvm/prebuilt/linux-x86_64/bin/clang" "/root/opt/android-ndk-r28/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++" /root/opt/android-ndk-r28/toolchains/llvm/prebuilt/linux-x86_64/bin//llvm-ar "rcs" /root/opt/android-ndk-r28/toolchains/llvm/prebuilt/linux-x86_64/bin//llvm-ranlib /root/opt/android-ndk-r28/toolchains/llvm/prebuilt/linux-x86_64/bin//llvm-strip "/root/opt/android-ndk-r28/toolchains/llvm/prebuilt/linux-x86_64/bin//llvm-windres"
args : 13
: ./build/thirdparty.py
arg LIB_PATH : ./output/ANDROID/armeabi-v7a/lib
arg HOST_TRIPLET : armv7a-linux-androideabi
arg ARCH_CFLAGS : -mfloat-abi=softfp -mfpu=neon -fpic -funwind-tables -target armv7a-linux-androideabi21
arg CPPFLAGS : -I./output/ANDROID/include -DHAVE_POSIX -DHAVE_VASPRINTF -DANDROID -DTWO_LOGO_APP -DHAVE_SKYSIGHT -DSKYSIGHT_LIVE -DSKYSIGHT_FORECAST -DSKYSIGHT_OFFLINE_MODE -DUSE_GEOTIFF -isystem ./output/ANDROID/armeabi-v7a/lib/armv7a-linux-androideabi/include -DEYE_CANDY -DBIONIC -DLIBCPP_NO_IOSTREAM
arg ARCH_LDFLAGS : -Wl,--no-undefined -Wl,--fix-cortex-a8 -static-libstdc++ -lunwind
arg CC : /root/opt/android-ndk-r28/toolchains/llvm/prebuilt/linux-x86_64/bin/clang
arg CXX : /root/opt/android-ndk-r28/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++
arg AR : /root/opt/android-ndk-r28/toolchains/llvm/prebuilt/linux-x86_64/bin//llvm-ar
arg ARFLAGS : rcs
arg RANLIB : /root/opt/android-ndk-r28/toolchains/llvm/prebuilt/linux-x86_64/bin//llvm-ranlib
arg STRIP : /root/opt/android-ndk-r28/toolchains/llvm/prebuilt/linux-x86_64/bin//llvm-strip
arg WINDRES : /root/opt/android-ndk-r28/toolchains/llvm/prebuilt/linux-x86_64/bin//llvm-windres
Traceback (most recent call last):
File "/home/dirk/openvario/android/OpenSoar/./build/thirdparty.py", line 132, in <module>
netcdf,
NameError: name 'netcdf' is not defined
make[1]: *** [build/thirdparty.mk:41: output/ANDROID/armeabi-v7a/lib/stamp] Fehler 1
make[1]: Verzeichnis „/home/dirk/openvario/android/OpenSoar“ wird verlassen
make: *** [build/android.mk:330: output/ANDROID/armeabi-v7a/dbg/bin/libOpenSoar.so] Fehler 2

I need some help to solve the problem, please!
Reply
#2
for anaconda, try: conda install -c conda-forge netCDF4
from command line, and then recompile
Reply
#3
Im working with Ubuntu 22.04 and tried:
apt-get install netCDF4

But dosen't work because netCDF4 dosen't exist. I tried:
apt-get -y install python3-netcdf4

and the packages python3-cftime python3-netcdf4 geting installed, but don't solve the problem
Reply
#4
did you try the command I showed?
It looks like you're working with anaconda, and conda is the anaconda equivalent of pip
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  combining netcdf data sebastiansieloff 1 2,811 Nov-19-2020, 03:59 PM
Last Post: Larz60+
  Selecting netcdf data files Jodman92 4 3,953 Nov-21-2018, 10:56 PM
Last Post: Larz60+
  Converting units in NetCdf Files in Python fyec 1 5,265 Jun-18-2018, 12:53 PM
Last Post: gontajones
  Storing Python data output as a Netcdf file Lightning1800 1 3,261 May-16-2018, 10:14 PM
Last Post: micseydel
  netCDF issue with filling a variable HeavyLoads 1 14,473 Oct-03-2016, 08:34 PM
Last Post: micseydel

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020