cmake

How to specify custom CUDA compiler for CMake?

自闭症网瘾萝莉.ら 提交于 2020-08-10 18:55:16
问题 I am working to install xgboost on Ubuntu 20.04. I want to force CMake to use a specific CUDA installation (11.0) instead of the default one (10.1). However, the compiler repeatedly throws the error as follows: bill@magicMaker:~/xgboost/build$ cmake .. -DUSE_CUDA=ON -DR_LIB=ON . . . The CUDA compiler "/usr/bin/nvcc" is not able to compile a simple test program. It fails with the following output: Change Dir: /home/bill/xgboost/build/CMakeFiles/CMakeTmp Some of the attempted fixes included:

CLion编译ros

拟墨画扇 提交于 2020-08-10 13:55:26
在编译环境中启动Clion CLion需要获取ROS特定的环境变量。 在ros工作空间中运行 source . / devel / setup . bash 以设置环境变量。 为了让ros获取到环境变量,在ros工作空间下运行 sh PATH_TO_CLION / bin / clion . sh 注意把 PATH_TO_CLION 替换成自己安装clion的路径。 在CLion打开一个ROS项目 启动CLion后就要打开ros项目了。 单击File|Open选择ROS工作区的src目录中的CMakeLists.txt文件,确定后点击弹窗中的open as project。 注意: ros工作区下的src中可能没有CMakeLists.txt,此时我们就需要选择单个package下的CMakeLists.txt了,选择后仍然单击open as project,此时一个package作为一个project了。 结果如下: 把build路径设置到catkin workspace下 默认情况下,CLion将生成输出放在自动创建的cmake build debug或cmake build release目录中。对于ROS开发,这意味着将在CLion和运行catkin_make的console中有两个不同的版本。 要在IDE和控制台上进行单个构建

gr-ofdm

可紊 提交于 2020-08-10 06:20:49
Build requirements In order to build the gr-ofdm module you will need to install the following prerequisites ZeroMQ including the C++ and Python bindings ( http://zeromq.org/ ) UHD Driver for USRP hardware GNU Radio ( https://gnuradio.org/ ) ITPP ( https://sourceforge.net/projects/itpp/ ) python-qwt5-qt4 python-scipy How to build and install In the gr-ofdm folder do mkdir build cd build cmake ../ make Installation is optional make install for USRP1 devices copy the special FPGA image usrp/images/std_1rxhb_1txhb.rbf to the uhd images directory. This is necessary to obtain a flat frequency

奥比中光Astra Pro在ROS系统中的使用

纵饮孤独 提交于 2020-08-09 22:29:13
奥比中光Astra Pro在ROS系统中的使用 上一次介绍了Astra Pro在ubuntu中的使用,由于Astra Pro使用uvc传输彩色图像,所以当用rqt_image_view窗口 时,看不到彩色图。需要安装libuvc和libuvc_ros。 安装ROS功能包 1 sudo apt- get install ros-kinetic-astra-camera ros-kinetic-astra-launch 使用命令 1 roslaunch astra_launch astra.luanch libuvc的安装 1 cd ~ 2 git clone https: // github.com/ktossell/libuvc 3 cd libuvc 4 mkdir build 5 cd build 6 cmake .. 7 make && sudo make install libuvc_ros的安装 1 cd ~/catkin_ws/ src 2 git clone https: // github.com/ktossell/libuvc_ros 3 cd .. 4 catkin_make 编译错误及解决办法 提示找不到JpegPkg这个库。 我换回了旧版本的linuvc和libuvc_ros安装包,解决了这个问题。下载地址: https://i.cnblogs.com

windows mingw cmake cl not found

喜欢而已 提交于 2020-08-09 21:32:38
原文链接: https://blog.csdn.net/qq_40604853/java/article/details/89351203 # 设置gcc、g++路径,看看自己的路径,可能是mingw64 export CC=/c/MinGW/bin/gcc.exe export CXX=/c/MinGW/bin/g++.exe # cmake 告知采用mingw生成 cmake -G "MinGW Makefiles" .. # 相当于make mingw32-make ———————————————— 版权声明:本文为CSDN博主「最美的情郎」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。 原文链接:https://blog.csdn.net/qq_40604853/java/article/details/89351203 来源: oschina 链接: https://my.oschina.net/u/4418236/blog/4288998

How to link all LLVM libraries in cmake?

妖精的绣舞 提交于 2020-08-09 17:24:50
问题 I want to link all LLVM libraries in my cmake C++ project. I use llvm-config --components to get all the components of LLVM, it gives me: $ llvm-config --components aarch64 aarch64asmparser aarch64codegen aarch64desc aarch64disassembler aarch64info aarch64utils aggressiveinstcombine all all-targets amdgpu amdgpuasmparser amdgpucodegen amdgpudesc amdgpudisassembler amdgpuinfo amdgpuutils analysis arm armasmparser armcodegen armdesc armdisassembler arminfo armutils asmparser asmprinter

用树莓派4,OLED,USB摄像头搭建条形码扫描设备

我们两清 提交于 2020-08-09 11:15:24
最近618优惠,买了树莓派4,打算给娃当电脑用。到手之后先自己玩了下,做了一个简单的扫码程序。 树莓派4相关硬件采购 树莓派4的4GB版本。官方定价65美金,京东300减40到手389。 Micro HDMI转HDMI线。树莓派4更换了电源接口。 HDMI母对母转接头。用于延长HDMI线。 树莓派智能贴身管家。包含可编程风扇,RGB灯和OLED显示模块。 系统安装 官网下载官方系统 https://www.raspberrypi.org/downloads/。 用Win32 Disk Imager把镜像写到sdcard里。 卡插入树莓派4,连接电源。注意:电源至少3A输出,不要随便连接USB接口供电。 系统配置 开启I2C, VNC, 和SSH。 要通过Windows远程连接,可以安装tightvncserver和xrdp: sudo apt update sudo apt install tightvncserver xrdp 接下来检查下磁盘空间是否足够: df -H Filesystem Size Used Avail Use% Mounted on /dev/root 32G 8.9G 21G 30% / devtmpfs 1.9G 0 1.9G 0% /dev tmpfs 2.1G 0 2.1G 0% /dev/shm tmpfs 2.1G 9.1M 2.1G 1%

EthSnarks以太坊混币器【零知识证明】

匆匆过客 提交于 2020-08-08 22:00:31
Miximus是一个用于以太坊区块链的去中心化混币器和匿名转账应用,由EthSnarks作者开发,用于展示零知识证明在以太坊上的实用性。本文介绍Miximus以太坊混币应用的安装使用方法、工作原理和实现细节。 用自己熟悉的语言学习以太坊DApp开发: Java | Php | Python | .Net / C# | Golang | Node.JS | Flutter / Dart 1、Miximus混币应用概述 利用Miximus混币应用,你可以存入1个ETH,然后利用zkSNARK证据证明你持有这个币的消费密钥,通过验证之后就可以提币了,整个过程保证了匿名性。 Miximus的主要源代码包括: Miximus.sol miximus.py test_miximus.py miximus.cpp zkSNARK证明方作为原生库构建,因此可以打包进你的应用,当提供正确的参数后,库会返回JSON格式的zkSNARK证据。你可能会认为zkSNARKs很慢 —— Miximus选择的算法生成证据的平均时间是5秒,不过我们还在研究其安全特征。 2、构建Miximus混币引用 如果在Linux上构建Miximus混币应用,需要先安装以下依赖软件: cmake 3 g++ or clang++ gmp libcrypto boost npm / nvm 在OSX上需要Brew和nvm:

Lidar-Imu联合标定工具lidar_align的数据接口改写

[亡魂溺海] 提交于 2020-08-08 16:10:23
  最近在做Lidar和imu的联合标定,即通过算法给出安装完成后Lidar和imu间的相对位姿(平移和旋转)。使用github上的lidar_align标定工具。在参考博文 https://blog.csdn.net/miracle629/article/details/87854450 后,发现自己录制的数据包中没有lidar_align需要用到的geometry_msgs/TransformStamped数据类型。博文作者给出的方法:1、建议直接使用rosbag方式读入数据,对于不发布TransformStamped类型数据的程序,只要稍微改动数据接口的几处函数(全部在loader.cpp文件中)便可以正常使用。博文下的评论中还提供了另外两种思路:2、自己写一个ros节点,订阅IMU的topic,把message里面的内容,重新按照geometry_msgs/TransformStamped 的格式赋值一遍,重新发布一次topic。3、不转格式,可以存一个csv文件,把6dof姿态存下来。   首先需要安装nlopt非线性优化库,报错:could not find a package configuration file provided by "Nlopt" with any of: NloptConfig.cmake。博文的评论中将 NLOPTConfig.cmake

基于Cocos2d-x 4.0的持续维护的游戏引擎【EGNX】介绍

橙三吉。 提交于 2020-08-08 08:37:21
EGNX是什么? EGNX是Engine-X的缩写,是基于Cocos2d-X 4.0全新打造的持续维护游戏引擎 为什么单独fork,而不是直接向官方提交PR 官方资源全面倾向Cocos Creator 我们有太多的想法和优化 我们希望将引擎C++做到极致 引擎仓库 GitHub 主引擎: https://github.com/c4games/engine-x 三方库: https://github.com/c4games/engine-x-3rd Gitee (国内极速下载) 主引擎: https://gitee.com/c4games/engine-x 三方库: https://gitee.com/c4games/engine-x-3rd 宗旨: C++14/17 专注于natvie平台游戏研发 主要特性: 重构AudioEngine, 全平台OpenAL, 在iOS平台可以通过 -DCC_USE_ALSOFT_ON_APPLE 切换为 openal-soft , 苹果公司已经在iOS12将OpenAL framework标记为废弃的 重构UserDefault, 全平台基于内存映射文件 mio , 性能提升百倍 模块化所有引擎扩展库, 所有扩展库放到extensions目录下,如cocostudio, spine AudioEngine实现wav所有 openal-soft