Compiling freedv in Ubuntu

74 views
Skip to first unread message

Jay Thienel

unread,
Mar 5, 2014, 11:43:38 AM3/5/14
to digita...@googlegroups.com
Hello,
Trying to get freedv to compile in Ubuntu 12.04 and am now stuck.
Was doing fine until it tried to look for hamlib files. Was able to download the hamlib files source files and put them where the Make file was expecting to see them but now it exits on this error.
/usr/bin/ld: cannot find -lhamlib
Looks like some sort of library is not part of ld but I don't know how I should proceed from here.
Hamlib was installed from the Ubuntu software center successfully but same error persists.
Any pointers would be appreciated.
Thanks,
Jay no2g

Dave Edwards

unread,
Mar 5, 2014, 12:23:26 PM3/5/14
to digita...@googlegroups.com
I had the same issue with a Gateway Profile all-in-one...running Ubuntu.
Now monitoring the 20 meter dv freq.....
(Switched to windows for that app)

...Dave
--
You received this message because you are subscribed to the Google Groups "digitalvoice" group.
To unsubscribe from this group and stop receiving emails from it, send an email to digitalvoice...@googlegroups.com.
To post to this group, send email to digita...@googlegroups.com.
Visit this group at http://groups.google.com/group/digitalvoice.
For more options, visit https://groups.google.com/groups/opt_out.

Jeff Francis(tm)

unread,
Mar 5, 2014, 1:13:10 PM3/5/14
to digita...@googlegroups.com
  After building and installing hamlib from source (make sure to do a "sudo make install" at the end), try running "sudo ldconfig" before building freedv.  Per the man page for ldconfig:

ldconfig  creates, updates, and removes the necessary links and cache (for use by the run-time linker, ld.so) to the most recent shared libraries found in the directories specified on the command line, in the file /etc/ld.so.conf, and in the trusted directories (/usr/lib and /lib).  ldconfig checks the header and file names of the libraries it encounters when determining which versions should have their links updated.  ldconfig ignores symbolic links when scanning for libraries.

  I haven't tried building freedv from scratch yet myself, but my suspicion is that this will fix your missing lib problem.



--
You received this message because you are subscribed to the Google Groups "digitalvoice" group.
To unsubscribe from this group and stop receiving emails from it, send an email to digitalvoice...@googlegroups.com.
To post to this group, send email to digita...@googlegroups.com.
Visit this group at http://groups.google.com/group/digitalvoice.
For more options, visit https://groups.google.com/groups/opt_out.



--
-=jeff=-

Bruce Perens

unread,
Mar 5, 2014, 3:19:00 PM3/5/14
to digita...@googlegroups.com
You can't just put the hamlib source files somewhere. You must build and install hamlib, or there will not be any /usr/lib/libhamlib.so for -lhamlib to find. I would suggest you go back to the Ubuntu hamlib package for now. Verify that /usr/lib/hamlib.so exists after you install that. If not, see if there's a /usr/lib/hamlib [+ some number] + .so [+ dots and numbers]. You need a symbolic link from this to libhamlib.so before -lhamlib will pick it up. There will be a lot of hamlib-<radio-name>.so libraries there, these are for run-time loading and don't concern you at this point.

Some systems have /usr/lib32 or /usr/lib64 in addition to /usr/lib, check in there. Also make sure that you are not trying to link a 64-bit library to a 32-bit executable or vice versa.

The Ubuntu package should run ldconfig in its post-install script, you should not have to.

Jay Thienel

unread,
Mar 5, 2014, 4:23:14 PM3/5/14
to digita...@googlegroups.com
Have been successful with the compile thanks to the posts. Had to compile hamlib along with installing libltdl-dev. It then compiled with out errors.
Many thanks for the assistance.
73,
Jay no2g
Reply all
Reply to author
Forward
0 new messages