Hey, I am building this repo.
I built LASzip, but I can't build libLAS. When I build that one, I hit the problems at all options(arm64-v8a, armeabi-v7a, x86).
My machine : Linux 5.4.0-137-generic #154-Ubuntu SMP Thu Jan 5 17:03:22 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
CMake Deprecation Warning at CMakeLists.txt:8 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Android: Targeting API '24' with architecture 'arm64', ABI 'arm64-v8a', and processor 'aarch64'
-- Android: Selected GCC toolchain 'aarch64-linux-android-4.9'
-- The C compiler identification is GNU 4.9.0
-- The CXX compiler identification is GNU 4.9.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/***/ndk/android-ndk-r12b/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/***/ndk/android-ndk-r12b/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Conan: checking conan executable
-- Conan: Found program /home/***/.local/bin/conan
-- Conan: Version found Conan version 1.57.0
CMake Warning (dev) at cmake/conan.cmake:564 (elseif):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
Quoted variables like "BUILD" will no longer be dereferenced when the
policy is set to NEW. Since the policy is not set the OLD behavior will be
used.
Call Stack (most recent call first):
CMakeLists.txt:89 (conan_cmake_install)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/conan.cmake:593 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
Quoted variables like "BUILD" will no longer be dereferenced when the
policy is set to NEW. Since the policy is not set the OLD behavior will be
used.
Call Stack (most recent call first):
CMakeLists.txt:89 (conan_cmake_install)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Conan executing: /home/***/.local/bin/conan install /home/***/projects/AndroidTacticalAssaultKit-CIV/libLAS/build-android-arm64-v8a --build missing --settings build_type=Release --settings compiler=gcc --settings compiler.libcxx=libstdc++ --settings compiler.version=8 --settings os=Android --settings os.api_level=29 --settings arch=armv8
Configuration:
[settings]
arch=armv8
arch_build=x86_64
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++
compiler.version=8
os=Android
os.api_level=29
os_build=Linux
[options]
[build_requires]
[env]
conanfile.txt: Installing package
Requirements
LASzip/3.4.3 from local cache - Cache
Packages
LASzip/3.4.3:bdd00c8a3ef59268927e0996e6b80621c784dfba - Cache
Cross-build from 'Linux:x86_64' to 'Android:armv8'
Installing (downloading, building) binaries...
LASzip/3.4.3: Already installed!
conanfile.txt: Generator txt created conanbuildinfo.txt
conanfile.txt: Generator cmake_find_package created FindLASzip.cmake
conanfile.txt: Aggregating env generators
conanfile.txt: Generated conaninfo.txt
conanfile.txt: Generated graphinfo
-- Conan: Using autogenerated FindLASzip.cmake
-- Found LASzip: 3.4.3 (found version "3.4.3")
-- Setting libLAS build type - Release
-- Searching for Boost 1.38+ - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
Boost Include Dir Exists: /home/***/projects/AndroidTacticalAssaultKit-CIV/libLAS/find_package/boost
-- Enable libLAS utilities to build - done
-- Enable libLAS unit tests to build - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/***/projects/AndroidTacticalAssaultKit-CIV/libLAS/build-android-arm64-v8a
Command
cmake --build . --target las_c
Outputs
ninja: error: '/liblaszip.a', needed by 'bin/Release/liblas.so', missing and no known rule to make it
Hey, I am building this repo. I built
LASzip
, but I can't buildlibLAS
. When I build that one, I hit the problems at all options(arm64-v8a
,armeabi-v7a
,x86
).My machine :
Linux 5.4.0-137-generic #154-Ubuntu SMP Thu Jan 5 17:03:22 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Command
cmake .. -G Ninja -DCMAKE_TOOLCHAIN_FILE=../cmake/android.toolchain.cmake -DCMAKE_BUILD_TYPE=Release -DANDROID_NDK=/home/***/ndk/android-ndk-r12b -DANDROID_ABI=arm64-v8a -DANDROID_TOOLCHAIN=gcc -DANDROID_STL=gnustl_static -DANDROID_PLATFORM=android-24 -DCMAKE_CXX_FLAGS="-fexceptions -frtti -std=c++11" -DLASZIP_BUILD_STATIC=ON
Outputs
Command
cmake --build . --target las_c
Outputs
Do you have any solution about this problem?
Thank you