gpt4 book ai didi

c++ - 使用cmake的Linux终端上的“Conversion to non-scalar type is requested”错误

转载 作者:行者123 更新时间:2023-12-01 14:58:05 24 4
gpt4 key购买 nike

当我尝试使用CMake生成CodeLite时遇到了一个问题。我在“make -j4”步骤中遇到了它。它显示“请求转换为非标量类型”。

'''    
[ 68%] Built target codelitephp
[ 68%] Built target codelite-make
[ 69%] Built target codelite-terminal
[ 83%] Built target wxCrafter
[ 83%] [ 83%] [ 83%] Building CXX object LiteEditor/CMakeFiles/codelite.dir/CompilerMainPage.cpp.o
Building CXX object LiteEditor/CMakeFiles/codelite.dir/CompilersFoundDlgBase.cpp.o
Building CXX object LiteEditor/CMakeFiles/codelite.dir/CompilersFoundDlg.cpp.o
[ 83%] Building CXX object LiteEditor/CMakeFiles/codelite.dir/CompilersFoundDlg_liteeditor_bitmaps.cpp.o
[ 83%] Building CXX object LiteEditor/CMakeFiles/codelite.dir/CompilersModifiedDlg.cpp.o
/home/osboxes/Desktop/codelite-13.0/LiteEditor/CompilerMainPage.cpp: In member function ‘void CompilerMainPage::InitializeTools()’:
/home/osboxes/Desktop/codelite-13.0/LiteEditor/CompilerMainPage.cpp:543:76: error: conversion from ‘wxPGIterator<wxPGProperty,wxPropertyGridPageState>’ to non-scalar type ‘wxPGIterator<const wxPGProperty,const wxPropertyGridPageState>’ requested
wxPropertyGridConstIterator iter = m_pgMgrTools->GetGrid()->GetIterator();
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
[ 83%] Building CXX object LiteEditor/CMakeFiles/codelite.dir/ConfigManagerBaseDlg.cpp.o
make[2]: *** [LiteEditor/CMakeFiles/codelite.dir/CompilerMainPage.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [LiteEditor/CMakeFiles/codelite.dir/all] Error 2
make: *** [all] Error 2

'''

有人可以帮助我解决问题吗?我关注了 this GitHub link。 “cmake”步骤似乎有问题。如果有人可以帮助我解决它,我们将不胜感激!

最佳答案

这个问题似乎与CMAKE无关,而与实际编译无关。
我个人不了解该库,但据我从您共享的Wiki页面上所知,似乎这些说明可能已过时,因为它的日期是2018年,但是库中有最新更改。

我将检查依赖项版本,以查看它们是否与维护者在README.md中指定的版本相匹配。

关于c++ - 使用cmake的Linux终端上的“Conversion to non-scalar type is requested”错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60259598/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com