DirectX-Headers
DirectX-Headers copied to clipboard
ERROR: /usr/bin/ld: can't find -ld3d12 [compile under ubuntu 18.04]
I compile the repo under ubuntu 18.04, The error message for make is, can you give me some adverse ?
[ 6%] Building CXX object CMakeFiles/DirectX-Guids.dir/src/dxguids.cpp.o
[ 12%] Linking CXX static library libDirectX-Guids.a
[ 12%] Built target DirectX-Guids
[ 18%] Building CXX object test/CMakeFiles/DirectX-Headers-Test.dir/test.cpp.o
[ 25%] Linking CXX executable DirectX-Headers-Test
/usr/bin/ld: can't find -ld3d12
collect2: ERROR:ld return 1
test/CMakeFiles/DirectX-Headers-Test.dir/build.make:97: recipe for target 'test/DirectX-Headers-Test' failed
make[2]: *** [test/DirectX-Headers-Test] Error 1
CMakeFiles/Makefile2:198: recipe for target 'test/CMakeFiles/DirectX-Headers-Test.dir/all' failed
make[1]: *** [test/CMakeFiles/DirectX-Headers-Test.dir/all] Error 2
Makefile:135: recipe for target 'all' failed
make: *** [all] Error 2
The cmake info is as addition.
-- The CXX compiler identification is GNU 8.1.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/local/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The C compiler identification is GNU 8.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/local/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found Python: /home/nys/anaconda3/envs/VR/bin/python3.7 (found version "3.7.13") found components: Interpreter
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Configuring done
-- Generating done
-- Build files have been written to: /home/nys/libs/UVAtlas/DirectX-Headers-main/build
Are you using Windows Subsystem for Linux?