Uk0's space

逐渐呆

Category

  • 硬件
  • 软件
  • 随记

Tags

  • linux
  • PanoLogicG1
  • mount
  • tdengine
  • Kubernetes
  • lvm
  • go
  • spark
  • middleware
  • lsp
  • for me
  • kafka
  • ngrok
  • disk
  • kargo
  • nginx
  • Jenkins
  • kcp
  • macos
  • gitolite
  • hacker
  • 斐讯k2p
  • trojan-go
  • docker
  • git
  • attack
  • rocketmq
  • rust
  • 互信
  • ceph

Recent replies

  • firshme 发表于「About」
  • 盐果 发表于「About」
  • 盐果 发表于「About」
  • 陈冠希 发表于「mongodb 被攻击,数据目前在恢复。」

My

RSS (中文优先)
RSS (English preferred)

坑 / Projects
关于我 / About
GitHub

Links

zephray(wenting)
cnVintage古董电子论坛
cnCalc计算器论坛

Keshuai Xu
Bleem
>Lithia's Core
ntzyz's space
丘丘塔台
tonoko.moe
kasora's blog
447f.Misaka
paizhang.info
spinmry实验室
电子考古学
Hikari Calyx Tech.
春上冰月的博客
业余无线电台 BD4SUR
FindHao
Test2g
Shell Bin
LEAFER x LAB

其他

买服务器
续费服务器

在线用户

标签:linux

Debian 11 构建ARM开发环境 for Qt 5.12.9

2022 年 6 月 30 日分类:软件#linux

准备工作

  • 下载Debian11镜像
  • 安装VM Player
  • 安装系统

下载 gnueabihf

  • 1 download gcc-linaro-4.9.4-2017.01-i686_arm-linux-gnueabihf.tar.xz
  • 2 download gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf.tar.xz
  • 将bin配置到 path

下载qt5.12.19 编译arm

 
1. build  step

wget https://download.qt.io/archive/qt/5.12/5.12.9/single/qt-everywhere-src-5.12.9.tar.xz

tar -Jxvf qt-everywhere-src-5.12.9.tar.xz
cd qt-everywhere-src-5.12.9


#修改配置文件
vim qtbase/mkspecs/linux-arm-gnueabi-g++/qmake.conf

#
# qmake configuration for building with arm-linux-gnueabi-g++
#

MAKEFILE_GENERATOR      = UNIX
CONFIG                 += incremental
QMAKE_INCREMENTAL_STYLE = sublib

QT_QPA_DEFAULT_PLATFORM = linuxfb
QMAKE_CFLAGS += -O2 -march=armv7-a -mtune=cortex-a7 -mfpu=neon -mfloat-abi=hard
QMAKE_CXXFLAGS += -O2 -march=armv7-a -mtune=cortex-a7 -mfpu=neon -mfloat-abi=hard

include(../common/linux.conf)
include(../common/gcc-base-unix.conf)
include(../common/g++-unix.conf)

# modifications to g++.conf
QMAKE_CC = arm-linux-gnueabihf-gcc
QMAKE_CXX = arm-linux-gnueabihf-g++
QMAKE_LINK = arm-linux-gnueabihf-g++
QMAKE_LINK_SHLIB = arm-linux-gnueabihf-g++

# modifications to linux.conf
QMAKE_AR = arm-linux-gnueabihf-ar cqs
QMAKE_OBJCOPY = arm-linux-gnueabihf-objcopy
QMAKE_NM = arm-linux-gnueabihf-nm -P
QMAKE_STRIP = arm-linux-gnueabihf-strip
load(qt_config)


# 编译

./configure -prefix /home/debian/tools/5.12.9/arm-qt -opensource \
-confirm-license \
-release  \
-strip  \
-shared  \
-xplatform linux-arm-gnueabi-g++  \
-optimized-qmake  \
-c++std c++11  \
--rpath=no  \
 -pch \
 -skip qt3d -skip qtactiveqt -skip qtandroidextras -skip qtcanvas3d -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtgamepad -skip qtlocation -skip qtmacextras -skip qtnetworkauth -skip qtpurchasing -skip qtremoteobjects -skip qtscript -skip qtscxml -skip qtsensors -skip qtspeech -skip qtsvg -skip qttools -skip qttranslations -skip qtwayland -skip qtwebengine -skip qtwebview -skip qtwinextras -skip qtx11extras -skip qtxmlpatterns -make libs -make examples -nomake tools -nomake tests -gui -widgets -dbus-runtime --glib=no --iconv=no --pcre=qt --zlib=qt  -no-openssl --freetype=qt  \
--harfbuzz=qt  -no-opengl  -linuxfb --xcb=no --libpng=qt --libjpeg=qt --sqlite=qt  -plugin-sql-sqlite -recheck-all


gmake -j16
gmake install

#将生成armqt文件夹整体拷贝到目标板的/usr/lib目录

export QT_ROOT=/usr/lib/armqt
export QT_QPA_GENERIC_PLUGINS=tslib:/dev/input/event2
export QT_QPA_FONTDIR=/usr/share/fonts
export QT_QPA_PLATFORM_PLUGIN_PATH=$QT_ROOT/plugins
export QT_QPA_PLATFORM=linuxfb:tty=/dev/fb0
export QT_PLUGIN_PATH=$QT_ROOT/plugins
export LD_LIBRARY_PATH=$QT_ROOT/lib:$QT_ROOT/plugins/platforms
export QML2_IMPORT_PATH=$QT_ROOT/qml
export QT_QPA_FB_TSLIB=1

执行程序

qt配置截图

  • 配置qmake
  • 配置gcc g++
  • 配置armbuild 项

SSH互信详解

2021 年 8 月 17 日分类:随记#linux#互信

公钥认证的基本思想:

对信息的加密和解密采用不同的key,这对key分别称作private key和public key,其中,public key存放在欲登录的服务器上,而private key为特定的客户机所持有。当客户机向服务器发出建立安全连接的请求时,首先发送自己的public key,如果这个public key是被服务器所允许的,服务器就发送一个经过public key加密的随机数据给客户机,这个数据只能通过private key解密,客户机将解密后的信息发还给服务器,服务器验证正确后即确认客户机是可信任的,从而建立起一条安全的信息通道。通过这种方式,客户机不需要向外发送自己的身份标志“private key”即可达到校验的目的,并且private key是不能通过public key反向推断出来的。这避免了网络窃听可能造成的密码泄露。客户机需要小心的保存自己的private key,以免被其他人窃取,一旦这样的事情发生,就需要各服务器更换受信的public key列表。

MORE

记录一下挂盘

2021 年 8 月 16 日分类:随记#mount#linux#lvm

服务器10台每台16块盘 其中两块系统盘,剩下的皆为数据盘,因为涉及到扩容,所以有一个大目录采用lvm挂载。

MORE

linux硬盘检查大小

2021 年 8 月 16 日分类:随记#disk#linux

linux硬盘检查大小awk脚本全自动执行,以及日志抽取

MORE

LVM unknown device how to recover?

2021 年 8 月 16 日分类:随记#lvm#linux#mount

I have a server with two hard drives that I thought I had correctly installed with LVM, until I discovered that the second hard-drive did not actually seem to be used. I investigated the problem and followed some instructions found online, but the problem got worse. Apparently, my initial mistake was to remove the physical volume with pvremove when I should have used mvreduce.

MORE
  • «
  • 1
  • »
Copyright © 2016-2021 firshme. All rights reserved.
Except where otherwise noted, content on this blog is licensed under CC-BY 2.0.