This forum has been archived. All content is frozen. Please use KDE Discuss instead.

problem with building programms

Tags: None
(comma "," separated)
kurth
Registered Member
Posts
4
Karma
0

problem with building programms

Thu Nov 28, 2013 5:07 pm
hi,
I have a problem with Kdevelop4. I installed the programm as well as the cmake. However, if I want to build a very simple project I get the output:

Code: Select all
cmake version 2.8.7
Usage

  cmake [options] <path-to-source>
  cmake [options] <path-to-existing-build>

Options
  -C <initial-cache>          = Pre-load a script to populate the cache.
  -D <var>:<type>=<value>     = Create a cmake cache entry.
  -U <globbing_expr>          = Remove matching entries from CMake cache.
  -G <generator-name>         = Specify a makefile generator.
  -Wno-dev                    = Suppress developer warnings.
  -Wdev                       = Enable developer warnings.
  -E                          = CMake command mode.
  -i                          = Run in wizard mode.
  -L[A][H]                    = List non-advanced cached variables.
  --build <dir>               = Build a CMake-generated project binary tree.
  -N                          = View mode only.
  -P <file>                   = Process script mode.
  --find-package              = Run in pkg-config like mode.
  --graphviz=[file]           = Generate graphviz of dependencies.
  --system-information [file] = Dump information about this system.
  --debug-trycompile          = Do not delete the try_compile build tree.
                                Only useful on one try_compile at a time.
  --debug-output              = Put cmake in a debug mode.
  --trace                     = Put cmake in trace mode.
  --warn-uninitialized        = Warn about uninitialized values.
  --warn-unused-vars          = Warn about unused variables.
  --no-warn-unused-cli        = Don't warn about command line options.
  --check-system-vars         = Find problems with variable usage in system
                                files.
  --help-command cmd [file]   = Print help for a single command and exit.
  --help-command-list [file]  = List available listfile commands and exit.
  --help-commands [file]      = Print help for all commands and exit.
  --help-compatcommands [file]= Print help for compatibility commands.
  --help-module module [file] = Print help for a single module and exit.
  --help-module-list [file]   = List available modules and exit.
  --help-modules [file]       = Print help for all modules and exit.
  --help-custom-modules [file]= Print help for all custom modules and exit.
  --help-policy cmp [file]    = Print help for a single policy and exit.
  --help-policies [file]      = Print help for all policies and exit.
  --help-property prop [file] = Print help for a single property and exit.
  --help-property-list [file] = List available properties and exit.
  --help-properties [file]    = Print help for all properties and exit.
  --help-variable var [file]  = Print help for a single variable and exit.
  --help-variable-list [file] = List documented variables and exit.
  --help-variables [file]     = Print help for all variables and exit.
  --copyright [file]          = Print the CMake copyright and exit.
  --help,-help,-usage,-h,-H,/?= Print usage information and exit.
  --help-full [file]          = Print full help and exit.
  --help-html [file]          = Print full help in HTML format.
  --help-man [file]           = Print full help as a UNIX man page and exit.
  --version,-version,/V [file]= Show program name/version banner and exit.

Generators

The following generators are available on this platform:
  Unix Makefiles              = Generates standard UNIX makefiles.
  CodeBlocks - Unix Makefiles = Generates CodeBlocks project files.
  Eclipse CDT4 - Unix Makefiles
                              = Generates Eclipse CDT 4.0 project files.
  KDevelop3                   = Generates KDevelop 3 project files.
  KDevelop3 - Unix Makefiles  = Generates KDevelop 3 project files.

*** Beendet ***


When I try to run the program I get the pop up message:

Code: Select all
No valid executable specified


How can I make the program running?

greetings
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS

Re: problem with building programms

Thu Nov 28, 2013 5:56 pm
What project? How do you try to build it?

Does this for example happen when you create a project from one of the templates?


I'm working on the KDevelop IDE.
kurth
Registered Member
Posts
4
Karma
0

Re: problem with building programms

Thu Nov 28, 2013 6:08 pm
What project?

Standard C++ project


How do you try to build it?

I open the project und push the build button? ;D


Does this for example happen when you create a project from one of the templates?

I don't know where to get templates.
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS

Re: problem with building programms

Thu Nov 28, 2013 6:38 pm
Did you import the project by clicking the CMakeLists.txt file, i.e. with the CMake project manager?


I'm working on the KDevelop IDE.
kurth
Registered Member
Posts
4
Karma
0

Re: problem with building programms

Thu Nov 28, 2013 7:14 pm
Did you import the project by clicking the CMakeLists.txt file, i.e. with the CMake project manager?

No, I just created a new project
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS

Re: problem with building programms

Thu Nov 28, 2013 7:22 pm
... and did you create a CMakeLists.txt file specifying how to build it? If not, KDevelop can't build it either ;)


I'm working on the KDevelop IDE.
kurth
Registered Member
Posts
4
Karma
0

Re: problem with building programms

Thu Nov 28, 2013 7:58 pm
I didn't create any files, but honestly I expect a good ide to work without me having to create any files before even getting started.
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
For that purpose, you use Project -> New from Template. Depending on the template you select you get a basic cmake file you can extend.

In any case, you have to maintain your build system yourself.


I'm working on the KDevelop IDE.


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]