← Back to team overview

kicad-developers team mailing list archive

Re: Re: CMake on Linux

 

--- 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

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



Frank,

In situations like this I have had some luck writing a shell script as a shim between the program being chain loaded and the caller. In this case that would be a shell script named "wx-config" and in that script you can print out the command line arguments to it or write them to disk. Then come back later and run your real wx-config with the same arguments and see what is produced and guess what is not acceptable to the caller.

As a plan B, some linux distros have a "debug" version of the wxwidgets packages already built. So after doing what you are trying to do and succeeding, I have since reverted back to using a prebuilt debug wx package . But in all cases I was using the unicode libraries.

HTH,

Dick







References