kdevelop

Manually configuring shadow build in qmake

旧街凉风 提交于 2019-12-05 10:47:57
问题 There is a feature I really like in qt creator and it is the Shadow build. When the Shadow Build is on, all the generated files (*.moc, Makefile, *.o) will be generated in a given source directory, so the sources directory is kept clean. I am moving from qt creator to kdevelop and I am trying to figure out how this feature works, so far I can create the resulting binary, the moc files and object files to the extra directory using the variables DESTDIR , OBJECTS_DIR and MOC_DIR but I cannot

关于ubuntu安装一些软件包,无法定位的。。

余生长醉 提交于 2019-12-04 11:49:25
好久没来CSDN 了,最近装kdevelop IDE ,sudo apt-get install Kdevelop 出现“E: 无法定位软件包 Kdevelop”,这个问题平常装别的软件包的时候也会出现,每次出现cc都很头疼啊!原来是在运行之前, sudo apt-get update 一下, 然后在sudo apt-get install kdevelop (变成小写) ok了! 来源: CSDN 作者: mianduoer 链接: https://blog.csdn.net/mianduo3575/article/details/80653504

Kdevelop steps and breakpoints not working

僤鯓⒐⒋嵵緔 提交于 2019-12-04 03:28:09
问题 I need using steps (Step over, Step over instruction...) and breakpoints. But the options Step over, Step over instruction and ect. are disabled in menu Run. And when I put breakpoint into program, program don´t stop on this breakpoint. I found that I must turn off optimization of compiler and linker. But I don´t know how turn off optimization in Kdevelop 4.4.1. Where I can find this setting? Or cause of problem with steps and breakpoints is other than compiler optimization? 回答1: You need to

How to develop a cross-platform C++ project?

可紊 提交于 2019-12-03 16:07:29
I'm a C++ beginner and I'm starting to develop my first cross-platform C++ project. I need to use platform-specific calls (Win32 and POSIX) so I need to compile frequently both in Windows and Linux. Whit single-platform projects I'm using, until now, KDevelop in Linux and Visual Studio 2012 in Windows. How can I use two different IDEs in two different Operating Systems with the same project? Should I use a single, cross-platform, IDE? Should I learn CMake (or similar) and configure it to work with both IDEs? Could/Should I host my code in the web and sync automatically with offline projects?

Using a struct in a header file “unknown type” error

試著忘記壹切 提交于 2019-12-03 12:27:59
问题 I am using Kdevelop in Kubuntu. I have declared a structure in my datasetup.h file: #ifndef A_H #define A_H struct georeg_val { int p; double h; double hfov; double vfov; }; #endif Now when I use it in my main.c file int main() { georeg_val gval; read_data(gval); //this is in a .cpp file } I get the following error: georeg_chain.c:7:3: error: unknown type name 'georeg_val' (This is in the georeg_val gval; line) I would appreciate if anyone could help me resolve this error. 回答1: In C one has

Is there a kdevelop version that i can install on windows?

情到浓时终转凉″ 提交于 2019-12-03 11:47:37
问题 is there any other than using Cygwin? thanks! 回答1: KDE 4 supports Windows, and you can check the install methods from this and here. Note that you will have to use either MinGW or MSVC as the compiler, though. 回答2: I've installed kdevelop on win7, using emerge: http://techbase.kde.org/Getting_Started/Build/Windows/emerge. To get it all working is a pain in the ass, mostly because there is no guide. Here is how I did it: Install python and git. Create a directory where you want to install kde.

Using a struct in a header file “unknown type” error

偶尔善良 提交于 2019-12-03 02:03:38
I am using Kdevelop in Kubuntu. I have declared a structure in my datasetup.h file: #ifndef A_H #define A_H struct georeg_val { int p; double h; double hfov; double vfov; }; #endif Now when I use it in my main.c file int main() { georeg_val gval; read_data(gval); //this is in a .cpp file } I get the following error: georeg_chain.c:7:3: error: unknown type name 'georeg_val' (This is in the georeg_val gval; line) I would appreciate if anyone could help me resolve this error. In C one has two possibilities to declare structure: struct STRUCT_NAME {} ; or typedef struct {} STRUCT_ALIAS; If you use

用kdevelop构建ROS程序包

喜夏-厌秋 提交于 2019-12-03 00:02:23
建立桌面快捷方式 因为kdevelop必须知道ROS环境变量,必须从已经source过的工作区终端来启动kdevelop,否则build提示找不到catkin包 按照以下创建桌面文件,并生成快捷方式 cd ~/Desktop touch kDevelop.desktop chmod +x kDevelop.desktop 1 2 3 用编辑器打开文件,复制以下代码: [Desktop Entry] Type=Application Terminal=false Exec=bash -i -c "kdevelop" Name=kDevelop Icon=kdevelop 1 2 3 4 5 6 导入catkin工作空间 先catkin_make 初始化工作空间 删除build文件夹 用上述快捷方式打开kdevelop 选择打开工程,找到工作空间(~/ada_ws/src),选择CMakeLists.txt 可以将工作名称进行替换(默认src),选择CMake Project Manager,选择完成 出现cmake配置窗口,选择构建空间 /home/ada/ada_ws/build/ 选择构建类型 添加额外参数,确保二进制文件和库在正确的catkin空间中(devel install) -DCATKIN_DEVEL_PREFIX=../devel -DCMAKE_INSTALL

Ubuntu 将Kdevelop 放置桌面

风格不统一 提交于 2019-12-01 10:01:48
cd ~/Desktop touch kDevelop.desktop chmod +x kDevelop.desktop sudo gedit kDevelop.desktop 添加如下文本: [Desktop Entry] Type=Application Terminal=false Exec=bash -i -c "kdevelop" Name=kDevelop Icon=kdevelop 保存退出,桌面就出现了kDevelop的图标啦 来源: https://www.cnblogs.com/rjjhyj/p/11677833.html