Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Difficulties installing (possibly macOS specific) #3

Open
esnible opened this issue Sep 14, 2022 · 7 comments
Open

Difficulties installing (possibly macOS specific) #3

esnible opened this issue Sep 14, 2022 · 7 comments

Comments

@esnible
Copy link

esnible commented Sep 14, 2022

I had a few problems with make install. Some of these problems I got past, some I haven't yet.

I'm using this work item to gather the problems before creating a pull with troubleshooting tips.

Problem: npm ERR! /bin/sh: cmake: command not found
Solution: brew install cmake

Problem: gyp: No Xcode or CLT version detected!
Solution: sudo xcode-select --reset
See this article for rationale.

Problem: npm ERR! ../cc/core/Size.h:1:10: fatal error: 'opencv2/core.hpp' file not found
Possible solution:

export OPENCV4NODEJS_DISABLE_AUTOBUILD=1
brew install opencv # this takes over an hour

After this I am getting similar C++ compilation problems, such as "node-gyp/18.9.0/include/node/v8-internal.h:646:38: error: no template named 'remove_cv_t' in namespace 'std'; did you mean 'remove_cv'?". It isn't clear to me if this means I have the wrong Xcode version for my Mac, the wrong Node.js version, the wrong Python version, or if cads requests the wrong opencv4nodejs or node-gyp version.

Currently the failure reports "gyp info using [email protected]", "gyp info using [email protected] | darwin | x64", and 'gyp info find Python using Python version 3.9.5 found at "/Users/snible/miniconda3/bin/python3"'.

@ztaylor54
Copy link
Owner

I had intended to package CADS with a pre-built version of opencv. More work on that soon.

I'm on MacOS as well, and must not be having issues due to opencv already being installed on my system. I'll go back through my notes and make sure I'm not missing build steps in the readme.

@Hegghammer
Copy link

I too am having problems installing on Linux. After some wrangling I was able to launch electron, but it complains about missing files, and none of the buttons work:

Screenshot from 2023-01-22 18-06-50

I also get this in the terminal while it's running:
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null) [35652:0122/175826.995453:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!

@Hegghammer
Copy link

PS I also had the "'opencv2/core.hpp' file not found" error, which seems to stem from the script looking for core.hpp in the wrong folder. Symlinking (ln -s /usr/local/include/opencv4/opencv2 /usr/local/include/opencv2) solved it.

@7maram7
Copy link

7maram7 commented Feb 24, 2023

Screen Shot 2023-02-23 at 22 04 56

Finally installed it, but it's not working. Same problem

@ztaylor54
Copy link
Owner

Looks like we're overdue for a better process -- docker would probably work, as @esnible mentioned in #10.

Let me play around with a clean install and see where things are failing.

@ztaylor54
Copy link
Owner

It's looking like some version mismatches in the node dependencies are causing opencv4nodejs to fail to build with newer versions of node & node-gyp. I'll see if I can't get that resolved.

@7maram7
Copy link

7maram7 commented May 12, 2023

It's looking like some version mismatches in the node dependencies are causing opencv4nodejs to fail to build with newer versions of node & node-gyp. I'll see if I can't get that resolved.

Hi Zach!
Any news on how's the newer version coming along?
Thanks

Repository owner deleted a comment from metadetron Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants