无法在MacOS上构建CMake项目 [英] Unable to build CMake project on MacOS

查看:699
本文介绍了无法在MacOS上构建CMake项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试建立这个专案: https://github.com/dominikbelter/ForceController
但我无法编译,因为我得到一个错误:

I'm trying build this project: https://github.com/dominikbelter/ForceController But I can not compile because I get an error:

> :ar: no archive members specified
usage:  ar -d [-TLsv] archive file ...
    ar -m [-TLsv] archive file ...
    ar -m [-abiTLsv] position archive file ...
    ar -p [-TLsv] archive [file ...]
    ar -q [-cTLsv] archive file ...
    ar -r [-cuTLsv] archive file ...
    ar -r [-abciuTLsv] position archive file ...
    ar -t [-TLsv] archive [file ...]
    ar -x [-ouTLsv] archive [file ...]
make[2]: *** [/Users/Seba/Desktop/ForceController-master 2/build/lib/libCONTROLLER_DEFS.a] Error 1
make[1]: *** [CMakeFiles/CONTROLLER_DEFS.dir/all] Error 2
make: *** [all] Error 2

不幸的是我不知道如何解决它。在linux一切都很好。

Unfortunately I have no idea how I could fix it. On linux everything works well. Somone Have any idea how build this program on Mac os?

推荐答案

有没有做过?

cd ForceController
mkdir build
cd build
cmake ..
make

我做了同样的事情,工作正常。

I did the same thing and it works fine.

这篇关于无法在MacOS上构建CMake项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆