On 9/5/07, Ryan Pusztai <[EMAIL PROTECTED]> wrote: > > > If I remember correctly the problem is that the build files DO specify > > the GL lib, but that you haven't built it? > > Here is the command line: > pcrt4 -ladvapi32 -lwsock32 -lodbc32 -llua5.1 > if not exist ..\..\..\bin\gcc_lib mkdir ..\..\..\bin\gcc_lib > g++ -o ..\..\..\bin\gcc_lib\wxlua.exe gccmsw\app_wxlua_wxlua.o > gccmsw\app_wxlua_lconsole.o gccmsw\app_wxlua_wxlua_rc.o > -mthreads -LD:\devel\Libraries\wxWidgets2.8\lib\gcc_lib > -L..\..\..\lib\gcc_lib -L..\..\..\modules\lua\lib -Wl,--subsys > tem,windows -mwindows -lwxlua_msw28_wxluasocket -lwxlua_msw28_wxluadebug > -lwxlua_msw28_wxbindadv -lwxlua_msw28_wxbinda > ui -lwxlua_msw28_wxbindbase -lwxlua_msw28_wxbindcore -lwxlua_msw28_wxbindgl > -lwxlua_msw28_wxbindhtml -lwxlua_msw28_wxbin > dmedia -lwxlua_msw28_wxbindnet -lwxlua_msw28_wxbindstc > -lwxlua_msw28_wxbindxml -lwxlua_msw28_wxbindxrc -lwxlua_msw28_wxl > ua -llua5.1 -lwxmsw28_stc -lwxmsw28 -lwxtiff -lwxjpeg -lwxpng > -lwxzlib -lwxregex -lwxexpat -lkernel32 -luser32 > -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 > -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodb > c32
You're using the wxWidgets monolithic build it seems using mingw? Do you use "configure" with mingw or just makefile.gcc? The monolithic build is broken because nobody's checked it. In fact I don't even know what gets put into the monolithic build? If I remember correctly the GL lib is not part of it, just like the jpeg lib isn't. Is there a list somewhere about what is part of the monolithic build so that we can add the extra libs for wxLua to link to? ..\..\..\lib\gcc_lib/libwxlua_msw28_wxbindgl.a(wxbindgl_lib_wxgl_bind.o):wxgl_bind.cpp:(.data+0xc): > undefined reference > to `wxGLCanvas::ms_classInfo' Ok, this says clearly that you need to link to the wxWidgets GL lib since it's not part of -lwxmsw28. > How do I tell if this is the case? I have built the wxGL library, so I > don't know. I have also defined #define wxUSE_GLCANVAS 1 in " > setup.h". I have not touched any files in the wxLua source archive. I have > set the environment variable WXWIN to my wxWidgets install root directory. > Am I missing anything else? You should have a wxmsw28_gl.lib file (just like -lwxmsw28_stc) in the wxWidgets lib dir if you've built it. > I am trying to determine how I am going to maintain this issue. If I edit > the files in wxLua, that means I can't external to the sources, once you > move to using SVN. Plus I don't want to maintain this for the lifetime of my > project. I'll try to find some time to look into it again, but I could not figure out how to get bakefile to work right for this before. > Can you tell me what the bare minimum things are to use wxLua in my > application? Can you tell me what the bare minimum things required for using > wxLua as a Lua module? I think it starts to get into this in the > installation document, but I am still trying to build the entire package, > because usually makefiles are easy to build from. I should write something about this. There is a little about the modules in the wxlua.html file with some comments on what depends on what. You need modules/wxlua and modules/wxbind at least. The parts of modules/wxbind are exactly like the wxWidgets libs, take the ones you want, typically base, core, adv... > <A personal sidebar discussion> (These are only thoughts not criticisms) > I am just asking, is BakeFile the way that you prefer to build wxLua. If > not, is the person that set them up going to return? I started using > BakeFile a couple of years ago and found it extremely complicated. So much > so that I can't even attempt to fix these issues I am having, in the place > where I believe the problem comes from, the BakeFiles. I do not mean any > disrespect and only ask to see if I can help figure out a bulletproof way of > building wxLua. It is so crucial for a package such as wxLua to be easy to > build because it is going to have the ability to be embedded in a users > application. > Your thoughts and remarks? > <End personal sidebar discussion> A lot of work has gone into making the bakefiles work as well as they do. I personally have a hard time understanding the XML/python nature of them, but Francesco does and I believe he is still on vacation. I hope he has time to look at this when he gets back. wxLua uses bakefile since that's what wxWidgets uses, if it works for them it should be able to work for us since we target the same systems and compilers. Regards, John ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users