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

building for m1 #69

Open
gschian0 opened this issue Jun 13, 2023 · 6 comments
Open

building for m1 #69

gschian0 opened this issue Jun 13, 2023 · 6 comments

Comments

@gschian0
Copy link

I get this error ...
" for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /opt/homebrew/lib/libopencv_photo.4.7.0.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /opt/homebrew/lib/libopencv_core.4.7.0.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /opt/homebrew/lib/libopencv_imgproc.4.7.0.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64"

how do I switch the version to build for arm64?

thanks for your time this program is awesome :)

@gschian0
Copy link
Author

it was just a warning... I reinstalled opencv and I am good.

@dodgeroo
Copy link

I am trying to open on mac M1 and I get this error:
line 1, in
import numpy as np
ModuleNotFoundError: No module named 'numpy'

I can see the 'numpy.h' file in the pybind11 folder.

not sure what I am doing wrong?

@marek-simonik
Copy link
Owner

I am trying to open on mac M1 and I get this error: line 1, in import numpy as np ModuleNotFoundError: No module named 'numpy'

I can see the 'numpy.h' file in the pybind11 folder.

not sure what I am doing wrong?

The error sounds like your Python installation doesn't have numpy installed. Try to install numpy via pip (that should fix the error):

python3 -m pip install numpy

@dodgeroo
Copy link

dodgeroo commented May 7, 2024

Hi,
I got a bit futher but now don't know how to get CMake into the "PATH". Which path is it referring to?
Best,

@dodgeroo
Copy link

dodgeroo commented May 7, 2024

now it says ModuleNotFoundError: No module named 'record3d'

i don't know what I'm doing wrong here. i seem to be doing everything correctly

i can only get it working on Safari browser. not usb python script.

@marek-simonik
Copy link
Owner

I apologize for not replying earlier.

I got a bit futher but now don't know how to get CMake into the "PATH". Which path is it referring to?

"PATH" refers to the PATH environment variable. If you install CMake via Homebew, you won't have to adjust PATH.

i can only get it working on Safari browser. not usb python script.

I assume you meant that Wi-Fi streaming does work correctly for you, but the USB streaming does not?

now it says ModuleNotFoundError: No module named 'record3d'

This error means that the record3d Python package has not been installed yet. You can build it from source, but in order to do that, you will need to install Xcode from the App Store (although I think that installing only Xcode Command Line Tools should be enough). Once you will have that installed, open Terminal and execute the following:

cd /tmp
git clone https://github.com/marek-simonik/record3d.git
cd record3d
python3 -m pip install .  --user

If the installation was successful, you should see "Successfully installed record3d-1.3.1".

Let me know if there will be any issues.

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

3 participants