← Back to team overview

kicad-developers team mailing list archive

Re: Re: CMake on Linux

 

Frank Bennett wrote:
--- In kicad-devel@xxxxxxxxxxxxxxx, "Dick H." <dick@...> wrote:

First, thanks to Mateusz for setting this up.

I am now able to build for "debug" or "release" modes. The technique
involves two out of source build trees, one for debug and one for
release. Remember that for the "out of source" cmake build tree
generation process to work, you may not have a
<projectroot>/CMakeCache.txt file, so first delete that "in source
tree" cache file if it exists first.


Yes cmake seems to do the trick on the svn bits and I want to make a debuggable version...I'm new to cmake and something seems to
be missing in the following....


Here is a mini-howto for for others:


This maillist howto is now superseded by the file how-to-build-kicad.txt.

Please follow those instructions carefully and precisely.


However, before you do that, recognize that this line:

-- Build files have been written to: /s/opt/svn/kicad

is telling you that your files went into the kicad directory rather than in CWD as directed. With new instructions someone added another level "build" ==> build/debug and build/release, so your command line changes to "../../", however what I say next is important. If CMake finds the CMakeCache.txt file and friends in the place where you tell it the source is, then it will put the makefiles there too. So you have to delete the "CMake built" stuff from the source tree and try again. There is quite a bit of files and subdirectories, and you now are on your own on how to delete these. Start by deleting CMakeCache.txt and anything that looks like it was CMake generated using a file manager, or ask on the CMake help forum. "svn status" will tell you what is not in the repository. I don't remember off the top of my head, but I had to do the same thing and I am still alive, just older.


Dick








References