Error with Android build

Hi, I’m having some problems with cesium-for-unity 1.9.0. I compiled and installed com.cesium.unity according to the developer’s documentation when I packaged the Android APK, and then I got the following error:

An error occurred while building CesiumForUnityNative. See E:\UnityProject\cesium-unity-samples-1.9.0\Packages\com.cesium.unity\native~\build-Android-arm64\build.log for details. The command-line was:
cmake --build “E:\UnityProject\cesium-unity-samples-1.9.0\Packages\com.cesium.unity\native~\build-Android-arm64” --config Debug --parallel 21 --target install
UnityEngine.Debug:LogError (object)
CesiumForUnity.CompileCesiumForUnityNative:RunAndLog (System.Diagnostics.ProcessStartInfo,System.IO.StreamWriter,string) (at ./Packages/com.cesium.unity/Editor/CompileCesiumForUnityNative.cs:512)
CesiumForUnity.CompileCesiumForUnityNative:BuildNativeLibrary (CesiumForUnity.CompileCesiumForUnityNative/LibraryToBuild) (at ./Packages/com.cesium.unity/Editor/CompileCesiumForUnityNative.cs:478)
CesiumForUnity.CompileCesiumForUnityNative:OnPostBuildPlayerScriptDLLs (UnityEditor.Build.Reporting.BuildReport) (at ./Packages/com.cesium.unity/Editor/CompileCesiumForUnityNative.cs:210)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

CommandInvokationFailure: Gradle build failed.
C:\Program Files\Unity\Hub\Editor\2023.2.17f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath “C:\Program Files\Unity\Hub\Editor\2023.2.17f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-7.6.jar” org.gradle.launcher.GradleMain “-Dorg.gradle.jvmargs=-Xmx4096m” “assembleDebug”

And when I rolled back to 1.8.0, I can package the APK normally.
I would like to ask what is the reason for this? Is there any solution for this? Will it be fixed in subsequent releases?

Hi @xiameishicang,

Thanks for alerting us to this issue! This certainly wasn’t intentional, and in fact we haven’t seen this before. To keep track of this, I’ve written up an issue on Github so we can give updates on our progress.

I see that you’re using Unity 2023.2.17f and packaging from cesium-unity-samples. Just to get more information, did you modify the sample levels in any way? Are there specific scenes that you’re including with the build?

Unity: 2023.2.17f1c1
Installing Android components with unity hub.
I wrote my own script that loads my own graphic source, and partially changed the source code to fit the script.
Here is the log message mentioned in the error:

CMake Deprecation Warning at extern/tidy-html5/CMakeLists.txt:20 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument value or use a … suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Warning (dev) at extern/tidy-html5/CMakeLists.txt:26 (project):
Policy CMP0048 is not set: project() command manages VERSION variables.
Run “cmake --help-policy CMP0048” for policy details. Use the cmake_policy
command to set the policy and suppress this warning.

The following variable(s) would be set to empty:

PROJECT_VERSION
PROJECT_VERSION_MAJOR
PROJECT_VERSION_MINOR
PROJECT_VERSION_PATCH

This warning is for project developers. Use -Wno-dev to suppress it.

→ TIDY_SO_VERSION = 59. This is an ODD (development) release.
– *** Debug Logging is NOT enabled.
– *** Building support for runtime configuration files.
– *** Only building static library STATIC, version 5.9.14, date 2021.08.17
CMake Deprecation Warning at extern/cesium-native/extern/KTX-Software/cmake/cputypetest.cmake:4 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument value or use a … suffix to tell
CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
extern/cesium-native/extern/KTX-Software/CMakeLists.txt:23 (include)

– Could NOT find Vulkan (missing: Vulkan_LIBRARY) (found version “1.2.158”)
– Vulkan SDK not found → skipping mkvk target (this is harmless; only needed when re-generating of vulkan headers and dfdutils is required)
– AVX2 backend - OFF
– SSE4.1 backend - OFF
– SSE2 backend - OFF
– NEON backend - ON
– NONE backend - OFF
– NATIVE backend - OFF
– Decompressor - OFF
– Diagnostics - OFF
– Unit tests - OFF
– Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_glx_LIBRARY OPENGL_INCLUDE_DIR)
– Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR)
TIFF is disabled when statically linking.
TIFF is disabled when statically linking.
RY JPEG_INCLUDE_DIR)
– Could NOT find GIF (missing: GIF_LIBRARY GIF_INCLUDE_DIR)
– Performing Test WEBP_HAVE_FLAG_SSE41
– Performing Test WEBP_HAVE_FLAG_SSE41 - Failed
– Performing Test WEBP_HAVE_FLAG_SSE41
– Performing Test WEBP_HAVE_FLAG_SSE41 - Failed
– Performing Test HAS_COMPILE_FLAG
– Performing Test HAS_COMPILE_FLAG - Success
– Performing Test WEBP_HAVE_FLAG_SSE2
– Performing Test WEBP_HAVE_FLAG_SSE2 - Failed
– Performing Test WEBP_HAVE_FLAG_SSE2
– Performing Test WEBP_HAVE_FLAG_SSE2 - Failed
– Performing Test HAS_COMPILE_FLAG
– Performing Test HAS_COMPILE_FLAG - Success
– Performing Test WEBP_HAVE_FLAG_MIPS32
– Performing Test WEBP_HAVE_FLAG_MIPS32 - Failed
– Performing Test WEBP_HAVE_FLAG_MIPS32
– Performing Test WEBP_HAVE_FLAG_MIPS32 - Failed
– Performing Test WEBP_HAVE_FLAG_MIPS_DSP_R2
– Performing Test WEBP_HAVE_FLAG_MIPS_DSP_R2 - Failed
– Performing Test WEBP_HAVE_FLAG_MIPS_DSP_R2
– Performing Test WEBP_HAVE_FLAG_MIPS_DSP_R2 - Failed
– Performing Test HAS_COMPILE_FLAG
– Performing Test HAS_COMPILE_FLAG - Success
– Performing Test WEBP_HAVE_FLAG_NEON
– Performing Test WEBP_HAVE_FLAG_NEON - Success
– Performing Test WEBP_HAVE_FLAG_MSA
– Performing Test WEBP_HAVE_FLAG_MSA - Failed
– Performing Test WEBP_HAVE_FLAG_MSA
– Performing Test WEBP_HAVE_FLAG_MSA - Failed
– Performing Test HAS_COMPILE_FLAG
– Performing Test HAS_COMPILE_FLAG - Success
CMake Deprecation Warning at extern/cesium-native/extern/uriparser/CMakeLists.txt:37 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument value or use a … suffix to tell
CMake that the project does not need compatibility with older versions.

– ===========================================================================

– Configuration
– Build type … Debug
– Shared libraries … OFF
– Compiler flags
– C … -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fexceptions -fvisibility=hidden
– C++ … -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fexceptions -frtti -stdlib=libc++ -fvisibility=hidden
– Linker flags
– Executable … -Wl,–build-id=sha1 -Wl,–no-rosegment -Wl,–fatal-warnings -Qunused-arguments -Wl,–no-undefined -Wl,–gc-sections
– Module … -Wl,–build-id=sha1 -Wl,–no-rosegment -Wl,–fatal-warnings -Qunused-arguments -Wl,–no-undefined
– Shared … -Wl,–build-id=sha1 -Wl,–no-rosegment -Wl,–fatal-warnings -Qunused-arguments -Wl,–no-undefined
– Paths
– Prefix … E:/UnityProject/cesium-unity-samples-1.9.0/Packages/com.cesium.unity/Plugins/Android/arm64
– qhelpgenerator …

– Features
– Code for char * … ON
– Code for wchar_t * … ON
– Tools … OFF
– Test suite … OFF
– Documentation … OFF

– Continue with
– make
– make test
– sudo make install

– ===========================================================================
CMake Warning (dev) at extern/cesium-native/extern/draco/CMakeLists.txt:40 (include):
Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
are removed. Run “cmake --help-policy CMP0148” for policy details. Use
the cmake_policy command to set the policy and suppress this warning.

This warning is for project developers. Use -Wno-dev to suppress it.

— Running combined CXX flags test, flags: -Wno-implicit-const-int-float-conversion
— Passed combined CXX flags test
CMake Deprecation Warning at extern/cesium-native/extern/meshoptimizer/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument value or use a … suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at extern/cesium-native/extern/glm/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument value or use a … suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at extern/cesium-native/extern/glm/CMakeLists.txt:2 (cmake_policy):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument value or use a … suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at extern/cesium-native/extern/asyncplusplus/CMakeLists.txt:21 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument value or use a … suffix to tell
CMake that the project does not need compatibility with older versions.

– Build spdlog: 1.10.0
– Build type: Debug
– Project ‘expected_lite’, package ‘expected-lite’ version: ‘0.6.2’
CMake Deprecation Warning at build-Android-arm64/extern/cesium-native/extern/zlib-src/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument value or use a … suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Warning (dev) at build-Android-arm64/extern/cesium-native/extern/zlib-src/CMakeLists.txt:4 (project):
Policy CMP0048 is not set: project() command manages VERSION variables.
Run “cmake --help-policy CMP0048” for policy details. Use the cmake_policy
command to set the policy and suppress this warning.

The following variable(s) would be set to empty:

PROJECT_VERSION
PROJECT_VERSION_MAJOR
PROJECT_VERSION_MINOR
PROJECT_VERSION_PATCH

This warning is for project developers. Use -Wno-dev to suppress it.

– Renaming
– E:/UnityProject/cesium-unity-samples-1.9.0/Packages/com.cesium.unity/native~/build-Android-arm64/extern/cesium-native/extern/zlib-src/zconf.h
– to ‘zconf.h.included’ because this file is included with zlib
– but CMake generates it automatically in the build directory.
– Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
– Configuring done (21.5s)
CMake Warning in extern/cesium-native/extern/draco/CMakeLists.txt:
The object file directory

E:/UnityProject/cesium-unity-samples-1.9.0/Packages/com.cesium.unity/native~/build-Android-arm64/extern/cesium-native/extern/draco/CMakeFiles/draco_compression_attributes_dec.dir/

has 179 characters. The maximum full path to an object file is 250
characters (see CMAKE_OBJECT_PATH_MAX). Object file

src/draco/compression/attributes/sequential_integer_attribute_decoder.cc.o

cannot be safely placed under this directory. The build may not work
correctly.

CMake Warning in extern/cesium-native/extern/draco/CMakeLists.txt:
The object file directory

E:/UnityProject/cesium-unity-samples-1.9.0/Packages/com.cesium.unity/native~/build-Android-arm64/extern/cesium-native/extern/draco/CMakeFiles/draco_compression_attributes_enc.dir/

has 179 characters. The maximum full path to an object file is 250
characters (see CMAKE_OBJECT_PATH_MAX). Object file

src/draco/compression/attributes/sequential_attribute_encoders_controller.cc.o

cannot be safely placed under this directory. The build may not work
correctly.

CMake Warning in extern/cesium-native/extern/draco/CMakeLists.txt:
The object file directory

E:/UnityProject/cesium-unity-samples-1.9.0/Packages/com.cesium.unity/native~/build-Android-arm64/extern/cesium-native/extern/draco/CMakeFiles/draco_compression_attributes_pred_schemes_enc.dir/

has 192 characters. The maximum full path to an object file is 250
characters (see CMAKE_OBJECT_PATH_MAX). Object file

4903a2f1d67bacb7cbad22462a10a95f/prediction_scheme_encoder_factory.cc.o

cannot be safely placed under this directory. The build may not work
correctly.

– Generating done (6.0s)
– Build files have been written to: E:/UnityProject/cesium-unity-samples-1.9.0/Packages/com.cesium.unity/native~/build-Android-arm64

[ 0%] Built target libjpeg-turbo
[ 0%] Built target sqlite3
[ 1%] Built target csprng
[ 1%] Built target cpufeatures
[ 1%] Built target tinyxml2
[ 1%] Built target modp_b64
[ 1%] Building CXX object extern/cesium-native/extern/draco/CMakeFiles/draco_compression_attributes_pred_schemes_enc.dir/4903a2f1d67bacb7cbad22462a10a95f/prediction_scheme_encoder_factory.cc.o
[ 1%] Built target draco_animation
[0x7FFEE83D0BD0] ANOMALY: meaningless REX prefix used
[0x7FFF21895C90] ANOMALY: meaningless REX prefix used
[0x7FFEE83CE890] ANOMALY: meaningless REX prefix used
[ 4%] Built target meshoptimizer
[ 4%] Built target draco_compression_attributes_pred_schemes_enc
[ 4%] Built target sharpyuv
[ 4%] Built target Async++
[ 4%] Built target draco_compression_decode
[ 6%] Built target zlibstatic
[ 9%] Built target uriparser
[ 10%] Built target webputilsdecode
[ 10%] Built target draco_compression_entropy
[ 10%] Built target draco_metadata_dec
[ 10%] Built target draco_attributes
[ 10%] Built target draco_compression_options
[ 12%] Built target webputils
[ 13%] Built target draco_core
[ 14%] Built target draco_compression_point_cloud_dec
[ 14%] Built target draco_metadata_enc
[ 14%] Built target draco_animation_dec
[ 14%] Built target draco_compression_point_cloud_enc
[ 14%] Built target draco_animation_enc
[ 14%] Built target draco_point_cloud
[ 16%] Built target draco_compression_bit_coders
[ 20%] Built target ktx_read
[ 21%] Built target draco_metadata
[ 21%] Built target draco_compression_encode
[ 22%] Built target draco_points_dec
[ 22%] Built target draco_points_enc
[ 25%] Built target webpdspdecode
[ 27%] Built target spdlog
[ 27%] Built target draco_compression_mesh_enc
[ 28%] Built target draco_mesh
[ 29%] Building C object extern/tidy-html5/CMakeFiles/tidy-static.dir/src/access.c.o
[ 29%] Building C object extern/tidy-html5/CMakeFiles/tidy-static.dir/src/attrs.c.o
[ 29%] Building C object extern/tidy-html5/CMakeFiles/tidy-static.dir/src/istack.c.o
[ 29%] Building C object extern/tidy-html5/CMakeFiles/tidy-static.dir/src/parser.c.o
[ 29%] Building C object extern/tidy-html5/CMakeFiles/tidy-static.dir/src/tags.c.o
[ 29%] Building C object extern/tidy-html5/CMakeFiles/tidy-static.dir/src/entities.c.o
[ 29%] Building C object extern/tidy-html5/CMakeFiles/tidy-static.dir/src/lexer.c.o
[ 29%] Building C object extern/tidy-html5/CMakeFiles/tidy-static.dir/src/pprint.c.o
[ 31%] Built target draco_compression_mesh_dec
[ 32%] Built target webpdecode
[ 32%] Building C object extern/tidy-html5/CMakeFiles/tidy-static.dir/src/charsets.c.o
[ 32%] Building C object extern/tidy-html5/CMakeFiles/tidy-static.dir/src/clean.c.o
[ 33%] Building C object extern/tidy-html5/CMakeFiles/tidy-static.dir/src/message.c.o
[ 33%] Building C object extern/tidy-html5/CMakeFiles/tidy-static.dir/src/config.c.o
[0x7FFEE83D0BD0] ANOMALY: meaningless REX prefix used
[0x7FFF21895C90] ANOMALY: meaningless REX prefix used
[0x7FFEE83CE890] ANOMALY: meaningless REX prefix used
[ 33%] Building C object extern/tidy-html5/CMakeFiles/tidy-static.dir/src/alloc.c.o
E:/UnityProject/cesium-unity-samples-1.9.0/Packages/com.cesium.unity/native~/extern/tidy-html5/src/parser.c:5971:9: warning: misleading indentation; statement is not part of the previous ‘if’ [-Wmisleading-indentation]
return isBlank;
^
E:/UnityProject/cesium-unity-samples-1.9.0/Packages/com.cesium.unity/native~/extern/tidy-html5/src/parser.c:5967:5: note: previous statement is here
if ( isBlank )
^
[ 33%] Building C object extern/tidy-html5/CMakeFiles/tidy-static.dir/src/attrdict.c.o
[ 33%] Built target webpdecoder
1 warning generated.
[ 33%] Building C object extern/tidy-html5/CMakeFiles/tidy-static.dir/src/buffio.c.o
[ 33%] Building C object extern/tidy-html5/CMakeFiles/tidy-static.dir/src/fileio.c.o
[ 33%] Building C object extern/tidy-html5/CMakeFiles/tidy-static.dir/src/streamio.c.o
[ 33%] Building C object extern/tidy-html5/CMakeFiles/tidy-static.dir/src/tagask.c.o
[ 33%] Building C object extern/tidy-html5/CMakeFiles/tidy-static.dir/src/tmbstr.c.o
[ 35%] Building C object extern/tidy-html5/CMakeFiles/tidy-static.dir/src/utf8.c.o
[ 35%] Building C object extern/tidy-html5/CMakeFiles/tidy-static.dir/src/tidylib.c.o
[ 35%] Building C object extern/tidy-html5/CMakeFiles/tidy-static.dir/src/mappedio.c.o
[ 35%] Building C object extern/tidy-html5/CMakeFiles/tidy-static.dir/src/gdoc.c.o
[ 35%] Building C object extern/tidy-html5/CMakeFiles/tidy-static.dir/src/language.c.o
[ 35%] Building C object extern/tidy-html5/CMakeFiles/tidy-static.dir/src/messageobj.c.o
[ 35%] Building C object extern/tidy-html5/CMakeFiles/tidy-static.dir/src/sprtf.c.o
[ 35%] Linking C static library libtidy.a
[ 35%] Built target tidy-static
[ 37%] Built target webpdsp
[ 39%] Built target draco_compression_attributes_enc
[ 41%] Built target webpencode
[ 41%] Built target webp
[ 44%] Built target s2geometry
[ 45%] Built target draco_io
[ 47%] Built target draco_compression_attributes_dec
[ 48%] Built target CesiumUtility
make[2]: *** No rule to make target ‘extern/cesium-native/extern/draco/CMakeFiles/draco_compression_attributes_pred_schemes_enc.dir/4903a2f1d67bacb7cbad22462a10a95f/prediction_scheme_encoder_factory.cc.o’, needed by ‘extern/cesium-native/extern/draco/libdracod.a’. Stop.
make[1]: *** [CMakeFiles/Makefile2:2359: extern/cesium-native/extern/draco/CMakeFiles/draco_static.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…
[ 48%] Building CXX object extern/cesium-native/CesiumAsync/CMakeFiles/CesiumAsync.dir/src/AsyncSystem.cpp.o
[ 50%] Building CXX object extern/cesium-native/CesiumGeometry/CMakeFiles/CesiumGeometry.dir/src/Availability.cpp.o
[ 50%] Building CXX object extern/cesium-native/CesiumAsync/CMakeFiles/CesiumAsync.dir/src/CachingAssetAccessor.cpp.o
[ 50%] Building CXX object extern/cesium-native/CesiumGltf/CMakeFiles/CesiumGltf.dir/src/Accessor.cpp.o
[ 50%] Building CXX object extern/cesium-native/CesiumGeometry/CMakeFiles/CesiumGeometry.dir/src/BoundingSphere.cpp.o
[ 50%] Building CXX object extern/cesium-native/CesiumJsonReader/CMakeFiles/CesiumJsonReader.dir/src/BoolJsonHandler.cpp.o
[ 50%] Building CXX object extern/cesium-native/CesiumAsync/CMakeFiles/CesiumAsync.dir/src/GunzipAssetAccessor.cpp.o
[ 50%] Building CXX object extern/cesium-native/CesiumGltf/CMakeFiles/CesiumGltf.dir/src/AccessorUtility.cpp.o
[ 52%] Building CXX object extern/cesium-native/CesiumJsonReader/CMakeFiles/CesiumJsonReader.dir/src/DoubleJsonHandler.cpp.o
[ 52%] Building CXX object extern/cesium-native/Cesium3DTiles/CMakeFiles/Cesium3DTiles.dir/src/Library.cpp.o
[ 52%] Building CXX object extern/cesium-native/CesiumGeometry/CMakeFiles/CesiumGeometry.dir/src/CullingVolume.cpp.o
[ 52%] Building CXX object extern/cesium-native/CesiumGltf/CMakeFiles/CesiumGltf.dir/src/FeatureIdTextureView.cpp.o
[ 52%] Building CXX object extern/cesium-native/Cesium3DTiles/CMakeFiles/Cesium3DTiles.dir/src/MetadataQuery.cpp.o
[ 52%] Building CXX object extern/cesium-native/CesiumJsonReader/CMakeFiles/CesiumJsonReader.dir/src/ExtensibleObjectJsonHandler.cpp.o
[ 52%] Building CXX object extern/cesium-native/CesiumAsync/CMakeFiles/CesiumAsync.dir/src/HttpHeaders.cpp.o
[ 52%] Building CXX object extern/cesium-native/CesiumJsonReader/CMakeFiles/CesiumJsonReader.dir/src/ExtensionsJsonHandler.cpp.o
[ 52%] Building CXX object extern/cesium-native/CesiumGltf/CMakeFiles/CesiumGltf.dir/src/KhrTextureTransform.cpp.o
[ 52%] Building CXX object extern/cesium-native/CesiumGeometry/CMakeFiles/CesiumGeometry.dir/src/IntersectionTests.cpp.o
[ 54%] Building CXX object extern/cesium-native/CesiumAsync/CMakeFiles/CesiumAsync.dir/src/InternalTimegm.cpp.o
[ 54%] Building CXX object extern/cesium-native/CesiumAsync/CMakeFiles/CesiumAsync.dir/src/QueuedScheduler.cpp.o
[ 54%] Building CXX object extern/cesium-native/CesiumGeometry/CMakeFiles/CesiumGeometry.dir/src/OctreeAvailability.cpp.o
[ 54%] Building CXX object extern/cesium-native/CesiumJsonReader/CMakeFiles/CesiumJsonReader.dir/src/IgnoreValueJsonHandler.cpp.o
[ 54%] Building CXX object extern/cesium-native/CesiumGltf/CMakeFiles/CesiumGltf.dir/src/Ktx2TranscodeTargets.cpp.o
[ 54%] Building CXX object extern/cesium-native/CesiumGeometry/CMakeFiles/CesiumGeometry.dir/src/OctreeTilingScheme.cpp.o
[ 54%] Building CXX object extern/cesium-native/CesiumGltf/CMakeFiles/CesiumGltf.dir/src/Model.cpp.o
[ 54%] Building CXX object extern/cesium-native/CesiumJsonReader/CMakeFiles/CesiumJsonReader.dir/src/JsonHandler.cpp.o
[ 54%] Building CXX object extern/cesium-native/CesiumAsync/CMakeFiles/CesiumAsync.dir/src/ResponseCacheControl.cpp.o
[ 54%] Building CXX object extern/cesium-native/CesiumGltf/CMakeFiles/CesiumGltf.dir/src/PropertyAttributePropertyView.cpp.o
[0x7FFEE83D0BD0] ANOMALY: meaningless REX prefix used
[0x7FFF21895C90] ANOMALY: meaningless REX prefix used
[ 54%] Building CXX object extern/cesium-native/CesiumAsync/CMakeFiles/CesiumAsync.dir/src/SqliteCache.cpp.o
[ 54%] Building CXX object extern/cesium-native/CesiumGeometry/CMakeFiles/CesiumGeometry.dir/src/OrientedBoundingBox.cpp.o
[0x7FFEE83D0BD0] ANOMALY: meaningless REX prefix used
[ 54%] Building CXX object extern/cesium-native/CesiumJsonReader/CMakeFiles/CesiumJsonReader.dir/src/JsonObjectJsonHandler.cpp.o
[ 54%] Building CXX object extern/cesium-native/CesiumAsync/CMakeFiles/CesiumAsync.dir/src/TaskScheduler.cpp.o
[0x7FFEE83D0BD0] ANOMALY: meaningless REX prefix used
[ 54%] Linking CXX static library libCesium3DTilesd.a
[0x7FFEE83D0BD0] ANOMALY: meaningless REX prefix used
[0x7FFF21895C90] ANOMALY: meaningless REX prefix used
[0x7FFEE83CE890] ANOMALY: meaningless REX prefix used
[ 54%] Building CXX object extern/cesium-native/CesiumGeometry/CMakeFiles/CesiumGeometry.dir/src/Plane.cpp.o
[ 54%] Building CXX object extern/cesium-native/CesiumGltf/CMakeFiles/CesiumGltf.dir/src/PropertyAttributeView.cpp.o
[ 54%] Building CXX object extern/cesium-native/CesiumAsync/CMakeFiles/CesiumAsync.dir/src/ThreadPool.cpp.o
[0x7FFEE83D0BD0] ANOMALY: meaningless REX prefix used
[ 54%] Building CXX object extern/cesium-native/CesiumJsonReader/CMakeFiles/CesiumJsonReader.dir/src/JsonReader.cpp.o
[0x7FFEE83D0BD0] ANOMALY: meaningless REX prefix used
[0x7FFF21895C90] ANOMALY: meaningless REX prefix used
[0x7FFEE83CE890] ANOMALY: meaningless REX prefix used
[ 54%] Building CXX object extern/cesium-native/CesiumGeometry/CMakeFiles/CesiumGeometry.dir/src/QuadtreeAvailability.cpp.o
[0x7FFEE83D0BD0] ANOMALY: meaningless REX prefix used
[0x7FFF21895C90] ANOMALY: meaningless REX prefix used
[0x7FFEE83CE890] ANOMALY: meaningless REX prefix used
[ 54%] Building CXX object extern/cesium-native/CesiumGltf/CMakeFiles/CesiumGltf.dir/src/PropertyTablePropertyView.cpp.o
[0x7FFEE83D0BD0] ANOMALY: meaningless REX prefix used
[ 55%] Building CXX object extern/cesium-native/CesiumGeometry/CMakeFiles/CesiumGeometry.dir/src/QuadtreeRectangleAvailability.cpp.o
[ 55%] Building CXX object extern/cesium-native/CesiumJsonReader/CMakeFiles/CesiumJsonReader.dir/src/JsonReaderOptions.cpp.o
[ 55%] Building CXX object extern/cesium-native/CesiumGltf/CMakeFiles/CesiumGltf.dir/src/PropertyTableView.cpp.o
[ 55%] Building CXX object extern/cesium-native/CesiumGltf/CMakeFiles/CesiumGltf.dir/src/PropertyTexturePropertyView.cpp.o
[0x7FFEE83D0BD0] ANOMALY: meaningless REX prefix used
[ 55%] Building CXX object extern/cesium-native/CesiumGeometry/CMakeFiles/CesiumGeometry.dir/src/QuadtreeTileID.cpp.o
[ 55%] Building CXX object extern/cesium-native/CesiumJsonReader/CMakeFiles/CesiumJsonReader.dir/src/ObjectJsonHandler.cpp.o
[ 55%] Building CXX object extern/cesium-native/CesiumGltf/CMakeFiles/CesiumGltf.dir/src/PropertyTextureView.cpp.o
[ 55%] Building CXX object extern/cesium-native/CesiumGeometry/CMakeFiles/CesiumGeometry.dir/src/QuadtreeTilingScheme.cpp.o
[0x7FFEE83D0BD0] ANOMALY: meaningless REX prefix used
[0x7FFF21895C90] ANOMALY: meaningless REX prefix used
[0x7FFEE83CE890] ANOMALY: meaningless REX prefix used
[ 55%] Built target Cesium3DTiles
[ 55%] Building CXX object extern/cesium-native/CesiumJsonReader/CMakeFiles/CesiumJsonReader.dir/src/StringJsonHandler.cpp.o
[0x7FFEE83D0BD0] ANOMALY: meaningless REX prefix used
[ 56%] Building CXX object extern/cesium-native/CesiumGltf/CMakeFiles/CesiumGltf.dir/src/PropertyType.cpp.o
[ 56%] Building CXX object extern/cesium-native/CesiumGeometry/CMakeFiles/CesiumGeometry.dir/src/Ray.cpp.o
[ 56%] Building CXX object extern/cesium-native/CesiumGltf/CMakeFiles/CesiumGltf.dir/src/PropertyView.cpp.o
[0x7FFEE83D0BD0] ANOMALY: meaningless REX prefix used
[0x7FFF21895C90] ANOMALY: meaningless REX prefix used
[ 56%] Building CXX object extern/cesium-native/CesiumGltf/CMakeFiles/CesiumGltf.dir/src/SamplerUtility.cpp.o
[0x7FFEE83D0BD0] ANOMALY: meaningless REX prefix used
[0x7FFF21895C90] ANOMALY: meaningless REX prefix used
[0x7FFEE83CE890] ANOMALY: meaningless REX prefix used
[ 56%] Building CXX object extern/cesium-native/CesiumGltf/CMakeFiles/CesiumGltf.dir/src/TextureView.cpp.o
[0x7FFEE83D0BD0] ANOMALY: meaningless REX prefix used
[0x7FFF21895C90] ANOMALY: meaningless REX prefix used
[0x7FFEE83CE890] ANOMALY: meaningless REX prefix used
[ 56%] Building CXX object extern/cesium-native/CesiumGeometry/CMakeFiles/CesiumGeometry.dir/src/Rectangle.cpp.o
[ 56%] Building CXX object extern/cesium-native/CesiumGeometry/CMakeFiles/CesiumGeometry.dir/src/Transforms.cpp.o
[0x7FFEE83D0BD0] ANOMALY: meaningless REX prefix used
[ 56%] Building CXX object extern/cesium-native/CesiumGeometry/CMakeFiles/CesiumGeometry.dir/src/clipTriangleAtAxisAlignedThreshold.cpp.o
[0x7FFEE83D0BD0] ANOMALY: meaningless REX prefix used
[ 56%] Linking CXX static library libCesiumAsyncd.a
[ 58%] Linking CXX static library libCesiumJsonReaderd.a
[0x7FFEE83D0BD0] ANOMALY: meaningless REX prefix used
[ 58%] Linking CXX static library libCesiumGeometryd.a
[0x7FFEE83D0BD0] ANOMALY: meaningless REX prefix used
[ 58%] Built target CesiumAsync
[0x7FFEE83D0BD0] ANOMALY: meaningless REX prefix used
[ 58%] Built target CesiumJsonReader
[ 58%] Linking CXX static library libCesiumGltfd.a
[0x7FFEE83D0BD0] ANOMALY: meaningless REX prefix used
[ 58%] Built target CesiumGeometry
[0x7FFEE83D0BD0] ANOMALY: meaningless REX prefix used
[ 58%] Built target CesiumGltf
make: *** [Makefile:156: all] Error 2

It’s worth noting that some of the prompts in the logs are error messages prompted by my computer using the command line and should be ignored, the messages are as follows:

[0x7FFEE83D0BD0] ANOMALY: meaningless REX prefix used

Thanks @xiameishicang for posting more information. It looks like this is the real error in that log:

make[2]: *** No rule to make target ‘extern/cesium-native/extern/draco/CMakeFiles/draco_compression_attributes_pred_schemes_enc.dir/4903a2f1d67bacb7cbad22462a10a95f/prediction_scheme_encoder_factory.cc.o’, needed by ‘extern/cesium-native/extern/draco/libdracod.a’. Stop.

We recently updated the version of Draco that we use in Cesium Native, so this may be related to those changes. I’ve made a note of it in the issue I opened. We’ll investigate and post updates as soon as we are able :pray:

Hi @xiameishicang,

One of my teammates looked over your log and saw this error:

CMake Warning in extern/cesium-native/extern/draco/CMakeLists.txt:
The object file directory

E:/UnityProject/cesium-unity-samples-1.9.0/Packages/com.cesium.unity/native~/build-Android-arm64/extern/cesium-native/extern/draco/CMakeFiles/draco_compression_attributes_pred_schemes_enc.dir/
has 192 characters. The maximum full path to an object file is 250
characters (see CMAKE_OBJECT_PATH_MAX). Object file

4903a2f1d67bacb7cbad22462a10a95f/prediction_scheme_encoder_factory.cc.o
cannot be safely placed under this directory. The build may not work
correctly.

This can happen when you don’t have long paths enabled on your machine. Can you verify that this setting is enabled?

You may also want to shorten the URL of your project itself. So for example, placing it at E:/a/cesium-unity-samples, or something similar.

Let us know if that helps your build to succeed!

Hi, @janine ,
I made the changes to the project name as you suggested and successfully packaged the project, thank you very much!

1 Like