Page 1 of 1

wxPlotCtrl compile trouble

Posted: Mon Oct 23, 2006 10:57 am
by solus
I've been looking for plot functionality in wx and come up with three suggestions, contrib/wxPlot, which compiles but segfaults when I run it, MathPlot which seems outdated and doesn't compile, and wxPlotCtrl, which seems the best, but doesn't compile. I've tried two installation strategies so far, first run ./configure in the root dir yields

Code: Select all

configure: error: cannot find install-sh or install.sh in ../../../build/autoconf build ./../../../build/autoconf build
Running make from the /src/ dir (after modifying the makefile to the right include dirs, yields

Code: Select all

i686-pc-linux-gnu-g++ -c -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA   -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12   -MMD -g  -Wall -Wunused -Wunused-parameter -I../include -I ../../../components/wxthings/include  -o lm_lsqr.o lm_lsqr.cpp
I fil inkluderad fr

Re: wxPlotCtrl compile trouble

Posted: Mon Oct 23, 2006 11:19 am
by tiwag
you need also to build wxThings in order to build wxPlotCtrl ...


but
solus wrote:... MathPlot which seems outdated and doesn't compile
here you can dl a project (using CodeBlocks) which builds wxMathPlot fine
http://tiwag.googlecode.com/svn/binarie ... stPlot.tgz

see also there
http://forums.wxwidgets.org/viewtopic.php?p=47629#47629

brgds

Posted: Mon Oct 23, 2006 11:26 am
by rjmyst3
If you use windows, check out wxPack.
http://wxpack.sourceforge.net/

It includes wxPlotCtrl as compiled as a static lib and as a dll with both gcc and vc.

The download is rather big, because it includes all of wxWidgets compiled this way, among other things. But, you can choose to install only what you want to.