Closed GoogleCodeExporter closed 9 years ago
Paraphrasing the forum post:
Error:
Linking CXX executable Debug/cefclient
/usr/bin/ld: CMakeFiles/cefclient.dir/client_handler_gtk.cpp.o: undefined
reference to symbol 'g_object_set_data'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libgobject-2.0.so:
error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Resolution:
It seems that libcef.so needs to be included before the standard libraries on
the linker command line. The problem doesn't reproduce for me when I build both
libcef and cefclient on the same system so maybe it's only a problem when
libcef and cefclient are built on different Linux distros/versions.
We can potentially change the FIND_LINUX_LIBRARIES macro in macros.cmake to add
libraries to the CEF_STANDARD_LIBS variable instead of CMAKE_EXE_*_FLAGS.
They'd then be added to the target_link_libraries line in
cefclient/CMakeLists.txt after libcef_dll_wrapper.
Original comment by magreenb...@gmail.com
on 12 Nov 2014 at 5:42
Original comment by magreenb...@gmail.com
on 17 Nov 2014 at 5:04
This problem seems to only occur when using the GNU linker (ld.bfd) which is
the default on Ubuntu 14.04. Changing /usr/bin/ld to point at the Gold linker
(ld.gold) fixes the problem.
Original comment by magreenb...@gmail.com
on 25 Nov 2014 at 10:27
CMake configuration fixed in trunk revision 1933 and 2171 branch revision 1934.
Original comment by magreenb...@gmail.com
on 25 Nov 2014 at 10:36
Original issue reported on code.google.com by
theonlyo...@gmail.com
on 12 Nov 2014 at 5:22