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

CameraInit failed with error code -11 #703

Closed
FunWithFlaggs opened this issue Oct 16, 2019 · 3 comments
Closed

CameraInit failed with error code -11 #703

FunWithFlaggs opened this issue Oct 16, 2019 · 3 comments

Comments

@FunWithFlaggs
Copy link

OS: OSX 10.13.6
Clang 10 CUDA 10

Downloaded sources as described in Readme, then configured and compiled with the solutions that i added here ryanfb/homebrew-alicevision#5 and ryanfb/homebrew-alicevision#6

When i now get Meshroom as described in the Readme and run it using PYTHONPATH=$PWD python3 meshroom/ui and drag some images in there, i get the following error (attached as .log)

err.log

Are there any other things that i can add to help solving this?

@simogasp
Copy link
Member

RuntimeError: CameraInit failed with error code -11. Command was: "aliceVision_cameraInit  --sensorDatabase "" --defaultFieldOfView 45.0 --groupCa....

It seems like you didn't set the database file: https://github.com/alicevision/meshroom/blob/f676b400a1e5735b5cd9d9623cae383584595186/INSTALL.md#alicevision
you need to set the env variable ALICEVISION_SENSOR_DB=${ALICEVISION_INSTALL}/share/aliceVision/cameraSensors.db
and similarly ALICEVISION_INSTALL should point to the path where u installed alicevision

@simogasp
Copy link
Member

I suggest to create a bash file meshroom.sh in the root of meshroom like this

export ALICEVISION_INSTALL=/path/to/alicevision/AliceVision/build/install
# if you need the plugins
export QML2_IMPORT_PATH=/path/to/qmlAlembic/build/install/qml:/path/to/QtAliceVision/build/install/qml:$QML2_IMPORT_PATH
export ALICEVISION_SENSOR_DB=${ALICEVISION_INSTALL}/share/aliceVision/cameraSensors.db
export LD_LIBRARY_PATH=/usr/lib/nvidia-384:/usr/local/cuda-8.0/lib64/:$LD_LIBRARY_PATH
export MESHROOMPATH=$PWD
PYTHONPATH=${MESHROOMPATH} PATH=$PATH:${ALICEVISION_INSTALL}/bin python ${MESHROOMPATH}/meshroom/ui $@

and then you just call

./meshroom.sh

or

./meshroom.sh --project yourproject.mg

@FunWithFlaggs
Copy link
Author

Oh man thanks, the .db file was missing..

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

2 participants