From: Johannes G. <jg...@jg...> - 2003-11-12 19:51:37
|
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? |