KhronosGroup / glTF-IBL-Sampler

Sampler to create the glTF sample environments
Apache License 2.0
130 stars 18 forks source link

thirdparty/KTX-Software/.../basisu_kernels_sse.cpp:36:26: error: #error, Please check your compiler options #31

Open djkato opened 1 month ago

djkato commented 1 month ago

hello, trying to build this on Linux. I don't know CPP, and readme doesn't mention any other steps besides cloning all submodules? So not sure which build options I'm meant to set. I'm getting the following issues:

djkato@djkato-vfx ~/C/glTF-IBL-Sampler (main)> cmake .
-- The C compiler identification is GNU 11.4.1
-- The CXX compiler identification is GNU 11.4.1
-- 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
-- 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
-- 'IBLSAMPLER_EXPORT_SHADERS' is FALSE
-- Found Vulkan: /lib64/libvulkan.so (found version "1.3.268") found components: glslangValidator missing components: glslc
-- No build type selected, default to Debug
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
CMake Warning (dev) at thirdparty/KTX-Software.cmake:4:
  Syntax Warning in cmake code at column 62

  Argument not separated from preceding token by whitespace.
Call Stack (most recent call first):
  CMakeLists.txt:116 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- 
-- Configuring done (0.3s)
-- Generating done (0.0s)
-- Build files have been written to: /home/djkato/Code/glTF-IBL-Sampler
djkato@djkato-vfx ~/C/glTF-IBL-Sampler (main) [127]> make
[  1%] Building CXX object thirdparty/glslang/OGLCompilersDLL/CMakeFiles/OGLCompiler.dir/InitializeDll.cpp.o
[  2%] Linking CXX static library libOGLCompiler.a
[  2%] Built target OGLCompiler
[  4%] Building CXX object thirdparty/glslang/glslang/CMakeFiles/GenericCodeGen.dir/GenericCodeGen/CodeGen.cpp.o
[  5%] Building CXX object thirdparty/glslang/glslang/CMakeFiles/GenericCodeGen.dir/GenericCodeGen/Link.cpp.o
[  7%] Linking CXX static library libGenericCodeGen.a
[  7%] Built target GenericCodeGen
[  8%] Building CXX object thirdparty/glslang/glslang/OSDependent/Unix/CMakeFiles/OSDependent.dir/ossource.cpp.o
[ 10%] Linking CXX static library libOSDependent.a
[ 10%] Built target OSDependent
[ 11%] Building CXX object thirdparty/glslang/glslang/CMakeFiles/MachineIndependent.dir/cmake_pch.hxx.gch
[ 13%] Building CXX object thirdparty/glslang/glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/glslang_tab.cpp.o
[ 14%] Building CXX object thirdparty/glslang/glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/attribute.cpp.o
[ 16%] Building CXX object thirdparty/glslang/glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/Constant.cpp.o
[ 17%] Building CXX object thirdparty/glslang/glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/iomapper.cpp.o
[ 19%] Building CXX object thirdparty/glslang/glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/InfoSink.cpp.o
[ 20%] Building CXX object thirdparty/glslang/glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/Initialize.cpp.o
[ 22%] Building CXX object thirdparty/glslang/glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/IntermTraverse.cpp.o
[ 23%] Building CXX object thirdparty/glslang/glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/Intermediate.cpp.o
[ 25%] Building CXX object thirdparty/glslang/glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/ParseContextBase.cpp.o
[ 26%] Building CXX object thirdparty/glslang/glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/ParseHelper.cpp.o
[ 28%] Building CXX object thirdparty/glslang/glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/PoolAlloc.cpp.o
[ 29%] Building CXX object thirdparty/glslang/glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/RemoveTree.cpp.o
[ 31%] Building CXX object thirdparty/glslang/glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/Scan.cpp.o
[ 32%] Building CXX object thirdparty/glslang/glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/ShaderLang.cpp.o
[ 34%] Building CXX object thirdparty/glslang/glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/SpirvIntrinsics.cpp.o
[ 35%] Building CXX object thirdparty/glslang/glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/SymbolTable.cpp.o
[ 37%] Building CXX object thirdparty/glslang/glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/Versions.cpp.o
[ 38%] Building CXX object thirdparty/glslang/glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/intermOut.cpp.o
[ 40%] Building CXX object thirdparty/glslang/glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/limits.cpp.o
[ 41%] Building CXX object thirdparty/glslang/glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/linkValidate.cpp.o
[ 43%] Building CXX object thirdparty/glslang/glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/parseConst.cpp.o
[ 44%] Building CXX object thirdparty/glslang/glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/reflection.cpp.o
[ 46%] Building CXX object thirdparty/glslang/glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/preprocessor/Pp.cpp.o
[ 47%] Building CXX object thirdparty/glslang/glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/preprocessor/PpAtom.cpp.o
[ 49%] Building CXX object thirdparty/glslang/glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/preprocessor/PpContext.cpp.o
[ 50%] Building CXX object thirdparty/glslang/glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/preprocessor/PpScanner.cpp.o
[ 52%] Building CXX object thirdparty/glslang/glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/preprocessor/PpTokens.cpp.o
[ 53%] Building CXX object thirdparty/glslang/glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/propagateNoContraction.cpp.o
[ 55%] Linking CXX static library libMachineIndependent.a
[ 55%] Built target MachineIndependent
[ 56%] Building CXX object thirdparty/glslang/SPIRV/CMakeFiles/SPIRV.dir/GlslangToSpv.cpp.o
[ 58%] Building CXX object thirdparty/glslang/SPIRV/CMakeFiles/SPIRV.dir/InReadableOrder.cpp.o
[ 59%] Building CXX object thirdparty/glslang/SPIRV/CMakeFiles/SPIRV.dir/Logger.cpp.o
[ 61%] Building CXX object thirdparty/glslang/SPIRV/CMakeFiles/SPIRV.dir/SpvBuilder.cpp.o
[ 62%] Building CXX object thirdparty/glslang/SPIRV/CMakeFiles/SPIRV.dir/SpvPostProcess.cpp.o
[ 64%] Building CXX object thirdparty/glslang/SPIRV/CMakeFiles/SPIRV.dir/doc.cpp.o
[ 65%] Building CXX object thirdparty/glslang/SPIRV/CMakeFiles/SPIRV.dir/SpvTools.cpp.o
[ 67%] Building CXX object thirdparty/glslang/SPIRV/CMakeFiles/SPIRV.dir/disassemble.cpp.o
[ 68%] Building CXX object thirdparty/glslang/SPIRV/CMakeFiles/SPIRV.dir/CInterface/spirv_c_interface.cpp.o
[ 70%] Linking CXX static library libSPIRV.a
[ 70%] Built target SPIRV
[ 71%] Creating directories for 'Ktx'
[ 73%] No download step for 'Ktx'
[ 74%] No update step for 'Ktx'
[ 76%] No patch step for 'Ktx'
[ 77%] Performing configure step for 'Ktx'
CMake Warning:
  Ignoring extra path from command line:

   "/home/djkato/Code/glTF-IBL-Sampler/Ktx/src/Ktx-build/ -DCMAKE_OSX_DEPLOYMENT_TARGET= -DCMAKE_OSX_ARCHITECTURES="

-- Found Bash: /usr/bin/bash  
-- The C compiler identification is GNU 11.4.1
-- The CXX compiler identification is GNU 11.4.1
-- 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
-- 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
-- Found Perl: /usr/bin/perl (found version "5.32.1") 
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Configuring done (0.3s)
-- Generating done (0.0s)
CMake Warning:
  Manually-specified variables were not used by the project:

    XCODE_CODE_SIGN_IDENTITY

-- Build files have been written to: /home/djkato/Code/glTF-IBL-Sampler/Ktx/src/Ktx-build
[ 79%] Performing build step for 'Ktx'
[  1%] Generate lib/version.h
[  1%] Built target ktx_version
[  2%] Built target mkvkformatfiles
[  3%] Generating VkFormat/DFD switch body
[  4%] Built target makevkswitch
[  5%] Generating DFD/VkFormat switch body
[  6%] Built target makedfd2vk
[  6%] Built target mkvk
[  7%] Generate lib/version.h
[  8%] Building CXX object CMakeFiles/ktx.dir/lib/basis_transcode.cpp.o
[  9%] Building CXX object CMakeFiles/ktx.dir/lib/basisu/transcoder/basisu_transcoder.cpp.o
[ 10%] Building C object CMakeFiles/ktx.dir/lib/basisu/zstd/zstd.c.o
[ 12%] Building C object CMakeFiles/ktx.dir/lib/checkheader.c.o
[ 13%] Building C object CMakeFiles/ktx.dir/lib/dfdutils/createdfd.c.o
[ 14%] Building C object CMakeFiles/ktx.dir/lib/dfdutils/colourspaces.c.o
[ 15%] Building C object CMakeFiles/ktx.dir/lib/dfdutils/interpretdfd.c.o
[ 16%] Building C object CMakeFiles/ktx.dir/lib/dfdutils/printdfd.c.o
[ 17%] Building C object CMakeFiles/ktx.dir/lib/dfdutils/queries.c.o
[ 18%] Building C object CMakeFiles/ktx.dir/lib/dfdutils/vk2dfd.c.o
[ 19%] Building CXX object CMakeFiles/ktx.dir/lib/etcdec.cxx.o
[ 20%] Building CXX object CMakeFiles/ktx.dir/lib/etcunpack.cxx.o
[ 21%] Building C object CMakeFiles/ktx.dir/lib/filestream.c.o
[ 23%] Building C object CMakeFiles/ktx.dir/lib/gl_funcs.c.o
[ 24%] Building C object CMakeFiles/ktx.dir/lib/glloader.c.o
[ 25%] Building C object CMakeFiles/ktx.dir/lib/hashlist.c.o
[ 26%] Building C object CMakeFiles/ktx.dir/lib/info.c.o
[ 27%] Building C object CMakeFiles/ktx.dir/lib/memstream.c.o
[ 28%] Building C object CMakeFiles/ktx.dir/lib/strings.c.o
[ 29%] Building C object CMakeFiles/ktx.dir/lib/swap.c.o
[ 30%] Building C object CMakeFiles/ktx.dir/lib/texture.c.o
[ 31%] Building C object CMakeFiles/ktx.dir/lib/texture2.c.o
[ 32%] Building C object CMakeFiles/ktx.dir/lib/vkformat_check.c.o
[ 34%] Building C object CMakeFiles/ktx.dir/lib/vkformat_str.c.o
[ 35%] Building C object CMakeFiles/ktx.dir/lib/texture1.c.o
[ 36%] Building C object CMakeFiles/ktx.dir/lib/vk_funcs.c.o
[ 37%] Building C object CMakeFiles/ktx.dir/lib/vkloader.c.o
[ 38%] Building CXX object CMakeFiles/ktx.dir/lib/basis_encode.cpp.o
[ 39%] Building C object CMakeFiles/ktx.dir/lib/basisu/encoder/apg_bmp.c.o
[ 40%] Building CXX object CMakeFiles/ktx.dir/lib/basisu/encoder/basisu_astc_decomp.cpp.o
[ 41%] Building CXX object CMakeFiles/ktx.dir/lib/basisu/encoder/basisu_backend.cpp.o
[ 42%] Building CXX object CMakeFiles/ktx.dir/lib/basisu/encoder/basisu_basis_file.cpp.o
[ 43%] Building CXX object CMakeFiles/ktx.dir/lib/basisu/encoder/basisu_bc7enc.cpp.o
[ 45%] Building CXX object CMakeFiles/ktx.dir/lib/basisu/encoder/basisu_comp.cpp.o
[ 46%] Building CXX object CMakeFiles/ktx.dir/lib/basisu/encoder/basisu_enc.cpp.o
[ 47%] Building CXX object CMakeFiles/ktx.dir/lib/basisu/encoder/basisu_etc.cpp.o
[ 48%] Building CXX object CMakeFiles/ktx.dir/lib/basisu/encoder/basisu_frontend.cpp.o
[ 49%] Building CXX object CMakeFiles/ktx.dir/lib/basisu/encoder/basisu_global_selector_palette_helpers.cpp.o
[ 50%] Building CXX object CMakeFiles/ktx.dir/lib/basisu/encoder/basisu_gpu_texture.cpp.o
[ 51%] Building CXX object CMakeFiles/ktx.dir/lib/basisu/encoder/basisu_kernels_sse.cpp.o
/home/djkato/Code/glTF-IBL-Sampler/thirdparty/KTX-Software/lib/basisu/encoder/basisu_kernels_sse.cpp:36:26: error: #error Please check your compiler options
   36 |                         #error Please check your compiler options
      |                          ^~~~~
make[5]: *** [CMakeFiles/ktx.dir/build.make:643: CMakeFiles/ktx.dir/lib/basisu/encoder/basisu_kernels_sse.cpp.o] Error 1
make[4]: *** [CMakeFiles/Makefile2:235: CMakeFiles/ktx.dir/all] Error 2
make[3]: *** [Makefile:156: all] Error 2
make[2]: *** [CMakeFiles/Ktx.dir/build.make:86: Ktx/src/Ktx-stamp/Ktx-build] Error 2
make[1]: *** [CMakeFiles/Makefile2:254: CMakeFiles/Ktx.dir/all] Error 2
make: *** [Makefile:136: all] Error 2