Hi,

2010/5/5 sdfkjsjlh sdbfgsfsdg <sdfkjsjlhsdbfgsf...@yahoo.com>:
> I've updated mmwx and uploaded the latest to the SVN repo
great!

> I'm having
> trouble with the bakefiles. I've been right through the tutes and followed
> the steps but I can't build it. Or anything else I've tried. I use
> Code:Blocks with mingw on Windows and it seems that bakefile assumes that
> everyone's going to be using the MS tool chain.
hmmm, bakefile creates makefiles for many toolchains... however the
one I use usually (and thus the one which has been tested better) is
the "msvc" format which assumes MS toolchain.

> It doesn't even create
> VS2008 projects. How can it be so far out of date?
it does generate them. I tried running bakefile_gen in components\mmwx
and I got MSVS 2008 project files... which bakefile version are you
using? do you get errors when running bakefile_gen?

I just had to add a line "<set var="USE_UNSTABLE_VERSION">1</set>"
just before "<include file="presets/wxcode.bkl"/>" in mmwx.bkl to make
it work (and that's not related to VS08 but rather to the fact that
the wx default version is currently set to 29 which is the "unstable"
branch).

> I have VS but don't have
> a suitable wx build.
sorry, I'm not sure to understand what you mean here... can you
explain it better?

>I tried running configure and make but that fails and
> seems to be configured for unix paths.
configure needs to run on Linux/Unix/Mac/Cygwin/MSYS environments, not
on Windows... that's why configure uses / as path separator.

>If I do "mingw32-make makefile.gcc"
> it fails. For example,when run on the kwic package:
>
> $ mingw32-make.exe ./makefile.gcc all
> mingw32-make: Nothing to be done for `makefile.gcc'.
> g++ -c -o gccmsw/kwic_lib_slider.o -O0 -g -W -Wall -I../include `wx-config
> --cx
> flags --debug=yes --unicode=yes --static=yes --toolkit=msw --version=2.8`
> -MT
> ccmsw/kwic_lib_slider.o -MF`echo gccmsw/kwic_lib_slider.o | sed -e
> 's,\.o$,.d,'
>  -MD ../src/slider.cpp
> ../src/slider.cpp: In member function 'void
> kwxLinearReg::DrawLimits(wxDC&)':
> ../src/slider.cpp:354: error: no matching function for call to
> 'wxString::Print
> (const char [3], int&)'
this kind of error is because you are building against a Unicode build
of wxWidgets and kwic component does not seem to be Unicode-aware (it
does not use wxT() probably).

> Note that I always get "Nothing to be done for `makefile.gcc'." even if
> other activity follows. That looks like a bug.
not a bug, it's just that makefile.gcc is very misleading.
makefile.gcc should be used _only_ with MinGW, not with MSYS or
Cygwin.
We could change its name to "makefile.mingw" but then it would be
confusing to have wxWidgets' mingw makefile named "makefile.gcc" and
wxCode ones named "makefile.mingw"...

> When I try to build mmwx the same way it just hangs. I suspect this is
> because I can't run the final step in the tute, which is acregen.sh. That
> fails with:
>
> $ ./acregen.sh
> ./acregen.sh: line 24: aclocal: command not found
I don't remember if MSYS ships with aclocal but you need to install it
if you want to run acregen.sh...

> I'd appreciate it if someone could download the SVN and have a look. Why
> would acregen fail? I build wx with configure and make successfully.
acregen.sh needs additional tools to update the configure script... if
you cannot install them through MSYS (and you really want to use GCC
also on Windows -- I strongly suggest you to use VS2008 on Windows)
I'd suggest to go with Cygwin which surely allows to install them.

Francesco

------------------------------------------------------------------------------

_______________________________________________
wxCode-users mailing list
wxCode-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxcode-users

Reply via email to