Monday, August 7, 2006, 5:13:59 PM, John Labenski wrote:

> 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. [...]

>[...]

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

Maybe. --cflags has it, but you'd need to extract it somehow.

$ wx-config --cflags
-I/usr/local/lib/wx/include/msw-unicode-release-static-2.6 
-I/usr/local/include/wx-2.6 -D__WXMSW__ -mthreads -DNO_GCC_PRAGMA

Well,

$ wx-config --release
2.6

So, maybe:

WXPREFIX   = $(shell $(WXCONFIG) --prefix)
WXRELEASE  = $(shell $(WXCONFIG) --release)
WX_RESCOMP = windres --include-dir $(WXPREFIX)/include/wx-$(WXRELEASE)

Pretty ugly.

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

my files () need, e.g., for apps\wxlua\src\wxlua.rc

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

to build without error. This is because the congig generated makefile is in
  wxLua\my-build\apps\Makefile
whereas the hardcoded makefile is in
  wxLua\apps\wxlua\src\Makefile
one level deeper.

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

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

I noted that when I later did a build against a static wxWidgets,
$ wx-config --libs
included -lwsock32
...dunno why it was a problem with the DLL version of wxWidgets.

$ wx-config --static=no --libs
-L/usr/local/lib -mthreads -Wl,--subsystem,windows -mwindows
-lwx_mswu_xrc-2.6 -lwx_mswu_qa-2.6 -lwx_mswu_html-2.6
-lwx_mswu_adv-2.6 -lwx_mswu_core-2.6 -lwx_baseu_xml-2.6
-lwx_baseu_net-2.6 -lwx_baseu-2.6

$ wx-config --static=yes --libs
-L/usr/local/lib -mthreads -Wl,--subsystem,windows -mwindows
/usr/local/lib/libwx_mswu_xrc-2.6.a /usr/local/lib/libwx_mswu_qa-2.6.a
/usr/local/lib/libwx_mswu_html-2.6.a
/usr/local/lib/libwx_mswu_adv-2.6.a
/usr/local/lib/libwx_mswu_core-2.6.a
/usr/local/lib/libwx_baseu_xml-2.6.a
/usr/local/lib/libwx_baseu_net-2.6.a /usr/local/lib/libwx_baseu-2.6.a
-lwxregexu-2.6 -lwxexpat-2.6 -lwxtiff-2.6 -lwxjpeg-2.6 -lwxpng-2.6 -lz
-lrpcrt4 -loleaut32 -lole32 -luuid -lwinspool -lwinmm -lshell32
-lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32

So, this looks like a wxWindows build issue.

> Thanks for your work, I'll see what I get for #3, 4, 5, 6, 7, 8 in
> cygwin.

You're welcome. Thank you for your work!

> Is gcc in cygwin the same as the mingw you use?

It should be close.

$ gcc --version
gcc.exe (GCC) 3.4.5 (mingw special)
Copyright (C) 2004 Free Software Foundation, Inc.

Regards,

e

-- 
Doug Currie
Londonderry, NH


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