[CMake] Compiling binaries with cmake -- help

Nicholas Braden nicholas11braden at gmail.com
Thu Jun 23 01:08:11 EDT 2016


It looks like the instructions are there in the README. I tried
building on my system but I'm missing some dependencies (e.g. at some
point it finds my Python 3 installation and tries to run some code but
fails due to a missing sipconfig module, which I am not familiar
with).

Generally, to build a project that uses CMake, create an empty
directory for the build and open a terminal in it, then run CMake with
the path to the directory containing CMakeLists.txt and optionally
specify the generator to use if the default is not the one you want.
Then, if it completes without errors, you can use "cmake --build ." to
build it and "cmake --build . --target install" to install it, even if
you used an IDE generator.

As for the project dependencies, you are own your own to get those.

On Wed, Jun 22, 2016 at 11:56 PM, Crest Christopher
<crestchristopher at gmail.com> wrote:
> Hi, here is the github URL; I hope it will help, to help me understand how
> to compile and use should I come across a cMaker compiler installation in
> the future.
>
> Martin Maurer
> Thursday, June 23, 2016 12:45 AM
> Hello,
>
> how about to share the github URL,
> which file you have downloaded or project you want to compile?
>
> I think this would make it much easier for readers to help.
>
> Best regards,
>
> Martin
>
> Nicholas Braden
> Wednesday, June 22, 2016 8:50 PM
> Are you trying to use an existing CMakeLists.txt, or are you trying to
> create your own? CMake doesn't just work on source files alone.
>
> On Wed, Jun 22, 2016 at 7:30 PM, Crest Christopher
> Crest Christopher
> Wednesday, June 22, 2016 8:30 PM
> Hi, I'm hoping I can get some help on how to compile a repository from
> github which is local on my machine with a series of folders which contain
> CPP extension files.
>
> I have chosen the folders for which most likely contain the correct files to
> compile the binaries followed by the folder to which to build the binaries
> then I have chosen generate but I'm getting an error that the project files
> are invalid ?
>
>
>
> --
>
> 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:
> http://public.kitware.com/mailman/listinfo/cmake


More information about the CMake mailing list