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

2018-10-30 Thread Mateusz Loskot
On Tue, 30 Oct 2018 at 18:10, Osman Zakir  wrote:
>
> So I have to do "ENV export PATH=$HOME/usr/bin:$PATH"?  Is that what you mean?

Your question is off-topic here. Try Docker forums, StackOverflow, ...

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


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

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] Support of ${MPIEXEC_EXECUTABLE} in try_run

2018-10-30 Thread Hector E Barrios Molano

Hi CMake Users,

Is there a way to use ${MPIEXEC_EXECUTABLE} during execution of a 
program using try_run?


Thank you for your help,

Best regards,

Hector
-- 

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] Docker container can't find cmake executable

2018-10-30 Thread Roger Leigh

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

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


[CMake] PGO (Profile Guided Optimization)

2018-10-30 Thread Jan Wielemaker

Hi,

I was wondering whether there is a module or skeleton floating around to
deal with Profile Guided Optimization using a cmake build. If this rings
a bell you probably know the sequence (assuming GCC):

  - compile using -fprofile-generate
  - run a benchmark suite, this generates .gcda files for each object,
which may be placed in a different directory.
  - recompile using -fprofile-use

Targetting Ninja, I now use a shell-script that performs

  - ninja -t clean my-target
  - cmake -DPROFILE_GUIDED_OPTIMIZATION=GENERATE ..
  - ninja my-target
  - 
  - cmake -DPROFILE_GUIDED_OPTIMIZATION=USE ..
  - ninja -t clean my-target
  - ninja my-target

Where my-target is the time critical sub-project and
PROFILE_GUIDED_OPTIMIZATION is picked up by cmake and sets the compile
and link flags for the affected targets.

This isn't nice. I guess that ideally I'd have a separate build
subdirectory that always uses -fprofile-generate and the main build dir
using -fprofile-use. Does that make sense? Is there an
example/module/...?

Thanks --- Jan
--

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 Mateusz Loskot
On Tue, 30 Oct 2018 at 13:26, Osman Zakir  wrote:
>
> I thought I'd already said that I can't use sudo or anything else with root 
> access privileges.

I forgot about this constraint.

Then, make use of the custom --prefix

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
export PATH=$HOME/usr/bin:$PATH

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


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

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

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 Roger Leigh

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

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

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 Mateusz Loskot
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

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

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] Installing CMake in Ubuntu Linux from command-line via wget

2018-10-30 Thread Mateusz Loskot
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


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

2018-10-30 Thread Raymond Wan


Hi Osman,


On 30/10/2018 6:56 PM, 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?



Not quite.  I think you should decide whether you want to:

a)  Install the latest version from cmake.org
b)  Install the latest version within the Ubuntu software 
repositories.


If you choose (b) then the latest version in Ubuntu 18.04 is 
CMake 3.10.2 .  In this case, the command above changes 
completely.  It is far easier but you'll also not get the 
latest version.


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/

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


Anyway, you might want to figure out which path you want first.

Ray



--

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 Mateusz Loskot
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

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

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 Mateusz Loskot
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

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

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 Mateusz Loskot
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
-- 

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 Mateusz Loskot
On Tue, 30 Oct 2018 at 10:24, Mateusz Loskot  wrote:
> On Tue, 30 Oct 2018 at 10:17, Osman Zakir  wrote:
> >
> > Yes, but this might also be why it can't find more than "some" of the Boost 
> > libraries.  It looks for "-d" even though I'm using the "-gd" ones.
>
> How do you know it looks for -d?
> Sorry, but you are not showing any cmake command line,
> any bit of your CMakeLists.txt how you invoke find_package,
> and nothing from output you are getting.
>
> set(Boost_DEBUG ON)
> find_package(Boost 1.68.0 REQUIRED COMPONENTS filesystem)
>
> then, in a sample project
>
> mkdir build
> cd build
> cmake ..
>
> and it looks for -gd
>
> -- [ C:/Program
> Files/CMake/share/cmake-3.12/Modules/FindBoost.cmake:1430 ]
> _boost_MULTITHREADED = -mt
> -- [ C:/Program
> Files/CMake/share/cmake-3.12/Modules/FindBoost.cmake:1506 ]
> _boost_RELEASE_ABI_TAG = -
> -- [ C:/Program
> Files/CMake/share/cmake-3.12/Modules/FindBoost.cmake:1508 ]
> _boost_DEBUG_ABI_TAG = -gd

I've run some test.

I've got Boost (current develop branch) build in stage directory, as
you see it is --layout=versioned

D:\boost.win\stage\lib (develop -> origin)  ls -1 *system*
libboost_filesystem-vc141-mt-gd-x32-1_69.lib
libboost_filesystem-vc141-mt-gd-x64-1_69.lib
libboost_filesystem-vc141-mt-x32-1_69.lib
libboost_filesystem-vc141-mt-x64-1_69.lib
libboost_system-vc141-mt-gd-x32-1_69.lib
libboost_system-vc141-mt-gd-x64-1_69.lib
libboost_system-vc141-mt-x32-1_69.lib
libboost_system-vc141-mt-x64-1_69.lib

In test project D:\_\workshop\test_boost\CMakeLists.txt

set(Boost_ADDITIONAL_VERSIONS 1.69)
set(Boost_USE_STATIC_LIBS ON)
find_package(Boost 1.69.0 REQUIRED COMPONENTS filesystem system)

Then, configure:

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

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


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

2018-10-30 Thread Ian Cullen
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

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 Mateusz Loskot
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,,
-- 
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


Re: [CMake] About FindBoost.cmake

2018-10-30 Thread Mateusz Loskot
On Tue, 30 Oct 2018 at 10:17, Osman Zakir  wrote:
>
> Yes, but this might also be why it can't find more than "some" of the Boost 
> libraries.  It looks for "-d" even though I'm using the "-gd" ones.

How do you know it looks for -d?
Sorry, but you are not showing any cmake command line,
any bit of your CMakeLists.txt how you invoke find_package,
and nothing from output you are getting.

set(Boost_DEBUG ON)
find_package(Boost 1.68.0 REQUIRED COMPONENTS filesystem)

then, in a sample project

mkdir build
cd build
cmake ..

and it looks for -gd

-- [ C:/Program
Files/CMake/share/cmake-3.12/Modules/FindBoost.cmake:1430 ]
_boost_MULTITHREADED = -mt
-- [ C:/Program
Files/CMake/share/cmake-3.12/Modules/FindBoost.cmake:1506 ]
_boost_RELEASE_ABI_TAG = -
-- [ C:/Program
Files/CMake/share/cmake-3.12/Modules/FindBoost.cmake:1508 ]
_boost_DEBUG_ABI_TAG = -gd

FindBoost is a complex animal, it deals with tons of cases, it
frequently stops working.
So, crystal sphere -based investigation does not quite apply :)

BTW, pease respond to the mailing list, not privately.

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


[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


Re: [CMake] About FindBoost.cmake

2018-10-30 Thread Mateusz Loskot
On Tue, 30 Oct 2018 at 00:29, Osman Zakir  wrote:
>
> I noticed that FindBoost.cmake has "-d" set as the Boost debug ABI tag even 
> though the Boost libraries actually use "-gd".

-d comes from variant=debug option when you build Boost
-g comes from runtime-debugging=on

You've got it explained here
https://www.boost.org/doc/libs/1_68_0/more/getting_started/windows.html

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

IMO, what you describe is not a problem.
-gd is perfectly valid combination, and on Windows where versioned
layout of Boost is the default, you will see names like

d:\boost.win\stage\lib>ls -1 *file*
libboost_filesystem-vc141-mt-gd-x32-1_69.lib
libboost_filesystem-vc141-mt-gd-x64-1_69.lib
libboost_filesystem-vc141-mt-x32-1_69.lib
libboost_filesystem-vc141-mt-x64-1_69.lib

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