From: Daan L. <daa...@xs...> - 2003-11-13 12:10:21
|
Hi Johannes, I have only tested OpenGL on windows, and there it works fine. When I build on freeBSD, I get exactly the same kind of errors.... I don't have much time now to look into this problem, but when I look into the Makefile of wxWindows (wxGTK-2.4.2/build/Makefile) I see that there are separate rules for libwx_gtk_gl.xxx that include "glcanvas.o". So, it seems that you probably need to make wxWindows with a special argument to get it to use the gtk_gl version. Maybe you could fix it manually by adding the rule: OBJECTS += glcanvas.o This is of course a terrible hack, but maybe you can find on the wxWindows site more information about openGL on unixes. Sorry for not being able to fix this for you anytime soon, but hopefully you can find a solution for yourself (and us), All the best, Daan. On Wed, 12 Nov 2003 20:51:31 +0100, Johannes Goetz <jg...@jg...> wrote: > Hi there! > > I know that some people on this list have encountered the same problem like I did (do). It seems to be impossible to link ANY sample distributed with wxhaskell. Everything compiles fine but the linker complains about some missing symbols that are obviously needed when writing opengl-programs... > After some reading about wxwindows-installation and glcanvas-stuff I managed to install the latest wxwindows (Linux GTK version) on my debian system. I compile wxwindows like this: > ./configure --with-gtk --with-opengl --enable-glcanvas > make > make install > All libraries (even *gtk_gl*) were built correctly... I AM ABLE TO COMPILE the wxwindows samples. Everything works as expected. glcanvas-opengl-examples are doing just fine. No problem here. > I then recompiled / installed wxhaskell using the following commands: > ./configure > make > make install > (ups, dont know if I deleted configure cache... could it be the problem???) > There were no errors. Everything in the right place. > Please help me with this. I REALLY would LIKE to use wxhaskell for my project. Thank you very much in advance for your answers. > > Johannes > > > PS: Linker output: > >> $ ghc Paint.hs -package wx -package wxcore -package wx >> /usr/local/lib/libwxc-0.4.so: undefined reference to `wxGLCanvas::SwapBuffers()' >> /usr/local/lib/libwxc-0.4.so: undefined reference to `wxGLCanvas::SetColour(char const*)' >> /usr/local/lib/libwxc-0.4.so: undefined reference to `wxGLCanvas::wxGLCanvas[in-charge](wxWindow*, wxGLCanvas const*, int, wxPoint const&, wxSize const&, long, wxString const&, int*, wxPalette const&)' >> /usr/local/lib/libwxc-0.4.so: undefined reference to `wxGLCanvas::SetCurrent()' >> /usr/local/lib/libwxc-0.4.so: undefined reference to `wxGLCanvas::wxGLCanvas[in-charge](wxWindow*, int, wxPoint const&, wxSize const&, long, wxString const&, int*, wxPalette const&)' >> collect2: ld returned 1 exit status > > > > PS: Do you really need to --enable-glcanvas? > > > > ------------------------------------------------------- > 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 > |