月度归档:2023年07月

Live555的代码编译及库文件安装位置

#!/bin/bash
path_current=`pwd`
path_script=$(cd "$(dirname "$0")"; pwd)

export CPLUS_INCLUDE_PATH=${path_script}/../openssl/unix/include:$CPLUS_INCLUDE_PATH
export C_INCLUDE_PATH=${path_script}/../openssl/unix/include:$C_INCLUDE_PATH
export LD_LIBRARY_PATH=${path_script}/../openssl/unix/lib:$LD_LIBRARY_PATH
export LIBRARY_PATH=${path_script}/../openssl/unix/lib:$LIBRARY_PATH

rm -rf ${path_script}/unix

rm -rf ${path_script}/build
mkdir ${path_script}/build && \
  cd ${path_script}/live555-2c92a57/ && \
  ./genMakefiles linux-no-openssl &&\
  make clean &&\
  make && \
  make install DESTDIR=${path_script}/unix &&\
  mv ${path_script}/unix/usr/local/* ${path_script}/unix/ && \
  rm -rf ${path_script}/unix/usr
  
  
核心点:
export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:/usr/local/ssl/include
export C_INCLUDE_PATH=$C_INCLUDE_PATH:/usr/local/ssl/include
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/ssl/lib
make install DESTDIR=${path_script}/unix &&\

比特大陆的双网口动静态IP配置

linaro@bm1684:~$ cat /etc/network/interfaces.d/eth0
auto eth0
iface eth0 inet dhcp
iface eth0 inet static
      address 192.168.4.168
      netmask 255.255.254.0

linaro@bm1684:~$ cat /etc/network/interfaces.d/eth1
auto eth1
iface eth1 inet static
      address 192.168.4.169
      netmask 255.255.254.0
      gateway 192.168.4.1 这个可能会干扰上网
      dns-nameservers 192.168.4.1

CLion2019.3.x远程调试

因为调试比特大陆的盒子,故玩一波远程调试。
1.在Toolchains新增一个工具链。

2.在Deployment找到上图上添加的RemoteHost的配置。

3.在CMake的选项,Toolchain的选项中,选择之前的Remotehost配置。

在构建选项中,选择se5的选项,至此完成远程调试的全部配置。