Comments (10)
This is what happened:
I got pybind11 with brew but it showed some error after the came .. command which was the following:
CMake Error at /usr/local/share/cmake/pybind11/pybind11Common.cmake:173 (if):
if given arguments:"14" "IN_LIST" "supported_standards"
Unknown arguments specified
Call Stack (most recent call first):
/usr/local/share/cmake/pybind11/pybind11Config.cmake:249 (include)
python/CMakeLists.txt:3 (find_package)
So I deleted the below chunk of code from /usr/local/share/cmake/pybind11/pybind11Common.cmake file:
if(PYBIND11_CPP_STANDARD)
string(REGEX MATCH [[..$]] VAL "${PYBIND11_CPP_STANDARD}")
if(CMAKE_CXX_STANDARD)
if(NOT CMAKE_CXX_STANDARD STREQUAL VAL)
message(WARNING "CMAKE_CXX_STANDARD=${CMAKE_CXX_STANDARD} does not match "
"PYBIND11_CPP_STANDARD=${PYBIND11_CPP_STANDARD}, "
"please remove PYBIND11_CPP_STANDARD from your cache")
endif()
else()
set(supported_standards 11 14 17 20)
if("${VAL}" IN_LIST supported_standards)
message(WARNING "USE -DCMAKE_CXX_STANDARD=${VAL} instead of PYBIND11_CPP_STANDARD")
set(CMAKE_CXX_STANDARD
${VAL}
CACHE STRING "From PYBIND11_CPP_STANDARD")
else()
message(FATAL_ERROR "PYBIND11_CPP_STANDARD should be replaced with CMAKE_CXX_STANDARD "
"(last two chars: ${VAL} not understood as a valid CXX std)")
endif()
endif()
endif()
It compiled after that but could not be imported so I compiled it again after placing the folder in venv/lib/python/site-packages
I can import it now and the program works but the HelloPangolin.py turns up with just a red screen and there is a warning in Pycharm that says "Parameter 'params' unfilled " for the CreateWindowAndBind function.
from pangolin.
I just compiled it on macOS Big Sur 11.0.1 with Xcode Version 12.3 (12C33)
You need to fix a minor issue before you could compile it.
src/display/device/PangolinNSGLView.mm
and replace all _window
with self.window
from pangolin.
PR #36
from pangolin.
@keefo thanks for your solution. However, I run into a new issue
include/pangolin/display/attach.h:33:10: fatal error:
'GL/glew.h' file not found
#include <GL/glew.h>
I installed glew with brew but it seems like pangolin cant find it.
from pangolin.
I encounter the same issue as well. I feel like it was some environmental issues. I was able to build it out by replacing include line: #include <GL/glew.h>
with an absolute path like this #include <absolutepath_to_/GL/glew.h>
However, this is just a temporary solution that I used. I don't recommend others doing the same.
Later, I did uninstall some packages including python3 and reinstall them through brew. After some mingling around. I was able to rebuild the pangolin without replacing the include line above.
from pangolin.
Try this: https://github.com/markoelez/Pangolin/blob/master/README.md#building
Build works on Big Sur.
from pangolin.
not working on Big Sur 11.3.1
from pangolin.
@iamkrs9 what error are you getting? I am running Big Sur 11.3.1 as well and the build works fine.
from pangolin.
Finally got it working for Macos Monterey and Python 3.7 ! see my fork: https://github.com/JackWBoynton/pangolin
from pangolin.
I also have an alternative install script here: https://github.com/markoelez/minislam/blob/master/install_pangolin.sh, might be helpful for someone
from pangolin.
Related Issues (20)
- 'pangolin' has no attribute 'CreateWindowAndBind' HOT 5
- Building on Windows [solution] HOT 2
- Pangolin built on python 3.7.4 results in seg fault 11 HOT 3
- make error HOT 2
- cmake .. make a error HOT 3
- Python.h: No such file or directory HOT 2
- Visualizing meshes
- Can anyone compile this? HOT 2
- Cannot import pangolin after install HOT 2
- Fix needed for the build with ffmpeg 4.0 HOT 1
- make: *** No targets specified and no makefile found. Stop. HOT 6
- RuntimeError: Pangolin X11: Failed to open X display
- AttributeError: module 'pangolin' has no attribute 'CreateWindowAndBind' HOT 1
- Black window while running HalloPangolin.py HOT 2
- installation error HOT 1
- use of undeclared identifier '_window' HOT 1
- ABOUT “make: *** [Makefile:171: all] Error 2” HOT 2
- " Could not find a package configuration file provided by "pybind11" " while installing pangolin.
- 'GL/glew.h' file not found
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pangolin.