← Back to team overview

kicad-developers team mailing list archive

Re: Rev 2091 build problem under mingw


Manveru wrote:
> Hi Developers,
> The following problem appears during build KiCad from rev 2091 over
> wxWidgets-2.9.0:
> D:\Projects\KiCad\kicad-bin>C:\Software\MinGW\bin\mingw32-make.exe
> PATH="%PATH%;C:\Software\MinGW\bin"
> [ 0%] Building CXX object 3d-viewer/CMakeFiles/3d-viewer.dir/3d_aux.cpp.obj
> In file included from D:\Projects\KiCad\kicad-svn\3d-viewer\3d_aux.cpp:11:
> D:/Projects/KiCad/kicad-svn/include/fctsys.h:64:20: config.h: No such
> file or directory
> mingw32-make[2]: *** [3d-viewer/CMakeFiles/3d-viewer.dir/3d_aux.cpp.obj] Error 1
> mingw32-make[1]: *** [3d-viewer/CMakeFiles/3d-viewer.dir/all] Error 2
> mingw32-make: *** [all] Error 2
> Adding dummy config.h file solves the problem for now.
> According to revision history, Wayne adds the line
> #include "config.h
> on revision 1774 with comment about dependency checks, but I do not
> know what is responsible for generation of that file during build
> process?
> Please explain. Thank you.


The file config.h is automatically generated by cmake when you create
your makefiles or project files in the case of MSVC. You can regenerate
it by running "make rebuild_cache". Normally you do this to update th
SVN version because the cache only gets regenerated if one of the
CMakeList.txt files in the source changes. If config.h did not get
generated then cmake failed during the process or something in the cmake
has been broken along the way. I have not had any problems with this
in MSVS 2005, MinGW/Msys, or linux. I am using cmake 2.6.4 on windows
and linux. I have not test the lastest 2.8.0 release of cmake. For
information on how to create platform checks with cmake see: