简体   繁体   中英

How can I set KDevelop to compile codes with gcc properly?

I just downloaded KDevelop from Ubuntu Software Center, and have gcc.

I want to see anything happens by pressing F9 but KDevelop says I need to configure a launcher first. And all I know about the setting window is I have to put 'gcc' in somewhere on the window, as well as path to the source code file and path to the executable file it will make.

I have no any knowledge about this window, no any syntax to use in it and can't find it anywhere on the web. Now I desperately require some help. I want to make KDevelop to compile and debug with already-installed gcc and gdb.

配置窗口。

It asks you of which executable to debug. You, i suppose, don't want to debug gcc , so you should set this field to your executable. You can also select Project Target option, and choose CMake target that corresponds to your executable.

This step happens after the build step. Make sure your build process is working first (F8).

The window above lets you select which executable in your project should be run when the launch button is pressed.

If your project is created in KDevelop or otherwise uses CMake as the build system, this should be configured by default and use the "target" part of the dialog.

Otherwise the executable should point to the executable you created as part the build process that you want to test.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM