Undefined reference error while building on Centos 6.5
See original GitHub issueI’m trying to build linux natives on centos 6.5, after using CMake to generate Makefile, I run make -j4
. When linking libraries error occurs:
Linking CXX executable Release/jcef_helper
../../third_party/cef/cef_binary_3.3396.1775.g5340bb0_linux64/Release/libcef.so: undefined reference to `g_settings_get_boolean'
../../third_party/cef/cef_binary_3.3396.1775.g5340bb0_linux64/Release/libcef.so: undefined reference to `g_settings_new'
../../third_party/cef/cef_binary_3.3396.1775.g5340bb0_linux64/Release/libcef.so: undefined reference to `__fdelt_chk@GLIBC_2.15'
../../third_party/cef/cef_binary_3.3396.1775.g5340bb0_linux64/Release/libcef.so: undefined reference to `memcpy@GLIBC_2.14'
../../third_party/cef/cef_binary_3.3396.1775.g5340bb0_linux64/Release/libcef.so: undefined reference to `sendmmsg@GLIBC_2.14'
../../third_party/cef/cef_binary_3.3396.1775.g5340bb0_linux64/Release/libcef.so: undefined reference to `g_settings_schema_source_get_default'
../../third_party/cef/cef_binary_3.3396.1775.g5340bb0_linux64/Release/libcef.so: undefined reference to `g_settings_get_int'
../../third_party/cef/cef_binary_3.3396.1775.g5340bb0_linux64/Release/libcef.so: undefined reference to `g_settings_schema_source_lookup'
../../third_party/cef/cef_binary_3.3396.1775.g5340bb0_linux64/Release/libcef.so: undefined reference to `g_settings_get_string'
../../third_party/cef/cef_binary_3.3396.1775.g5340bb0_linux64/Release/libcef.so: undefined reference to `g_settings_get_strv'
../../third_party/cef/cef_binary_3.3396.1775.g5340bb0_linux64/Release/libcef.so: undefined reference to `g_settings_get_child'
collect2: error: ld returned 1 exit status
make[2]: *** [native/Release/jcef_helper] Error 1
make[1]: *** [native/CMakeFiles/jcef_helper.dir/all] Error 2
make: *** [all] Error 2
From some google result, these missing g_xxx
comes from gtk library, however I already installed gtk+ 2.8, could you help me solve this problem? thanks in advanced.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Undefined reference error while compiling - Stack Overflow
The message undefined reference to 'function_name' implies that of all the object files you're giving to the linker, none of them has a ......
Read more >Undefined reference when compiling program, what to do
If you get an error about "undefined reference" when compiling a program of your own from source code, then you are probably missing...
Read more >24.3 build on Centos 6.5: undefined ref to `g_settings_get_va
I'm trying to build emacs on my Centos 6.5 PC (Linux destgd0h411156 2.6.32-358.23.2.el6.x86_64 #1 SMP Wed Oct 16 18:37:12 UTC 2013 x86_64 ...
Read more >NodeJS 12.13.0 CentOS fail compile · Issue #30077 - GitHub
Version: 12.13.0 Platform: CentOS 6 inside Docker Subsystem: . ... Even in 13.6.0 does not compile. Error. undefined reference to ...
Read more >C++ Errors: Undefined Reference, Unresolved External ...
An “Undefined Reference” error occurs when we have a reference to object name (class, function, variable, etc.) in our program and the linker ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Finally find the solution, this error occurs due to missing gtk-2.0 and GConf2 libraries.
Try to ask here: https://bitbucket.org/chromiumembedded/java-cef/issues