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

我使用海思的交叉编译环境进行编译出现错误 #1

Open
Haoxw opened this issue Apr 17, 2021 · 0 comments
Open

我使用海思的交叉编译环境进行编译出现错误 #1

Haoxw opened this issue Apr 17, 2021 · 0 comments

Comments

@Haoxw
Copy link

Haoxw commented Apr 17, 2021

您好
我使用海思的交叉编译环境进行编译出现错误。
能否帮助解决一下 非常感谢!
我具体的环境是:
Ubuntu 16.04.6 LTS
Linux-virtual-machine 4.15.0-132-generic #136~16.04.1-Ubuntu SMP Tue Jan 12 18:18:45 UTC 2021 i686 i686 i686 GNU/Linux
cmake version 3.20.1

root@haoxw-virtual-machine:~/gb28181_client/gb28181_client/build# cmake ..
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/hisi-linux/x86-arm/arm-himix200-linux/bin/arm-himix200-linux-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/hisi-linux/x86-arm/arm-himix200-linux/bin/arm-himix200-linux-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /root/gb28181_client/gb28181_client/build

root@haoxw-virtual-machine:~/gb28181_client/gb28181_client/build# make
[ 12%] Building CXX object CMakeFiles/LNSoft_GBT28181-client.dir/src/device.cpp.o
/root/gb28181_client/gb28181_client/src/device.cpp: In member function ‘void Device::start()’:
/root/gb28181_client/gb28181_client/src/device.cpp:179:52: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
eXosip_guess_localip(sip_context, AF_INET, data(local_ip), local_ip.length());
~~~~^~~~~~~~~~
In file included from /root/gb28181_client/gb28181_client/include/eXosip2/eXosip.h:41:0,
from /root/gb28181_client/gb28181_client/src/device.h:7,
from /root/gb28181_client/gb28181_client/src/device.cpp:1:
/root/gb28181_client/gb28181_client/include/eXosip2/eX_setup.h:365:7: note: initializing argument 3 of ‘int eXosip_guess_localip(eXosip_t*, int, char*, int)’
int eXosip_guess_localip (struct eXosip_t excontext, int family, char address, int size);
^~~~~~~~~~~~~~~~~~~~
/root/gb28181_client/gb28181_client/src/device.cpp: In member function ‘std::tuple<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::__cxx11::basic_string<char, std::char_traits, std::allocator > > Device::get_cmd(const char
)’:
/root/gb28181_client/gb28181_client/src/device.cpp:547:28: warning: ‘pugi::xml_parse_result pugi::xml_document::load(const char_t
, unsigned int)’ is deprecated [-Wdeprecated-declarations]
if (!document.load(body)) {
^
In file included from /root/gb28181_client/gb28181_client/src/device.cpp:3:0:
/root/gb28181_client/gb28181_client/include/pugixml.hpp:1041:39: note: declared here
PUGIXML_DEPRECATED xml_parse_result load(const char_t* contents, unsigned int options = parse_default);
^~~~
CMakeFiles/LNSoft_GBT28181-client.dir/build.make:75: recipe for target 'CMakeFiles/LNSoft_GBT28181-client.dir/src/device.cpp.o' failed
make[2]: *** [CMakeFiles/LNSoft_GBT28181-client.dir/src/device.cpp.o] Error 1
CMakeFiles/Makefile2:82: recipe for target 'CMakeFiles/LNSoft_GBT28181-client.dir/all' failed
make[1]: *** [CMakeFiles/LNSoft_GBT28181-client.dir/all] Error 2
Makefile:90: recipe for target 'all' failed
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