Volker Wysk wrote:
>Hello.
>
>I've compiled and installed WxHaskell-0.8 from source, but when I try to
>compile one of the examples, I get:
>
>
>>ghc -package wx -o helloworld HelloWorld.hs
>>
>>
>...
>/usr/lib/libwxc-gtk2.4.2-0.8.so: undefined reference to `wxGLCanvas::SwapBuffers()'
>
>
You have configured wxHaskell with "--with-opengl" while wxWidgets is
not compiled with it
, and now that I think about it, maybe it is the other way around, and
you have to
do "configure --with-opengl" when configuring wxHaskell.
When you run configure again with this flag, and build again, it will
surely work.
(actually, you only have to relink so you could take a shortcut by only
removing
the ".so" and ".a" files in the "out" directory)
I hope this helps,
-- Daan.
ps: <http://wxhaskell.sourceforge.net/building.html> gives more information.
>/usr/lib/libwxc-gtk2.4.2-0.8.so: undefined reference to `wxGLCanvas::SetColour(char const*)'
>/usr/lib/libwxc-gtk2.4.2-0.8.so: undefined reference to `wxGLCanvas::wxGLCanvas[in-charge](wxWindow*, wxGLCanvas const*, int, wxPoint const&, wxSize const&, long, wxString const&, int*, wxPalette const&)'
>/usr/lib/libwxc-gtk2.4.2-0.8.so: undefined reference to `wxGLCanvas::SetCurrent()'
>/usr/lib/libwxc-gtk2.4.2-0.8.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
>
>When calling "readelf /usr/lib/libwxc-gtk2.4.2-0.8.so", the undefined
>symbols seem to be present in the library.
>
>I've also tried it with the prepackaged RPM, and am able to compile the
>program, but when I start it, I get:
>
>./helloworld: relocation error: /usr/lib/libwxc-gtk2.4.2-0.8.so: undefined symbol: _ZN10wxGLCanvasC1EP8wxWindowiRK7wxPointRK6wxSizelRK8wxStringPiRK9wxPalette
>
>I'm using Debian, and the standard Debian packages of WxWidgets. I had
>installed the RPM with alien.
>
>Any idea what's wrong?
>
>Thanks,
>Volker
>
>--
>Volker Wysk <post@...>
>http://www.volker-wysk.de
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
>Use IT products in your business? Tell us what you think of them. Give us
>Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
>http://productguide.itmanagersjournal.com/guidepromo.tmpl
>_______________________________________________
>wxhaskell-users mailing list
>wxhaskell-users@...
>https://lists.sourceforge.net/lists/listinfo/wxhaskell-users
>
>
>
>
|