pangolin x python x mac os build failed memorandum unsolved

Overview

pangolin https://github.com/stevenlovegrove/Pangolin I tried to build it on mac using python binding, but I was suffering from an unsolvable error.

Memo 1

https://github.com/stevenlovegrove/Pangolin From here, when I tried to build using python3.6 series normally.

I got an error about ffmpeg, so first with the cmake flag -DBUILD_PANGOLIN_FFMPEG=OFF Was used. Or, I tried to save FindFFMPEG in the CMakeModules folder.

Then with cmake-> make -j

[  0%] Building CXX object src/CMakeFiles/pangolin.dir/display/display.cpp.o
[  1%] Building CXX object src/CMakeFiles/pangolin.dir/video/video.cpp.o
[  2%] Building CXX object src/CMakeFiles/pangolin.dir/fonts.cpp.o
[  2%] Linking CXX shared library libpangolin.dylib
Undefined symbols for architecture x86_64:
  "_libintl_bind_textdomain_codeset", referenced from:
      _PyIntl_bind_textdomain_codeset in libpython3.6m.a(_localemodule.o)
  "_libintl_bindtextdomain", referenced from:
      _PyIntl_bindtextdomain in libpython3.6m.a(_localemodule.o)
  "_libintl_dcgettext", referenced from:
      _PyIntl_dcgettext in libpython3.6m.a(_localemodule.o)
  "_libintl_dgettext", referenced from:
      _PyIntl_dgettext in libpython3.6m.a(_localemodule.o)
  "_libintl_gettext", referenced from:
      _PyIntl_gettext in libpython3.6m.a(_localemodule.o)
  "_libintl_setlocale", referenced from:
      _PyLocale_setlocale in libpython3.6m.a(_localemodule.o)
  "_libintl_textdomain", referenced from:
      _PyIntl_textdomain in libpython3.6m.a(_localemodule.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [src/libpangolin.dylib] Error 1
make[1]: *** [src/CMakeFiles/pangolin.dir/all] Error 2
make: *** [all] Error 2

This error cannot be resolved.

Memo 2

https://github.com/uoip/pangolin I used this repository and tried the build in the same way. Regarding ffmpeg, I dealt with it as described in Note 1.

that time, https://github.com/uoip/pangolin/issues/35 Because the same problem as here occurred I overwrote all include paths with absolute paths as suggested here. (Same for eigen, gl) Then the build goes through, pangolin.cpython-36m-darwin.so Was generated, but when importing

https://github.com/uoip/pangolin/issues/26 Segfault (11) as shown here.

Memo 3

When I tried it on ubuntu18 series, Pangolin built well and imported without any problem. However, the g2opy that I wanted to build as well cannot be built here (on mac, this can be built ,,) Give up once.

A memorandum about the build of pangolin.

Recommended Posts

pangolin x python x mac os build failed memorandum unsolved
Build a Python development environment on Mac OS X
Run Zookeeper x python (kazoo) on Mac OS X
Shpinx (Python documentation builder) on Mac OS X
Build a machine learning Python environment on Mac OS
mac OS X 10.15.x pyenv Python If you can't install
I tried to build an environment for machine learning with Python (Mac OS X)
Memo on Mac OS X
Word Count with Apache Spark and python (Mac OS X)
Using multiple versions of Python on Mac OS X (2) Usage
Using NAOqi 2.4.2 Python SDK on Mac OS X El Capitan
Get started with the Python framework Django on Mac OS X
Using multiple versions of Python on Mac OS X (1) Multiple Ver installation
Install Sphinx on Mac OS X
Installation of scikit-learn (Mac OS X)
Continuation ・ Notes on preparing the Python development environment on Mac OS X
Install mitmproxy on Mac OS X
Install pgmagick on Mac OS X 10.9
[Mac] Build a Python 3.x environment at the fastest speed using Docker
Introduction to Graph Database Neo4j in Python for Beginners (for Mac OS X)
Mac OS X Mavericks 10.9.5 Development environment construction
Installed aws-cli On Mac OS X Lion
How to erase Python 2.x on Mac.
Build Python environment with Anaconda on Mac
Mac OS X Yosemite 10.10 Development environment construction
Mac OS X development environment construction memo
Run NASA CEA on Mac OS X
Create a Python development environment in 10 minutes (Mac OS X + Visual Studio Code)
Python memorandum
Python Memorandum 2
Python memorandum
python memorandum
python memorandum
Python memorandum
python memorandum
Build python 1.0
Python memorandum
Run Qiita API v2 Python wrapper in Python3 environment (Mac OS X 10.11 (El Capitan))
Build a Python environment on Mac (Mountain Lion)
UnicodeWarning: Unicode equal comparison failed ... (numpy.float, Python 2.x)
Build a Python development environment on your Mac
Put Python 2.7.x on Mac OSX 10.15.5 with pyenv
Mac OS X Mountain Lion 10.8.5 Development environment construction
Install shogun with python modular (OS X Yosemite)
When import tkinter is not possible on Mac OS X 10.11.3 (El Capitan) + pyenv + Python 3.5.1.
Steps to use the AWS command line interface (Python / awscli) on Mac OS X