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

[solved] cmake will python variable - wie setzen?

hi!

ich bin totaler linux anfänger.
ich möchte für das programm "razercfg-001" (für meine razer-maus) via konsole (laut README-anleitung) "cmake ." eingeben. er sagt mir aber:

"CMake Error: This project requires some variables to be set,
and cmake can not find them.
Please set the following variables:
PYTHON_INCLUDE_PATH

-- Configuring done"

... was genau soll ich wie wo tun ^^. python 2.5 ist installiert, sonst sind auch alle notwendigen programme bereits drauf (nach README-anleitung).

nach internetrecherchen weiß ich bis jetzt bloß, dass bei mir der "pfad" anscheinend /usr/include/python2.5 lautet.

danke schonmal für hilfe
 
Puh

Wie führst du das aus, mit welchem genauen Befehl?

http://www.cmake.org/Wiki/Special:Search?search=PYTHON_INCLUDE_PATH&go=Go

cu
 
hey

erstmal danke, aber damit kann ich grad wenig anfangen ;) da steht, es gibt einen befehl "FindPythonLibs", der dafür zuständig ist:


FindPythonLibs
Find python libraries

This module finds if Python is installed and determines where the
include files and libraries are. It also determines what the name of
the library is. This code sets the following variables:

PYTHON_LIBRARIES = path to the python library

PYTHON_INCLUDE_PATH = path to where Python.h is
PYTHON_DEBUG_LIBRARIES = path to the debug library

aber wie gebe ich das denn wo ein? über konsole?! und wenn ja, wie ist der genaue befehl.
 
M4pU schrieb:
aber wie gebe ich das denn wo ein? über konsole?! und wenn ja, wie ist der genaue befehl.

Genau, auf der Konsole bzw. in der Shell.

Z.B. für die bash:
Code:
export PYTHON_INCLUDE_PATH=/usr/include/python

Danach kannst Du dann cmake aufrufen.
 
Oben