photoshape icon indicating copy to clipboard operation
photoshape copied to clipboard

building Photoshapes in Aug 2020

Open mali-tintash opened this issue 4 years ago • 9 comments

There have been some changes around dependencies, I had a difficult time getting it to run. So I am sharing the changes I made to run Photoshapes.

Requirements file

aiocache==0.8.0
aiohttp==3.1.2
aiohttp-jinja2==0.16.0
attrs==17.4.0
click==6.7
Cython==0.27.3
decorator==4.2.1
Jinja2==2.10
jupyter==1.0.0
lmdb==0.94
matplotlib==2.1.2
msgpack==0.5.6
multidict==4.1.0
numpy==1.14.6
#opencv-python==3.4.0.12
opencv-python==3.4.2.17
parso==0.1.1
pexpect==4.4.0
pickleshare==0.7.4
Pillow==5.1.0
prompt-toolkit==1.0.15
#psycopg2-binary==2.4.7
psycopg2-binary
ptyprocess==0.5.2
#pydensecrf==1.0rc2
Pygments==2.2.0
#PyOpenGL==3.1.1
PyOpenGL==3.1.1a1
pyparsing==2.2.0
python-dateutil==2.6.1
pytz==2017.3
#scikit-image==0.14.dev0
scikit-image==0.14.0
scikit-learn==0.19.2
#scipy==1.0.0
scipy==1.1.0
seaborn==0.9.0
Send2Trash==1.5.0
simplegeneric==0.8.1
six==1.11.0
SQLAlchemy==1.2.2
structlog==18.1.0
testpath==0.3.1
#torch==0.4.0
#torch==0.4.1
torch==0.4.1.post2	
torchfile==0.1.0
-e git+https://github.com/pytorch/tnt.git@33677fd4ccdadac4f5e272370a4afc24eaa4f55e#egg=torchnet
torchvision==0.2.0
tornado==5.0.1
tqdm==4.19.5
traitlets==4.3.2
ujson==1.35
uvloop==0.9.1
visdom==0.1.7

CMake >= 3.16 required. https://graspingtech.com/upgrade-cmake/

You will need libavdevice-dev sudo apt-get install libavdevice-dev

Procedure to follow for blender

mkdir blender-git
cd blender-git
git clone git://git.blender.org/blender.git
cd blender

execute

_**It only works with blender2.7**_
git checkout blender2.7

and keep following the guide as usual

git submodule update --init --recursive
git submodule foreach git checkout master
git submodule foreach git pull --rebase origin master

followed by

make update

./blender/build_files/build_environment/install_deps.sh --source ./ --threads=4 --with-all --skip-osd --skip-ffmpeg

mkdir build_a
cd build_a

cmake -D WITH_CODEC_SNDFILE=ON \
  -D PYTHON_VERSION=3.7 \
  -D WITH_OPENCOLORIO=ON \
  -D OPENCOLORIO_ROOT_DIR=/opt/lib/ocio \
  -D WITH_OPENIMAGEIO=ON \
  -D OPENIMAGEIO_ROOT_DIR=/opt/lib/oiio \
  -D WITH_CYCLES_OSL=ON \
  -D WITH_LLVM=ON \
  -D LLVM_VERSION=6.0 \
  -D OSL_ROOT_DIR=/opt/lib/osl \
  -D WITH_OPENVDB=ON \
  -D WITH_OPENVDB_BLOSC=ON \
  -D OPENVDB_ROOT_DIR=/opt/lib/openvdb \
  -D BLOSC_ROOT_DIR=/opt/lib/blosc \
  -D WITH_OPENCOLLADA=ON \
  -D OPENCOLLADA_ROOT_DIR=/opt/lib/opencollada \
  -D WITH_CYCLES_EMBREE=ON \
  -D EMBREE_ROOT_DIR=/opt/lib/embree \
  -D WITH_JACK=ON \
  -D WITH_JACK_DYNLOAD=ON \
  -D WITH_ALEMBIC=ON \
  -D ALEMBIC_ROOT_DIR=/opt/lib/alembic \
  -DPYTHON_ROOT_DIR=~/.pyenv/versions/3.7.1 ../blender

  make -j4 
  make install

  cd ..
  mkdir build2
  cd build2
  cmake \
  -DPYTHON_VERSION=3.7.1 \
  -DPYTHON_ROOT_DIR=$(pyenv prefix) \
  -DCMAKE_INSTALL_PREFIX=$(pyenv prefix)/lib/python3.7/site-packages \
  -DWITH_CYCLES=ON \
  -DWITH_GAMENGINE=OFF \
  -DWITH_IMAGE_HDR=ON \
  -DWITH_IMAGE_OPENEXR=ON \
  -DWITH_IMAGE_TIFF=ON \
  -DWITH_OPENCOLLADA=OFF \
  -DWITH_OPENMP=ON \
  -DWITH_OPENIMAGEIO=ON \
  -DWITH_PYTHON_INSTALL=OFF \
  -DWITH_PYTHON_MODULE=ON \
  -DPYTHON_LIBRARY=$(pyenv virtualenv-prefix)/lib/libpython3.7m.so \
  -DPYTHON_LIBPATH=$(pyenv virtualenv-prefix)/lib \
  -DPYTHON_INCLUDE_DIR=$(pyenv virtualenv-prefix)/include/python3.7m \
  ../blender

  make -j4

  make install

mali-tintash avatar Aug 11 '20 10:08 mali-tintash

Hi Muhammad,

Thanks for getting this to work and documenting it! I'm also happy to merge pull requests if you'd like to package this up into one.

keunhong avatar Aug 11 '20 21:08 keunhong

I still have something wrong with my blender, can we talk more about it?

XiangyuSu611 avatar Sep 06 '20 06:09 XiangyuSu611

I still have something wrong with my blender, can we talk more about it?

What issue are you facing with blender?

mali-tintash avatar Sep 08 '20 04:09 mali-tintash

I still have something wrong with my blender, can we talk more about it?

What issue are you facing with blender? Thank you for your reply!

When I try to execute the file install_deps.sh, some libraries can‘t compile correctly, such as osl, openvdb, usd, embree, and openimagedenoise. I will show you some pictures.

osl ->image

openvdb->
image image

usd-> image

embree-> image

Openimagedenoise-> image

XiangyuSu611 avatar Sep 08 '20 05:09 XiangyuSu611

I still have something wrong with my blender, can we talk more about it?

What issue are you facing with blender? Thank you for your reply!

When I try to execute the file install_deps.sh, some libraries can‘t compile correctly, such as osl, openvdb, usd, embree, and openimagedenoise. I will show you some pictures.

osl ->image

openvdb-> image image

usd-> image

embree-> image

Openimagedenoise-> image

Those images are very small to be readable.

P.s The steps I provided are for Ubuntu which is a debian based Linux distro. Which Flavor of linux are you using ?

mali-tintash avatar Sep 08 '20 06:09 mali-tintash

I still have something wrong with my blender, can we talk more about it?

What issue are you facing with blender? Thank you for your reply!

When I try to execute the file install_deps.sh, some libraries can‘t compile correctly, such as osl, openvdb, usd, embree, and openimagedenoise. I will show you some pictures. osl ->image openvdb-> image image usd-> image embree-> image Openimagedenoise-> image

Those images are very small to be readable.

P.s The steps I provided are for Ubuntu which is a debian based Linux distro. Which Flavor of linux are you using ?

My linux OS is Ubuntu 16.04. I am not sure if it is consistent with the operation of your version. If convenient, we can communicate via email. Maybe I can show you more details. Thanks!!!

XiangyuSu611 avatar Sep 08 '20 07:09 XiangyuSu611

I'd suggest you try the same procedure on Ubuntu 18 first. And see if it works.

On Tue, Sep 8, 2020, 12:28 PM XiangyuSu611 [email protected] wrote:

I still have something wrong with my blender, can we talk more about it?

What issue are you facing with blender? Thank you for your reply!

When I try to execute the file install_deps.sh, some libraries can‘t compile correctly, such as osl, openvdb, usd, embree, and openimagedenoise. I will show you some pictures. osl ->[image: image] https://user-images.githubusercontent.com/34934357/92436471-5b491400-f1d7-11ea-979e-121965894d5d.png openvdb-> [image: image] https://user-images.githubusercontent.com/34934357/92436559-8af81c00-f1d7-11ea-82b3-f7f8af7262b7.png [image: image] https://user-images.githubusercontent.com/34934357/92436563-8f243980-f1d7-11ea-9cf2-7393d00cdd5c.png usd-> [image: image] https://user-images.githubusercontent.com/34934357/92436580-9a776500-f1d7-11ea-8994-6640de0b6916.png embree-> [image: image] https://user-images.githubusercontent.com/34934357/92436605-a7945400-f1d7-11ea-90c8-6984bf225011.png Openimagedenoise-> [image: image] https://user-images.githubusercontent.com/34934357/92436632-b67b0680-f1d7-11ea-8369-c4f7cb14aa2a.png

Those images are very small to be readable.

P.s The steps I provided are for Ubuntu which is a debian based Linux distro. Which Flavor of linux are you using ?

My linux OS is Ubuntu 16.04. I am not sure if it is consistent with the operation of your version. If convenient, we can communicate via email. Maybe I can show you more details. Thanks!!!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/keunhong/photoshape/issues/12#issuecomment-688676230, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMU52MGOKBVKSUZFTJNQ5U3SEXMJFANCNFSM4P247VDA .

mali-tintash avatar Sep 08 '20 07:09 mali-tintash

I'd suggest you try the same procedure on Ubuntu 18 first. And see if it works. On Tue, Sep 8, 2020, 12:28 PM XiangyuSu611 @.***> wrote: I still have something wrong with my blender, can we talk more about it? What issue are you facing with blender? Thank you for your reply! When I try to execute the file install_deps.sh, some libraries can‘t compile correctly, such as osl, openvdb, usd, embree, and openimagedenoise. I will show you some pictures. osl ->[image: image] https://user-images.githubusercontent.com/34934357/92436471-5b491400-f1d7-11ea-979e-121965894d5d.png openvdb-> [image: image] https://user-images.githubusercontent.com/34934357/92436559-8af81c00-f1d7-11ea-82b3-f7f8af7262b7.png [image: image] https://user-images.githubusercontent.com/34934357/92436563-8f243980-f1d7-11ea-9cf2-7393d00cdd5c.png usd-> [image: image] https://user-images.githubusercontent.com/34934357/92436580-9a776500-f1d7-11ea-8994-6640de0b6916.png embree-> [image: image] https://user-images.githubusercontent.com/34934357/92436605-a7945400-f1d7-11ea-90c8-6984bf225011.png Openimagedenoise-> [image: image] https://user-images.githubusercontent.com/34934357/92436632-b67b0680-f1d7-11ea-8369-c4f7cb14aa2a.png Those images are very small to be readable. P.s The steps I provided are for Ubuntu which is a debian based Linux distro. Which Flavor of linux are you using ? My linux OS is Ubuntu 16.04. I am not sure if it is consistent with the operation of your version. If convenient, we can communicate via email. Maybe I can show you more details. Thanks!!! — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#12 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMU52MGOKBVKSUZFTJNQ5U3SEXMJFANCNFSM4P247VDA .

Thank you! I will try it later!

XiangyuSu611 avatar Sep 08 '20 11:09 XiangyuSu611

I still have something wrong with my blender, can we talk more about it?

What issue are you facing with blender?

Hi! There is still something wrong with my blender. Maybe caused by boost, do you remember the boost version used at the time?

XiangyuSu611 avatar Sep 17 '20 13:09 XiangyuSu611