Hi,
I built and installed wxhaskell-0.9 with ghc-6.2.2
on both i386 and x86_64. :)
However when I try to build any of the samples/ programs
I see:
% cd wxhaskell-0.9/samples/wx
% ghc -package wx HelloWorld.hs
/usr/lib64/ghc-6.2.2/libwxc-gtk2.4.2-0.9.so: undefined reference to
`wxGLCanvas::SwapBuffers()'
/usr/lib64/ghc-6.2.2/libwxc-gtk2.4.2-0.9.so: undefined reference to
`wxGLCanvas::SetColour(char const*)'
/usr/lib64/ghc-6.2.2/libwxc-gtk2.4.2-0.9.so: undefined reference to
`wxGLCanvas::wxGLCanvas(wxWindow*, wxGLCanvas const*, int, wxPoint const&,
wxSize const&, long, wxString const&, int*, wxPalette const&)'
/usr/lib64/ghc-6.2.2/libwxc-gtk2.4.2-0.9.so: undefined reference to
`wxGLCanvas::SetCurrent()'
/usr/lib64/ghc-6.2.2/libwxc-gtk2.4.2-0.9.so: undefined reference to
`wxGLCanvas::wxGLCanvas(wxWindow*, int, wxPoint const&, wxSize const&, long,
wxString const&, int*, wxPalette const&)'
collect2: ld returned 1 exit status
With "ghc -package wx -o helloworld HelloWorld.hs `wxgtk2-2.4-config --gl-libs`"
it links, but then running it:
% ./helloworld ./helloworld: error while loading shared libraries:
libwxc-gtk2.4.2-0.9.so: cannot open shared object file: No such file or directory
Filtering out of my spec file, this is how I build wxHaskell:
./configure --libdir=/usr/lib/ghc-6.2.2
make all
make install
Also for your information on x86_64 wxHaskell needs to
be built with -fPIC.
I know these things are easy to fix, but I thought
I'd report them here first. :)
Jens
|