在Ubuntu建立样品煤渣程序
我正在尝试在设备中运行样品煤渣,但是我面临问题,
首先,我将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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该在构建中也应该使用make -j8:
You should use make -j8 too while building like: