From: Bas v. D. <bas...@ho...> - 2006-11-30 13:45:33
|
Hello, When making the wx samples I got the following error: bas@bassbox ~/development/haskell/wxhaskell/samples/wx $ make ghc -package wx -o BouncingBalls BouncingBalls.hs /usr/lib/libwxc-gtk2.6.2-0.10.1.so: undefined reference to `wxGLCanvas::SwapBuffers()' /usr/lib/libwxc-gtk2.6.2-0.10.1.so: undefined reference to `wxGLCanvas::SetColour(wchar_t const*)' /usr/lib/libwxc-gtk2.6.2-0.10.1.so: undefined reference to `wxGLCanvas::wxGLCanvas(wxWindow*, wxGLCanvas const*, int, wxPoint const&, wxSize const&, long, wxString const&, int*, wxPalette const&)' /usr/lib/libwxc-gtk2.6.2-0.10.1.so: undefined reference to `wxGLCanvas::SetCurrent()' /usr/lib/libwxc-gtk2.6.2-0.10.1.so: undefined reference to `wxGLCanvas::wxGLCanvas(wxWindow*, int, wxPoint const&, wxSize const&, long, wxString const&, int*, wxPalette const&)' collect2: ld returned 1 exit status make: *** [BouncingBalls] Error 1 I configured wxHaskell --with-opengl and my wxWindows implementation (on Gentoo Linux) has OpenGL support: emerge x11-libs/wxGTK -vp These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] x11-libs/wxGTK-2.6.2-r1 USE="X doc joystick opengl sdl unicode -debug -gnome -odbc" 0 kB What is wrong here? Bas van Dijk. |
From: Eric K. <eri...@gm...> - 2006-11-30 16:07:40
|
T24gMTEvMzAvMDYsIEJhcyB2YW4gRGlqayA8YmFzdmFuZGlqa0Bob21lLm5sPiB3cm90ZToKPiBi YXNAYmFzc2JveCB+L2RldmVsb3BtZW50L2hhc2tlbGwvd3hoYXNrZWxsL3NhbXBsZXMvd3ggJCBt YWtlCj4gZ2hjIC1wYWNrYWdlIHd4IC1vIEJvdW5jaW5nQmFsbHMgQm91bmNpbmdCYWxscy5ocwo+ IC91c3IvbGliL2xpYnd4Yy1ndGsyLjYuMi0wLjEwLjEuc286IHVuZGVmaW5lZCByZWZlcmVuY2Ug dG8KPiBgd3hHTENhbnZhczo6U3dhcEJ1ZmZlcnMoKScKCk9uIHRoZSBEZWJpYW4tYmFzZWQgTGlu dXhlcywgSSBnZXQgYXJvdW5kIHRoaXMgYnkgaW5zdGFsbGluZyB0aGUKcGFja2FnZSBmcmVlZ2x1 dDMtZGV2CgpEb2VzIHRoYXQgaGVscD8gKE9uIHRoZSBvdGhlciBoYW5kLCBJIGRvbid0IGZ1bGx5 IHVuZGVyc3RhbmQgd2h5IGl0CnNob3VsZCBiZSBuZWNjZXNhcnkpCgotLSAKRXJpYyBLb3cgICAg ICAgICAgICAgICAgICAgICBodHRwOi8vd3d3LmxvcmlhLmZyL35rb3cKUEdQIEtleSBJRDogMDhB QzA0RjkgICAgICAgICBNZXJjaSBkZSBjb3JyaWdlciBtb24gZnJhbsOnYWlzLgo= |
From: Bas v. D. <bas...@ho...> - 2006-11-30 17:51:54
|
> On the Debian-based Linuxes, I get around this by installing the > package freeglut3-dev > > Does that help? (On the other hand, I don't fully understand why it > should be neccesary) I installed the latest freeglut-2.4.0 [1] and build wxHaskell again. But the examples still fail with the same error. Bas [1] http://freeglut.sourceforge.net |
From: <ami...@st...> - 2006-11-30 18:35:32
|
I "solved" this on my linux install by passing the --with-opengl flag to the configure script. > On 11/30/06, Bas van Dijk <bas...@ho...> wrote: >> bas@bassbox ~/development/haskell/wxhaskell/samples/wx $ make >> ghc -package wx -o BouncingBalls BouncingBalls.hs >> /usr/lib/libwxc-gtk2.6.2-0.10.1.so: undefined reference to >> `wxGLCanvas::SwapBuffers()' > > On the Debian-based Linuxes, I get around this by installing the > package freeglut3-dev > > Does that help? (On the other hand, I don't fully understand why it > should be neccesary) > > -- > Eric Kow http://www.loria.fr/~kow > PGP Key ID: 08AC04F9 Merci de corriger mon fran=C3=A7ais. > -----------------------------------------------------------------------= -- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > wxhaskell-users mailing list > wxh...@li... > https://lists.sourceforge.net/lists/listinfo/wxhaskell-users > |
From: Bas v. D. <bas...@ho...> - 2006-12-01 07:16:04
|
On Thursday 30 November 2006 19:35, ami...@st... wrote: > I "solved" this on my linux install by passing the --with-opengl flag to > the configure script. Yes, I tried that but it didn't help. Bas. |
From: Eric Y. K. <eri...@gm...> - 2006-12-10 01:07:18
|
On Thu, Nov 30, 2006 at 14:45:03 +0100, Bas van Dijk wrote: > When making the wx samples I got the following error: >=20 > bas@bassbox ~/development/haskell/wxhaskell/samples/wx $ make > ghc -package wx -o BouncingBalls BouncingBalls.hs > /usr/lib/libwxc-gtk2.6.2-0.10.1.so: undefined reference to=20 > `wxGLCanvas::SwapBuffers()' Does it help if you throw in something like -lwx_gtk2u_gl-2.6 whilst compiling the samples? --=20 Eric Kow http://www.loria.fr/~kow PGP Key ID: 08AC04F9 Merci de corriger mon fran=E7ais. |
From: Bas v. D. <bas...@ho...> - 2006-12-10 09:26:26
|
On Sunday 10 December 2006 02:07, Eric Y. Kow wrote: > Does it help if you throw in something like -lwx_gtk2u_gl-2.6 whilst > compiling the samples? Yes this helps. Thanks very much! Now I can finally start playing with wxHaskell. Bas. |