[CMake] Using CMake with Visual Studio 2017 on Windows

2018-10-20 Thread Osman Zakir
Hi. I recently tried to build the Jinja2Cpp library on Windows 10 with Visual Studio 2017. I had managed to do this successfully before, but when I tried it again this time after deleting the `Jinja2Cpp` directory and cloning from the GitHub repo again, I had errors in CMake and couldn't gener

[CMake] Problem with using CMake on Windows with Visual Studio 2017

2018-10-26 Thread Osman Zakir
Hi again, everyone. I'm asking again. If the reason I didn't get a reply last time was because I didn't ask the right way for "hackers" to give me a satisfactory answer, please let me know. But if it was just because not enough people saw it, then that's all the more reason for me to do this

[CMake] CMake Can't Find Boost.Filesystem in Docker Container

2018-10-28 Thread Osman Zakir
I'm creating a new email thread for this because the other thread's problem was already solved. In the Dockerfile for my project, the build process can't go any farther from the point where I'm trying to build the Jinja2Cpp library. CMake isn't able to find Boost.Filesystem, but it's still abl

[CMake] Specifying Boost or third-party library paths to CMake

2018-10-29 Thread Osman Zakir
How do I specify the path to the installations of third-party libraries to CMake? Both GUI and command line. I want to specify the path to the Boost libraries. I'd also like to know if I just need to specify the path to the Boost Root or if I also need to specify the path to the directory whe

[CMake] About FindBoost.cmake

2018-10-29 Thread Osman Zakir
Hi again, everyone. I noticed that FindBoost.cmake has "-d" set as the Boost debug ABI tag even though the Boost libraries actually use "-gd". I installed the latet release of CMake just now, which has Boost 1.68.0 listed as a test version, and it has this problem too. For Boost.Filesystem, i

[CMake] Installing CMake in Ubuntu Linux from command-line via wget

2018-10-30 Thread Osman Zakir
I want to install the latest release version of CMake in my Ubuntu Docker image (from the Dockerfile), but I'm having trouble. I have this command: " RUN wget https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.tar.gz \ && tar cmake-3.12.3-Linux-x86_64.tar.gz \ && rm -rf cmake-3.12.3

Re: [CMake] Installing CMake in Ubuntu Linux from command-line via wget

2018-10-30 Thread Osman Zakir
ar options: x - Extract z - Archive type is gzip (may be optional, depending on version of tar) f - The file to extract (tar will try and open whatever follows this argument so it MUST come last in this case) On 30/10/2018 09:27, Mateusz Loskot wrote: > On Tue, 30 Oct 2018 at 10:22, Osman

Re: [CMake] About FindBoost.cmake

2018-10-30 Thread Osman Zakir
e story on that? From: CMake on behalf of Mateusz Loskot Sent: Tuesday, October 30, 2018 4:18 PM To: cmake@cmake.org Subject: Re: [CMake] About FindBoost.cmake On Tue, 30 Oct 2018 at 12:09, Osman Zakir wrote: > > Nice. So what command did you run to configure CMake?

Re: [CMake] Installing CMake in Ubuntu Linux from command-line via wget

2018-10-30 Thread Osman Zakir
I put "apt-get install" in the CMake folder that I got from unpacking the .tar file. Would that not install the CMake in that directory? That's what I'm asking. What do I have to do in order for it to install the CMake executable I downloaded and also add it to my PATH? __

Re: [CMake] About FindBoost.cmake

2018-10-30 Thread Osman Zakir
Yeah, I forgot to type the 'c'. My mistake. From: CMake on behalf of Mateusz Loskot Sent: Tuesday, October 30, 2018 4:30 PM To: cmake@cmake.org Subject: Re: [CMake] About FindBoost.cmake On Tue, 30 Oct 2018 at 12:25, Osman Zakir wrote: > >

Re: [CMake] Installing CMake in Ubuntu Linux from command-line via wget

2018-10-30 Thread Osman Zakir
ke in Ubuntu Linux from command-line via wget On Tue, 30 Oct 2018 at 12:59, Osman Zakir wrote: > > I put "apt-get install" in the CMake folder that I got from unpacking the > .tar file. Would that not install the CMake in that directory? No! The .tar.gz is not a .deb package,

Re: [CMake] Installing CMake in Ubuntu Linux from command-line via wget

2018-10-30 Thread Osman Zakir
bject: Re: [CMake] Installing CMake in Ubuntu Linux from command-line via wget On 30/10/2018 10:56, Osman Zakir wrote: > Okay, thanks. > > So how about this as the command? > > " > RUN wget https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.tar.gz \ > && t

Re: [CMake] Installing CMake in Ubuntu Linux from command-line via wget

2018-10-30 Thread Osman Zakir
Like if I cd into the CMake bin directory and then add the relative path to the current directory to the PATH. From: Osman Zakir Sent: Tuesday, October 30, 2018 6:01 PM To: cmake@cmake.org Subject: Re: [CMake] Installing CMake in Ubuntu Linux from command-line

[CMake] Docker container can't find cmake executable

2018-10-30 Thread Osman Zakir
I put this command in the Dockerfile: " RUN mkdir $HOME/usr \ && wget -O cmake-linux.sh https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.sh \​ && sh cmake-linux.sh -- --skip-license --prefix=$HOME/usr \​ && cd $HOME/usr \​ && ls \​ && export PATH=$HOME/usr/bin:$PATH " Bu

Re: [CMake] Docker container can't find cmake executable

2018-10-30 Thread Osman Zakir
0/10/2018 15:41, Osman Zakir wrote: > I put this command in the Dockerfile: > " > RUN mkdir $HOME/usr \ > && wget -O cmake-linux.sh > https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.sh \​ > && sh cmake-linux.sh -- --skip-license --pref

[CMake] Have error "CMake Error: : System Error: Permission denied" in Docker image build process

2018-11-03 Thread Osman Zakir
Hi again. I was able to get sudo installed on a Docker image running as a non-root user. But when I get to the part in the Docker file where it tries to build Jinja2Cpp using CMake, I get CMake errors. Dockerfile and error log from build attempt are attached to this message. Anyone have any

[CMake] My previous message

2018-11-04 Thread Osman Zakir
Did no one see my previous message here? About the CMake errors in the Docker image. I really don't know how to fix this so some help would really be appreciated. It really is mainly about CMake right now, not Docker itself. Both the Dockerfile and the part of the build output with errors fr

Re: [CMake] My previous message

2018-11-04 Thread Osman Zakir
o the git clone or directory creation. Running cmake under sudo would not be recommended. On Sun, Nov 4, 2018 at 6:22 PM Osman Zakir mailto:osmanzaki...@hotmail.com>> wrote: Did no one see my previous message here? About the CMake errors in the Docker image. I really don't know ho

[CMake] Uninstalling CMake from Linux?

2018-11-07 Thread Osman Zakir
I want to remove CMake from my Docker image in order to reduce the image size (I'm also going to remove g++, make and build-essential -- it's after the executable program has been built). How do I do this? -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at:

[CMake] Finding Boost (1.69.0)?

2018-12-15 Thread Osman Zakir
Would the way for finding Boost that I saw before when I asked about doing it for version 1.68.0 also work for version 1.69.0? If so, I could just try to find the archive of older threads and search for that message. If not, please tell me here how to do it. Either way, any help would be appr

[CMake] Setting MSVC runtime type on CMake command line?

2019-01-12 Thread Osman Zakir
I tried to set the runtime to static by passing the "-DMSVC_RUNTIME_TYPE=/MT" argument when running CMake, but it generated a warning saying that that option was ignored by the project (Zlib in this case). So what's the correct way to do this? -- Powered by www.kitware.com Please keep messag

[CMake] Need help with CMake error "CMake Error at tools/clang/lib/Headers/cmake_install.cmake:36 file INSTALL cannot find "C:/llvm-project/build/$(Configuration)/lib/clang/9.0.0/include"."

2019-04-22 Thread Osman Zakir
As the title says, I have this error when trying to build INSTALL.vcxproj in LLVM.sln using Visual Studio Community 2019: " 522>CMake Error at tools/clang/lib/Headers/cmake_install.cmake:36 (file): 522> file INSTALL cannot find​ 522> "C:/llvm-project/build/$(Configuration)/lib/clang/9.0.0/includ

[CMake] Can't Generate Project Files for VS2019

2019-04-27 Thread Osman Zakir
I'm having trouble using CMake to generate solution and project files for Emscripten and Binaryen. When I try to invoke it from the command line, I get this message: " cmake -G"Visual Studio 16 2019" -A Win64 -DCMAKE_INSTALL_PREFIX="C:/Program Files/binaryen" -DCMAKE_BUILD_TYPE=Release ../ CMa

Re: [CMake] Can't Generate Project Files for VS2019

2019-04-28 Thread Osman Zakir
I just tried to build Step 1 of the CMake tutorial that comes with the source code (CMake version 3.14.3), once with VS2019 as the generator and then again with VS2017 as the generator. The latter worked fine but the former didn't. I got the same error as mentioned in the initial message: " c

[CMake] Specifying VS 2019 LLVM toolset on CMake command line?

2019-05-19 Thread Osman Zakir
How do I specify the VS 2019 LLVM toolset when configuring a build with CMake on the command line? -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For mo

[CMake] Specifying name of library file on CMake command line?

2019-06-17 Thread Osman Zakir
I want to know how to specify the name of a library I file I want to link against. How do I do this? I wanted to build a library with a static runtime and static libs; it requires linking against a Boost library which I did build with static runtime but when I tried to build it, I had linker e

[CMake] VS2019 LLVM Toolset?

2019-10-24 Thread Osman Zakir
Hi. I tried to specify the LLVM Toolset for VS2019 by doing "-T LLVM" and also "-T llvm" but it failed both times. What I get for the former is this: " cmake -G "Visual Studio 16 2019" -A x64 -T LLVM .. -DCMAKE_INSTALL_PREFIX="C:/Program Files/FLTK" -DCMAKE_BUILD_TYPE=Release CMake Error at CM

Re: [CMake] VS2019 LLVM Toolset?

2019-10-24 Thread Osman Zakir
Yes, I looked at this: https://devblogs.microsoft.com/cppblog/clang-llvm-support-in-visual-studio/ so I kind of get it. VS2019 has built-in support for LLVM. I of course do have LLVM installed. So for this, I have to put "ClangCL" as the argument to -T? Okay, thanks. I'll try that. -- Po

[CMake] Got Weird Error When Trying to Configure LLVM Version 10

2019-10-26 Thread Osman Zakir
I want to build LLVM 10 so that I can see if having the same version of LLVM installed that my EMSDK version is using will help. I want to do this so I can build the Qt Documentation as well when I build Qt for WebAssembly. Building the Documentation requires LLVM and I want to avoid conflicts

[CMake] How to Switch to Static Runtime on Command Line?

2019-10-28 Thread Osman Zakir
Hi. I'm trying to build LLVM 10.0.0 with CMake on the command line (Developer Command Prompt for VS2019) and I need to know how to switch to a static runtime. I've tried specifying LLVM's variable for this, but it didn't work. I still have a dynamic runtime. Along with that, I also need to k

Re: [CMake] How to Switch to Static Runtime on Command Line?

2019-10-28 Thread Osman Zakir
Thanks for the reply. What about enabling C++ exceptions? And I should do "-DCMAKE_MSVC_RUNTIME_LIBRARY=/MT" to set the runtime type to static, right? -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers v

Re: [CMake] How to Switch to Static Runtime on Command Line?

2019-10-28 Thread Osman Zakir
I tried "-DCMAKE_MSVC_RUNTIME_LIBRARY=MT" and also "-DCMAKE_MSVC_RUNTIME_LIBRARY=/MT" before that, along with "-DCMAKE_BUILD_TYPE=Release", but I still get "Using Release VC++ CRT: MD". What's going on? I also did "-DCMAKE_CXX_FLAGS="/permissive- /EHsc /std:c++17 /O2 /MT /D_SILENCE_ALL_CXX_DE

Re: [CMake] How to Switch to Static Runtime on Command Line?

2019-10-28 Thread Osman Zakir
Okay, actually I can't enable a static runtime for LLVM on the command line. I was told about a patch I need to apply. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CM

[CMake] CMake Error Flagged in MSVC Toolchain File

2019-11-08 Thread Osman Zakir
I tried to configure a FLTK build with this: "make .. -G "Visual Studio 16 2019" -A x64 -T "ClangCl" -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_CXX_COMPILER=C:/llvm-project/install/bin/clang-cl.exe -DCMAKE_C_COMPILER=C:/llvm-project/install/bin/clang-cl.exe -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX

Re: [CMake] CMake Error Flagged in MSVC Toolchain File

2019-11-09 Thread Osman Zakir
Yeah, I typed it correctly in the actual command and missed the C when copy-pasting it here. Sorry about that. I also want to know if it's possible to use LLVM 10 with the ClangCl toolset in VS2019. The toolchain file itself uses LLVM 8.0.1, but I also have LLVM 10 installed on my computer an

[CMake] CMake's FindBoost Module Can't Detect Boost Version

2019-12-17 Thread Osman Zakir
I built Boost 1.72.0 while passing the "--layout=versioned" flag to b2, but when I tried to rebuild Jinja2Cpp with the newer version of Boost using CMake, it failed to generate project files and said it couldn't filesystem and system and also couldn't detect version information. Could someone p

Re: [CMake] CMake's FindBoost Module Can't Detect Boost Version

2019-12-17 Thread Osman Zakir
I tried passing -DBoost_COMPILER and -DBoost_DEBUG but it seems it's only looking for up to Boost 1.71.0; the test versions go up to there only. Should I edit the FindBoost.cmake file to have it look for version 1.72.0 as well? I'm using MSVC version 14.2, Visual Studio 2019. I'm using the Dev

Re: [CMake] CMake's FindBoost Module Can't Detect Boost Version

2019-12-17 Thread Osman Zakir
Yeah, forgot. I did specify the values for the flags on the actual thing. -DBoost_COMPILER=-vc142, -DBoost_ARCHITECTURE=-x64 and -DBoost_DEBUG=ON. I'll try specifying the version number like what you said. Thanks for that. -- Powered by kitware.com/cmake Kitware offers various services to