kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #01075
Re: Re: CMake on Linux
2008/2/27, Frank Bennett <bennett78@xxxxxxxxxxxxxxx>:
>
> --- In kicad-devel@xxxxxxxxxxxxxxx, "Mateusz Skowroński" <skowri@...>
> wrote:
> >
> > 2008/2/27, Frank Bennett <bennett78@...>:
> > >
> > > --- In kicad-devel@xxxxxxxxxxxxxxx, "Mateusz Skowroński" <skowri@>
> > > wrote:
> > > >
> > > > 2008/2/27, Frank Bennett <bennett78@>:
> > > > >
> > > > > --- In kicad-devel@xxxxxxxxxxxxxxx, "Mateusz Skowroński"
> <skowri@>
> > > > > wrote:
> > > > > >
> > > > > > Hi,
> > > > > >
> > > > > > 2008/2/24, Frank Bennett <bennett78@>:
> > > > > > >
> > > > > > > --- In kicad-devel@xxxxxxxxxxxxxxx, "Mateusz Skowroński"
>
> > >
> > > <skowri@>
> > > > >
> > > > > > > wrote:
> > > > > > > >
> > > > > > > > You should add "--enable-debug --enable-debug_gdb" to the
> > > configure
> > > > > > > > line since You are making a _debug build_.
> > > > > > > Ok.
> > > > > > >
> > > > > > > /s/opt/svn/wxWidgets-2.8.7# ./configure
> --enable-monolithic \
> > > > > > > --enable-unicode=no --enable-shared=no --with-opengl \
> > > > > > > --with-libpng=builtin --with-libjpeg=builtin \
> > > > > > > --with-libtiff=builtin --with-zlib=builtin
> > > --with-regex=builtin \
> > > > > > > --enable-debug --enable-debug_gdb --prefix=/usr/local/wx
> > > > > > >
> > > > > > > make;make install
> > > > > > >
> > > > > > > > prefix=/usr/local/wx should not be necessary. CMake uses
> > > > > wx-config to
> > > > > > > > find out where wx is installed.
> > > > > > > Working with svn up
> > > > > > > Updated to revision 799
> > > > > > >
> > > > > > > wx-config is in my PATH:
> > > > > > >
> > > > > > > /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
> > > > > > >
> > > > > >
> > > > > >
> > > > > > What is the output of wx-config --debug=yes --libs ???
> > > > > >
> > > > > same:
> > > > > /s/opt/svn/kicad/trunk/kicad/Build/Debug# wx-config --debug=yes
> > > --libs
> > > > > -L/usr/local/lib -pthread /usr/local/lib/libwx_gtk2d-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
> > > > > -lwxregexd-2.8 -lwxtiffd-2.8 -lwxjpegd-2.8 -lwxpngd-2.8
> -lwxzlibd-2.8
> > > > > -ldl -lm
> > > > >
> > > > > >
> > > > > > > but I still get:
> > > > > > > /s/opt/svn/kicad/trunk/kicad/Build/Debug# 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
> > > > > > >
> > > > > >
> > > > > > Mateusz
> > > > > >
> > > > >
> > > > >
> > > >
> > > > Hi,
> > > > try this please:
> > > >
> > > > cmake -DCMAKE_BUILD_TYPE=Debug -DwxWidgets_USE_DEBUG=ON
> > > > -DwxWidgets_CONFIG_EXECUTABLE=/usr/local/wx/bin/wx-config ../../
> > > same as before:
> > > /s/opt/svn/kicad/trunk/kicad/Build/Debug# cmake
> > > -DCMAKE_BUILD_TYPE=Debug -DwxWidgets_USE_DEBUG=ON \
> > > -DwxWidgets_CONFIG_EXECUTABLE=/usr/local/wx/bin/wx-config ../../
> > > -- 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
> > >
> > > What is the best way to debug cmake?
> > > Dick suggested modifying the wx-config script.
> > >
> >
> > I've made a quick debian install. Compiled wxwidgets with the same
> > prefix as You and the above command worked for me. Where is Your
> > wx-config located??
> /s/opt/svn/kicad/trunk/kicad/Build/Debug# which wx-config
> /usr/local/bin/wx-config
>
Change
-DwxWidgets_CONFIG_EXECUTABLE=/usr/local/wx/bin/wx-config
to
-DwxWidgets_CONFIG_EXECUTABLE=/usr/local/bin/wx-config
Cheers
Follow ups
References