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

similar problem #22

Open
spider-fly opened this issue Oct 10, 2023 · 0 comments
Open

similar problem #22

spider-fly opened this issue Oct 10, 2023 · 0 comments

Comments

@spider-fly
Copy link

(Pano3D) fwj1@DESKTOP-60FGQL8:/mnt/d/wsl/pano/DeepPanoContext-main$ python project.py build
Building gaps...
Run: cd external && bash build_gaps.sh

CD inside the ldif/ldif python package

cd ldif

This should create a gaps/ folder at ldif/ldif/gaps/

if [[ -d gaps ]]
then
echo "GAPS has already been cloned to ldif/ldif/gaps, skipping."
else
git clone https://github.com/tomfunkhouser/gaps.git
fi

Necessary dependencies:

Figure out whether we are on MacOS or Linux:

if [[ $(uname -s) == Darwin* ]]
then
echo "On MacOS, GL dependencies should have shipped and OSMesa support is disabled."
else

On linux, the packages need to be installed.

sudo apt-get install mesa-common-dev libglu1-mesa-dev libosmesa6-dev libxi-dev libgl1-mesa-dev

For some reason on Ubuntu there can be a broken link from /usr/lib/x86_64-linux-gnu/libGL.so

to libGL.so.1.2.0 in the same directory, which does not exist. However libgl1-mesa-glx should

provide libGL.so.1.2.0. Reinstalling libgl1-mesa-glx results in libGL.so.1.2.0 correctly

existing in /usr/lib/x86_64-linux-gnu as it should.

sudo apt-get install --reinstall libgl1-mesa-glx
fi

If the above command(s) fail, get the GL/gl.h and GL/glu.h headers, OSMesa and GL

static libraries (osmesa on macos), delete the above code, and try again.

Now apply customizations to GAPS:

This should make a copy of the qview folder at ldif/ldif/gaps/apps/qview/

if [[ -d gaps/apps/qview ]]
then
echo "qview has already been copied into ldif/ldif/gaps/qview, skipping."
else
cp -R ./qview gaps/apps/
fi

Everything is local to GAPS from this point:

cd gaps

Ptsview and qview aren't built by default, adjust the makefile to build them.

sed commands are for script idempotency

sed -i.bak '/ptsview/d' ./apps/Makefile
sed -i.bak '/qview/d' ./apps/Makefile
echo " cd ptsview; $(MAKE) $(TARGET)" >> ./apps/Makefile
echo " cd qview; $(MAKE) $(TARGET)" >> ./apps/Makefile

Make GAPS (assuming 8 threads):

On MacOS, using OSMesa is more difficult, so we don't

if [[ ! $(uname -s) == Darwin* ]]
then
make mesa -j8
else
make -j8
fi
Building pyfusion...
Run: cd external/mesh_fusion/libfusiongpu && mkdir -p build && cd build && cmake .. && make && cd .. && /home/fwj1/anaconda3/envs/Pano3D/bin/python setup.py build_ext --inplace
nvcc fatal : Unsupported gpu architecture 'compute_30'
CMake Error at fusion_gpu_generated_fusion_zach_tvl1.cu.o.Release.cmake:219 (message):
Error generating
/mnt/d/wsl/pano/DeepPanoContext-main/external/mesh_fusion/libfusiongpu/build/CMakeFiles/fusion_gpu.dir//./fusion_gpu_generated_fusion_zach_tvl1.cu.o

make[2]: *** [CMakeFiles/fusion_gpu.dir/fusion_gpu_generated_fusion_zach_tvl1.cu.o] Error 1
make[1]: *** [CMakeFiles/fusion_gpu.dir/all] Error 2
make: *** [all] Error 2
Traceback (most recent call last):
File "project.py", line 166, in
globals()args.work
File "project.py", line 113, in build
subprocess.check_output(cmd, shell=True)
File "/home/fwj1/anaconda3/envs/Pano3D/lib/python3.7/subprocess.py", line 411, in check_output
**kwargs).stdout
File "/home/fwj1/anaconda3/envs/Pano3D/lib/python3.7/subprocess.py", line 512, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command 'cd external/mesh_fusion/libfusiongpu && mkdir -p build && cd build && cmake .. && make && cd .. && /home/fwj1/anaconda3/envs/Pano3D/bin/python setup.py build_ext --inplace' returned non-zero exit status 2.

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

1 participant