digger vermont
8 years ago
Hello everyone!
David suggested this would be a better place to look for help than the digitalvoice group.
I'm attempting to build linux version free-dv and am stalled right near the end with this error.
[ 90%] Building CXX object src/CMakeFiles/freedv.dir/hamlib.cpp.o
[ 93%] Building CXX object src/CMakeFiles/freedv.dir/topFrame.cpp.o
[ 96%] Building C object src/CMakeFiles/freedv.dir/sox_biquad.c.o
[100%] Linking CXX executable freedv
/usr/bin/ld: CMakeFiles/freedv.dir/fdmdv2_main.cpp.o: undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
/usr/lib64/libdl.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
src/CMakeFiles/freedv.dir/build.make:469: recipe for target 'src/freedv' failed
make[2]: *** [src/freedv] Error 1
CMakeFiles/Makefile2:160: recipe for target 'src/CMakeFiles/freedv.dir/all' failed
make[1]: *** [src/CMakeFiles/freedv.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
src/CMakeFiles/freedv.dir/link.txt has this:
/usr/lib64/ccache/c++ -Wall -pthread -O2 -DNDEBUG CMakeFiles/freedv.dir/dlg_audiooptions.cpp.o CMakeFiles/freedv.dir/dlg_filter.cpp.o CMakeFiles/freedv.dir/dlg_options.cpp.o CMakeFiles/freedv.dir/dlg_ptt.cpp.o CMakeFiles/freedv.dir/dlg_plugin.cpp.o CMakeFiles/freedv.dir/fdmdv2_main.cpp.o CMakeFiles/freedv.dir/fdmdv2_pa_wrapper.cpp.o CMakeFiles/freedv.dir/fdmdv2_plot.cpp.o CMakeFiles/freedv.dir/fdmdv2_plot_scalar.cpp.o CMakeFiles/freedv.dir/fdmdv2_plot_scatter.cpp.o CMakeFiles/freedv.dir/fdmdv2_plot_spectrum.cpp.o CMakeFiles/freedv.dir/fdmdv2_plot_waterfall.cpp.o CMakeFiles/freedv.dir/hamlib.cpp.o CMakeFiles/freedv.dir/topFrame.cpp.o CMakeFiles/freedv.dir/sox_biquad.c.o -o freedv -rdynamic ../codec2-prefix/src/codec2-build/src/libcodec2.a -lportaudio -lasound -lm -lpthread -lasound -lhamlib -lsamplerate -lsox -lsndfile -pthread -lwx_gtk3u_core-3.0 -lwx_baseu-3.0 -lwx_gtk3u_aui-3.0 -lwx_gtk3u_html-3.0 -lwx_baseu_net-3.0 -lwx_gtk3u_adv-3.0 ../external/dist/lib/libspeexdsp.a -lm -lpthread -lhamlib -lsamplerate -lsox -lsndfile -lwx_gtk3u_core-3.0 -lwx_baseu-3.0 -lwx_gtk3u_aui-3.0 -lwx_gtk3u_html-3.0 -lwx_baseu_net-3.0 -lwx_gtk3u_adv-3.0 ../external/dist/lib/libspeexdsp.a
My distro is Fedora 25.
I have the devel files installed from distro rpms, the build_linux directory is clean and I'm using the commands:
cmake ../
make
I'm sure its something simple but have not been able to figure it out.
David Rowe suggested a missing lib in the link command.
A search of the internet comes up with the possibility of the order of the linking in the command
Brady OBrien thinks it may be the GCC 6 compiler.
GCC 6.3.1-1.fc25 is currently installed installed by Fedora 25.
Any other info I can give you? Any ideas?
Thanks for your help,
digger - AB3XU
David suggested this would be a better place to look for help than the digitalvoice group.
I'm attempting to build linux version free-dv and am stalled right near the end with this error.
[ 90%] Building CXX object src/CMakeFiles/freedv.dir/hamlib.cpp.o
[ 93%] Building CXX object src/CMakeFiles/freedv.dir/topFrame.cpp.o
[ 96%] Building C object src/CMakeFiles/freedv.dir/sox_biquad.c.o
[100%] Linking CXX executable freedv
/usr/bin/ld: CMakeFiles/freedv.dir/fdmdv2_main.cpp.o: undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
/usr/lib64/libdl.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
src/CMakeFiles/freedv.dir/build.make:469: recipe for target 'src/freedv' failed
make[2]: *** [src/freedv] Error 1
CMakeFiles/Makefile2:160: recipe for target 'src/CMakeFiles/freedv.dir/all' failed
make[1]: *** [src/CMakeFiles/freedv.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
src/CMakeFiles/freedv.dir/link.txt has this:
/usr/lib64/ccache/c++ -Wall -pthread -O2 -DNDEBUG CMakeFiles/freedv.dir/dlg_audiooptions.cpp.o CMakeFiles/freedv.dir/dlg_filter.cpp.o CMakeFiles/freedv.dir/dlg_options.cpp.o CMakeFiles/freedv.dir/dlg_ptt.cpp.o CMakeFiles/freedv.dir/dlg_plugin.cpp.o CMakeFiles/freedv.dir/fdmdv2_main.cpp.o CMakeFiles/freedv.dir/fdmdv2_pa_wrapper.cpp.o CMakeFiles/freedv.dir/fdmdv2_plot.cpp.o CMakeFiles/freedv.dir/fdmdv2_plot_scalar.cpp.o CMakeFiles/freedv.dir/fdmdv2_plot_scatter.cpp.o CMakeFiles/freedv.dir/fdmdv2_plot_spectrum.cpp.o CMakeFiles/freedv.dir/fdmdv2_plot_waterfall.cpp.o CMakeFiles/freedv.dir/hamlib.cpp.o CMakeFiles/freedv.dir/topFrame.cpp.o CMakeFiles/freedv.dir/sox_biquad.c.o -o freedv -rdynamic ../codec2-prefix/src/codec2-build/src/libcodec2.a -lportaudio -lasound -lm -lpthread -lasound -lhamlib -lsamplerate -lsox -lsndfile -pthread -lwx_gtk3u_core-3.0 -lwx_baseu-3.0 -lwx_gtk3u_aui-3.0 -lwx_gtk3u_html-3.0 -lwx_baseu_net-3.0 -lwx_gtk3u_adv-3.0 ../external/dist/lib/libspeexdsp.a -lm -lpthread -lhamlib -lsamplerate -lsox -lsndfile -lwx_gtk3u_core-3.0 -lwx_baseu-3.0 -lwx_gtk3u_aui-3.0 -lwx_gtk3u_html-3.0 -lwx_baseu_net-3.0 -lwx_gtk3u_adv-3.0 ../external/dist/lib/libspeexdsp.a
My distro is Fedora 25.
I have the devel files installed from distro rpms, the build_linux directory is clean and I'm using the commands:
cmake ../
make
I'm sure its something simple but have not been able to figure it out.
David Rowe suggested a missing lib in the link command.
A search of the internet comes up with the possibility of the order of the linking in the command
Brady OBrien thinks it may be the GCC 6 compiler.
GCC 6.3.1-1.fc25 is currently installed installed by Fedora 25.
Any other info I can give you? Any ideas?
Thanks for your help,
digger - AB3XU