Skip to content

Building fails with package from PyPi #42

@arin07

Description

@arin07
CMake Error at g2o/stuff/CMakeLists.txt:1 (add_library):
   Cannot find source file:

     logger.cpp

   Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm
   .ccm .cxxm .c++m .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90
   .f95 .f03 .hip .ispc


 CMake Error at g2o/stuff/CMakeLists.txt:1 (add_library):
   No SOURCES given to target: stuff

The g2o submodule on pypi doesn't seem to have logger.cpp and logger.h

g2o-python-0.0.12/g2o/g2o/stuff  [59] → ls
CMakeLists.txt        macros.h              property.cpp          string_tools.h
color_macros.h        misc.h                property.h            tictoc.cpp
command_args.cpp      opengl_primitives.cpp sampler.cpp           tictoc.h
command_args.h        opengl_primitives.h   sampler.h             timeutil.cpp
filesys_tools.cpp     opengl_wrapper.h      sparse_helper.cpp     timeutil.h
filesys_tools.h       os_specific.c         sparse_helper.h       tuple_tools.h
g2o_stuff_api.h       os_specific.h         string_tools.cpp      unscented.h

But CMakeLists.txt requires this file

add_library(stuff ${G2O_LIB_TYPE}
  filesys_tools.h    string_tools.h
  color_macros.h     macros.h         timeutil.cpp
  command_args.cpp   misc.h           sparse_helper.cpp  timeutil.h
  command_args.h     os_specific.c    sparse_helper.h
  filesys_tools.cpp  os_specific.h    string_tools.cpp
  property.cpp       property.h       tuple_tools.h
  sampler.cpp        sampler.h        unscented.h
  tictoc.cpp tictoc.h
  logger.cpp logger.h
  g2o_stuff_api.h
)

It is there in the main g2o repo for the particular commit but the package at pypi doesn't have it, so the build fails as there are no prebuilt binaries for arm64 architecture .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions