• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[gelöst] cmake-fehler

wirrwarr

Hacker
Guten Abend zusammen

Seit Stunden versuche ich von dieser Seite http://annchienta.sourceforge.net/?page=annchienta die Spiele-
Engine zuübersetzen. Leider will cmake nicht so wie ich will.
Code:
 cmake src

-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at CMakeLists.txt:46 (INSTALL):
  install TARGETS given no LIBRARY DESTINATION for shared library target
  "annchienta".


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.6)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!

Code:
alex@linux-awq6:~/bauen/annchienta> cmake --help-policy CMP0000
cmake version 2.8.1
  CMP0000
       A minimum required CMake version must be specified.

       CMake requires that projects specify the version of CMake to which
       they have been written.  This policy has been put in place so users
       trying to build the project may be told when they need to update their
       CMake.  Specifying a version also helps the project build with CMake
       versions newer than that specified.  Use the cmake_minimum_required
       command at the top of your main CMakeLists.txt file:

         cmake_minimum_required(VERSION <major>.<minor>)

       where "<major>.<minor>" is the version of CMake you want to support
       (such as "2.6").  The command will ensure that at least the given
       version of CMake is running and help newer versions be compatible with
       the project.  See documentation of cmake_minimum_required for details.

       Note that the command invocation must appear in the CMakeLists.txt
       file itself; a call in an included file is not sufficient.  However,
       the cmake_policy command may be called to set policy CMP0000 to OLD or
       NEW behavior explicitly.  The OLD behavior is to silently ignore the
       missing invocation.  The NEW behavior is to issue an error instead of
       a warning.  An included file may set CMP0000 explicitly to affect how
       this policy is enforced for the main CMakeLists.txt file.

       This policy was introduced in CMake version 2.6.0.
Code:
cmake -Wno-dev
CMake Error: The source "/home/alex/bauen/annchienta/CMakeLists.txt" does not match the source "/home/alex/bauen/annchienta/src/CMakeLists.txt" used to generate cache.  Re-run cmake with a different source directory.
Nach meiner Googlesuche habe ich verschiedene devel's nachinstalliert. Ohne Erfolg. Das ist mein erster Versuch,
bitte etwas Nachsicht mit Begriffsstutzigkeit.

Schönen Gruß wirrwarr
 
A

Anonymous

Gast
wirrwarr schrieb:
cmake src
....
cmake -Wno-dev
CMake Error: The source "/home/alex/bauen/annchienta/CMakeLists.txt" does not match the source "/home/alex/bauen/annchienta/src/CMakeLists.txt" used to generate cache. Re-run cmake with a different source directory.

Installationsanleitung schrieb:
Installation on Linux

Download this archive containing the core engine source. To compile and install, try the following commands. $ tar -xzf annchienta-version-src.tar.gz
$ cd annchienta
$ cmake .
$ make
$ sudo make install

steht dort irgendwas von
Code:
cmake src
:???: dort steht eindeutig
Code:
cd annchienta
cmake .   #PUNKT nicht src
robi
 
OP
wirrwarr

wirrwarr

Hacker
Hallo robi
danke für Deine rasche Antwort. Den Punkt habe ich nicht gesehen. 8O
src habe ich aus lauter Verzweiflulung eingegeben. Leider bleibt der Fehler
Code:
alex@linux-awq6:~/bauen/annchienta> cmake .
CMake Error at CMakeLists.txt:46 (INSTALL):
  install TARGETS given no LIBRARY DESTINATION for shared library target
  "annchienta".


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.8)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!

geknickter wirrwarr
 
A

Anonymous

Gast
wirrwarr schrieb:
Leider bleibt der Fehler

und du stehst nicht etwa noch in annchienta/src ;)
dann habe ich genau diesen Fehler auch.
stehe ich in annchienta/ funktionierts wie es soll

robi
 
OP
wirrwarr

wirrwarr

Hacker
robi schrieb:
und du stehst nicht etwa noch in annchienta/src ;)
robi
Nö Du, so blind bin ich doch nicht. :)
Ich befinde mich im annchienta Ordner. Bei make gibts den Befehl make clean zum säubern. Wie bitte ist die
Entsprechung bei cmake?

Grüße wirrwarr
 
A

Anonymous

Gast
wirrwarr schrieb:
Bei make gibts den Befehl make clean zum säubern.
Wie bitte ist die Entsprechung bei cmake

keine Ahnung, aber "clean" würde dafür hier auch nicht reichen , müsste man "distclean" nehmen. lösch mal die beiden Cache Dateien weg, das sollte genauso gesehen.

./src/CMakeCache.txt
./CMakeCache.txt

notfalls ganzes Verzeichnis wegschmeißen und noch mal neu aus dem Archiv auspacken.

robi
 
Oben