On 8/7/06, Doug Currie <[EMAIL PROTECTED]> wrote: > 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. [...] > > >[...]
I'm still trying to get the apps to compile. so I'll look into the resource problems tomorrow. > >> 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. Humm, I don't get the libs in static, see below. I build wxWidgets 2.6.3.3 (cvs head of 2.6 branch) using this ../configure \ --prefix=/mnt/d/wxCVS/wxWidgets/wxWidgets_26/wxWidgets/config_win \ --enable-optimise=no \ --enable-debug=yes \ --enable-debug_gdb=yes \ --enable-mem_tracing=no \ --enable-profile=no \ --with-dmalloc=no \ --enable-prologio=no \ --enable-shared=no ### ALSO THIS TOO $ wx-config --list Default config is msw-ansi-debug-2.6 #NOTE: I've also done static too... $ wx-config --cxxflags -I/mnt/d/wxCVS/wxWidgets/wxWidgets_26/wxWidgets/config_win/lib/wx/include/msw-ansi-debug-2.6 -I/mnt/d/wxCVS/wxWidgets/wxWidgets_26/wxWidgets/include -I/mnt/d/wxCVS/wxWidgets/wxWidgets_26/wxWidgets/contrib/include -D__WXDEBUG__ -D__WIN95__ -D__WXMSW__ -DWXUSINGDLL=1 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES $ ./wx-config --libs --static=yes -L/mnt/d/wxCVS/wxWidgets/wxWidgets_26/wxWidgets/config_win_static/lib /mnt/d/wxCVS/wxWidgets/wxWidgets_26/wxWidgets/config_win_static/lib/libwx_mswd_xrc-2.6.a /mnt/d/wxCVS/wxWidgets/wxWidgets_26/wxWidgets/config_win_static/lib/libwx_mswd_qa-2.6.a /mnt/d/wxCVS/wxWidgets/wxWidgets_26/wxWidgets/config_win_static/lib/libwx_mswd_html-2.6.a /mnt/d/wxCVS/wxWidgets/wxWidgets_26/wxWidgets/config_win_static/lib/libwx_mswd_adv-2.6.a /mnt/d/wxCVS/wxWidgets/wxWidgets_26/wxWidgets/config_win_static/lib/libwx_mswd_core-2.6.a /mnt/d/wxCVS/wxWidgets/wxWidgets_26/wxWidgets/config_win_static/lib/libwx_based_xml-2.6.a /mnt/d/wxCVS/wxWidgets/wxWidgets_26/wxWidgets/config_win_static/lib/libwx_based_net-2.6.a /mnt/d/wxCVS/wxWidgets/wxWidgets_26/wxWidgets/config_win_static/lib/libwx_based-2.6.a -lpng -ljpeg -ltiff -lexpat -lz -lrpcrt4 -loleaut32 -lole32 -luuid -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32 -lkernel32 -luser32 $ wx-config --libs --static=no -L/mnt/d/wxCVS/wxWidgets/wxWidgets_26/wxWidgets/config_win/lib -lwx_mswd_xrc-2.6 -lwx_mswd_qa-2.6 -lwx_mswd_html-2.6 -lwx_mswd_adv-2.6 -lwx_mswd_core-2.6 -lwx_based_xml-2.6 -lwx_based_net-2.6 -lwx_based-2.6 So I had to paste the libs you had above into the Makefile in the modules dir. "-lz -lrpcrt4 -loleaut32 -lole32 -luuid -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" ====== This does seem like a bug in the wx-config script for gcc in windows, I'lll submit a bug report to wxWidgets tomorrow. > > Thanks for your work, I'll see what I get for #3, 4, 5, 6, 7, 8 in > > cygwin. Still trying to get it going > > 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. $ gcc --version gcc (GCC) 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125) Fairly close, but __MINGW32__ is not defined, __GNUWIN32__ is though. =============== Ok, well this will take a little doing, but gcc in MSW seems fairly nice and I'd like to get it working. Regards, 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