Registered Member
|
Hi,
I am new to Kdevelop. I may just be blind and incompetent, but I cannot figure out how to run my project. I am using windows 10, KDE 5.2.1, and the MinGW compiler. I can get it to compile. I am using the -G "MinGW Makefiles" extra argument. When I click the execute button I get brought to the Launch config. From what I have found I have to click on the + dropdown and select the last option which would be whatever my project name is. It is grayed out for me so I cannot click on it, and if I try anything else like a compiled binary. I cannot get that to work either Any help is appreciated!
Last edited by KingCruzIII on Thu Nov 30, 2017 8:43 pm, edited 1 time in total.
|
Global Moderator
|
You should be able to click "Compiled binary", then select the path to your executable to the right. Does that not work?
Best, Sven
I'm working on the KDevelop IDE.
|
Registered Member
|
Now I am not so sure it actually compiles. I hit build and it says ***Finished***, but I cannot find what it would output like an a.out file or something. Where would it be?
|
Global Moderator
|
|
Registered Member
|
The only .exe are 2 a.exe files, and when I try to use those as binaries I get an error:
Also I just saw that it complained about having sh.exe in my MinGW folder. So I took that out but that didn't really change anything. |
Global Moderator
|
Try starting the .exe from the explorer ... it's probably missing some dll.
I'm working on the KDevelop IDE.
|
Registered Member
|
when I run it from explorer it opens a cmd for a split second then disappears. It's just a hello world template program.
|
Global Moderator
|
|
Registered Member
|
Can you share your CMakeLists.txt?
Note when you hit build you should see something like: [100%] Built target test |
Registered Member
|
CmakeList:
And it is just a program made from the Standard > Terminal > CMake C++ template
|
Registered Member
|
Hm, I think I have figured out the cause.
Go to Settings -> Configure KDevelop -> CMake -> Default Generator and select "MinGW Makefiles". Delete the whole build directory. (Which can be done by Project -> Prune Selection or by navigating to your project directory using explorer and deleting it manually). Build Again, there should be a "compiler.exe" (location: projectdir/build/compiler.exe, not hidden deep within the build dir!) Set launch executable to that and report the results. Cheers. |
Registered Member
|
I have changed it to the MinGW Makefiles option, but that doesn't seen to have done anything.
In the build view the bottom it first shows
after that and I hit the build button it shows:
Not sure if that helps at all. I have tried reinstalling KDE, remaking the project with different settings. I have no idea why it won't work. |
Global Moderator
|
That looks totally fine. What do you expect the program to do when you run it?
I'm working on the KDevelop IDE.
|
Registered Member
|
I expect when I hit Execute I don't get an error :
that's the program. I'd expect to see "Hello World" somewhere not some error. I expect something like what is shown in this video: https://www.youtube.com/watch?v=yx3Xw-OOcTk Im not using unix and I understand its from 2015, but the UI looks pretty similar, and I do pretty much what the person in the video does. Yet there is no Compiler.exe anywhere. The only .exe are two a.exe buried in some folders that just give errors if i use those. |
Global Moderator
|
Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]