I'm using the git version (from today) of kdevelop and encountered the following problem: I created a new standard terminal application ("Hello world") Then I set in Run->Configure Launches ... the option Action "Build" or "Build and Install" The build process is *not* invoked, if I change the source code and click then Run->Execute Launch Bye Ralf Reproducible: Always
Are you adding any building dependencies?
Do you mean in the CMakeFile.txt? No, it's the standard file generated during new project from template: project(test) add_executable(test main.cpp) install(TARGETS test RUNTIME DESTINATION bin) I think, the informations given in the "Run->Configure Launches ..." besides the executable are not correctly handled ...
In the list view below, there should be a view with the dependencies you'd like to have compiled. Or you were expecting the executable to be compiled then? (It would be a good idea, I think) http://i.imgur.com/F1YfFr3.png
You are right, the dependencies were empty, thus I added there the executable, i.e. in my case (*) test/test. Even if I set Action: Build it now tries to build AND install Scanning dependencies of target test [100%] Building CXX object CMakeFiles/test.dir/main.o Linking CXX executable test [100%] Built target test Install the project... -- Install configuration: "Debug" -- Installing: /usr/local/bin/test CMake Error at cmake_install.cmake:42 (FILE): file INSTALL cannot copy file "/home/denzer/projects/test/build/test" to "/usr/local/bin/test". make: *** [install] Error 1 *** Failure: Exit code 2 *** Remark: I will check my backups and tell you in which git master version I didn't had these problems ... (may take a couple of minutes)
(See also BUG 319209) So, I restored my previously used kdevplatform and kdevelop git master version from 20 Feb 2013 and compiled and installed them again. In the git master version from 20 Feb 2013 "Run->Configure Launches ..." behaves like expected. if I set Action: Build then Run->Execute Launch builds the project and starts the executable in an external xterm [ (v) Use externam Terminal: xterm ]
Can you please provide the .kdev4/<projectname>.kdev4 file for your project? I still cannot reproduce...
sorry, i only posted the file to BUG 319209 and not here: here again (.kdev4/test.kdev4) ---- snip ------------------------------------ [Buildset] BuildItems=@Variant(\x00\x00\x00\t\x00\x00\x00\x00\x01\x00\x00\x00\x0b\x00\x00\x00\x00\x01\x00\x00\x00\x08\x00t\x00e\x00s\x00t) [CMake] Build Directory Count=1 Current Build Directory Index=0 ProjectRootRelative=./ [CMake][CMake Build Directory 0] Build Directory Path=file:///home/denzer/projects/test/build Build Type=Debug CMake Binary=file:///usr/bin/cmake Environment Profile= Extra Arguments= Install Directory=file:///usr/local [Launch] Launch Configurations=Launch Configuration 0 [Launch][Launch Configuration 0] Configured Launch Modes=execute Configured Launchers=nativeAppLauncher Name=New Application Launcher Type=Native Application [Launch][Launch Configuration 0][Data] Arguments= Dependencies=@Variant(\x00\x00\x00\t\x00\x00\x00\x00\x00) Dependency Action=Build EnvironmentGroup=default Executable=file:///home/denzer/projects/test/build/test External Terminal=xterm -hold -e %exe Project Target=test,test Use External Terminal=true Working Directory= isExecutable=false ---- snip --------------------------------------------------
Today I built kdevelop again from git master and now it behaves as expected. Seems, that the fix of Bug 318995 fixes also this one. Thank you very much for your help! Ralf