D
DragonOsman2
Guest
Hi.
I have LLVM version 9.0.0 installed and I want to use that with CMake when using VS2019 as the generator. I'm facing complications when using the IDE's built-in CMake support so I'm trying it the traditional way (CMake command line). I had to install the Clang Compiler for Windows (8.0.1) component when trying the built-in CMake support in the IDE and now it uses that when I try it directly on the command line too. I want to know if it's possible for me to have it use my LLVM version 9 installation. My CMake command line command: "cmake .. -G"Visual Studio 16 2019" -T ClangCL -A x64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-Xclang;-std=c++17;-Xclang;-Wall;-Xclang;-pedantic"". The output:
"
-- The C compiler identification is Clang 8.0.1 with MSVC-like command-line
-- The CXX compiler identification is Clang 8.0.1 with MSVC-like command-line
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Check size of short
-- Check size of short - done
-- Check size of int
-- Check size of int - done
-- Check size of long
-- Check size of long - done
-- Check size of long long
-- Check size of long long - done
-- Note: The following three headers should all be found!
-- HAVE_GL_GL_H = 'C:/Program Files (x86)/Windows Kits/10/Include/10.0.18362.0/um/GL/gl.h'
-- HAVE_GL_GLU_H = 'C:/Program Files (x86)/Windows Kits/10/Include/10.0.18362.0/um/GL/glu.h'
-- HAVE_LOCALE_H = 'C:/Program Files (x86)/Windows Kits/10/Include/10.0.18362.0/ucrt/locale.h'
-- If one of these headers was not found, run cmake-gui ...
-- ... again from a Visual Studio developer command prompt!
-- Looking for dlsym
-- Looking for dlsym - not found
-- Looking for localeconv
-- Looking for localeconv - found
-- Looking for scandir
-- Looking for scandir - not found
-- Looking for snprintf
-- Looking for snprintf - not found
-- Looking for strlcat
-- Looking for strlcat - not found
-- Looking for strlcpy
-- Looking for strlcpy - not found
-- Looking for vsnprintf
-- Looking for vsnprintf - not found
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Found PkgConfig: C:/Strawberry/perl/bin/pkg-config (found version "")
-- Found OpenGL: opengl32
-- Looking for glXGetProcAddressARB
-- Looking for glXGetProcAddressARB - not found
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
--
cannot find system zlib library - using built-in
--
cannot find system jpeg library - using built-in
--
cannot find system png library - using built-in
-- Configuring done
-- Generating done
-- Build files have been written to: C:/fltk-1.3.5/build
"
I'm trying to build FLTK using LLVM. (I did forget to add the command line argument to have it generate LLVM bitcode, though. I'll do that when I give the command again later). Any help is appreciated. Thanks in advance.
Continue reading...
I have LLVM version 9.0.0 installed and I want to use that with CMake when using VS2019 as the generator. I'm facing complications when using the IDE's built-in CMake support so I'm trying it the traditional way (CMake command line). I had to install the Clang Compiler for Windows (8.0.1) component when trying the built-in CMake support in the IDE and now it uses that when I try it directly on the command line too. I want to know if it's possible for me to have it use my LLVM version 9 installation. My CMake command line command: "cmake .. -G"Visual Studio 16 2019" -T ClangCL -A x64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-Xclang;-std=c++17;-Xclang;-Wall;-Xclang;-pedantic"". The output:
"
-- The C compiler identification is Clang 8.0.1 with MSVC-like command-line
-- The CXX compiler identification is Clang 8.0.1 with MSVC-like command-line
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Check size of short
-- Check size of short - done
-- Check size of int
-- Check size of int - done
-- Check size of long
-- Check size of long - done
-- Check size of long long
-- Check size of long long - done
-- Note: The following three headers should all be found!
-- HAVE_GL_GL_H = 'C:/Program Files (x86)/Windows Kits/10/Include/10.0.18362.0/um/GL/gl.h'
-- HAVE_GL_GLU_H = 'C:/Program Files (x86)/Windows Kits/10/Include/10.0.18362.0/um/GL/glu.h'
-- HAVE_LOCALE_H = 'C:/Program Files (x86)/Windows Kits/10/Include/10.0.18362.0/ucrt/locale.h'
-- If one of these headers was not found, run cmake-gui ...
-- ... again from a Visual Studio developer command prompt!
-- Looking for dlsym
-- Looking for dlsym - not found
-- Looking for localeconv
-- Looking for localeconv - found
-- Looking for scandir
-- Looking for scandir - not found
-- Looking for snprintf
-- Looking for snprintf - not found
-- Looking for strlcat
-- Looking for strlcat - not found
-- Looking for strlcpy
-- Looking for strlcpy - not found
-- Looking for vsnprintf
-- Looking for vsnprintf - not found
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Found PkgConfig: C:/Strawberry/perl/bin/pkg-config (found version "")
-- Found OpenGL: opengl32
-- Looking for glXGetProcAddressARB
-- Looking for glXGetProcAddressARB - not found
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
--
cannot find system zlib library - using built-in
--
cannot find system jpeg library - using built-in
--
cannot find system png library - using built-in
-- Configuring done
-- Generating done
-- Build files have been written to: C:/fltk-1.3.5/build
"
I'm trying to build FLTK using LLVM. (I did forget to add the command line argument to have it generate LLVM bitcode, though. I'll do that when I give the command again later). Any help is appreciated. Thanks in advance.
Continue reading...