On 8/6/06, Doug Currie <[EMAIL PROTECTED]> wrote:
> Here are some things I did to build wxLua_Snapshot_2006-08-04.tar.gz
> on Windows XP using mingw/msys. I don't pretend that these are the
> "right" fixes for wxLua sources. Many are to generated files rather
> than source files -- done out of ignorance of the full build process.
> Others may interfere with successful builds with other tools or on
> different targets. I am reporting them to help those attempting to
> build with mingw/msys; maybe the authors/maintainers will find them
> useful as well.
>
> I started with an installed wxWidgets 2.6.3 and wxstedit 1.2.1. I
> extracted wxLua_Snapshot_2006-08-04.tar.gz and did a
> $ ../configure --disable-debug --enable-shared --enable-unicode 
> --enable-wxluaedit-app
>
> configure was unable to find wxstedit; apparently the method the
> configure script uses to find wxstedit is not meant for Windows, it
> seems to mess up with WXDLLEXPORT. Ignoring that, I did a make. It
> proceeds for a while and then fails to compile wx_bind.cpp (this has
> been reported earlier on this list as a bug in mingw's gcc 3.4.x).

Use the environment variable WXSTEDIT=c:\...\wxstedit
You do have to copy the stedit.lib by hand to the wxLua/lib/xxx lib dir.

> 1. hack wx_bind.cpp after make chokes on it inserting these lines:
>
> #ifdef __MINGW32__
> const wxPoint wxDefaultPositionHack = wxDefaultPosition;
> const wxSize wxDefaultSizeHack = wxDefaultSize;
> #define wxDefaultPosition wxDefaultPositionHack
> #define wxDefaultSize wxDefaultSizeHack
> #endif
>
> before:
>
> WXLUAOBJECT* wxLuaGetObjectList_wx(size_t &count)

Thanks, I've added this code and it should be fixed.

> 2. in modules/wxluadebug/src/splttree.cpp add:
>
> #ifdef __MINGW32__
> #undef UNREFERENCED_PARAMETER
> #endif
>
> after includes and before:
>
> static wxTreeItemId defaultTreeItemId;

Added.

> 3. in {my-build}/modules/Makefile add -lws2_32 to WX_LIBS

I'm trying to use cygwin to compile... I'll see about where there
would be a good place to add this. It's on a real slow machine so
maybe it'll be done by tomorrow. :)

> 4. in {my-build}/apps/Makefile change:
>
> WX_RESCOMP =
>
> to:
>
> WX_RESCOMP = windres --include-dir /usr/local/include/wx-2.6

We can't hardcode any paths here. I don't know how to fix this, but I
would think that the wx-config script should provide the proper paths.
See #3, I'll see if I need this too.

> 5. in apps/wxlua/src/wxlua.rc  remove "..\\" from icon

This is what it currently is (below), which is correct for the
apps/wxlua/src dir path. What are you suggesting?

lua   ICON   "..\\..\\..\\art\\wxlua.ico"

> 6. in {my-build}/apps/Makefile add -lws2_32 to WX_LIBS

I'll see what happens for me, see #3.

> 7. in apps/wxluacan/src/cansim.rc  remove "..\\" from icon
> 8. in apps/wxluafreeze/src/wxluafreeze.rc  remove "..\\" from icon

See #5, exactly what path works?

=======================
Thanks for your work, I'll see what I get for #3, 4, 5, 6, 7, 8 in
cygwin. Is gcc in cygwin the same as the mingw you use?

-John Labenski

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wxlua-users mailing list
Wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to