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 support the CMake community. For more 
information on each offering, please visit https://cmake.org/services

Visit other Kitware open-source projects at https://www.kitware.com/platforms

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake

This mailing list is deprecated in favor of https://discourse.cmake.org


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 Developer 
Command Prompt for VS2019.

I don't know about all of the flags I need to pass, but if it can find the 
Boost version then it should be able to detect all of the stuff on its own, 
right?  The first step there isn't going right.
-- 

Powered by kitware.com/cmake

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit https://cmake.org/services

Visit other Kitware open-source projects at https://www.kitware.com/platforms

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake

This mailing list is deprecated in favor of https://discourse.cmake.org


[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 please help me out 
with this?  Thanks.
-- 

Powered by kitware.com/cmake

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit https://cmake.org/services

Visit other Kitware open-source projects at https://www.kitware.com/platforms

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake

This mailing list is deprecated in favor of https://discourse.cmake.org


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 and I'd like to use that if possible.
-- 

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 more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


[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_FLAGS="-Xclang -pedantic -Xclang 
-std=c++17 -Xclang -Wall -Xclang -fexceptions"
"
and got an error saying:
"
CMake Error at C:/Program Files (x86)/Microsoft Visual 
Studio/2019/Community/MSBuild/Microsoft/VC/v160/Platforms/x64/PlatformToolsets/ClangCL/Toolset.targets:1:
  Parse error.  Expected a command name, got unquoted argument with text​
  

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 CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


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_DEPRECATION_WARNINGS"" but this also didn't help.  
Do you have any ideas?

The command I ran was "cmake -S../llvm -G"Visual Studio 16 2019" -Thost=x64 
-DCMAKE_INSTALL_PREFIX=../install -DCMAKE_BUILD_TYPE=Release 
-DCMAKE_MSVC_RUNTIME_LIBRARY=MT -DCMAKE_CXX_FLAGS="/permissive- /EHsc 
/std:c++17 /O2 /MT /D_SILENCE_ALL_CXX_DEPRECATION_WARNINGS" 
-DLLVM_ENABLE_RTTI=On -DLLVM_ENABLE_EH=ON -DCMAKE_CXX_STANDARD=17 
-DPYTHON_HOME=C:/Users/Osman/AppData/Local/Programs/Python/Python38 
-DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;lld;lldb;libcxx;libcxxabi"".
-- 

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 more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


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 various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


[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 know how to 
enable C++ exceptions.

One thing I tried was to do "-DCMAKE_CXX_FLAGS="/std:c++17 /MT /EHsc 
/permissive-"" but this also didn't work.  Specifying these on the CXXFLAGS 
environment variable didn't do anything either.  I was using the same session 
of the Developer Command Prompt, but I made sure to run "refreshenv" to take 
the new environment from the registry before continuing.

Note: I don't want to edit the CMakeLists.txt file because I want to be able to 
run "git pull" without having to stage any changes (I cloned the LLVM GitHub 
repository for the source code).

Any help is appreciated.  Thanks in advance.
-- 

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 more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


[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 caused by having 
different versions of LLVM.

Anyway, the command I ran was:
"cmake -DCMAKE_INSTALL_PREFIX=../install -G"Visual Studio 16 2019" -Thost=x64 
-A x86 
-DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;lld;lldb;libcxx;libcxxabi" 
-DCMAKE_BUILD-TYPE=Release -MSVC_RUNTIME_TYPE=/MT -DLLVM_TARGETS_TO_BUILD=all 
-DLLVM_ENABLE_THREADS=On -DLLVM_CXX_STD="c++17" -DLLVM_ENABLE_PEDANTIC=On 
-DCMAKE_CXX_FLAGS="/std:c++17;/permissive-;/MT;/EHsc" ../llvm"

I put the error message I got in the .log file I'm attaching to this message.  
Any help is appreciated.  Thanks.


cmake_config.log
Description: cmake_config.log
-- 

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 more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


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.
-- 

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 more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


[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 CMakeLists.txt:24 (project):​
  Failed to run MSBuild command:​
​
C:/Program Files (x86)/Microsoft Visual 
Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe​
​
  to get the value of VCTargetsPath:​
​
Microsoft (R) Build Engine version 16.3.2+e481bbf88 for .NET Framework​
Copyright (C) Microsoft Corporation. All rights reserved.​
​
Build started 10/24/2019 10:19:12 PM.​
Project "C:\fltk-1.3.5\build\CMakeFiles\3.15.4\VCTargetsPath.vcxproj" on 
node 1 (default targets).​
C:\Program Files (x86)\Microsoft Visual 
Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(379,5):
 error MSB8020: The build tools for LLVM (Platform Toolset = 'LLVM') cannot be 
found. To build using the LLVM build tools, please install LLVM build tools.  
Alternatively, you may upgrade to the current Visual Studio tools by selecting 
the Project menu or right-click the solution, and then selecting "Retarget 
solution". [C:\fltk-1.3.5\build\CMakeFiles\3.15.4\VCTargetsPath.vcxproj]​
Done Building Project 
"C:\fltk-1.3.5\build\CMakeFiles\3.15.4\VCTargetsPath.vcxproj" (default targets) 
-- FAILED.​
​
Build FAILED.​
​
"C:\fltk-1.3.5\build\CMakeFiles\3.15.4\VCTargetsPath.vcxproj" (default 
target) (1) ->​
(PrepareForBuild target) ->​
  C:\Program Files (x86)\Microsoft Visual 
Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(379,5):
 error MSB8020: The build tools for LLVM (Platform Toolset = 'LLVM') cannot be 
found. To build using the LLVM build tools, please install LLVM build tools.  
Alternatively, you may upgrade to the current Visual Studio tools by selecting 
the Project menu or right-click the solution, and then selecting "Retarget 
solution". [C:\fltk-1.3.5\build\CMakeFiles\3.15.4\VCTargetsPath.vcxproj]​
​
0 Warning(s)​
1 Error(s)​
​
Time Elapsed 00:00:00.21​
​
​
  Exit code: 1​
​
​
​
-- Configuring incomplete, errors occurred!​
See also "C:/fltk-1.3.5/build/CMakeFiles/CMakeOutput.log".
"
For the latter it's similar.  Just change "'LLVM'" in the error message to 
"'LLVM'".
-- 

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 more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


[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 errors because 
the dynamic version of the library was used instead of the static one.  I want 
to somehow make it use the static one.  So yeah, how do I do this?  Is there a 
way?
-- 

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 more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


[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 more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


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:

"
cmake -G"Visual Studio 16 2019" -A Win64 -DCMAKE_INSTALL_PREFIX="C:/Program 
Files/binaryen" -DCMAKE_BUILD_TYPE=Release ../
CMake Error at CMakeLists.txt:1 (PROJECT):​
  Failed to run MSBuild command:​
​
C:/Program Files (x86)/Microsoft Visual 
Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe​
​
  to get the value of VCTargetsPath:​
​
Microsoft (R) Build Engine version 16.0.461+g6ff56ef63c for .NET Framework​
Copyright (C) Microsoft Corporation. All rights reserved.​
​
Build started 4/27/2019 5:48:57 PM.​
Project "C:\binaryen\build\CMakeFiles\3.14.3\VCTargetsPath.vcxproj" on node 
1 (default targets).​
C:\Program Files (x86)\Microsoft Visual 
Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(775,5):
 error : The OutputPath property is not set for project 
'VCTargetsPath.vcxproj'.  Please check to make sure that you have specified a 
valid combination of Configuration and Platform for this project.  
Configuration='Debug'  Platform='Win64'.  You may be seeing this message 
because you are trying to build a project without a solution file, and have 
specified a non-default Configuration or Platform that doesn't exist for this 
project. [C:\binaryen\build\CMakeFiles\3.14.3\VCTargetsPath.vcxproj]​
Done Building Project 
"C:\binaryen\build\CMakeFiles\3.14.3\VCTargetsPath.vcxproj" (default targets) 
-- FAILED.​
​
Build FAILED.​
​
"C:\binaryen\build\CMakeFiles\3.14.3\VCTargetsPath.vcxproj" (default 
target) (1) ->​
(_CheckForInvalidConfigurationAndPlatform target) ->​
  C:\Program Files (x86)\Microsoft Visual 
Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(775,5):
 error : The OutputPath property is not set for project 
'VCTargetsPath.vcxproj'.  Please check to make sure that you have specified a 
valid combination of Configuration and Platform for this project.  
Configuration='Debug'  Platform='Win64'.  You may be seeing this message 
because you are trying to build a project without a solution file, and have 
specified a non-default Configuration or Platform that doesn't exist for this 
project. [C:\binaryen\build\CMakeFiles\3.14.3\VCTargetsPath.vcxproj]​
​
0 Warning(s)​
1 Error(s)​
​
Time Elapsed 00:00:00.20​
​
​
  Exit code: 1​
​
​
​
-- Configuring incomplete, errors occurred!​
See also "C:/binaryen/build/CMakeFiles/CMakeOutput.log".
"

When I try to look at the .vcxproj file mentioned in the error, I see that it 
can't find VS2019 Build Tools even though I do have them.  I asked on MSDN 
forums but I don't have a reply there yet.  And I don't know how to fix the 
issue myself, either.

I would like for someone to please help me out with this.  Is there a way for 
me to fix this problem?  Like some sort of patch that can be added somewhere?  
I installed the binary for CMake 3.14.3 initially and only got the source code 
to try out the tutorial as a test for CMake; I'm not planning to try and build 
CMake.
-- 

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 more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


[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 ../
CMake Error at CMakeLists.txt:1 (PROJECT):​
  Failed to run MSBuild command:​
​
C:/Program Files (x86)/Microsoft Visual 
Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe​
​
  to get the value of VCTargetsPath:​
​
Microsoft (R) Build Engine version 16.0.461+g6ff56ef63c for .NET Framework​
Copyright (C) Microsoft Corporation. All rights reserved.​
​
Build started 4/27/2019 5:48:57 PM.​
Project "C:\binaryen\build\CMakeFiles\3.14.3\VCTargetsPath.vcxproj" on node 
1 (default targets).​
C:\Program Files (x86)\Microsoft Visual 
Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(775,5):
 error : The OutputPath property is not set for project 
'VCTargetsPath.vcxproj'.  Please check to make sure that you have specified a 
valid combination of Configuration and Platform for this project.  
Configuration='Debug'  Platform='Win64'.  You may be seeing this message 
because you are trying to build a project without a solution file, and have 
specified a non-default Configuration or Platform that doesn't exist for this 
project. [C:\binaryen\build\CMakeFiles\3.14.3\VCTargetsPath.vcxproj]​
Done Building Project 
"C:\binaryen\build\CMakeFiles\3.14.3\VCTargetsPath.vcxproj" (default targets) 
-- FAILED.​
​
Build FAILED.​
​
"C:\binaryen\build\CMakeFiles\3.14.3\VCTargetsPath.vcxproj" (default 
target) (1) ->​
(_CheckForInvalidConfigurationAndPlatform target) ->​
  C:\Program Files (x86)\Microsoft Visual 
Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(775,5):
 error : The OutputPath property is not set for project 
'VCTargetsPath.vcxproj'.  Please check to make sure that you have specified a 
valid combination of Configuration and Platform for this project.  
Configuration='Debug'  Platform='Win64'.  You may be seeing this message 
because you are trying to build a project without a solution file, and have 
specified a non-default Configuration or Platform that doesn't exist for this 
project. [C:\binaryen\build\CMakeFiles\3.14.3\VCTargetsPath.vcxproj]​
​
0 Warning(s)​
1 Error(s)​
​
Time Elapsed 00:00:00.20​
​
​
  Exit code: 1​
​
​
​
-- Configuring incomplete, errors occurred!​
See also "C:/binaryen/build/CMakeFiles/CMakeOutput.log".
"

Any help is appreciated.  Thanks.
-- 

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 more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


[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/include".​
522>Call Stack (most recent call first):​
522>  tools/clang/lib/cmake_install.cmake:37 (include)​
522>  tools/clang/cmake_install.cmake:54 (include)​
522>  tools/cmake_install.cmake:43 (include)​
522>  cmake_install.cmake:64 (include)​
522>​
522>​
522>C:\Program Files (x86)\Microsoft Visual 
Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(138,5):
 error MSB3073: The command "setlocal​
522>C:\Program Files (x86)\Microsoft Visual 
Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(138,5):
 error MSB3073: "C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=Release -P 
cmake_install.cmake​
522>C:\Program Files (x86)\Microsoft Visual 
Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(138,5):
 error MSB3073: if %errorlevel% neq 0 goto :cmEnd​
522>C:\Program Files (x86)\Microsoft Visual 
Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(138,5):
 error MSB3073: :cmEnd​
522>C:\Program Files (x86)\Microsoft Visual 
Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(138,5):
 error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone​
522>C:\Program Files (x86)\Microsoft Visual 
Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(138,5):
 error MSB3073: :cmErrorLevel​
522>C:\Program Files (x86)\Microsoft Visual 
Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(138,5):
 error MSB3073: exit /b %1​
522>C:\Program Files (x86)\Microsoft Visual 
Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(138,5):
 error MSB3073: :cmDone​
522>C:\Program Files (x86)\Microsoft Visual 
Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(138,5):
 error MSB3073: if %errorlevel% neq 0 goto :VCEnd​
522>C:\Program Files (x86)\Microsoft Visual 
Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(138,5):
 error MSB3073: :VCEnd" exited with code 1.​
522>Done building project "INSTALL.vcxproj" -- FAILED.
"

Everything else was built successfully, it's just this one project that it 
can't build.  I checked in the file path it mentioned and I can see the 
"include" folder in there.  So there's probably something I need to change in 
cmake_install.cmake.  I've attached the file to this message.  I hope someone 
will help me change it such that this will work.  Thanks in advance.


cmake_install.cmake
Description: cmake_install.cmake
-- 

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 more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


[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 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 more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


[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 appreciated.

I'm currently trying to generate project files for Jinja2Cpp with CMake, using 
Boost version 1.69.0 this time, while using the -DBOOST_ROOT flag.  But it 
keeps saying that one or more Boost modules wasn't found and that it's using 
the submodule that comes with the Jinja2Cpp source code.
-- 

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 more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


[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: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


Re: [CMake] My previous message

2018-11-04 Thread Osman Zakir
I tried to do it before, but it won't let me clone the repository without sudo 
for some reason.

From: Craig Scott 
Sent: Sunday, November 4, 2018 12:49 PM
To: osmanzaki...@hotmail.com
Cc: CMake
Subject: Re: [CMake] My previous message

You are using sudo for your git operations and to make directories, then trying 
to run cmake inside those directories without sudo. CMake won't be able to 
write to directories created (and therefore owned) by root in most cases 
(unless you have a very permissive umask set). I'd recommend not using sudo to 
do 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 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 from CMake are 
attached to this message.

I don't know what I could try either, or else I really would've tried something 
before sending a message here.
--

Powered by www.kitware.com<http://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 more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


--
Craig Scott
Melbourne, Australia
https://crascit.com

New book released: Professional CMake: A Practical 
Guide<https://crascit.com/professional-cmake/>
-- 

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 more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


[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 from CMake are 
attached to this message.

I don't know what I could try either, or else I really would've tried something 
before sending a message here.


dockerfile
Description: dockerfile
Step 16/25 : RUN sudo git clone https://github.com/flexferrum/jinja2cpp && 
cd jinja2cpp && sudo git submodule -q update --init && sudo mkdir build 
&& cd build && cmake .. -DCMAKE_INSTALL_PREFIX=../install 
-DCMAKE_PREFIX_PATH:PATH=/usr/local/include -DBOOST_ROOT=/usr/local/include 
&& cmake --build . --target all && cmake --build . --target install
 ---> Running in c51ec4e921ab
Cloning into 'jinja2cpp'...
remote: Enumerating objects: 77, done.
remote: Counting objects: 100% (77/77), done.
remote: Compressing objects: 100% (62/62), done.
remote: Total 1364 (delta 31), reused 30 (delta 14), pack-reused 1287
Receiving objects: 100% (1364/1364), 400.08 KiB | 5.00 KiB/s, done.
Resolving deltas: 100% (937/937), done.
CMake Error at 
/usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineSystem.cmake:174 (file):
  file failed to open for writing (No such file or directory):

/home/osman/app/jinja2cpp/build/CMakeFiles/CMakeOutput.log
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)


CMake Error: Could not open file for write in copy operation 
/home/osman/app/jinja2cpp/build/CMakeFiles/3.12.4/CMakeSystem.cmake.tmp
CMake Error: : System Error: No such file or directory
CMake Error at 
/usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineSystem.cmake:186 
(configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)


CMake Error at 
/usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:161 
(file):
  file problem creating directory:
  /home/osman/app/jinja2cpp/build/CMakeFiles/3.12.4/CompilerIdC
Call Stack (most recent call first):
  /usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:31 
(CMAKE_DETERMINE_COMPILER_ID_BUILD)
  /usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineCCompiler.cmake:112 
(CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:2 (project)


CMake Error at 
/usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:161 
(file):
  file problem creating directory:
  /home/osman/app/jinja2cpp/build/CMakeFiles/3.12.4/CompilerIdC
Call Stack (most recent call first):
  /usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:31 
(CMAKE_DETERMINE_COMPILER_ID_BUILD)
  /usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineCCompiler.cmake:112 
(CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:2 (project)


CMake Error at 
/usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:161 
(file):
  file problem creating directory:
  /home/osman/app/jinja2cpp/build/CMakeFiles/3.12.4/CompilerIdC
Call Stack (most recent call first):
  /usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:31 
(CMAKE_DETERMINE_COMPILER_ID_BUILD)
  /usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineCCompiler.cmake:112 
(CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:2 (project)


CMake Error at 
/usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:161 
(file):
  file problem creating directory:
  /home/osman/app/jinja2cpp/build/CMakeFiles/3.12.4/CompilerIdC
Call Stack (most recent call first):
  /usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:31 
(CMAKE_DETERMINE_COMPILER_ID_BUILD)
  /usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineCCompiler.cmake:112 
(CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:2 (project)


CMake Error at 
/usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:161 
(file):
  file problem creating directory:
  /home/osman/app/jinja2cpp/build/CMakeFiles/3.12.4/CompilerIdC
Call Stack (most recent call first):
  /usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:31 
(CMAKE_DETERMINE_COMPILER_ID_BUILD)
  /usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineCCompiler.cmake:112 
(CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:2 (project)


CMake Error at 
/usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:161 
(file):
  file problem creating directory:
  /home/osman/app/jinja2cpp/build/CMakeFiles/3.12.4/CompilerIdC
Call Stack (most recent call first):
  /usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:31 
(CMAKE_DETERMINE_COMPILER_ID_BUILD)
  /usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineCCompiler.cmake:112 
(CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:2 (project)


CMake Error at 
/usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:161 
(file):

[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 idea how to fix this?  Thanks.


dockerfile
Description: dockerfile
Step 16/25 : RUN sudo git clone https://github.com/flexferrum/jinja2cpp && 
cd jinja2cpp && sudo git submodule -q update --init && sudo mkdir build 
&& cd build && cmake .. -DCMAKE_INSTALL_PREFIX=../install 
-DCMAKE_PREFIX_PATH:PATH=/usr/local/include -DBOOST_ROOT=/usr/local/include 
&& cmake --build . --target all && cmake --build . --target install
 ---> Running in c51ec4e921ab
Cloning into 'jinja2cpp'...
remote: Enumerating objects: 77, done.
remote: Counting objects: 100% (77/77), done.
remote: Compressing objects: 100% (62/62), done.
remote: Total 1364 (delta 31), reused 30 (delta 14), pack-reused 1287
Receiving objects: 100% (1364/1364), 400.08 KiB | 5.00 KiB/s, done.
Resolving deltas: 100% (937/937), done.
CMake Error at 
/usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineSystem.cmake:174 (file):
  file failed to open for writing (No such file or directory):

/home/osman/app/jinja2cpp/build/CMakeFiles/CMakeOutput.log
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)


CMake Error: Could not open file for write in copy operation 
/home/osman/app/jinja2cpp/build/CMakeFiles/3.12.4/CMakeSystem.cmake.tmp
CMake Error: : System Error: No such file or directory
CMake Error at 
/usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineSystem.cmake:186 
(configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)


CMake Error at 
/usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:161 
(file):
  file problem creating directory:
  /home/osman/app/jinja2cpp/build/CMakeFiles/3.12.4/CompilerIdC
Call Stack (most recent call first):
  /usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:31 
(CMAKE_DETERMINE_COMPILER_ID_BUILD)
  /usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineCCompiler.cmake:112 
(CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:2 (project)


CMake Error at 
/usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:161 
(file):
  file problem creating directory:
  /home/osman/app/jinja2cpp/build/CMakeFiles/3.12.4/CompilerIdC
Call Stack (most recent call first):
  /usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:31 
(CMAKE_DETERMINE_COMPILER_ID_BUILD)
  /usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineCCompiler.cmake:112 
(CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:2 (project)


CMake Error at 
/usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:161 
(file):
  file problem creating directory:
  /home/osman/app/jinja2cpp/build/CMakeFiles/3.12.4/CompilerIdC
Call Stack (most recent call first):
  /usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:31 
(CMAKE_DETERMINE_COMPILER_ID_BUILD)
  /usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineCCompiler.cmake:112 
(CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:2 (project)


CMake Error at 
/usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:161 
(file):
  file problem creating directory:
  /home/osman/app/jinja2cpp/build/CMakeFiles/3.12.4/CompilerIdC
Call Stack (most recent call first):
  /usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:31 
(CMAKE_DETERMINE_COMPILER_ID_BUILD)
  /usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineCCompiler.cmake:112 
(CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:2 (project)


CMake Error at 
/usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:161 
(file):
  file problem creating directory:
  /home/osman/app/jinja2cpp/build/CMakeFiles/3.12.4/CompilerIdC
Call Stack (most recent call first):
  /usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:31 
(CMAKE_DETERMINE_COMPILER_ID_BUILD)
  /usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineCCompiler.cmake:112 
(CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:2 (project)


CMake Error at 
/usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:161 
(file):
  file problem creating directory:
  /home/osman/app/jinja2cpp/build/CMakeFiles/3.12.4/CompilerIdC
Call Stack (most recent call first):
  /usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:31 
(CMAKE_DETERMINE_COMPILER_ID_BUILD)
  /usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineCCompiler.cmake:112 
(CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:2 (project)


CMake Error at 
/usr/local/cmake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:161 
(file):
  file problem creating directory:
  /home/osman/app/jinja2cpp/build/CMakeFiles/3.12.4/CompilerIdC
Call Stack (most 

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

2018-10-30 Thread Osman Zakir
So I have to do "ENV export PATH=$HOME/usr/bin:$PATH"?  Is that what you mean?

From: CMake  on behalf of Roger Leigh 

Sent: Tuesday, October 30, 2018 8:46 PM
To: cmake@cmake.org
Subject: Re: [CMake] Docker container can't find cmake executable

On 30/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 --prefix=$HOME/usr \​
>  && cd $HOME/usr \​
>  && ls \​
>  && export PATH=$HOME/usr/bin:$PATH
> "
> But when it gets to running CMake, it can't find the executable.  Please
> help.

This is a docker question, nothing to do with cmake.  You need to use
the ENV directive, not RUN.  The export you have here has no effect
after the command finishes.


Roger
--

Powered by www.kitware.com<http://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 more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake
-- 

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 more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


[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
"
But when it gets to running CMake, it can't find the executable.  Please help.
-- 

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 more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


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 via wget

Would it be okay to add the relative path to the current directory to the PATH 
variable if I don't know the exact path?  Or would that not be a good idea?

From: CMake  on behalf of Roger Leigh 

Sent: Tuesday, October 30, 2018 5:54 PM
To: cmake@cmake.org
Subject: 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  \
>  && tar xzf cmake-3.12.3-Linux-x86_64.tar.gz  \​
>  && rm -rf cmake-3.12.3-Linux-x86_64.tar.gz  \​
>  && cd cmake-3.12.3-Linux-x86_64  \​
>  && apt-get install \​
>  && ./bin/cmake --version
> "
> I think I'll need the apt-get install part to install the library.  Is
> this true?

No.  Just add the bin directory to your PATH.

apt-get is only required when installing packages provided by the
package manager.  It has nothing to do with installing archives you
download.


Roger
--

Powered by www.kitware.com<http://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 more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake
-- 

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 more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


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

2018-10-30 Thread Osman Zakir
Would it be okay to add the relative path to the current directory to the PATH 
variable if I don't know the exact path?  Or would that not be a good idea?

From: CMake  on behalf of Roger Leigh 

Sent: Tuesday, October 30, 2018 5:54 PM
To: cmake@cmake.org
Subject: 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  \
>  && tar xzf cmake-3.12.3-Linux-x86_64.tar.gz  \​
>  && rm -rf cmake-3.12.3-Linux-x86_64.tar.gz  \​
>  && cd cmake-3.12.3-Linux-x86_64  \​
>  && apt-get install \​
>  && ./bin/cmake --version
> "
> I think I'll need the apt-get install part to install the library.  Is
> this true?

No.  Just add the bin directory to your PATH.

apt-get is only required when installing packages provided by the
package manager.  It has nothing to do with installing archives you
download.


Roger
--

Powered by www.kitware.com<http://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 more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake
-- 

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 more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


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

2018-10-30 Thread Osman Zakir
I thought I'd already said that I can't use sudo or anything else with root 
access privileges.  I want to deploy the Docker image to Heroku and Heroku 
doesn't run Docker images with root user access.

I'll forget about "apt-get", but I still want to put CMake into /usr/local/ 
somewhere without using root user access, if that's possible.

How do I find out in the Docker image where the CMake files were unpacked to so 
I can add that path to the PATH variable?  Since I used wget like with Boost, 
and Boost was installed in /usr/local/boost_1_68_0 (and Boost with its build 
tool was also installed /usr/local/ itself), it's possible that CMake's path is 
something similar.

From: CMake  on behalf of Mateusz Loskot 

Sent: Tuesday, October 30, 2018 5:09 PM
To: cmake@cmake.org
Subject: Re: [CMake] Installing CMake 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, it does not contain a .deb package.

You need to read about apt and .deb packages

> What do I have to do in order for it to install the CMake executable I 
> downloaded

Unpack the .tar.gz, that's it.
Optionally, copy somewhere you prefer in your Linux environment.

> and also add it to my PATH?

export PATH=/path/where/you/unpacked/cmaketarg/bin:$PATH


Alternatively,
iIf you stopped stubbornly trying the apt-get and
if you tried my suggestion

wget -O cmake-linux.sh
https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.sh
sudo sh cmake-linux.sh -- --skip-license --prefix=/usr/local

you would get CMake installed in the standard prefix /usr/local
with cmake executable deployed in /usr/local/bin/cmake
and having /usr/local/bin typically in PATH
you would get cmake in your PATH out of the box.

Just forget about using apt-get with the downloaded .tar.gz, forget it!
Or, learn about Debian packages, apt, etc. just not here!

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
--

Powered by www.kitware.com<http://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 more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake
-- 

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 more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


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:
>
> So just "make -A x64 -DBOOST_ROOT:PATH=D:\boost.win"?


No. The comand I pasted reads

"cmake -A x64 -DBOOST_ROOT:PATH=D:\boost.win"
^^^ cmake not make


> Speaking of x64 vs. x86, I think CMake needs to be able to include the option 
> to build for either x86 or x64 in the same VS project file.  I read on the 
> CMake forums that this is being worked on, but what's the story on that?

Sorry, no idea what you talking about. Perhaps it's better to read the
docs first:

-A 
Specify platform name if supported by generator.


For this paricular VS use case, I could have used

cmake -G "Visual Studio 15 2017 Win64" -DBOOST_ROOT:PATH=D:\boost.win ..
which should be equivalent to
cmake -A x64 -DBOOST_ROOT:PATH=D:\boost.win


Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
--

Powered by www.kitware.com<http://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 more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake
-- 

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 more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/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?

From: CMake  on behalf of Mateusz Loskot 

Sent: Tuesday, October 30, 2018 4:37 PM
To: cmake@cmake.org
Subject: Re: [CMake] Installing CMake in Ubuntu Linux from command-line via wget

On Tue, 30 Oct 2018 at 12:31, Raymond Wan  wrote:
>
> If you insist on the latest version, then where you have
> "apt-get install" should be replaced with commands that
> Mateusz has already said.  That is, the steps mentioned here:
>
> https://cmake.org/install/

Raymond, the web page explains how to build from sources.
That is the 3rd way of installing CMake.

1. apt-get install cmake
2. Bash installer or manually unpacking .tar.gz. eg.
cmake-3.12.3-Linux-x86_64.tar.gz

wget -O cmake-linux.sh
https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.sh
sudo sh cmake-linux.sh -- --skip-license --prefix=/usr/local

3. Build from sources as per https://cmake.org/install/

> (Perhaps the cmake-linux.sh that Mateusz mentioned works...I
> personally haven't installed a version from cmake.org for a
> very long time, so I wouldn't know.)

I can assure you the option 2. works perfectly

I use it daily to juggle CMake on number of Linux environments

https://github.com/mloskot/wsl-config/blob/master/wsl/scripts/install-cmake-latest.sh

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
--

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 more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake
-- 

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 more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


Re: [CMake] About FindBoost.cmake

2018-10-30 Thread Osman Zakir
So just "make -A x64 -DBOOST_ROOT:PATH=D:\boost.win"?

Speaking of x64 vs. x86, I think CMake needs to be able to include the option 
to build for either x86 or x64 in the same VS project file.  I read on the 
CMake forums that this is being worked on, but what's the 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?

I included full cmake invocation command line in my response you replied to.
Just re-read it below.

Once again, please, respond to cmake@cmake.org mailing list, not privately!

ML

> 
> From: CMake  on behalf of Mateusz Loskot 
> 
> Sent: Tuesday, October 30, 2018 2:55 PM
> To: cmake@cmake.org
> Subject: Re: [CMake] About FindBoost.cmake
>
> On Tue, 30 Oct 2018 at 10:54, Mateusz Loskot  wrote:
> > [...]
> > D:\_\workshop\test_boost\_build.vs2017 cmake -A x64
> > -DBOOST_ROOT:PATH=D:\boost.win ..
> > -- Building for: Visual Studio 15 2017
> > -- The C compiler identification is MSVC 19.15.26730.0
> > -- The CXX compiler identification is MSVC 19.15.26730.0
> > -- Check for working C compiler: C:/Program Files (x86)/Microsoft
> > Visual 
> > Studio/2017/Professional/VC/Tools/MSVC/14.15.26726/bin/Hostx64/x64/cl.exe
> > -- Check for working C compiler: C:/Program Files (x86)/Microsoft
> > Visual 
> > Studio/2017/Professional/VC/Tools/MSVC/14.15.26726/bin/Hostx64/x64/cl.exe
> > -- works
> > ...
> > -- Boost version: 1.69.0
> > -- Found the following Boost libraries:
> > --   filesystem
> > --   system
> > ...
>
> I forgo to mention above I run
>
> cmake --version
> cmake version 3.12.2
>
>
> --
> Mateusz Loskot, http://mateusz.loskot.net


--
Mateusz Loskot, http://mateusz.loskot.net
--

Powered by www.kitware.com<http://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 more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake
-- 

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 more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


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

2018-10-30 Thread Osman Zakir
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  \
&& tar xzf cmake-3.12.3-Linux-x86_64.tar.gz  \​
&& rm -rf cmake-3.12.3-Linux-x86_64.tar.gz  \​
&& cd cmake-3.12.3-Linux-x86_64  \​
&& apt-get install \​
&& ./bin/cmake --version
"
I think I'll need the apt-get install part to install the library.  Is this 
true?

From: CMake  on behalf of Ian Cullen 

Sent: Tuesday, October 30, 2018 2:52 PM
To: cmake@cmake.org
Subject: Re: [CMake] Installing CMake in Ubuntu Linux from command-line via wget

If you want to stick to your original method you need to add some
command line arguments to tar to tell it that is is extracting a
compressed file.

The binary is then available within the extracted directory.

Original command becomes:

RUN wget https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.tar.gz  \
&& tar xzf cmake-3.12.3-Linux-x86_64.tar.gz  \
&& rm -rf cmake-3.12.3-Linux-x86_64.tar.gz  \
&& cd cmake-3.12.3-Linux-x86_64  \
&& ./bin/cmake --version


tar 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 Zakir  wrote:
>> 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-Linux-x86_64.tar.gz  \
>> && cd cmake-3.12.3-Linux-x86_64  \
>> && apt-get install
> Hmm, are you cerctain apt-get is capable of installing from .tar.gz?
>
> wget -O cmake-linux.sh
> https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.sh
> sudo sh cmake-linux.sh -- --skip-license --prefix=/usr/local
> cmake --version
>
> I guess, it may be a good idea to update https://cmake.org/install/
>
> Best regards,,

--

Powered by www.kitware.com<http://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 more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake
-- 

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 more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


[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-Linux-x86_64.tar.gz  \
   && cd cmake-3.12.3-Linux-x86_64  \
   && apt-get install
"
I had this error:
"
tar: Old option 'L' requires an argument.
Try 'tar --help' or 'tar --usage' for more information.
"
Any idea how I can fix this?  Or should I ask on a Linux forum?
-- 

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 more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


[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, if it's an x64 multithreaded debug lib 
(just take this as an example), the filename is 
"libboost_filesystem-vc141-mt-gd-x64-1_68.lib".  For x86 it'd be 
"libboost_filesystem-vc141-mt-gd-x32-1_68.lib".

Just thought I'd send this email to report this.
-- 

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 more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


[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 where the 
compiled binaries are.  Or both.
-- 

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 more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


[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 able to build the library and write the 
files to "/usr/local/Jinja2Cpp/build" just fine.  But the Docker build process 
exits with a return code of 1 at that point due to the two CMake errors 
generated.  I've attached the text file I'd written documenting the CMake 
errors in question.

Should I delete the Docker images and containers created from previous attempts 
of building this Docker image, just in case there might be some problem there?  
I did try deleting all Docker images and containers I had locally before trying 
to build the Dockerfile again, but had the same problem.

I've asked this on the Jinja2Cpp GitHub page as well, but I thought I'd ask 
here as well since it also concerns CMake itself.  I hope you guys can help me 
out.  Thanks in advance for any replies and/or help.
Step 6/15 : RUN git clone https://github.com/flexferrum/jinja2cpp && cd 
jinja2cpp && git submodule -q update --init && mkdir build && cd 
build && cmake .. -DCMAKE_INSTALL_PREFIX=../install && cmake --build . 
--target all && cmake --build . --target install
 ---> Running in 02178abe6ef0
Cloning into 'jinja2cpp'...
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- 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: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- expected-lite not found, using submodule
-- Found Git: /usr/bin/git (found version "2.17.1")
-- variant-lite or optional-lite not found, using submodule
-- value-ptr-lite not found, using submodule
CMake Warning at /usr/share/cmake-3.10/Modules/FindBoost.cmake:801 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  /usr/share/cmake-3.10/Modules/FindBoost.cmake:907 
(_Boost_COMPONENT_DEPENDENCIES)
  /usr/share/cmake-3.10/Modules/FindBoost.cmake:1558 
(_Boost_MISSING_DEPENDENCIES)
  thirdparty/CMakeLists.txt:108 (find_package)


CMake Warning at /usr/share/cmake-3.10/Modules/FindBoost.cmake:801 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  /usr/share/cmake-3.10/Modules/FindBoost.cmake:907 
(_Boost_COMPONENT_DEPENDENCIES)
  /usr/share/cmake-3.10/Modules/FindBoost.cmake:1558 
(_Boost_MISSING_DEPENDENCIES)
  thirdparty/CMakeLists.txt:108 (find_package)


-- expected-lite not found, using submodule
-- Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE)
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Configuring done
CMake Error at CMakeLists.txt:81 (add_executable):
  Target "jinja2cpp_tests" links to target "Boost::filesystem" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?


CMake Error at CMakeLists.txt:49 (add_library):
  Target "jinja2cpp" links to target "Boost::filesystem" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?


-- Generating done
-- Build files have been written to: /app/jinja2cpp/build
The command '/bin/sh -c git clone https://github.com/flexferrum/jinja2cpp 
&& cd jinja2cpp && git submodule -q update --init && mkdir build && 
cd build && cmake .. -DCMAKE_INSTALL_PREFIX=../install && cmake --build 
. --target all && cmake --build . --target install' returned a non-zero 
code: 1-- 

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 more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


[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 (right?).

Anyway, I'm having problem using CMake to build a library on Windows.  The 
library is Jinja2Cpp.  I asked on their GitHub page as well and they said it 
might be a problem with VS or Windows itself since there's something in the 
output that shouldn't be there in a normal build process.  I tried asking on 
MSDN after that, but they just said to ask the library authors.  So I decided 
to ask here instead, after that.

This is the issue thread on the Jinja2Cpp GitHub page: 
https://github.com/flexferrum/Jinja2Cpp/issues/75 .

I'm also attaching the CMake logs to this message for you guys' reference.

I tried building it more than once.  The command I used (on the command line) 
was "cmake .. -DCMAKE_INSTALL_PREFIX=../install".  I was able to build it 
successfully with VS2017 before.  This is only a recent problem.
[https://avatars0.githubusercontent.com/u/18173932?s=400=4]

Can't Build Jinja2Cpp on Windows with Visual Studio 2017 Anymore · Issue #75 · 
flexferrum/Jinja2Cpp
Just now, just to check, I tried to build the library on Windows again by 
cloning fresh into Jinja2Cpp, updating the submodule, and then running cmake 
-DCMAKE_INSTALL_PREFIX=../install and got this...
github.com




CMakeError.log
Description: CMakeError.log


CMakeOutput.log
Description: CMakeOutput.log
-- 

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 more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


[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 generate files correctly.

I've attached three files to this email.  One is a text file I made myself by 
copy-pasting the output I got from my CMake build attempt.  The other two are 
the log files mentioned in said output.

Note: The command I had used was "cmake .. -DCMAKE_INSTALL_PREFIX=../install".

I opened an issue for this at the Jinja2Cpp GitHub repo as well; here: 
https://github.com/flexferrum/Jinja2Cpp/issues/75 .  I want to try to edit the 
CMakeLists.txt file to use Clang instead if I can't get it to work with Visual 
Studio, but for now I want to try getting it to work with Visual Studio.
[https://avatars0.githubusercontent.com/u/18173932?s=400=4]

Can't Build Jinja2Cpp on Windows with Visual Studio 2017 Anymore · Issue #75 · 
flexferrum/Jinja2Cpp
Just now, just to check, I tried to build the library on Windows again by 
cloning fresh into Jinja2Cpp, updating the submodule, and then running cmake 
-DCMAKE_INSTALL_PREFIX=../install and got this...
github.com


C:\Jinja2Cpp\build>cmake .. -DCMAKE_INSTALL_PREFIX=../install
-- Building for: Visual Studio 15 2017
-- The C compiler identification is MSVC 19.15.26730.0
-- The CXX compiler identification is MSVC 19.15.26730.0
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual 
Studio/2017/Community/VC/Tools/MSVC/14.15.26726/bin/Hostx86/x86/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual 
Studio/2017/Community/VC/Tools/MSVC/14.15.26726/bin/Hostx86/x86/cl.exe -- broken
CMake Error at C:/Program Files 
(x86)/CMake/share/cmake-3.10/Modules/CMakeTestCCompiler.cmake:52 (message):
  The C compiler

"C:/Program Files (x86)/Microsoft Visual 
Studio/2017/Community/VC/Tools/MSVC/14.15.26726/bin/Hostx86/x86/cl.exe"

  is not able to compile a simple test program.

  It fails with the following output:

Change Dir: C:/Jinja2Cpp/build/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/Microsoft Visual 
Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe" "cmTC_f8e1b.vcxproj" 
"/p:Configuration=Debug" "/p:VisualStudioVersion=15.0"
Microsoft (R) Build Engine version 15.8.169+g1ccb72aefa for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 10/18/2018 1:51:09 AM.
Project "C:\Jinja2Cpp\build\CMakeFiles\CMakeTmp\cmTC_f8e1b.vcxproj" on node 
1 (default targets).
PrepareForBuild:
  Creating directory "cmTC_f8e1b.dir\Debug\".
  Creating directory "C:\Jinja2Cpp\build\CMakeFiles\CMakeTmp\Debug\".
  Creating directory "cmTC_f8e1b.dir\Debug\cmTC_f8e1b.tlog\".
InitializeBuildStatus:
  Creating "cmTC_f8e1b.dir\Debug\cmTC_f8e1b.tlog\unsuccessfulbuild" because 
"AlwaysCreate" was specified.
VcpkgTripletSelection:
  Using triplet "x86-windows" from "C:\vcpkg\installed\x86-windows\"
ClCompile:
  C:\Program Files (x86)\Microsoft Visual 
Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\HostX86\x86\CL.exe /c 
/I"C:\Program Files (x86)\Visual Leak Detector\include" 
/I"C:\vcpkg\installed\x86-windows\include" /Zi /W3 /WX- /diagnostics:classic 
/Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- 
/RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline 
/Fo"cmTC_f8e1b.dir\Debug\\" /Fd"cmTC_f8e1b.dir\Debug\vc141.pdb" /Gd /TC 
/analyze- /FC /errorReport:queue 
C:\Jinja2Cpp\build\CMakeFiles\CMakeTmp\testCCompiler.c
  Microsoft (R) C/C++ Optimizing Compiler Version 19.15.26730 for x86
  Copyright (C) Microsoft Corporation.  All rights reserved.

  cl /c /I"C:\Program Files (x86)\Visual Leak Detector\include" 
/I"C:\vcpkg\installed\x86-windows\include" /Zi /W3 /WX- /diagnostics:classic 
/Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- 
/RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline 
/Fo"cmTC_f8e1b.dir\Debug\\" /Fd"cmTC_f8e1b.dir\Debug\vc141.pdb" /Gd /TC 
/analyze- /FC /errorReport:queue 
C:\Jinja2Cpp\build\CMakeFiles\CMakeTmp\testCCompiler.c
  testCCompiler.c

Link:
  C:\Program Files (x86)\Microsoft Visual 
Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\HostX86\x86\link.exe 
/ERRORREPORT:QUEUE 
/OUT:"C:\Jinja2Cpp\build\CMakeFiles\CMakeTmp\Debug\cmTC_f8e1b.exe" /INCREMENTAL 
/NOLOGO /LIBPATH:"C:\Program Files (x86)\Visual Leak Detector\lib\Win32" 
/LIBPATH:"C:\vcpkg\installed\x86-windows\debug\lib" 
/LIBPATH:"C:\vcpkg\installed\x86-windows\debug\lib\manual-link" kernel32.lib 
user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib 
comdlg32.lib advapi32.lib "C:\vcpkg\installed\x86-windows\debug\lib\*.lib"