← 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 config file is generated by the cmake and is put into the build directory, not the source directory. This way you can have alternative builds which are customize to some extent by the contents of config.h.

The compiler include path has to also include the "build path" now, which is typically <something>/release or <something>/debug

Verify that your config.h file exists in your build directory. Then compile with

make clean
make VERBOSE=1

and verify that the -I option that you see being passed to g++ includes a path segment to your build directory which is where you have confirmed that the config.h file exists.

Dick







References