g2o installieren

Probleme bei der Installation?
Antworten
frenik
User
Beiträge: 24
Registriert: Sonntag 19. Juni 2022, 17:45

Ich mochte g2o installieren, aber alle meine Versuche sind gescheitert.
Infos:
Python Version: 3.10.6
Betriebssystem: Windows x64

Danke schon im voraus
Grüße Frenik
Benutzeravatar
sparrow
User
Beiträge: 4195
Registriert: Freitag 17. April 2009, 10:28

Was ist g2o?
Was hast du versucht?
__deets__
User
Beiträge: 14544
Registriert: Mittwoch 14. Oktober 2015, 14:29

Du hast die Dokumentation gelesen, und die notwendigen Dinge in der Sektion "Requirements" beachtet? Und welche Fehlermeldungen bekommst du? Oder geht das alles voellig stillschweigend schief?
frenik
User
Beiträge: 24
Registriert: Sonntag 19. Juni 2022, 17:45

zuerst habe ich es mit pip install g2o probiert.
Fehlermeldung:

Code: Alles auswählen

ERROR: Could not find a version that satisfies the requirement g2o (from versions: none)
ERROR: No matching distribution found for g2o
Danach mit der Anleitung auf Github:
git clone https://github.com/uoip/g2opy.git
cd g2opy
mkdir build
cd build
cmake ..
Hier kam die Fehlermeldung:

Code: Alles auswählen

CMake Warning:
  Ignoring extra path from command line:

   ".."


CMake Error: The source directory "C:/Users/Frenik/Downloads/g2opy-master" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
make -j8
cd ..
python setup.py install

Habe keine Ahnung was ich noch probieren soll.
Grüße Frenik
__deets__
User
Beiträge: 14544
Registriert: Mittwoch 14. Oktober 2015, 14:29

Das glaube ich nicht. Die git Kommandos würden kein Verzeichnis g2opy-master nach sich ziehen. Da ist irgendwas faul. Du musst was anders/falsch gemacht haben.
frenik
User
Beiträge: 24
Registriert: Sonntag 19. Juni 2022, 17:45

Ich habe alles nochmal probiert.
bei dem Kommando cmake ..
kam folgende Fehlermeldung:

Code: Alles auswählen

CMake Error at CMakeLists.txt:4 (PROJECT):
  Running

   'nmake' '-?'

  failed with:

   Das System kann die angegebene Datei nicht finden


CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "C:/Users/Rainer/g2opy/build/CMakeFiles/CMakeOutput.log".
was soll ich machen?
Grüße Frenik
Benutzeravatar
Dennis89
User
Beiträge: 1156
Registriert: Freitag 11. Dezember 2020, 15:13

Hallo,

"vor" der Anleitung steht was von C-Requirements, hast du die? (Edit: das hatte __deets__ ja auch schon erwähnt, ich konnte nur keine Antwort dazu finden)
https://github.com/uoip/g2opy#g2oRequirements

Was in C:/Users/Rainer/g2opy/build/CMakeFiles/CMakeOutput.log ?


Grüße
Dennis
"When I got the music, I got a place to go" [Rancid, 1993]
frenik
User
Beiträge: 24
Registriert: Sonntag 19. Juni 2022, 17:45

C-Requirements habe ich (Programmiere selber mit C/C++)
Inhalt von C:/Users/Rainer/g2opy/build/CMakeFiles/CMakeOutput.log:
The system is: Windows - 10.0.19043 - AMD64
The system is: Windows - 10.0.19043 - AMD64
__deets__
User
Beiträge: 14544
Registriert: Mittwoch 14. Oktober 2015, 14:29

Hast du die Fehlermeldungen mal gegoogelt?
frenik
User
Beiträge: 24
Registriert: Sonntag 19. Juni 2022, 17:45

hab ich schon gegoogeld
Hab aber nichts brauchbares gefunden
Grüße Frenik
__deets__
User
Beiträge: 14544
Registriert: Mittwoch 14. Oktober 2015, 14:29

Komisch. Ich finde da sofort Hinweise. https://stackoverflow.com/questions/705 ... lelanguage
frenik
User
Beiträge: 24
Registriert: Sonntag 19. Juni 2022, 17:45

Habe eine Teil des Problems gelöst.
Den CMAKE_C_COMPILER und den CMAKE_CXX_COMPILER ERROR habe ich jetzt gelöst.
Die Fehlermeldung:

Code: Alles auswählen

CMake Error at CMakeLists.txt:4 (PROJECT):
  Running

   'nmake' '-?'

  failed with:

   Das System kann die angegebene Datei nicht finden


Configuring incomplete, errors occurred!
See also "C:/Users/Rainer/g2opy/build/CMakeFiles/CMakeOutput.log".
In C:/Users/Rainer/g2opy/build/CMakeFiles/CMakeOutput.log:

Code: Alles auswählen

The system is: Windows - 10.0.19043 - AMD64
Grüße Frenik
__deets__
User
Beiträge: 14544
Registriert: Mittwoch 14. Oktober 2015, 14:29

Der Link den ich gepostet habe erklärt das doch. Du hast kein nmake.
frenik
User
Beiträge: 24
Registriert: Sonntag 19. Juni 2022, 17:45

habe nmake jetzt installiert.
Bekomme jetzt folgende Fehlermeldung:

Code: Alles auswählen

-- Building for: Visual Studio 17 2022
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19043.
-- The C compiler identification is MSVC 19.33.31629.0
-- The CXX compiler identification is MSVC 19.33.31629.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.33.31629/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.33.31629/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Compiling on Windows
CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (CHOLMOD)
  does not match the name of the calling package (Cholmod).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake_modules/FindCholmod.cmake:86 (find_package_handle_standard_args)
  CMakeLists.txt:97 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find CHOLMOD (missing: CHOLMOD_INCLUDE_DIR CHOLMOD_LIBRARIES)
-- A library with BLAS API not found. Please specify library location.
-- A library with BLAS API not found. Please specify library location.
-- LAPACK requires BLAS.
CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (CSPARSE)
  does not match the name of the calling package (CSparse).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake_modules/FindCSparse.cmake:24 (find_package_handle_standard_args)
  CMakeLists.txt:107 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find CSPARSE (missing: CSPARSE_INCLUDE_DIR CSPARSE_LIBRARY)
-- Building LGPL code as static library (affects license of the binary)
-- Found OpenGL: opengl32
-- Compiling with OpenGL support
CMake Warning at cmake_modules/FindQGLViewer.cmake:1 (FIND_PACKAGE):
  By not providing "FindQt5.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt5", but
  CMake did not find one.

  Could not find a package configuration file provided by "Qt5" with any of
  the following names:

    Qt5Config.cmake
    qt5-config.cmake

  Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR"
  to a directory containing one of the above files.  If "Qt5" provides a
  separate development package or SDK, be sure it has been installed.
Call Stack (most recent call first):
  CMakeLists.txt:148 (FIND_PACKAGE)


Qt5 not found. Install it and set Qt5_DIR accordingly
  In Windows, Qt5_DIR should be something like C:/Qt/5.4/msvc2013_64_opengl/lib/cmake/Qt5
CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (QGLVIEWER)
  does not match the name of the calling package (QGLViewer).  This can lead
  to problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake_modules/FindQGLViewer.cmake:49 (find_package_handle_standard_args)
  CMakeLists.txt:148 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find QGLVIEWER (missing: QGLVIEWER_INCLUDE_DIR QGLVIEWER_LIBRARY)
-- Compiling with MSVC
-- Found Eigen3: C:/Program Files/eigen (Required is at least version "2.91.0")
CMake Deprecation Warning at EXTERNAL/csparse/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at g2o/CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Found PythonInterp: C:/Users/Rainer/AppData/Local/Programs/Python/Python310/python.exe (found version "3.10.6")
-- Found PythonLibs: C:/Users/Rainer/AppData/Local/Programs/Python/Python310/libs/Python310.lib
-- Performing Test HAS_MSVC_GL_LTCG
-- Performing Test HAS_MSVC_GL_LTCG - Failed
-- LTO disabled (not supported by the compiler and/or linker)
-- Configuring done
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CHOLMOD_INCLUDE_DIR
   used as include directory in directory C:/Users/Rainer/g2opy/python
   used as include directory in directory C:/Users/Rainer/g2opy/python

CMake Error in python/CMakeLists.txt:
  Found relative path while evaluating include directories of "g2o":

    "CHOLMOD_INCLUDE_DIR-NOTFOUND"



CMake Error in python/CMakeLists.txt:
  Found relative path while evaluating include directories of "g2o":

    "CHOLMOD_INCLUDE_DIR-NOTFOUND"



CMake Error in python/CMakeLists.txt:
  Found relative path while evaluating include directories of "g2o":

    "CHOLMOD_INCLUDE_DIR-NOTFOUND"



CMake Error in python/CMakeLists.txt:
  Found relative path while evaluating include directories of "g2o":

    "CHOLMOD_INCLUDE_DIR-NOTFOUND"



CMake Error in python/CMakeLists.txt:
  Found relative path while evaluating include directories of "g2o":

    "CHOLMOD_INCLUDE_DIR-NOTFOUND"



CMake Error in python/CMakeLists.txt:
  Found relative path while evaluating include directories of "g2o":

    "CHOLMOD_INCLUDE_DIR-NOTFOUND"



CMake Error in python/CMakeLists.txt:
  Found relative path while evaluating include directories of "g2o":

    "CHOLMOD_INCLUDE_DIR-NOTFOUND"



CMake Error in python/CMakeLists.txt:
  Found relative path while evaluating include directories of "g2o":

    "CHOLMOD_INCLUDE_DIR-NOTFOUND"



CMake Error in python/CMakeLists.txt:
  Found relative path while evaluating include directories of "g2o":

    "CHOLMOD_INCLUDE_DIR-NOTFOUND"



CMake Error in python/CMakeLists.txt:
  Found relative path while evaluating include directories of "g2o":

    "CHOLMOD_INCLUDE_DIR-NOTFOUND"



CMake Error in python/CMakeLists.txt:
  Found relative path while evaluating include directories of "g2o":

    "CHOLMOD_INCLUDE_DIR-NOTFOUND"



CMake Error in python/CMakeLists.txt:
  Found relative path while evaluating include directories of "g2o":

    "CHOLMOD_INCLUDE_DIR-NOTFOUND"



-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.
__deets__
User
Beiträge: 14544
Registriert: Mittwoch 14. Oktober 2015, 14:29

Da fehlt eine Bibliothek. Was man sich rausfindet, wenn man die Fehlermeldung mal googelt. Machst du das auch mal von selbst? Denn ich komme mir hier vor wie dein Tippknecht. Ein bisschen Eigeninitiative schadet nicht. Sonst wird’s eh nix.

Ich würde dir auch nachdrücklich zu Linux als Hostsystem raten. Denn das sind Säcke voll Abhängigkeiten, die unter Linux leicht zu installieren sind. Nicht so aber unter Windows. Siehe https://github.com/jlblancoc/suitespars ... or-windows für eine Weg. Aber der ist steinig und bedarf etwas mehr Engagement als bisher beobachtbar war.
frenik
User
Beiträge: 24
Registriert: Sonntag 19. Juni 2022, 17:45

Danke für die Antwort
Ich werde es mal mit Linux probieren.
Grüße Frenik
Antworten