← Back to team overview

kicad-developers team mailing list archive

Re: Re: CMake on Linux

 

Hi,

2008/2/24, Frank Bennett <bennett78@xxxxxxxxxxxxxxx>:
>
> --- In kicad-devel@xxxxxxxxxxxxxxx, "Mateusz Skowroński" <skowri@...>
>  wrote:
>  >
>  > Hi,
>  >
>  > 2008/2/6, Frank Bennett <bennett78@...>:
>  >
>  > You should probably read the how-to-build-kicad.txt from the main
>  > directory. The steps are slightly changed in svn:
>  >
>  http://kicad.svn.sourceforge.net/viewvc/kicad/trunk/kicad/how-to-build-kicad.txt?view=markup
>  >
>  > $ cd <kicad-svn-root>
>  > $ mkdir -p Build/Debug
>  > $ cd Build/Debug
>  > $ cmake -DCMAKE_BUILD_TYPE=Debug -DwxWidgets_USE_DEBUG=ON
>  > -DCMAKE_VERBOSE_MAKEFILE=1 ../../
>  >
>  > should do the trick under linux.
>  Not....what else does cmake need or looking for?
>
>  Using:
>  /s/opt/svn/wxWidgets-2.8.7# ./configure --enable-monolithic
>  --prefix=/usr/local/wx --enable-unicode=no --enable-shared=no
>  --with-opengl --with-libpng=builtin --with-libjpeg=builtin
>  --with-libtiff=builtin --with-zlib=builtin --with-regex=builtin
>

You should add "--enable-debug --enable-debug_gdb" to the configure
line since You are making a _debug build_.

>  make;make install puts stuff in:
>  /usr/local/wx/bin
>  /usr/local/wx/include
>
>  /s/opt/svn/kicad/trunk/kicad/Build/Debug# prefix=/usr/local/wx cmake
>  -DCMAKE_BUILD_TYPE=Debug -DwxWidgets_USE_DEBUG=ON ../../
>  -- Check for installed OpenGL -- found
>  -- Check for installed Boost -- found
>  -- Could NOT find wxWidgets
>  -- Check for installed wxWidgets -- not found
>  CMake Error: wxWidgets was not found - it is required to build KiCad
>  -- Configuring done

prefix=/usr/local/wx should not be necessary. CMake uses wx-config to
find out where wx is installed.

>  with or without:
>  rm CMakeCache.txt
>
>  /s/opt/svn/kicad/trunk/kicad/Build/Debug# wx-config --libs
>  -L/usr/local/wx/lib -pthread   /usr/local/wx/lib/libwx_gtk2-2.8.a
>  -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm
>  -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor
>  -lXcomposite -lXdamage -lpango-1.0 -lX11 -lXfixes -lgobject-2.0
>  -lgmodule-2.0 -ldl -lgthread-2.0 -lrt -lglib-2.0 -lXinerama -lSM
>  -lwxregex-2.8 -lwxtiff-2.8 -lwxjpeg-2.8 -lwxpng-2.8 -lwxzlib-2.8 -ldl -lm
>
>  thanks,
>  Frank Bennett
>  > >

Regards,
Mateusz

Follow ups

References