From: Brandon M. M. <br...@it...> - 2003-11-08 13:00:43
|
I've rebuilt wxWindows passing --with-glcanvas to configure, and rebuilt wxHaskell. The opengl samples in the wxWindows distribution all work, so I'm pretty sure I've compiled the glcanvas stuff. I've recompiled all of wxHaskell, and I'm still seeing these link errors. Take a look at the patch yourself. It only changes two lines, and in one I added an option to the build rule because I couldn't find the right variable to put it in. Brandon There are the errors I get: $ ghc --make HelloWorld -package wx Chasing modules from: HelloWorld Skipping Main ( HelloWorld.hs, HelloWorld.o ) Linking ... /usr/lib/libwxc-0.4.so: undefined reference to `wxGLCanvas::SetCurrent(void)' /usr/lib/libwxc-0.4.so: undefined reference to `wxGLCanvas::wxGLCanvas(wxWindow *, wxGLCanvas const *, int, wxPoint const &, wxSize const &, long, wxString const &, int *, wxPalette const &)' /usr/lib/libwxc-0.4.so: undefined reference to `wxGLCanvas::wxGLCanvas(wxWindow *, int, wxPoint const &, wxSize const &, long, wxString const &, int*, wxPalette const &)' /usr/lib/libwxc-0.4.so: undefined reference to `wxGLCanvas::SetColour(char const *)' /usr/lib/libwxc-0.4.so: undefined reference to `wxGLCanvas::SwapBuffers(void)' collect2: ld returned 1 exit status On Sat, 8 Nov 2003, Daan Leijen wrote: > Hi Brandon, > > > I just built wxHaskell-0.4. I'm running GHC 6.3 out of CVS, and I had to > > add -package text while compiling wxdirect, and increase the stack size > > to compile WxcClasses (and probably some of the other generated files). > > Thanks for the diff file. I'll patch it in the cvs (although these > changes are not necessary for GHC 6.0.1) > > > Trying to compile the samples gives linker errors about missing methods > > on wxGLCanvas. I'm pretty sure I built wxWindows with gl support, but I'm > > rebuilding it now to be sure. > > You need to use "--with-glcanvas" in the configure of wxWindows. > When you rebuild, be sure that you have deleted the cache of the configure > script or otherwise your options are ignored. (doing "rm *" in the build > directory works for me :-) > > Thanks for the patches, > -- Daan. > > > > The attached diff has the lines I changed in the makefile to get this to > > build. > > > > Brandon > > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: ApacheCon 2003, > 16-19 November in Las Vegas. Learn firsthand the latest > developments in Apache, PHP, Perl, XML, Java, MySQL, > WebDAV, and more! http://www.apachecon.com/ > _______________________________________________ > wxhaskell-users mailing list > wxh...@li... > https://lists.sourceforge.net/lists/listinfo/wxhaskell-users > > |