Skip to content
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

Getting a “fatal error C1083” when trying to build cesium-o3de-samples project #8

Closed
Hillzkred opened this issue May 18, 2022 · 4 comments · Fixed by CesiumGS/cesium-o3de#44
Assignees

Comments

@Hillzkred
Copy link

I've been trying to build this project on O3DE 22.05.0 but I keep running into an error. Here's the logs.
I'm running on Windows 10 version 21H2

-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19044.
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/zlib-1.2.11-rev5-windows
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/qt-5.15.2-rev7-windows
-- Using package C:/O3DE/22.05.0/python/runtime/python-3.7.12-rev2-windows
-- Using Python 3.7.12 at C:/O3DE/22.05.0/python/runtime/python-3.7.12-rev2-windows/python/python.exe
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/RapidJSON-1.1.0-rev1-multiplatform
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/Lua-5.4.4-rev1-windows
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/RapidXML-1.13-rev1-multiplatform
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/zstd-1.35-multiplatform
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/cityhash-1.1-multiplatform
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/lz4-1.9.3-vcpkg-rev4-windows
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/googletest-1.8.1-rev4-windows
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/googlebenchmark-1.5.0-rev2-windows
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/SQLite-3.37.2-rev1-windows
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/OpenSSL-1.1.1m-rev1-windows
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/expat-2.4.2-rev2-windows
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/md5-2.0-multiplatform
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/tiff-4.2.0.15-rev3-windows
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/squish-ccr-deb557d-rev1-windows
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/assimp-5.1.6-rev1-windows
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/xxhash-0.7.4-rev1-multiplatform
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/AWSNativeSDK-1.9.50-rev2-windows
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/Crashpad-0.8.0-rev1-windows
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/pybind11-2.4.3-rev3-multiplatform
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/d3dx12-headers-rev1-windows
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/vulkan-validationlayers-1.2.198-rev1-windows
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/mcpp-2.7.2_az.2-rev1-windows
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/DirectXShaderCompilerDxc-1.6.2112-o3de-rev1-windows
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/SPIRVCross-2021.04.29-rev1-windows
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/azslc-1.7.35-rev1-windows
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/astc-encoder-3.2-rev2-windows
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/ISPCTexComp-36b80aa-rev1-windows
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/OpenEXR-3.1.3-rev2-windows
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/openimageio-2.1.16.0-rev2-windows
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/freetype-2.11.1-rev1-windows
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/png-1.6.37-rev2-windows
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/pyside2-qt-5.15.1-rev2-windows
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/AWSGameLiftServerSDK-3.4.2-rev1-windows
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/PhysX-4.1.2.29882248-rev5-windows
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/poly2tri-7f0487a-rev1-windows
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/v-hacd-2.3-1a49edf-rev1-windows
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/Blast-v1.1.7_rc2-9-geb169fe-rev2-windows
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/civetweb-1.8-rev1-windows
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/libsamplerate-0.2.1-rev2-windows
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/NvCloth-v1.1.6-4-gd243404-pr58-rev1-windows
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/mikkelsen-1.0.0.4-windows
-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/OpenMesh-8.1-rev3-windows
CMake Deprecation Warning at C:/O3DE/22.05.0/cmake/PAL.cmake:385 (message):
  ly_get_list_relative_pal_filename is being deprecated, change your code to
  use o3de_pal_dir instead.
Call Stack (most recent call first):
  Code/CMakeLists.txt:8 (ly_get_list_relative_pal_filename)


CMake Deprecation Warning at C:/O3DE/22.05.0/cmake/PAL.cmake:385 (message):
  ly_get_list_relative_pal_filename is being deprecated, change your code to
  use o3de_pal_dir instead.
Call Stack (most recent call first):
  C:/Users/Alexis/O3DE/cesium-o3de/Code/CMakeLists.txt:8 (ly_get_list_relative_pal_filename)


-- Using package C:/Users/Alexis/.o3de/3rdParty/packages/CesiumNative
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/Alexis/O3DE/cesium-o3de-samples/build/windows
Microsoft (R) Build Engine version 16.11.1+3e40a09f8 for .NET Framework

Copyright (C) Microsoft Corporation. All rights reserved.



  Checking Build System

  Building Custom Rule C:/Users/Alexis/O3DE/cesium-o3de/Code/CMakeLists.txt

  unity_3_cxx.cxx

  unity_4_cxx.cxx

  unity_1_cxx.cxx

  unity_5_cxx.cxx

  unity_2_cxx.cxx

  unity_0_cxx.cxx

C:\Users\Alexis\O3DE\cesium-o3de\Code\Source\Cesium/Gltf/BitangentAndTangentGenerator.h(3,10): fatal error C1083: Cannot open include file: 'AtomCore/std/containers/array_view.h': No such file or directory [C:\Users\Alexis\O3DE\cesium-o3de-samples\build\windows\External\cesium-o3de-1479f144\Code\Cesium.Static.vcxproj]

  #include <AtomCore/std/containers/array_view.h>

           ^

C:\Users\Alexis\O3DE\cesium-o3de\Code\Source\Cesium/Gltf/BitangentAndTangentGenerator.h(3,10): fatal error C1083: Cannot open include file: 'AtomCore/std/containers/array_view.h': No such file or directory [C:\Users\Alexis\O3DE\cesium-o3de-samples\build\windows\External\cesium-o3de-1479f144\Code\Cesium.Static.vcxproj]

  #include <AtomCore/std/containers/array_view.h>

           ^

C:\Users\Alexis\O3DE\cesium-o3de\Code\Source\Cesium/Components/DynamicUiImageComponent.h(4,10): fatal error C1083: Cannot open include file: 'LyShine/Draw2d.h': No such file or directory [C:\Users\Alexis\O3DE\cesium-o3de-samples\build\windows\External\cesium-o3de-1479f144\Code\Cesium.Static.vcxproj]

  #include <LyShine/Draw2d.h>

           ^

  unity_6_cxx.cxx


@baothientran
Copy link
Contributor

Hi @Hillzkred,

Thanks for reporting! I will take a look at the issue

@baothientran baothientran self-assigned this May 18, 2022
@Mylab6
Copy link

Mylab6 commented Aug 9, 2022

Can confirm this issue is still open as of 8/8/8, using nightly dev build of O3de
d98f4f2

@lemonade-dm
Copy link

It looks like the Cesuim project code needs to be updated.
AtomCore/std/containers/array_view.h has been replaced with <AzCore/std/containers/span.h>

The Draw2d.h header is a private header within the LyShine gem.
It looks like the include that should be used is IDraw2d.h

@baothientran
Copy link
Contributor

Sorry for getting back late on this one. I just open the PR CesiumGS/cesium-o3de#44 to fix the issue if you want to give it a try

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants