Closed Niwol closed 2 years ago
Seems like https://github.com/nlohmann/json/ branch release/3.10.5 have been deleted.
Quick fix: edit external/Core/CMakeLists.txt and change line 84 from GIT_TAG release/3.10.5
to GIT_TAG tags/v3.10.5
should solve the problem (PR welcome if it solve your problem).
Seems like https://github.com/nlohmann/json/ branch release/3.10.5 have been deleted.
Quick fix: edit external/Core/CMakeLists.txt and change line 84 from GIT_TAG release/3.10.5
to GIT_TAG tags/v3.10.5
should solve the problem (PR welcome if it solve your problem).
This fixed this issue and the PR is done (I hope it satisfies the requirements)
I have another problem with tinyEXR know tho, I'm not sure if this is related
Cloning into 'tinyEXR'...
remote: Enumerating objects: 637, done.
remote: Counting objects: 100% (637/637), done.
remote: Compressing objects: 100% (491/491), done.
remote: Total 637 (delta 252), reused 460 (delta 120), pack-reused 0
Receiving objects: 100% (637/637), 22.58 MiB | 101.00 KiB/s, done.
Resolving deltas: 100% (252/252), done.
HEAD is now at a9cea1c fix install on windows
Submodule 'deps/ZFP' (https://github.com/LLNL/ZFP.git) registered for path 'deps/ZFP'
Cloning into '/home/lowin/Documents/projects/univ/Radium/Radium-external/build/Release/Engine/tinyEXR-prefix/src/tinyEXR/deps/ZFP'...
Submodule path 'deps/ZFP': checked out 'a26be7c44ed4920e0fa27ef9562dc06d7d87b1b8'
[ 37%] Performing update step for 'tinyEXR'
HEAD is now at a9cea1c fix install on windows
[ 39%] No patch step for 'tinyEXR'
[ 39%] Performing configure step for 'tinyEXR'
Not searching for unused variables given on the command line.
-- --The CXX compiler identification is Clang 14.0.0
-- --Detecting CXX compiler ABI info
-- --Detecting CXX compiler ABI info - done
-- --Check for working CXX compiler: /usr/bin/c++ - skipped
-- --Detecting CXX compile features
-- --Detecting CXX compile features - done
-- --tinyEXR uses miniz
-- --The C compiler identification is GNU 11.2.0
-- --Detecting C compiler ABI info
-- --Detecting C compiler ABI info - done
-- --Check for working C compiler: /usr/bin/cc - skipped
-- --Detecting C compile features
-- --Detecting C compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/lowin/Documents/projects/univ/Radium/Radium-external/build/Release/Engine/tinyEXR-prefix/src/tinyEXR-build
[ 41%] Performing build step for 'tinyEXR'
[ 25%] Building C object CMakeFiles/miniz.dir/deps/miniz/miniz.c.o
/home/lowin/Documents/projects/univ/Radium/Radium-external/build/Release/Engine/tinyEXR-prefix/src/tinyEXR/deps/miniz/miniz.c:3089:9: note: ‘#pragma message: Using fopen, ftello, fseeko, stat() etc. path for file I/O - this path may not support large files.’
3089 | #pragma message("Using fopen, ftello, fseeko, stat() etc. path for file I/O - this path may not support large files.")
| ^~~~~~~
[ 50%] Linking C static library libminiz.a
[ 50%] Built target miniz
[ 75%] Building CXX object CMakeFiles/tinyEXR.dir/tinyexr.cc.o
[100%] Linking CXX shared library libtinyEXR.so
/usr/bin/ld: libminiz.a(miniz.c.o): warning: relocation against `miniz_def_free_func' in read-only section `.text'
/usr/bin/ld: libminiz.a(miniz.c.o): relocation R_X86_64_PC32 against symbol `miniz_def_realloc_func' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[5]: *** [CMakeFiles/tinyEXR.dir/build.make:98: libtinyEXR.so] Error 1
make[4]: *** [CMakeFiles/Makefile2:111: CMakeFiles/tinyEXR.dir/all] Error 2
make[3]: *** [Makefile:136: all] Error 2
make[2]: *** [Engine/CMakeFiles/tinyEXR.dir/build.make:86: Engine/tinyEXR-prefix/src/tinyEXR-stamp/tinyEXR-build] Error 2
make[1]: *** [CMakeFiles/Makefile2:676: Engine/CMakeFiles/tinyEXR.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
Seems tinyEXR issue is not related, do you still have the issue ? On my system (Debian GNU/Linux 11 (bullseye)) I have the following output for tinyEXR build
[ 35%] Creating directories for 'tinyEXR'
[ 37%] Performing download step (git clone) for 'tinyEXR'
Cloning into 'tinyEXR'...
remote: Enumerating objects: 637, done.
remote: Counting objects: 100% (637/637), done.
remote: Compressing objects: 100% (491/491), done.
remote: Total 637 (delta 252), reused 460 (delta 120), pack-reused 0
Receiving objects: 100% (637/637), 22.58 MiB | 10.74 MiB/s, done.
Resolving deltas: 100% (252/252), done.
HEAD is now at a9cea1c fix install on windows
Submodule 'deps/ZFP' (https://github.com/LLNL/ZFP.git) registered for path 'deps/ZFP'
Cloning into '/build-dir/Engine/tinyEXR-prefix/src/tinyEXR/deps/ZFP'...
Submodule path 'deps/ZFP': checked out 'a26be7c44ed4920e0fa27ef9562dc06d7d87b1b8'
[ 37%] Performing update step for 'tinyEXR'
HEAD is now at a9cea1c fix install on windows
[ 39%] No patch step for 'tinyEXR'
[ 39%] Performing configure step for 'tinyEXR'
Not searching for unused variables given on the command line.
-- --The CXX compiler identification is GNU 10.2.1
-- --Detecting CXX compiler ABI info
-- --Detecting CXX compiler ABI info - done
-- --Check for working CXX compiler: /usr/bin/c++ - skipped
-- --Detecting CXX compile features
-- --Detecting CXX compile features - done
-- --tinyEXR uses zlib
-- Configuring done
-- Generating done
-- Build files have been written to: /build-dir/Engine/tinyEXR-prefix/src/tinyEXR-build
[ 41%] Performing build step for 'tinyEXR'
[ 50%] Building CXX object CMakeFiles/tinyEXR.dir/tinyexr.cc.o
[100%] Linking CXX shared library libtinyEXR.so
[100%] Built target tinyEXR
[ 41%] Performing install step for 'tinyEXR'
Consolidate compiler generated dependencies of target tinyEXR
[100%] Built target tinyEXR
Install the project...
-- Install configuration: "Release"
-- Installing: /install-dir/include/tinyEXR/tinyexr.h
-- Installing: /install-dir/share/tinyEXR/cmake/tinyEXRConfig.cmake
-- Installing: /install-dir/share/tinyEXR/cmake/tinyEXRTargets.cmake
-- Installing: /install-dir/share/tinyEXR/cmake/tinyEXRTargets-release.cmake
-- Installing: /install-dir/lib/libtinyEXR.so
[ 43%] Completed 'tinyEXR'
[ 43%] Built target tinyEXR
yes i still have the same issue
Ok, I see we have use a forked version of tinyEXR, can you try ton compile from https://github.com/MathiasPaulin/tinyexr/tree/radium and open an issue on MathiasPaulin/tineyexr repo if you have the same issue out of radium external build.
@Niwol I've fixed (I hope) your problem. So, you can solve it either by building the TinyEXR external (just delete your build-dir/Engine/tinyEXR-prefix directory and configure/compile your externals again, this will pull and compile only TinyEXR) or install zlib on your system. If this does not solve your problem, open an issue on https://github.com/MathiasPaulin/tinyexr/tree/radium If this fix solved your problem, please close this issue.
Installing zlib fixed the problem, thank you.
Hello, I am trying to compile the radium externals as described in the documentation and I get this error
I am trying to do this on a relatively fresh installation of Ubuntu 22.04.1 LTS. I never had this issue befor so i am not sure if this is a problem with my computer or comes from Radium.