cmake

Opening Qt Project After Relocating It

故事扮演 提交于 2020-04-16 02:32:50
问题 I created a C++ Qt Creator CMake project. It worked perfectly when I loaded in to the program. However, when I copy pasted the project into another folder, it doesn't open in the Qt creator application anymore. Instead of a Qt project, it just opens as a normal folder with CMakeLists.txt only while all other files are added separately. Is there no way I can copy the program as it is? 回答1: Remove CMakeLists.txt.user when copying it to another folder. Then QtCreator will not open the old

Clang 10 fails to link C++ application with CMake on macOS 10.12

戏子无情 提交于 2020-04-15 10:51:27
问题 I have a Jenkins build server running macOS 10.12. I am compiling a C++ application using the latest Clang 10 (not AppleClang) with CMake 3.17. The error I get is: The C++ compiler "/Users/XXX/llvm/bin/clang++" is not able to compile a simple test program. It fails with the following output: ld: unknown option: -platform_version clang-10: error: linker failed with exit code 1 This works fine with Clang 9 on the same server and Clang 10 works fine on macOS 10.15 with all other build tools and

cocos2d-x 4.0 版本修改点

扶醉桌前 提交于 2020-04-13 20:44:04
【今日推荐】:为什么一到面试就懵逼!>>> 转自: https://discuss.cocos2d-x.org/t/cocos2d-x-v4-0-released/48487 Features support metal on iOS/macOS use CMake for all platforms update GLFW to 3.3 update minizip to 1.2 remove deprecated functions remove h5 engine and JSB remove tiff remove SimpleAudioEngine remove experimental namespace fix bug that system font can not work correctly on macOS 15 fix lua crash on 64-bit devices fix bugs for iOS 13 UIWebView uses WKWebView instead VideoPlayer uses AVPlayerController instead 点赞 收藏 分享 文章举报 haima1998 发布了229 篇原创文章 · 获赞 244 · 访问量 179万+ 他的留言板 关注 来源: oschina 链接: https://my

centos7修改系统语言为简体中文

ε祈祈猫儿з 提交于 2020-04-13 07:55:09
原文: centos7修改系统语言为简体中文 说明 自己装系统时一般都可以自定义选择系统语言。可是云端服务器一般都是安装好的镜像,默认系统语言为英文,对于初学者可能还会有搞不懂的计算机词汇。这里简单说一下centos7怎么修改系统语言为中文。 修改centos7系统语言 查看系当前语言包 locale 查看系统拥有语言包 locale -a (zh_CN.UTF-8是简体中文,如果没有zh_CN.UTF-8,就安装语言包,如果存在可以直接设置) 安装简体中文语言包 yum install kde-l10n-Chinese 设置为中文 临时修改,重启服务器之后就会还原之前的设置 LANG= "zh_CN.UTF-8" #修改为中文 LANG= "en_US.UTF-8" #修改为英文 永久修改就要把配置写入文件里面 方法(一) vi /etc/locale.conf # #加下面内容到第一行,设置中文 LANG=zh_CN.UTF8 方法(二) localectl set -locale LANG=zh_CN.UTF8 其他 修改时区为亚洲上海 ln -sf /usr/ share /zoneinfo/ Asia /Shanghai / etc/localtime 查看ip时bash: ifconfig: command not found 解决办法 yum install net

cmake doesnt rebuild externalProject on changes

丶灬走出姿态 提交于 2020-04-13 01:02:31
问题 I have the following CMakeLists.txt: cmake_minimum_required( VERSION 3.0) project(addProject) include (ExternalProject) set(ExternalProjectCMakeArgs -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DCMAKE_INSTALL_PREFIX=${PROJECT_BINARY_DIR}/external/genLib ) ExternalProject_Add(genLib SOURCE_DIR ${PROJECT_SOURCE_DIR}/external/genLib BINARY_DIR ${PROJECT_BINARY_DIR}/external/genLib INSTALL_COMMAND "" INSTALL_DIR ${PROJECT_BINARY_DIR}/external CMAKE_ARGS ${ExternalProjectCMakeArgs} ) add_custom_command

mysql源码安装和主从同步配置

自作多情 提交于 2020-04-12 09:29:26
mysql源码安装和主从同步配置 mysql介绍: MySQL 是一种关联数据库管理系统,关联数据库将数据保存在不同的表中,而不是将所有数据放在一个大仓库内,这样就增加了速度并提高了灵活性。MySQL 所使用的SQL 语言是用于访问数据库的最常用标准化语言。 MySQL 软件采用了双授权政策,它分为社区版和商业版,由于其体积小、速度快 总体拥有成本低,尤其是开放源码这一特点,一般中小型网站的开发都选择 MySQL作为网站数据库。由于其社区版的性能卓越,搭配 PHP 和Nginx Apache 可组成良好的开发环境 一、Mysql数据库安装 yum install mariadb-server mariadb mariadb-libs -y CentOS7.x YUM安装 二、源码安装MYSQ,通过cmake、make、make install三个步骤实现。 cd /usu/data/ wget -c http://ftp.ntu.edu.tw/MySQL/Downloads/MySQL-5.7/mysql-5.7.23.tar.gz wget -c http://downloads.sourceforge.net/project/boost/boost/1.59.0/boost_1_59_0.tar.gz tar zxvf boost_1_59_0.tar.gz mv boost

How best to set output directory for a CMake C++ project built by Visual Studio 2017?

走远了吗. 提交于 2020-04-12 04:07:09
问题 I have used Visual Studio 2017 to build C++ desktop projects using .vcxproj files. I like the default behavior where the output directory is a subdirectory below the project. For example: |-myproj.sln |-myproj.vcxproj |-----------------|--x64 --|-- myproj_release --|-- myproj.exe I now want to define the build using CMake instead of .vcxproj, so that I can build with Visual Studio Code as an alternative to Visual Studio 2017. I converted my .vcxproj to a CMake project using cmake-converter.

【译】GNU Radio How to write a block 【如何开发用户模块及编写功能块】

不问归期 提交于 2020-04-10 17:16:55
本文讲解如何在GNU Radio中添加用户开发的信号处理模块,译文如有不当之处可参考原文地址: http://gnuradio.microembedded.com/outoftreemodules Out-of-tree modules   利用用户自定义的功能模块扩展GNU Radio。   This article borrows heavily from the original (but very outdated) "How to write a block?" written by Eric Blossom. 1. What is an out-of-tree module?   外部模块(Out-of-tree Module)是不存在与GNU Radio源代码树的GNU Radio组件。通常,用户自己扩展GNU Radio的功能模块,被称作外部模块。一般我们不会向实际的GNU Radio源代码树中添加东西,除非你是想把他上传给发开者们整合使用。添加外部模块既允许你维护你自己的代码,并且延续主代码的功能。   很多这样的外部模块由 CGRAN 主持,这个一个关于GNU Radio的智囊团。如果你开发了非常nice的东西,请将他提交到CGRAN!    spectral estimation toolbox 是外部模块的一个例子,它的谱估计功能扩展了GNU Radio

How to configure CMakeLists.txt to install public headers of a shared library?

巧了我就是萌 提交于 2020-04-10 09:15:16
问题 I want to use cmake to install my library edv but when I execute: cmake --build . --target install It installs but it only creates the bin/edv.dll and lib/ < empty > . How can I make cmake to install the EDV_PUBLIC_INCLUDE_DIRECTORIES inside an include/... ? Here's my CMakeLists.txt : cmake_minimum_required(VERSION 3.12) project(edv) # include PUBLIC directories set(EDV_PUBLIC_INCLUDE_DIRECTORIES include/ ) set(EDV_PRIVATE_INCLUDE_DIRECTORIES src/ ) # Edv source files list file(GLOB_RECURSE

How to configure CMakeLists.txt to install public headers of a shared library?

我是研究僧i 提交于 2020-04-10 09:13:20
问题 I want to use cmake to install my library edv but when I execute: cmake --build . --target install It installs but it only creates the bin/edv.dll and lib/ < empty > . How can I make cmake to install the EDV_PUBLIC_INCLUDE_DIRECTORIES inside an include/... ? Here's my CMakeLists.txt : cmake_minimum_required(VERSION 3.12) project(edv) # include PUBLIC directories set(EDV_PUBLIC_INCLUDE_DIRECTORIES include/ ) set(EDV_PRIVATE_INCLUDE_DIRECTORIES src/ ) # Edv source files list file(GLOB_RECURSE