Skip to content
This repository has been archived by the owner on Nov 12, 2021. It is now read-only.

MacOS编译时make报错 #3

Open
haowanxing opened this issue Nov 6, 2021 · 0 comments
Open

MacOS编译时make报错 #3

haowanxing opened this issue Nov 6, 2021 · 0 comments

Comments

@haowanxing
Copy link

报错内容:
`make
[ 12%] Building CXX object CMakeFiles/gb28181-client.dir/src/device.cpp.o
/Users/anthony/git/gb28181_client/src/device.cpp:547:19: warning: 'load' is deprecated [-Wdeprecated-declarations]
if (!document.load(body)) {
^
/Users/anthony/git/gb28181_client/include/pugixml.hpp:1041:3: note: 'load' has been explicitly marked deprecated here
PUGIXML_DEPRECATED xml_parse_result load(const char_t* contents, unsigned int options = parse_default);
^
/Users/anthony/git/gb28181_client/include/pugixml.hpp:44:45: note: expanded from macro 'PUGIXML_DEPRECATED'

define PUGIXML_DEPRECATED attribute((deprecated))

                                                     ^

1 warning generated.
[ 25%] Building CXX object CMakeFiles/gb28181-client.dir/src/gb28181_header_maker.cpp.o
[ 37%] Building CXX object CMakeFiles/gb28181-client.dir/src/h264_parser.cpp.o
[ 50%] Building CXX object CMakeFiles/gb28181-client.dir/src/load_h264.cpp.o
[ 62%] Building CXX object CMakeFiles/gb28181-client.dir/src/main.cpp.o
[ 75%] Building CXX object CMakeFiles/gb28181-client.dir/src/net_client.cpp.o
[ 87%] Building CXX object CMakeFiles/gb28181-client.dir/src/pugixml.cpp.o
[100%] Linking CXX executable gb28181-client
Undefined symbols for architecture x86_64:
"_ares_destroy", referenced from:
_eXosip_dnsutils_srv_lookup in libeXosip2.a(eXutils.o)
_eXosip_dnsutils_naptr_lookup in libeXosip2.a(eXutils.o)
_eXosip_dnsutils_dns_process in libeXosip2.a(eXutils.o)
__eXosip_dnsutils_release in libeXosip2.a(eXutils.o)
"_ares_expand_name", referenced from:
_skip_question in libeXosip2.a(eXutils.o)
_save_SRV in libeXosip2.a(eXutils.o)
_save_A in libeXosip2.a(eXutils.o)
_save_NAPTR in libeXosip2.a(eXutils.o)
"_ares_expand_string", referenced from:
_save_NAPTR in libeXosip2.a(eXutils.o)
"_ares_fds", referenced from:
_eXosip_dnsutils_srv_lookup in libeXosip2.a(eXutils.o)
_eXosip_dnsutils_naptr_lookup in libeXosip2.a(eXutils.o)
_eXosip_dnsutils_dns_process in libeXosip2.a(eXutils.o)
"_ares_free_string", referenced from:
_skip_question in libeXosip2.a(eXutils.o)
_save_SRV in libeXosip2.a(eXutils.o)
_save_A in libeXosip2.a(eXutils.o)
_save_NAPTR in libeXosip2.a(eXutils.o)
"_ares_init_options", referenced from:
_eXosip_dnsutils_srv_lookup in libeXosip2.a(eXutils.o)
_eXosip_dnsutils_naptr_lookup in libeXosip2.a(eXutils.o)
"_ares_library_init", referenced from:
_eXosip_dnsutils_naptr in libeXosip2.a(eXutils.o)
"_ares_process", referenced from:
_eXosip_dnsutils_srv_lookup in libeXosip2.a(eXutils.o)
_eXosip_dnsutils_naptr_lookup in libeXosip2.a(eXutils.o)
_eXosip_dnsutils_dns_process in libeXosip2.a(eXutils.o)
"_ares_query", referenced from:
_eXosip_dnsutils_srv_lookup in libeXosip2.a(eXutils.o)
_eXosip_dnsutils_naptr_lookup in libeXosip2.a(eXutils.o)
"_ares_strerror", referenced from:
__store_srv in libeXosip2.a(eXutils.o)
__store_A in libeXosip2.a(eXutils.o)
__naptr_callback in libeXosip2.a(eXutils.o)
__store_naptr in libeXosip2.a(eXutils.o)
"_ares_timeout", referenced from:
_eXosip_dnsutils_srv_lookup in libeXosip2.a(eXutils.o)
_eXosip_dnsutils_naptr_lookup in libeXosip2.a(eXutils.o)
_eXosip_dnsutils_dns_process in libeXosip2.a(eXutils.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [gb28181-client] Error 1
make[1]: *** [CMakeFiles/gb28181-client.dir/all] Error 2
make: *** [all] Error 2
`

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant