在Ubuntu建立样品煤渣程序

发布于 2025-01-22 08:44:09 字数 943 浏览 0 评论 0原文

我正在尝试在设备中运行样品煤渣,但是我面临问题,

首先,我将Cinder的存储库从Github克隆并构建。

mkdir build && cd build
cmake ..

构建是成功的。

文档指出,

不同配置的运行时输出目录将 自动最终进入不同的文件夹(例如 lib/macOSX/debug/libcinder.a和lib/macoSX/reparter/libcinder.a),

但是,当我尝试使用clion运行样品时,我会出现以下错误。

ninja: error: '/home/icancode/Cinder/lib/linux/x86_64/ogl/Debug/libcinder.a', needed by 'Debug/BasicAppMultiWindowApp/BasicAppMultiWindowApp', missing and no known rule to make it

我的cmakelists.txt是:

cmake_minimum_required(VERSION 3.10)
project(BasicAppMultiWindowApp)
get_filename_component( CINDER_PATH "~/Cinder" ABSOLUTE )

include( "${CINDER_PATH}/proj/cmake/modules/cinderMakeApp.cmake" )

ci_make_app(
        APP_NAME "BasicAppMultiWindowApp"
        CINDER_PATH ${CINDER_PATH}
        SOURCES BasicAppMultiWindowApp.cpp
)

任何解决方案,我已经尝试了几个小时。提前致谢。

I am trying to run a sample cinder in my device, but I am facing problem to do so,

First of all I cloned the cinder's repository from github and build it.

mkdir build && cd build
cmake ..

The build was sucessfull.

The documentation states that,

The runtime output directory for different configurations will
automatically end up within different folders (e.g.
lib/macosx/Debug/libcinder.a and lib/macosx/Release/libcinder.a),

However when I try to run the sample using CLion, I get following error.

ninja: error: '/home/icancode/Cinder/lib/linux/x86_64/ogl/Debug/libcinder.a', needed by 'Debug/BasicAppMultiWindowApp/BasicAppMultiWindowApp', missing and no known rule to make it

My CMakeLists.txt is:

cmake_minimum_required(VERSION 3.10)
project(BasicAppMultiWindowApp)
get_filename_component( CINDER_PATH "~/Cinder" ABSOLUTE )

include( "${CINDER_PATH}/proj/cmake/modules/cinderMakeApp.cmake" )

ci_make_app(
        APP_NAME "BasicAppMultiWindowApp"
        CINDER_PATH ${CINDER_PATH}
        SOURCES BasicAppMultiWindowApp.cpp
)

Any solution to this, I have been trying this for hours now. Thanks in Advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

故事与诗 2025-01-29 08:44:09

您应该在构建中也应该使用make -j8:

mkdir build && cd build
cmake .. && make -j3

You should use make -j8 too while building like:

mkdir build && cd build
cmake .. && make -j3
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文