marek-simonik / record3d

Accompanying library for the Record3D iOS app (https://record3d.app/). Allows you to receive RGBD stream from iOS devices with TrueDepth camera(s).
https://record3d.app/
GNU Lesser General Public License v2.1
379 stars 55 forks source link

building for m1 #69

Open gschian0 opened 1 year ago

gschian0 commented 1 year ago

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 commented 1 year ago

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

dodgeroo commented 4 months ago

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 commented 4 months ago

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 commented 3 months ago

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 commented 3 months ago

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 commented 3 months ago

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.