编译
Linux下编译
桃子小迷妹
一只后悔读博的小菜鸟!
展开
-
bash: /usr/bin/cmake: No such file or directory
bash: /usr/bin/cmake: No such file or directory原创 2023-10-11 17:12:56 · 1575 阅读 · 0 评论 -
cmake: Unable to find Python interpreter, required for builds and testing.
cmake: Unable to find Python interpreter, required for builds and testing.原创 2023-10-07 11:19:09 · 660 阅读 · 0 评论 -
cmake:Tell CMake where to find the compiler by setting either the environment...
Tell CMake where to find the compiler by setting either the environment...原创 2023-10-07 11:12:45 · 617 阅读 · 0 评论 -
LLVM IR文件
LLVM IR文件原创 2022-10-13 17:12:28 · 294 阅读 · 0 评论 -
编译 debug版本
1. makemake ver=release2. configure./configure --enable-debug参考:1. https://www.cnblogs.com/motadou/p/8505173.html原创 2022-01-03 23:30:03 · 536 阅读 · 0 评论 -
binutils
binutils默认编译设置./configure make或指定编译器,编译选项./configure CC=gcc CFLAGS=-O2 CPPFLAGS=-O2make原创 2021-07-05 16:06:36 · 160 阅读 · 0 评论 -
Ubuntu bash: make: command not found
当使用 make 命令编译软件,出现了错误:bash: make: command not found错误原因:未安装 make解决方法:sudo apt-get install make原创 2021-05-26 10:38:31 · 1810 阅读 · 0 评论 -
gcc-4.8.5 优化选项
名词解释:RTL:real time language__builtin_expect:这个指令的作用是允许程序员将最有可能执行的分支告诉编译器。这个指令的写法为:__builtin_expect(EXP, N)。意思是:EXP==N的概率很大。参考死存储(Dead Store):A dead store is a store into a memory location that is later overwritten by another store without any intervenin原创 2021-04-20 18:01:18 · 660 阅读 · 0 评论 -
清除 configure,make 生成的文件
清除 make 生成的文件make clean清除 ./configure&&make 生成的文件make distclean原创 2021-03-30 18:08:16 · 1733 阅读 · 0 评论 -
coreutils V8.25 编译
1. 源码下载官网github2. 指定版本下载原创 2021-03-30 17:14:42 · 819 阅读 · 0 评论 -
configure: error: you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment
执行 ./configure ,报错: configure: error: you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check) See `config.log’ for more details原创 2021-03-30 16:44:14 · 2547 阅读 · 0 评论 -
手动安装gcc-4.6
手动安装gcc-4.6手动安装gcc-4.6你好! 这是你第一次使用 Markdown编辑器 所展示的欢迎页。如果你想学习如何使用Markdown编辑器, 可以仔细阅读这篇文章,了解一下Markdown的基本语法知识。1.下载所需的gcc版本(4.6)链接: gcc 中国下载镜像,选择安装的gcc版本(4.6),下载安装包gcc-4.6.4.tar.gz2. 解压缩安装包3. 下载编译...原创 2019-12-30 11:28:45 · 1866 阅读 · 2 评论 -
Could not find a package configuration file provided by “Qt5“ with any of the following names
编译软件时出现以下错误: By not providing "FindQt5.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Qt5", but CMake did not find one. Could not find a package configuration file provided by "Qt5" with原创 2020-08-06 10:54:28 · 11290 阅读 · 8 评论 -
make指定编译器、优化选项
make CC=clang CFLAGS=O0原创 2020-07-31 22:16:02 · 3678 阅读 · 0 评论 -
Linux clang安装及版本切换
安装Clang\Clang版本切换原创 2020-07-31 16:57:49 · 6815 阅读 · 0 评论 -
Linux 编译zstd
Makefilemake CFLAGS=-O0make clean原创 2020-07-31 16:30:49 · 1299 阅读 · 0 评论 -
Linux 编译xz
configure./configure --disable-shared --prefix=/tmp/xz-test CFLAGS=-O0 CPPFLAGS=-O0makemake distclean原创 2020-07-31 16:09:20 · 309 阅读 · 0 评论 -
Linux 清理make、configure生成的文件
make clean #清除上一次make命令生成的文件make distclean #清除上一次make以及configure命令生成的文件原创 2020-07-31 15:52:18 · 9558 阅读 · 0 评论 -
configure指定编译器、优化选项
./configure CFLAGS=-O2原创 2020-07-31 10:11:56 · 1810 阅读 · 0 评论 -
Ubuntu下使用cmake+clang+llvm编译程序
1. 新建build文件夹2. 在build文件夹下,新建 linux.toolchain.cmake 文件cmake_minimum_required( VERSION 3.0.2)set(CMAKE_SYSTEM_NAME Linux ) SET (CMAKE_C_COMPILER "/usr/bin/clang")SET (CMAKE_C_FLAGS "-Wall -std=c99")SET (CMAKE_C_FLAGS_DEBUG原创 2020-07-21 15:16:06 · 1085 阅读 · 0 评论 -
Linux Zlib库编译安装
1. Zlib源码下载Zlib2. 编译及安装./configuremake && make install 注意:编译后,生成的可执行文件如下static: example(EXE) minigzip(EXE)shared: examplesh(EXE) minigzipsh(EXE)all64: example64(EXE) minigzip64(EXE)原创 2020-07-14 17:45:49 · 3768 阅读 · 0 评论 -
编译precomp
1. 下载precomp并解压缩2. 新建build在项目目录下新建build文件夹3. 指定编译器和优化选项注意:precomp只能用4.8版本以上的gcc编译,因为gcc 4.6 不支持C ++ 11类型别名,会出现以下错误:编译cmake ..make...原创 2019-12-31 16:54:14 · 415 阅读 · 0 评论 -
编译minizip
1. 下载minizip并解压缩2. 安装zlibsudo apt-get install zlib3. 新建build在项目目录下新建build文件夹4. 指定编译器和优化选项切换gcc版本5. 编译cmake . -DMZ_BUILD_TEST=ON ~/minizip/minizip-mastercmake --build ....原创 2019-12-30 22:36:50 · 2172 阅读 · 0 评论