cmake

why does cmake compiles everything after git commit

你。 提交于 2020-03-04 06:50:18
问题 Lets say I have a code compiling at some time with cmake 2.8 on linux. I change a file "my_changed_file", run cmake, and only this one file is built. So far so good. Now i want to commit this: git add my_changed_file git commit If I run cmake again, i'd expect nothing happens. But all my files are recompiled, despite I didn't touched anything! The timestamp appears to be untouched when I do ls -l. I do have these lines: execute_process( COMMAND git describe --abbrev=8 --dirty --always --tags

why does cmake compiles everything after git commit

随声附和 提交于 2020-03-04 06:50:17
问题 Lets say I have a code compiling at some time with cmake 2.8 on linux. I change a file "my_changed_file", run cmake, and only this one file is built. So far so good. Now i want to commit this: git add my_changed_file git commit If I run cmake again, i'd expect nothing happens. But all my files are recompiled, despite I didn't touched anything! The timestamp appears to be untouched when I do ls -l. I do have these lines: execute_process( COMMAND git describe --abbrev=8 --dirty --always --tags

【Android FFMPEG 开发】Android Studio 中配置 FFMPEG 库注意事项 ( 静态库 链接 libz.so 库 | 导入 FFMPEG 函数库顺序 )

霸气de小男生 提交于 2020-03-03 22:16:06
文章目录 I . 导入 z 库 ( FFMPEG 动态库 与 静态库区别 ) II . FFMPEG 库引入顺序 III . Android Studio 中 FFMPEG 静态库引入完整 CMakeList.txt 构建脚本 I . 导入 z 库 ( FFMPEG 动态库 与 静态库区别 ) 1 . 导入 FFMPEG 静态库 会报以下错误 : libavformat/id3v2.c:1021: error: undefined reference to 'uncompress' libavformat/rtmpproto.c:1077: error: undefined reference to 'inflateInit_' libavformat/rtmpproto.c:1087: error: undefined reference to 'inflate' libavformat/rtmpproto.c:1105: error: undefined reference to 'inflateEnd' libavformat/http.c:1646: error: undefined reference to 'inflateEnd' libavformat/http.c:680: error: undefined reference to 'inflateEnd'

CMake Qt5 and AUTOUIC not rebuilding when .ui file touched

孤者浪人 提交于 2020-03-03 11:35:52
问题 I have a Qt5 project, using CMake with AUTOUIC , AUTOMOC , and AUTORCC . My problem is that if I change one of the .ui files, I expect UIC to run and produce the corresponding ui_XXX.h file. It doesn't. I have the .ui files listed in my add_library(... Foo1.ui Foo2.ui) declaration. This is on Windows with Visual Studio 2019. I am using the VS solution file produced my CMake. As far as I can tell, the only time Auto UIC runs is if it is building the library; touch any source file, and

CMake Qt5 and AUTOUIC not rebuilding when .ui file touched

ⅰ亾dé卋堺 提交于 2020-03-03 11:34:42
问题 I have a Qt5 project, using CMake with AUTOUIC , AUTOMOC , and AUTORCC . My problem is that if I change one of the .ui files, I expect UIC to run and produce the corresponding ui_XXX.h file. It doesn't. I have the .ui files listed in my add_library(... Foo1.ui Foo2.ui) declaration. This is on Windows with Visual Studio 2019. I am using the VS solution file produced my CMake. As far as I can tell, the only time Auto UIC runs is if it is building the library; touch any source file, and

gRPC Windows编译应用

坚强是说给别人听的谎言 提交于 2020-03-02 20:00:03
gRPC Windows编译 从github上clone出来后进行cmake的编译,参考上面的文档,需要注意的点: 必须安装所有的依赖,包括Perl,Go,YASM,Git,CMake 不要使用--recursive来递归clone,因为墙的原因会失败 所以子模块的下载请使用:git submodule update --init 使用cmake生成VS solution进行构建 安装请在VS中生成INSTALL项目即可,默认安装到C盘的Program Files目录 Q:奇怪的是grpc.lib竟然没有安装到目录下,不知道为什么? 所以我只能手动将Release目录下的lib文件都拷贝到安装目录下了 example的使用 依赖与库 需要使用grpc的include,在安装目录下有 C:\Program Files %28x86%29\grpc\include 需要使用protobuf的include,在安装目录下有 依赖库的路径:C:\Program Files %28x86%29\grpc\lib 依赖的库有:libprotobuf.lib;grpc++_unsecure.lib;grpc_unsecure.lib;gpr.lib;zlibstatic.lib;ws2_32.lib libprotobuf.lib:必须的库 grpc++.lib: 使用SSL加密的库,C++需要

补充“MIT Cheetah 完整开源代码仿真环境”搭建过程中文资料的细节

走远了吗. 提交于 2020-03-02 10:24:46
引言 作为世界上最先进四足之一的MIT Cheetah在2019年底被其团队开源了所有软硬件设计。针对此次开源的代码环境搭建过程,虽然该团队给出了非常详尽的安装调试过程,但是在自己安装过程中仍然有许多问题出现。所以在国内还没有详尽的资料的情况下,作者写下这篇博客。最主要目的是结合前人的工作,做具体操作过程的补充,所以读者需要结合文中所引用的资料完成自己环境的搭建。 背景介绍 当然,具作者了解到,国内首先针对该项目给出简介的是: 《廖洽源:MIT Cheetah 完整开源代码与论文简介》 文章给出了四足机器人的软硬件下载地址连接,具体介绍了软件算法的控制架构以及开源代码的结构组成,但是针对安装过程有所省略。最后给出仿真环境的操作过程及效果展示。 随后另一位复现者华北舵狗王在上文的基础上给出了更多的安装指导: 《 华北舵狗王带你一起做四足机器人9 (MIT Cheetah 开源 代码 仿真器编译) 》 文章详细说明了仿真环境在虚拟机ubuntu14.04下的安装过程,甚至给出了其自己的虚拟机镜像。 作者非常感谢上述两个作者做的前期工作,为自己环境的搭建做出的重要指导作用。由于安装过程以及程序架构已被详细讲述,所以本文不讲述详细的安装过程,仅根据个人经验补充在安装过程中可能遇到的问题。为更多对该开源项目感兴趣的腿足机器人工作者提供可参考的资料。 另外还有名为深圳机擎科技的人提供了机器人的

CMake 软件 configure 时报错  fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏

我是研究僧i 提交于 2020-03-02 10:11:20
CMake 软件 configure 时报错 fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏 用在CMake软件,从资源中第一次生成源代码过程中出现错误 fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏 ....... 解决:直接把D:\VS2010\VC\bin\cvtres.exe删除或重命名,既可以解决问题。(VS 安装路径可能不同) 来源: CSDN 作者: jackylzh 链接: https://blog.csdn.net/jackylzh/article/details/104597591

Qt cmake 根据不同参数编译不同程序

让人想犯罪 __ 提交于 2020-03-02 04:16:44
  Qt cmake 根据不同参数编译不同程序。   比如我这里的例子,编译的主机是否编译libtorch、是否编译拥有gpu,分三种情况执行三种函数。就是判断一下Calculation_Method的值,对应引入不同的cpp。ventricularremodeling.h里所有函数分开两个cpp存放,ventricularremodeling.cpp放通用的函数实现,剩下那个放不通用的函数。 #USE_GPU:本地成功编译libtorch,装有gpu且配置好cuda环境 #USE_CPU:本地成功编译libtorch,利用cpu计算 #USE_FAKE:本地未编译libtorch SET ( Calculation_Method "USE_CPU" ) configure_file ( " ${PROJECT_SOURCE_DIR} /calculation_method.h.in" " ${PROJECT_SOURCE_DIR} /calculation_method.h" ) include_directories ( script/libtorch ) if ( Calculation_Method STREQUAL "USE_GPU" ) SET ( Torch_DIR "/home/yx/Documents/lib/pytorch/build/lib.linux-x86

源码安装Mysql

痴心易碎 提交于 2020-03-01 05:56:31
ncurses-devel是cmake的依赖包 安装配置工具cmake [root@nginx~]# rpm -q mysql mysql-server mariadb mairadb-server [root@nginx~]# yum -y install ncurses-devel cmake 创建运行用户 [root@nginx~]#useradd -M -s /sbin/nologin mysql 解包,配置,编译,安装 [root@nginx~]# tar xf mysql-5.7.24.tar.gz -C /usr/src/ [root@nginx~]# cd /usr/src/mysql-5.7.24/ [root@nginx mysql-5.7.24]#cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_EXTRA_CHARSETS=all -DSYSCONFDIR=/etc&& make && make install -DCMAKE_INSTALL_PREFIX=/usr/local/mysql //数据库程序安装目录 -DDEFAULT_CHARSET=utf8 //指定字符集编码