Dynamic compilation technology based on .NET6 in C#

A few days ago, I had to solve a dynamic calculation problem and tried different methods. The problem is that given a string containing calculations, the calculation results are obtained while the program is running. At that time, dynamic compilation was considered and I checked some information on the Internet to complete this function. However, […]

cross compile toolchain on ubuntu 2204

#!/bin/bash ##———————————————— ————- ## Configuration variables ##———————————————— ————- root_dir=”/home/prometheus/module-test/cross-compile” target=”powerpc-eabi” clean_install=true build_binutils=true build_gcc_static=true build_newlib=true build_gcc=true # gcc dependency isl_tar_link=”ftp://gcc.gnu.org/pub/gcc/infrastructure/isl-0.15.tar.bz2″ mpfr_tar_link=”ftp://gcc.gnu.org/pub/gcc/infrastructure/mpfr-2.4.2.tar.bz2″ mpc_tar_link=”ftp://gcc.gnu.org/pub/gcc/infrastructure/mpc-0.8.1.tar.gz” gmp_tar_link=”ftp://gcc.gnu.org/pub/gcc/infrastructure/gmp-4.3.2.tar.bz2″ # use gcc492, confirmed ok binutils_tar_link=”http://ftp.gnu.org/gnu/binutils/binutils-2.27.tar.gz” #binutils_tar_link=”https://ftp.gnu.org/gnu/binutils/binutils-2.39.tar.gz” #gcc_tar_link=”http://mirrors.kernel.org/gnu/gcc/gcc-6.1.0/gcc-4.9.2.tar.gz” gcc_tar_link=”https://mirrors.kernel.org/gnu/gcc/gcc-6.1.0/gcc-6.1.0.tar.gz” newlib_tar_link=”ftp://sourceware.org/pub/newlib/newlib-2.4.0.tar.gz” ##———————————————— ————- ## Function definitions ##———————————————— ————- function announce {<!– –> now=$(date + “%T”) echo echo “[$now] $1” echo } pushd () {<!– […]

ProtoBuf compiles and generates Google.Protobuf.dll and Protoc.exe, and customizes the code generation rules

Article directory ProtoBuf basic introduction Import ProtoBuf locally Compile and get Google.Protobuf.dll Compile to get the Protoc.exe executable file CMake compiles ProtoBuf into Visual Studio basic configuration Resolve errors after Finish Error 1 and solution: googletest Error 2 and solution: abseil-cpp Visual Studio generates basic exe operations Use Protoc.exe to compile Proto files into C# […]

OpenHarmony 4.0 Release compilation exception handling

1. Environment configuration Compilation environment: Ubuntu 20.04 OpenHarmony software version: 4.0 Release Equipment platform: rk3568 2. Drop-down code Refer to the official website for steps: OpenHarmony 4.0 Release source code acquisition repo init -u https://gitee.com/openharmony/manifest -b OpenHarmony-4.0-Release –no-repo-verify repo sync -c repo forall -c ‘git lfs pull’ 3. Compile code Refer to the official website […]

Mapnik Windows10 compilation

Mapnik Windows10 Compilation Table of Contents Mapnik Windows10 compilation 1. Compilation tool preparation: 2. Environment variable settings: 3. Download the decompression package: 4. Source code compilation dependencies: 5. Compile mapnik source code 6. mapnik windows official website compiled version 1. Compilation tool preparation: vs2010 (download by yourself) GnuWin32 (required) https://jaist.dl.sourceforge.net/project/gnuwin32/make/3.81/make-3.81-bin.zip git (https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/msysgit/Git-1.7.7.1-preview20111027.exe) patch (2) curl(2) […]

Windows compiling open source code method: testing and process of lame.exe file

Windows compiling open source code method about the testing and process of lame.exe file Final result (PS: If you are not familiar with using markdown, remember to add a space after the pound sign to trigger) Cause: foobar2000 requires lame.exe during format conversion. However I can only find [source code. This is what people say:](https://sourceforge.net/projects/lame/) […]

SLAM Lecture 14 ch7 compilation error undefined reference to `fmt::v10::detail::throw_format_error(char const*)

[ 66%] Linking CXX executable pose_estimation_3d3d /usr/bin/ld: CMakeFiles/pose_estimation_3d3d.dir/pose_estimation_3d3d.cpp.o: in function `unsigned long long fmt::v10::detail::width_checker<fmt::v10::detail::error_handler>::operator ()<float, 0>(float) [clone .isra.0]’: pose_estimation_3d3d.cpp:(.text + 0xe): undefined reference to `fmt::v10::detail::throw_format_error(char const*)’ /usr/bin/ld: CMakeFiles/pose_estimation_3d3d.dir/pose_estimation_3d3d.cpp.o: in function `unsigned long long fmt::v10::detail::precision_checker<fmt::v10::detail::error_handler>::operator ()<float, 0>(float) [clone .isra.0]’: pose_estimation_3d3d.cpp:(.text + 0x2e): undefined reference to `fmt::v10::detail::throw_format_error(char const*)’ /usr/bin/ld: CMakeFiles/pose_estimation_3d3d.dir/pose_estimation_3d3d.cpp.o: in function `VertexPose::oplusImpl(double const*)’: pose_estimation_3d3d.cpp:(.text._ZN10VertexPose9oplusImplEPKd[_ZN10VertexPose9oplusImplEPKd] + 0xa9b): […]

Compilation Principle: Special Topic 4 Operator-First Grammar Analysis Design Principle and Implementation

Article directory 1. Experimental purpose 2. Experimental requirements 3. Program implementation 3.1. Introduction to relevant environments 3.2. Main data structures 3.3. Program structure description 3.3.1. Design method 3.3.2. Function definition 4. Program testing 5. Experiment summary 5.1. Technical difficulties and solutions 5.2. Experimental thoughts and experience summary 1. Experiment purpose Through experiments, master and implement […]

Centos8 compiles and installs nginx. When starting nginx, an error message appears. Job for nginx.service failed because the control process exited with error.

nginx compilation and installation Official source code package download address https://nginx.org/en/download.html Example: Compile and install #1. Install related packages [root@test1 ~]# yum -y install gcc pcre-devel openssl-devel zlib-devel #Source code installation requires preparing a standard compiler in advance [root@test1 ~]# useradd -s /sbin/nologin nginx [root@test1 ~]# cd /usr/local/src/ #2. Unzip the package [root@test1 src]# tar […]