kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #07997
Re: Trouble with cmake
On 15 April 2012 20:27, Dan Chianucci <trump211dev@xxxxxxxxx> wrote:
> I'm trying to create the makefiles for kicad, but whenever I run the
> cmake command it gives me an error:
>
>
> Dan@DanC_Laptop /c/users/dan/workspaces/kicadr/src/kicad_testing/build/Debug
> $ cmake -G "Eclipse CDT4 - MinGW Makefiles" -DCMAKE_BUILD_TYPE=Debug
> -DKICAD_TESTING_VERSION=ON
> -DwxWidgets_ROOT_DIR=C:/Users/Dan/Workspaces/kicad-winbuilder/src/wxWidgets-2.9.2/Release
> ../../
> -- The C compiler identification is GNU
> -- The CXX compiler identification is GNU
> -- Check for working C compiler: C:/MinGW/bin/gcc.exe
> -- Check for working C compiler: C:/MinGW/bin/gcc.exe -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Check for working CXX compiler: C:/MinGW/bin/g++.exe
> -- Check for working CXX compiler: C:/MinGW/bin/g++.exe -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> Build testing (unstable) version of Kicad
> -- Check for installed OpenGL -- found
> -- Check for installed wxWidgets -- not found
> CMake Error at CMakeModules/CheckFindPackageResult.cmake:6 (message):
> wxWidgets was not found - it is required to build Kicad
> Call Stack (most recent call first):
> CMakeLists.txt:205 (check_find_package_result)
>
>
> -- Configuring incomplete, errors occurred!
>
> This is the first time I've tried to make kicad without the
> kicad-Winbuilder script. I notice that in the kicad-Winbuilder script
> it is invoking make on makefile.gcc in the build/msw directory.
> However when I built it from scratch I followed the directions in
> compiling.txt which says to make and enter a directory called release
> and then call
>
> ../configure --enable-unicode --enable-monolithic=no --disable-shared
> --with-opengl
> make
>
> Can someone help me out in where I'm supposed to point wxWidgets_ROOT_DIR to
>
> Thanks Dan C
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help : https://help.launchpad.net/ListHelp
Hi Dan,
It looks like you're building under MSYS, is that correct?
If so, you need to specify the root directory as an MSYS path, not as
a windows path. i.e. /c/... instead of C:\...
If you want to build a debug version, you can change the BUILD
variable in the kicad-winbuilder script (~line 178) to Debug. But
beware that this will increase executable size to hundreds of Mb.
You can also change the cmake generator in there too, it'll still all
work because you're still using MinGW makefiles.
MSYS and cmake don't really like each other in my opinion (because sh
has to be in the path!), and wxWidgets builds easily with MinGW
outside of MSYS.
Best Regards,
Brian.
References