Closed adro79 closed 1 year ago
Hi, could you provide following build information?
Could you also try the same installExternals command line with added flags "-v -v" (yes, double -v) and post the result here? Thanks.
I'm using the 23.03 version (5ad8c8a)
And I use this command: python Scripts/installExternals.py ../AuroraExternals
This is the log with -v -v:
[<__main__.Dependency object at 0x7f18e4c481f0>, <__main__.Dependency object at 0x7f18e4c484f0>, <__main__.Dependency object at 0x7f18e4c48700>, <__main__.Dependency object at 0x7f18e4eaf310>, <__main__.Dependency object at 0x7f18e4c07d00>, <__main__.Dependency object at 0x7f18e4c487f0>, <__main__.Dependency object at 0x7f18e4c48a30>, <__main__.Dependency object at 0x7f18e4c49450>, <__main__.Dependency object at 0x7f18e4c48c40>, <__main__.Dependency object at 0x7f18e4c494b0>, <__main__.Dependency object at 0x7f18e4c49540>, <__main__.Dependency object at 0x7f18e4b8b9a0>]
- Required dependencies:
The following libraries are required to build Aurora and its externals:
zlib1g-dev, libjpeg-turbo8-dev, libtiff-dev, libpng-dev, libglm-dev, libglew-dev
libglfw3-dev, libgtest-dev, libgmock-dev
You can install them with the following command on Ubuntu:
sudo apt-get -y install zlib1g-dev libjpeg-turbo8-dev libtiff-dev libpng-dev libglm-dev libglew-dev libglfw3-dev libgtest-dev libgmock-dev
Building with settings:
Aurora source directory /home/adro/Applications/3D/USD/Aurora
Externals source directory /home/adro/Applications/3D/USD/AuroraExternals/src
Externals install directory /home/adro/Applications/3D/USD/AuroraExternals
Build directory /home/adro/Applications/3D/USD/AuroraExternals/build
CMake generator Default
CMake toolset Default
Variant Release
Dependencies OpenImageIO, MaterialX, OpenSubdiv, USD, Slang, cxxopts
STATUS: Installing OpenImageIO...
INFO: /home/adro/Applications/3D/USD/AuroraExternals/src/v2.4.5.0.zip already exists, skipping download
INFO: Directory /home/adro/Applications/3D/USD/AuroraExternals/src/oiio-2.4.5.0 already exists, skipping extract
STATUS: Applying OpenImageIO.patch ...
INFO: Running "git apply "/home/adro/Applications/3D/USD/Aurora/Scripts/Patches/OpenImageIO.patch""
error: patch failed: src/cmake/externalpackages.cmake:185
error: src/cmake/externalpackages.cmake: patch does not apply
error: patch failed: src/cmake/modules/FindJPEGTurbo.cmake:5
error: src/cmake/modules/FindJPEGTurbo.cmake: patch does not apply
error: patch failed: src/cmake/modules/FindOpenEXR.cmake:219
error: src/cmake/modules/FindOpenEXR.cmake: patch does not apply
WARNING: Failed to apply OpenImageIO.patch. Skipped
INFO: Running "cmake -DCMAKE_INSTALL_PREFIX="/home/adro/Applications/3D/USD/AuroraExternals/OpenImageIO" -DCMAKE_PREFIX_PATH="/home/adro/Applications/3D/USD/AuroraExternals/cxxopts;/home/adro/Applications/3D/USD/AuroraExternals/tbb;/home/adro/Applications/3D/USD/AuroraExternals/OpenSubdiv;/home/adro/Applications/3D/USD/AuroraExternals/tinyobjloader;/home/adro/Applications/3D/USD/AuroraExternals/OpenImageIO;/home/adro/Applications/3D/USD/AuroraExternals/MaterialX;/home/adro/Applications/3D/USD/AuroraExternals/stb;/home/adro/Applications/3D/USD/AuroraExternals/OpenEXR;/home/adro/Applications/3D/USD/AuroraExternals/USD;/home/adro/Applications/3D/USD/AuroraExternals/Slang;/home/adro/Applications/3D/USD/AuroraExternals/boost;/home/adro/Applications/3D/USD/AuroraExternals/tinygltf" -DCMAKE_BUILD_TYPE=Release -DCMAKE_DEBUG_POSTFIX="d" -DOIIO_BUILD_TOOLS=OFF -DOIIO_BUILD_TESTS=OFF -DUSE_PYTHON=OFF -DSTOP_ON_WARNING=OFF -DUSE_PTEX=OFF -DBoost_NO_BOOST_CMAKE=On -DBoost_NO_SYSTEM_PATHS=True -DOPENEXR_ROOT="/home/adro/Applications/3D/USD/AuroraExternals/OpenEXR" -DTBB_USE_DEBUG_BUILD=OFF "/home/adro/Applications/3D/USD/AuroraExternals/src/oiio-2.4.5.0""
-- Configuring OpenImageIO 2.4.5.0
-- CMake 3.26.1
-- CMake system = Linux-6.2.8-zen1-1-zen
-- CMake system name = Linux
-- Project source dir = /home/adro/Applications/3D/USD/AuroraExternals/src/oiio-2.4.5.0
-- Project build dir = /home/adro/Applications/3D/USD/AuroraExternals/build/oiio-2.4.5.0/Release
-- Project install prefix = /home/adro/Applications/3D/USD/AuroraExternals/OpenImageIO
-- Configuration types =
-- Build type = Release
-- CMAKE_UNITY_BUILD_MODE =
-- CMAKE_UNITY_BUILD_BATCH_SIZE =
-- Setting Namespace to: OpenImageIO_v2_4_5
-- CMAKE_CXX_COMPILER = /usr/bin/c++
-- CMAKE_CXX_COMPILER_ID = GNU
-- Building with C++14, downstream minimum C++14
-- Using Boost::filesystem
-- clang-format found: /usr/bin/clang-format
--
-- * Checking for dependencies...
-- * - Missing a dependency 'Package'?
-- * Try cmake -DPackage_ROOT=path or set environment var Package_ROOT=path
-- * For many dependencies, we supply src/build-scripts/build_Package.bash
-- * - To exclude an optional dependency (even if found),
-- * -DUSE_Package=OFF or set environment var USE_Package=OFF
--
-- Boost_COMPONENTS = thread;filesystem
-- Found Boost 107800
-- Found ZLIB 1.2.13
-- Found TIFF 4.5.0
CMake Warning at src/cmake/modules/FindOpenEXR.cmake:43 (find_package):
Found package configuration file:
/home/adro/Applications/3D/USD/AuroraExternals/OpenEXR/lib/cmake/OpenEXR/OpenEXRConfig.cmake
but it set OpenEXR_FOUND to FALSE so package "OpenEXR" is considered to be
NOT FOUND. Reason given by package:
The following imported targets are referenced, but are missing:
IlmBase::Iex IlmBase::Half IlmBase::Imath IlmBase::IlmThread
Call Stack (most recent call first):
src/cmake/checked_find_package.cmake:127 (find_package)
src/cmake/externalpackages.cmake:96 (checked_find_package)
CMakeLists.txt:154 (include)
-- Found OpenEXR 2.4.3
-- Found JPEGTurbo
-- Using internal PugiXML
-- Not using Python -- disabled
-- Found PNG 1.6.39
-- Found BZip2 1.0.8
-- Found Freetype 2.13.0
-- Found OpenColorIO 2.2.1
-- Found OpenCV 4.7.0
-- Found TBB 2021.8.0 from CONFIG
-- Found DCMTK 3.6.7
-- Found FFmpeg 5.1
-- Found GIF 5.2.1
-- Found Libheif 1.15.1
-- Found LibRaw 0.21.1
-- Found OpenJPEG 2.5
-- Found OpenVDB 10.0.1
-- Not using Ptex -- disabled
-- Not using Ptex -- disabled
-- Found WebP
-- Not using R3DSDK -- disabled
-- Nuke library not found
-- Try setting Nuke_ROOT ?
-- Found OpenGL
-- Found Qt5 5.15.8
-- Found fmt 90100
-- Found Robinmap
-- Missing test data oiio-images
-- Missing test data openexr-images
-- Missing test data fits-images
-- Missing test data j2kp4files_v1_5
--
Did not find /home/adro/Applications/3D/USD/AuroraExternals/build/oiio-2.4.5.0/Release/testsuite/oiio-images
-- -> Will not run tests gpsread;oiiotool-attribs;texture-filtersize;texture-filtersize-stochastic;texture-res;texture-maxres
-- -> You can find it at Recent checkout of oiio-images
--
Did not find /home/adro/Applications/3D/USD/AuroraExternals/build/oiio-2.4.5.0/Release/testsuite/oiio-images/bmpsuite
-- -> Will not run tests bmp
-- -> You can find it at
--
Did not find /home/adro/Applications/3D/USD/AuroraExternals/build/oiio-2.4.5.0/Release/testsuite/oiio-images
-- -> Will not run tests cineon
-- -> You can find it at Recent checkout of oiio-images
--
Did not find /home/adro/Applications/3D/USD/AuroraExternals/build/oiio-2.4.5.0/Release/testsuite/oiio-images
-- -> Will not run tests dpx
-- -> You can find it at Recent checkout of oiio-images
--
Did not find /home/adro/Applications/3D/USD/AuroraExternals/build/oiio-2.4.5.0/Release/testsuite/oiio-images/dds
-- -> Will not run tests dds
-- -> You can find it at Recent checkout of oiio-images
--
Did not find /home/adro/Applications/3D/USD/AuroraExternals/build/oiio-2.4.5.0/Release/testsuite/fits-images
-- -> Will not run tests fits
-- -> You can find it at http://www.cv.nrao.edu/fits/data/tests/
--
Did not find /home/adro/Applications/3D/USD/AuroraExternals/build/oiio-2.4.5.0/Release/testsuite/oiio-images
-- -> Will not run tests gif
-- -> You can find it at Recent checkout of oiio-images
--
Did not find /home/adro/Applications/3D/USD/AuroraExternals/build/oiio-2.4.5.0/Release/testsuite/openexr-images
-- -> Will not run tests hdr
-- -> You can find it at http://github.com/AcademySoftwareFoundation/openexr-images
--
Did not find /home/adro/Applications/3D/USD/AuroraExternals/build/oiio-2.4.5.0/Release/testsuite/oiio-images
-- -> Will not run tests ico
-- -> You can find it at Recent checkout of oiio-images
--
Did not find /home/adro/Applications/3D/USD/AuroraExternals/build/oiio-2.4.5.0/Release/testsuite/oiio-images
-- -> Will not run tests iff
-- -> You can find it at Recent checkout of oiio-images
--
Did not find /home/adro/Applications/3D/USD/AuroraExternals/build/oiio-2.4.5.0/Release/testsuite/oiio-images
-- -> Will not run tests jpeg2000
-- -> You can find it at Recent checkout of oiio-images
--
Did not find /home/adro/Applications/3D/USD/AuroraExternals/build/oiio-2.4.5.0/Release/testsuite/j2kp4files_v1_5
-- -> Will not run tests jpeg2000-j2kp4files
-- -> You can find it at http://www.itu.int/net/ITU-T/sigdb/speimage/ImageForm-s.aspx?val=10100803
--
Did not find /home/adro/Applications/3D/USD/AuroraExternals/build/oiio-2.4.5.0/Release/testsuite/openexr-images
-- -> Will not run tests openexr-suite;openexr-multires;openexr-chroma;openexr-v2;openexr-window;perchannel;oiiotool-deep
-- -> You can find it at http://github.com/AcademySoftwareFoundation/openexr-images
--
Did not find /home/adro/Applications/3D/USD/AuroraExternals/build/oiio-2.4.5.0/Release/testsuite/oiio-images
-- -> Will not run tests png;png-damaged
-- -> You can find it at
--
Did not find /home/adro/Applications/3D/USD/AuroraExternals/build/oiio-2.4.5.0/Release/testsuite/oiio-images
-- -> Will not run tests pnm
-- -> You can find it at
--
Did not find /home/adro/Applications/3D/USD/AuroraExternals/build/oiio-2.4.5.0/Release/testsuite/oiio-images
-- -> Will not run tests psd;psd-colormodes
-- -> You can find it at
--
Did not find /home/adro/Applications/3D/USD/AuroraExternals/build/oiio-2.4.5.0/Release/testsuite/oiio-images/raw
-- -> Will not run tests raw
-- -> You can find it at
--
Did not find /home/adro/Applications/3D/USD/AuroraExternals/build/oiio-2.4.5.0/Release/testsuite/oiio-images
-- -> Will not run tests rla
-- -> You can find it at
--
Did not find /home/adro/Applications/3D/USD/AuroraExternals/build/oiio-2.4.5.0/Release/testsuite/oiio-images
-- -> Will not run tests sgi
-- -> You can find it at
--
Did not find /home/adro/Applications/3D/USD/AuroraExternals/build/oiio-2.4.5.0/Release/testsuite/oiio-images
-- -> Will not run tests targa
-- -> You can find it at
--
Did not find /home/adro/Applications/3D/USD/AuroraExternals/build/oiio-2.4.5.0/Release/testsuite/oiio-images/libtiffpic
-- -> Will not run tests tiff-suite;tiff-depths;tiff-misc
-- -> You can find it at
--
Did not find /home/adro/Applications/3D/USD/AuroraExternals/build/oiio-2.4.5.0/Release/testsuite/oiio-images/webp
-- -> Will not run tests webp
-- -> You can find it at
--
Did not find /home/adro/Applications/3D/USD/AuroraExternals/build/oiio-2.4.5.0/Release/testsuite/oiio-images
-- -> Will not run tests zfile
-- -> You can find it at
-- Configuring done (0.2s)
CMake Error at /home/adro/Applications/3D/USD/AuroraExternals/OpenEXR/lib/cmake/OpenEXR/OpenEXRConfig.cmake:68 (set_target_properties):
The link interface of target "OpenEXR::IlmImf" contains:
IlmBase::Iex
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
Call Stack (most recent call first):
src/cmake/modules/FindOpenEXR.cmake:43 (find_package)
src/cmake/checked_find_package.cmake:127 (find_package)
src/cmake/externalpackages.cmake:96 (checked_find_package)
CMakeLists.txt:154 (include)
-- Generating done (0.0s)
CMake Generate step failed. Build files cannot be regenerated correctly.
Traceback (most recent call last):
File "/home/adro/Applications/3D/USD/Aurora/Scripts/installExternals.py", line 1721, in <module>
dep.installer(context,
File "/home/adro/Applications/3D/USD/Aurora/Scripts/installExternals.py", line 1068, in InstallOpenImageIO
RunCMake(context, force, OIIO_INSTALL_FOLDER, extraArgs, configExtraArgs=tbbConfigs)
File "/home/adro/Applications/3D/USD/Aurora/Scripts/installExternals.py", line 381, in RunCMake
Run('cmake '
File "/home/adro/Applications/3D/USD/Aurora/Scripts/installExternals.py", line 269, in Run
raise RuntimeError("Failed to run '{cmd}'\nSee {log} for more details."
RuntimeError: Failed to run 'cmake -DCMAKE_INSTALL_PREFIX="/home/adro/Applications/3D/USD/AuroraExternals/OpenImageIO" -DCMAKE_PREFIX_PATH="/home/adro/Applications/3D/USD/AuroraExternals/cxxopts;/home/adro/Applications/3D/USD/AuroraExternals/tbb;/home/adro/Applications/3D/USD/AuroraExternals/OpenSubdiv;/home/adro/Applications/3D/USD/AuroraExternals/tinyobjloader;/home/adro/Applications/3D/USD/AuroraExternals/OpenImageIO;/home/adro/Applications/3D/USD/AuroraExternals/MaterialX;/home/adro/Applications/3D/USD/AuroraExternals/stb;/home/adro/Applications/3D/USD/AuroraExternals/OpenEXR;/home/adro/Applications/3D/USD/AuroraExternals/USD;/home/adro/Applications/3D/USD/AuroraExternals/Slang;/home/adro/Applications/3D/USD/AuroraExternals/boost;/home/adro/Applications/3D/USD/AuroraExternals/tinygltf" -DCMAKE_BUILD_TYPE=Release -DCMAKE_DEBUG_POSTFIX="d" -DOIIO_BUILD_TOOLS=OFF -DOIIO_BUILD_TESTS=OFF -DUSE_PYTHON=OFF -DSTOP_ON_WARNING=OFF -DUSE_PTEX=OFF -DBoost_NO_BOOST_CMAKE=On -DBoost_NO_SYSTEM_PATHS=True -DOPENEXR_ROOT="/home/adro/Applications/3D/USD/AuroraExternals/OpenEXR" -DTBB_USE_DEBUG_BUILD=OFF "/home/adro/Applications/3D/USD/AuroraExternals/src/oiio-2.4.5.0"'
See /home/adro/Applications/3D/USD/AuroraExternals/build/oiio-2.4.5.0/Release/log.txt for more details.
ERROR: Failed to run 'cmake -DCMAKE_INSTALL_PREFIX="/home/adro/Applications/3D/USD/AuroraExternals/OpenImageIO" -DCMAKE_PREFIX_PATH="/home/adro/Applications/3D/USD/AuroraExternals/cxxopts;/home/adro/Applications/3D/USD/AuroraExternals/tbb;/home/adro/Applications/3D/USD/AuroraExternals/OpenSubdiv;/home/adro/Applications/3D/USD/AuroraExternals/tinyobjloader;/home/adro/Applications/3D/USD/AuroraExternals/OpenImageIO;/home/adro/Applications/3D/USD/AuroraExternals/MaterialX;/home/adro/Applications/3D/USD/AuroraExternals/stb;/home/adro/Applications/3D/USD/AuroraExternals/OpenEXR;/home/adro/Applications/3D/USD/AuroraExternals/USD;/home/adro/Applications/3D/USD/AuroraExternals/Slang;/home/adro/Applications/3D/USD/AuroraExternals/boost;/home/adro/Applications/3D/USD/AuroraExternals/tinygltf" -DCMAKE_BUILD_TYPE=Release -DCMAKE_DEBUG_POSTFIX="d" -DOIIO_BUILD_TOOLS=OFF -DOIIO_BUILD_TESTS=OFF -DUSE_PYTHON=OFF -DSTOP_ON_WARNING=OFF -DUSE_PTEX=OFF -DBoost_NO_BOOST_CMAKE=On -DBoost_NO_SYSTEM_PATHS=True -DOPENEXR_ROOT="/home/adro/Applications/3D/USD/AuroraExternals/OpenEXR" -DTBB_USE_DEBUG_BUILD=OFF "/home/adro/Applications/3D/USD/AuroraExternals/src/oiio-2.4.5.0"'
See /home/adro/Applications/3D/USD/AuroraExternals/build/oiio-2.4.5.0/Release/log.txt for more details.
Also one more question, Is there a cmake flag to disable the externals config file? It would be nice to try building with the system packages? This will not get pass the USD part as it does not currently builds in Arch. I'll try with Aurora again once I have USD built.
Hmm, not much info from -v
. As far as I can see, the build broke in OpenEXR. It looks like a cmake error in OpenEXR's cmake files. I wonder if IlmImf
used by OpenEXR is not the right version it should use.
I can build the externals on Ubuntu couple weeks ago. I'll retry the build and see if I can reproduce this issue.
On disabling the externals. There is no such cmake option right now; the only way to do it is to edit externalsConfig.cmake
. Just remove the <package>_ROOT
that you want to use from the system installed one.
Simply -D <package>_ROOT=/
might just work. If cmake cannot find the package at <package>_ROOT
you defined, it will just try to find it at some default paths.
Hi there, Now that I successfully built USD in Arch Linux with Vulkan support, I can progress building Aurora.
I followed the previous tip so I can point out the system packages, here's my CMake flags:
-DCMAKE_INSTALL_PREFIX:PATH=/usr/autodesk/aurora
-DCMAKE_BUILD_TYPE=Release
-DEXTERNALS_ROOT=/
-DPXR_INCLUDE_DIR=/usr/share/usd/include
-DPXR_LIBRARIES=/usr/share/usd/lib
-DUSD_hgiVulkan_LIBRARY_RELEASE=/usr/share/usd/lib/libusd_hgiVulkan.so
-Dstb_INCLUDE_DIR=/usr/include
-Dtinyobjloader_INCLUDE_DIR=/usr/include
-Dtinyobjloader_LIBRARIES=/usr/lib
But after this I am getting this error:
-- Load externals config file: /home/adro/Applications/AUR/autodesk-aurora/src/Aurora/Scripts/cmake/externalsDefaultConfig.cmake
-- Found Vulkan: /usr/lib/libvulkan.so (found version "1.3.246") found components: shaderc_combined glslc glslangValidator
-- Found Vulkan: /usr/lib/libvulkan.so (found version "1.3.246") found components: glslc glslangValidator
-- Found stb: /usr/include
-- Found GLEW: /usr/include (found version "2.2.0")
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.13")
-- Found PNG: /usr/lib/libpng.so (found version "1.6.39")
-- Found GTest: /usr/lib/cmake/GTest/GTestConfig.cmake (found version "1.13.0")
-- Found tinyobjloader: /usr/include
-- Configuring done (0.5s)
CMake Error at Libraries/Aurora/CMakeLists.txt:377 (target_link_libraries):
Target "Aurora" links to:
pxr::usd
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
CMake Error at Libraries/HdAurora/CMakeLists.txt:48 (target_link_libraries):
Target "hdAurora" links to:
glm::glm
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
CMake Error at Tests/Foundation/CMakeLists.txt:38 (target_link_libraries):
Target "FoundationTests" links to:
glm::glm
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
CMake Error at Tests/AuroraInternals/CMakeLists.txt:67 (target_link_libraries):
Target "AuroraInternalsTests" links to:
glm::glm
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
CMake Error at Tests/Aurora/CMakeLists.txt:49 (target_link_libraries):
Target "AuroraTests" links to:
glm::glm
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
CMake Error at Applications/Plasma/CMakeLists.txt:49 (target_link_libraries):
Target "Plasma" links to:
glm::glm
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
-- Generating done (0.0s)
CMake Generate step failed. Build files cannot be regenerated correctly.
Try editing /home/adro/Applications/AUR/autodesk-aurora/src/Aurora/Scripts/cmake/externalsDefaultConfig.cmake
and updating the xxx_ROOT to your library installation.
Do not define variables such as PXR_INCLUDE_DIR in your cmake command line. They will not work well in Aurora since we use targets in Aurora cmake.
Let me know if that works for you. Thanks.
Thanks for your suggestion! I'll try your way, but this is keeping me from continuing (I already specified the tinygltf path /usr/include/tinygltf)
CMake Error at Applications/Plasma/CMakeLists.txt:13 (find_package):
By not providing "FindTinyGLTF.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "TinyGLTF",
but CMake did not find one.
Could not find a package configuration file provided by "TinyGLTF" with any
of the following names:
TinyGLTFConfig.cmake
tinygltf-config.cmake
Add the installation prefix of "TinyGLTF" to CMAKE_PREFIX_PATH or set
"TinyGLTF_DIR" to a directory containing one of the above files. If
"TinyGLTF" provides a separate development package or SDK, be sure it has
been installed.
Okay I tried with another tinygltf package and It passed it but I'm getting the same "target_link_libraries" error as before..
What targets are missing right now?
Could you show me the CMake command you currently use? If you modified externalsDefaultConfig.cmake
, please attach it here so I can take a look.
Here's the PKGBUILD that I made:
# Maintainer: Adrià Cabello <adro.cc79 at protonmail dot com>
pkgname=autodesk-aurora
_pkgver_major=23
_pkgver_minor=03
pkgver=${_pkgver_major}.${_pkgver_minor}
pkgrel=1
pkgdesc="Aurora is a real-time path tracing renderer that leverages GPU hardware ray tracing."
arch=('x86_64')
url="https://github.com/Autodesk/Aurora"
license=('Apache')
depends+=('python' 'clang' 'vulkan-extra-tools' 'stb' 'cxxopts' 'tinygltf')
makedepends+=('cmake')
provides=('autodesk-aurora')
source=(git+"https://github.com/Autodesk/Aurora.git#tag=v${pkgver}"
"aurora_dependencies.patch"
md5sums=('SKIP'
'SKIP'
'SKIP')
#sudo apt-get -y install zlib1g-dev libjpeg-turbo8-dev libtiff-dev libpng-dev libglm-dev libglew-dev libglfw3-dev libgtest-dev libgmock-dev
prepare () {
patch --directory=Aurora --forward --strip=1 --input="${srcdir}/aurora_dependencies.patch"
}
build() {
_CMAKE_FLAGS+=(
-DCMAKE_INSTALL_PREFIX:PATH=/usr/autodesk/aurora
-DCMAKE_BUILD_TYPE=Release
-DEXTERNALS_ROOT=/usr
)
export VULKAN_SDK+=/usr
cmake -S Aurora -B build -G Ninja "${_CMAKE_FLAGS[@]}"
ninja -C build --config Release
}
package() {
DESTDIR="$pkgdir" ninja -C build install
mkdir -p $pkgdir/usr/bin
ln -s "/usr/usd/bin/*" "$pkgdir/usr/bin/*"
}
package() {
mkdir -p "${pkgdir}/usr/bin"
}
And here's the edited externalsDefaultConfig.cmake
:
Do you install all externals to /usr/
? Since you set EXTERNALS_ROOT=/usr
and most of the xxx_ROOT in your externalsDefaultConfig.txt
are = ${EXTERNALS_ROOT}
, cmake is going to try to find the packages inside /usr/
.
Do you have externalsConfig.cmake
next to externalsDefaultConfig.txt
? If you ran installExternals.py
successfully before, you should have externalsConfig.cmake
created by installExternals.py
. If externalsConfig.cmake
exists, have you tried a simple cmake command cmake -S . -B Build
?
This is because I want to try building Aurora with system packages, and those are located in /usr
Even with building with installExternals.py (oiio and USD builds doesn't work) I come to the same error, and it seems that this time glm is the only one that fails:
CMake Error at Applications/Plasma/CMakeLists.txt:49 (target_link_libraries):
Target "Plasma" links to:
glm::glm
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
Maybe the glm folder structure is different from Ubuntu? In Arch Linux, the glm.hpp is located in /usr/include/glm/glm.hpp
Here's the generated externalsConfig.cmake
(I just edited the USD and the oiio paths so I can use the system's ones)
externalsConfig.txt
Could you find glmConfig.cmake
in you system? Mine on Ubuntu is at /usr/lib/cmake/glm
.
If you have glmConfig.cmake
in you system, try to set glm_DIR=<path-to-your-glmCongig.cmake>
and run cmake again. It should find glm this time (hopefully ;).
Hi Andy,
That didn't work unfortunately. I ended up downloading the libglm-dev package from ubuntu and setting the GLM_ROOT to this package, it's a little bit dirty but it worked.
I don't know if there's some changes in glm 0.9.9.8 compared to Ubuntu's 0.9.9.7.
Passing the configuration part I have quite a lot of problems starting the build:
[ 1%] Building CXX object Libraries/Foundation/CMakeFiles/Foundation.dir/Source/Utilities.cpp.o
/home/adro/Applications/AUR/autodesk-aurora/src/Aurora/Libraries/Foundation/Source/Utilities.cpp:86:45: error: ISO C++11 requires at least one argument for the "..." in a variadic macro [-Werror]
86 | AU_FAIL("Failed to get module path.");
| ^
In file included from /home/adro/Applications/AUR/autodesk-aurora/src/Aurora/Libraries/Foundation/Source/Utilities.cpp:15:
/home/adro/Applications/AUR/autodesk-aurora/src/Aurora/Libraries/Foundation/API/Aurora/Foundation/Utilities.h:37:28: error: ‘uint32_t’ does not name a type
37 | std::size_t hashInts(const uint32_t* pFirst, size_t count);
| ^~~~~~~~
/home/adro/Applications/AUR/autodesk-aurora/src/Aurora/Libraries/Foundation/API/Aurora/Foundation/Utilities.h:27:1: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
26 | #include <vector>
+++ |+#include <cstdint>
27 |
In file included from /home/adro/Applications/AUR/autodesk-aurora/src/Aurora/Libraries/Foundation/Source/Utilities.cpp:16:
/home/adro/Applications/AUR/autodesk-aurora/src/Aurora/Libraries/Foundation/API/Aurora/Foundation/Log.h:308:6: error: extra ‘;’ [-Werror=pedantic]
308 | };
| ^
| -
/home/adro/Applications/AUR/autodesk-aurora/src/Aurora/Libraries/Foundation/Source/Utilities.cpp:37:23: error: ‘uint32_t’ does not name a type
37 | size_t hashInts(const uint32_t* pFirst, size_t count)
| ^~~~~~~~
/home/adro/Applications/AUR/autodesk-aurora/src/Aurora/Libraries/Foundation/Source/Utilities.cpp:24:1: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
23 | #include <limits.h>
+++ |+#include <cstdint>
24 | #include <stdio.h>
/home/adro/Applications/AUR/autodesk-aurora/src/Aurora/Libraries/Foundation/Source/Utilities.cpp: In function ‘size_t Aurora::Foundation::hashInts(const int*, size_t)’:
/home/adro/Applications/AUR/autodesk-aurora/src/Aurora/Libraries/Foundation/Source/Utilities.cpp:42:37: error: ‘uint32_t’ was not declared in this scope
42 | hashCombine(seed, std::hash<uint32_t>()(pFirst[i]));
| ^~~~~~~~
/home/adro/Applications/AUR/autodesk-aurora/src/Aurora/Libraries/Foundation/Source/Utilities.cpp:42:37: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/home/adro/Applications/AUR/autodesk-aurora/src/Aurora/Libraries/Foundation/Source/Utilities.cpp:42:45: error: template argument 1 is invalid
42 | hashCombine(seed, std::hash<uint32_t>()(pFirst[i]));
| ^
/home/adro/Applications/AUR/autodesk-aurora/src/Aurora/Libraries/Foundation/API/Aurora/Foundation/Log.h: In instantiation of ‘std::string Aurora::Foundation::Log::stringFormat(const std::string&, Args ...) [with Args = {}; std::string = std::__cxx11::basic_string<char>]’:
/home/adro/Applications/AUR/autodesk-aurora/src/Aurora/Libraries/Foundation/API/Aurora/Foundation/Log.h:187:48: required from ‘bool Aurora::Foundation::Log::log(Level, std::ostream&, const std::string&, int, const std::string&, Args ...) [with Args = {}; std::ostream = std::basic_ostream<char>; std::string = std::__cxx11::basic_string<char>]’
/home/adro/Applications/AUR/autodesk-aurora/src/Aurora/Libraries/Foundation/API/Aurora/Foundation/Log.h:244:25: required from ‘static bool Aurora::Foundation::Log::fail(const std::string&, int, const std::string&, Args ...) [with Args = {}; std::string = std::__cxx11::basic_string<char>]’
/home/adro/Applications/AUR/autodesk-aurora/src/Aurora/Libraries/Foundation/Source/Utilities.cpp:86:9: required from here
/home/adro/Applications/AUR/autodesk-aurora/src/Aurora/Libraries/Foundation/API/Aurora/Foundation/Log.h:277:46: error: format not a string literal and no format arguments [-Werror=format-security]
277 | int size = std::snprintf(nullptr, 0, formatStr, args...) + 2;
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/adro/Applications/AUR/autodesk-aurora/src/Aurora/Libraries/Foundation/API/Aurora/Foundation/Log.h:288:22: error: format not a string literal and no format arguments [-Werror=format-security]
288 | std::snprintf(buf.data(), size, formatStr, args...);
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
At global scope:
cc1plus: note: unrecognized command-line option ‘-Wno-gnu-zero-variadic-macro-arguments’ may have been intended to silence earlier diagnostics
cc1plus: all warnings being treated as errors
make[2]: *** [Libraries/Foundation/CMakeFiles/Foundation.dir/build.make:76: Libraries/Foundation/CMakeFiles/Foundation.dir/Source/Utilities.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:279: Libraries/Foundation/CMakeFiles/Foundation.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
I'll try to fix those out if I can.
Which compiler do you use? clang-14 should work but gcc is likely not.
I did use gcc since is the default but I found another similar issue where you specify to use clang so I added -DCMAKE_C_COMPILER=clang
and -DCMAKE_CXX_COMPILER=clang++
to the CMake flags.
After some tweaking I sucessfully built Aurora, there's some missing libraries for boost and python but copying the files into lib fixes it (I still have to clean a lot but this is definitively some progress)
Changes I made when building:
#include <cstdint>
to Libraries/Foundation/API/Aurora/Foundation/Utilities.h
and Libraries/Foundation/Source/Utilities.cpp
Aurora's Version of USD
before knowing so I had problems searching for the RayTracingPipeline.h
header file.After copying the missing libraries into the lib directory I sucessfully ran Plasma:
Thanks a lot for your help Andy! I'll close this issue for now.
Hello there,
I'm trying to build Aurora in Arch Linux, currently failing on building openimageIO
This is the log: