alicevision / AliceVision

Photogrammetric Computer Vision Framework
http://alicevision.org
Other
2.96k stars 822 forks source link

errors with alicevision on ubuntu via Houdini #1070

Closed frading closed 1 year ago

frading commented 3 years ago

Hello,

This issue is related to Houdini Labs, but after a few emails with their support, they advised me to ask here as well.

So after downloading meshrom from sidefx tutorial page (https://www.sidefx.com/tutorials/alicevision-plugin/), as soon as I run their alicevision tool suite (on ubuntu), but I immediately get errors like those ones:

alicevision_errors

So it seems that files that are in the lib folder are not found by the executables.

I attempted a work around by creating symlinks for each of the files that generated an error, such as this:

libaliceVision_sensorDB.so.2 -> ../lib/libaliceVision_sensorDB.so.2

and then alicevision appear to run fine, with only the following error this time:

alicevision_error2

And while it generated a mesh, point clouds and camera transforms, I realised shortly after that the mesh did not have uvs, and therefore could not have the texture assigned properly. So maybe my workaround with symlinks just offset the problem. Here is another screenshot, for those familiar with houdini, with the generated geometry:

alicevision_output

Would you have any advice on how to solve this? Could it be that the linux prebuilt version for ubuntu is missing files or symlinks? Happy to run more tests if that can help give more info.

diorn commented 3 years ago

Having the same issues here on Linux Mint

natowi commented 3 years ago

Sorry for the late reply. Does the alicevision standalone work? You can download the linux files here https://github.com/alicevision/meshroom/releases/tag/v2021.1.0

Someone is working on a Flathub submisson https://github.com/flathub/flathub/pull/2485 which will simplify the AliceVision / Meshroom installation on Linux.

frading commented 3 years ago

hi @natowi. And yes, I confirm Meshroom works fine as a standalone.

diorn commented 3 years ago

Hello @natowi - yes, just pushed out some test scans on the standalone and it works well.

Albeit there is a slight issue, when requesting Meshroom to open the exported textures or mesh folders(via right clicking the Texturing node) i get this prompt

-if i navigate to those folders with file explorer everything is there

Problem is we can't get it to work inside Houdini, keep getting this errors. Houdini dev's checked and advised to write here image

diorn commented 2 years ago

Sadly, same issue is still standing after a new Houdini release, i'm quite sure by the errors that this is on alicevision side

MattiBRNDMR commented 2 years ago

Hello @diorn @frading If its still an issue: I gave meshroom in houdini a go today on my linux mint machine (mint 20.1, houdini 19.5.332 Py3.9) and encountered the same issues as you had. After adding aliceVision/bin and aliceVisio/lib to my PATH and LD_LIBRARY_PATH, it worked. Got a similar error though "05_structure_from_motion failed!" but the mesh had nice uvs and looked fine overall.

export PATH=$PATH:/home/matti/work/pipeline/meshroom_2021/aliceVision/bin export LD_LIBRARY_PATH=/home/matti/work/pipeline/meshroom_2021/aliceVision/lib:$LD_LIBRARY_PATH

...before sourcing houdini in the same terminal (or set them in your bashrc/bashprofile).

image

frading commented 2 years ago

very good to know @MattiBRNDMR, thanks a lot for taking the time to write this.

I haven't tried since my issue above, as I could make progress with the standalone. But it's very encouraging that you got it working, I'll keep it in mind next time I need it.

diorn commented 2 years ago

Thank you @MattiBRNDMR for posting a solution! Will give it a try on the next Photogr project.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.