Re: Trouble with fltk
- View Source--- In firstname.lastname@example.org, Stelios Bounanos <lham@...> wrote:
> >>>>> On Thu, 01 Mar 2007 21:19:33 -0000, johnrmace
> >>>>> <email@example.com> was rumoured to have said:
> > Dave and the crew,
> > I've been using fldigi on a Fedora Core 4 system for some time, having
> > compiled from source, but I took the decision to convert to Ubuntu
> > 6.06 and start over. The fldigi binary works fine, but in the best ham
> > tradition I want to tinker under the hood and so I tried to install
> > fltk. I nursed it through the ./configure stage after telling it where
> > to find the X11 libs, but now it won't "make". I think the linker
> > fails after compiling fluid:
> > .
> > .
> > .
> > Compiling factory.cxx...
> > Compiling file.cxx...
> > Compiling fluid.cxx...
> > Compiling function_panel.cxx...
> > Compiling template_panel.cxx...
> > Compiling undo.cxx...
> > Compiling widget_panel.cxx...
> > Linking fluid...
> > /usr/bin/ld: cannot find -lXext
> > collect2: ld returned 1 exit status
> > make: *** [fluid] Error 1
> > john@linux:~/fltk-1.1.7$
> If the linker fails for -lfoo, then it cannot find libfoo.so or libfoo.a
> in its library search path. You can find out which package contains
> libfoo.so using, for instance,
> "apt-file search libfoo.so"
> (you would need to install apt-file and do "apt-file update" first).
> At the moment you are missing libXext.so, which is in libxext-dev.
> On Debian/Ubuntu there used to be a single package that contained all
> X11 development headers and libraries, but with the introduction of
> modular X.org, it was broken into various smaller packages. So of those
> you want libxext-dev, but see below.
> Is there some advantage to recompiling fltk manually? I'm too lazy to
> check the Ubuntu package, but on Debian unstable libfltk1.1
> build-depends on the jpeg, zlib and png libraries, and is compiled with
> "--enable-shared --enable-threads --enable-xft --enable-xinerama
> This should have the same effect as the
> "./configure $* --enable-threads --enable-xft --enable-localjpeg
> --enable-localpng --enable-localzlib"
> proposed elsewhere in this thread because the enable-local* flags
> default to auto.
> So, John, try installing libfltk1.1-dev instead. This will take care of
> the fltk side of things. You may also want hamlib-dev and so on.
> If you do need to recompile fltk from source, try
> "apt-get build-dep libfltk1.1"
> first. This will bring in libxext-dev and everything else that fltk
> needs to compile.
not wanting to be beaten, I persevered with building fltk by doing
"apt-get build-dep libfltk1.1" and that did the trick - fltk compiled
and installed, and I was then able to build fldigi successfully.
I'm on the air again!
1.30 works great, save the transmit audio (red) fader on the left -
doesn't have any effect, but I can adjust my tx level from the pcm
control on the config window. I've always been baffled by audio in Linux.
My build behaves identically to the binary download.
Thanks again, Stelios, for your help, you got me on the air.