bashbug / pcl-for-android

Cross-compilation of PCL (point cloud library) for Android
BSD 3-Clause "New" or "Revised" License
79 stars 33 forks source link

compile error at beginning #23

Open 44825762 opened 1 year ago

44825762 commented 1 year ago

###########################################

ANDROID-TOOLCHAIN setup...

###########################################

usage: conan create [-h] [-f FORMAT] [-v [V]] [--name NAME] [--version VERSION] [--user USER] [--channel CHANNEL] [-l LOCKFILE] [--lockfile-partial] [--lockfile-out LOCKFILE_OUT] [--lockfile-packages] [--lockfile-clean] [-b BUILD] [-r REMOTE | -nr] [-u] [-o OPTIONS_HOST] [-o:b OPTIONS_BUILD] [-o:h OPTIONS_HOST] [-pr PROFILE_HOST] [-pr:b PROFILE_BUILD] [-pr:h PROFILE_HOST] [-s SETTINGS_HOST] [-s:b SETTINGS_BUILD] [-s:h SETTINGS_HOST] [-c CONF_HOST] [-c:b CONF_BUILD] [-c:h CONF_HOST] [--build-require] [-tf TEST_FOLDER] path conan create: error: unrecognized arguments: bashbug/stable ERROR: Exiting with code: 2

troeggla commented 1 year ago

I ran into the same issue. This is related to the fact that you probably installed conan 2, whereas this project still uses conan version 1. I uninstalled conan 2 and installed conan 1.59.0 through pip install conan==1.59.0. It did download the Android NDK, but I ran into another issue during the compilation of FLANN (I think). I will keep investigating, but this is a good starting point.

troeggla commented 1 year ago

Actually the error was caused by an operating system mismatch. I tried compiling it again with conan 1.59.0 on Ubuntu 22.04 instead of macOS and it compiled just fine. So make sure to downgrade conan to version 1.