OSX 10.6.8 snow leopard

355 views
Skip to first unread message

Jeff Budsberg

unread,
Nov 1, 2012, 12:34:47 AM11/1/12
to openvd...@googlegroups.com
hi all, 
per demand at the SESI openvdb class, I wrote up a breakdown for getting vdb up and running on my macbook pro.  I hope it helps!

-jeff

------------

Macbook Pro
OSX 10.6.8 snow leopard

------GETTING STARTED
sidefx.com
download and install houdini apprentice 12.1.77 for oxs 10.6

openvdb.org
download core vdb library 0_97_0.tgz
download hooding files 0_97_0.tar

I realized I don't code on this computer at all (no gcc compiler).
However, you don't really need the massive Xcode download from apple (and it had an old gcc compiler), so just pull the compiler from here (gcc version 4.2.1 for snow leopard)
https://github.com/kennethreitz/osx-gcc-installer/blob/master/README.rst


------HOUDINI EXAMPLE SOP
export HFS=/Library/Frameworks/Houdini.framework/Resources
cd $HFS
source houdini_setup_bash
cd ~
mkdir work
cd work
cp -R $HFS/toolkit/samples .
chmod -R 777 ./samples
cd samples/SOP
hcustom SOP_Star.C
ls ~/Library/Preferences/houdini/12.1/dso
houdini
Note: make sure I can see/create sop_star


------VDB LIB
Note: create a new directory and unpack the tar in there!  OSX tries to be smart with case sensitivity, and I was having issues with OSX thinking /tmp/openvdb and /tmp/OpenVDB were the same thing.

cd /tmp
mkdir openvdb_build
cd openvdb_build
tar -xf ~/Downloads/openvdb_0_97_0_library.tar
cd openvdb

Note: makefile changes
CPPUNIT_INCL_DIR :=
CPPUNIT_LIB_DIR :=
CPPUNIT_LIB :=
GLFW_INCL_DIR :=
GLFW_LIB_DIR :=
GLFW_LIB :=

make install

openvdb.org
download a test vdb file to try out the core library
./vdb_print -m ~/Downloads/bunny.vdb


------VDB SOPS
cd $HFS
source houdini_setup_bash
cd /tmp/openvdb_build
tar -xf ~/Downloads/openvdb_0_97_0_houdini.tar
cd openvdb_houdini

Note: makefile changes
HOUDINI_INSTALL_DIR := /Users/jbudsberg/Library/Preferences/houdini/12.1/dso
HOUDINI_LDFLAGS := $(shell hcustom -m)
/Library/Frameworks/Houdini.framework/Versions/12.1.77/Houdini
-L$(OPENVDB_LIB_DIR) -lopenvdb
(remove the two instances of "-lrt" in LIBS and LIBS_RPATH

export HDSO=/Library/Frameworks/Houdini.framework/Versions/12.1.77/Libraries
make
ls ~/Library/Preferences/houdini/12.1/dso

export DYLD_LIBRARY_PATH=/tmp/OpenVDB/lib:$DYLD_LIBRARY_PATH
houdini
Note: make sure I can see/create open vdb sops (and read in the bunny)
Note: if you got this far, remember that /tmp/ gets wiped on reboot (update the install directory in the makefiles to a more permanent location and rebuild)


------RUNNING HOUDINI
edit ./bash_profile and add these lines:
export HFS=/Library/Frameworks/Houdini.framework/Resources
export HDSO=/Library/Frameworks/Houdini.framework/Versions/12.1.77/Libraries
export DYLD_LIBRARY_PATH=/tmp/OpenVDB/lib:$DYLD_LIBRARY_PATH 
(or wherever you installed)

from now on, open a new terminal, and
cd $HFS
source houdini_setup_bash
houdini


------MISSING ICONS
for some reason my icons were all busted when I installed Houdini; I
symlinked X11 and everything just works!
cd /usr
sudo ln -s X11 X11R6

Henrik

unread,
Nov 3, 2012, 11:22:41 PM11/3/12
to openvd...@googlegroups.com
Thanks!

enfezzed

unread,
Nov 20, 2012, 1:45:00 AM11/20/12
to openvd...@googlegroups.com
Hey Guys,

I'm trying 0_98_0 on Mac OS X Lion 10.7.5 (11G63), using Houdini 12.1.77.  I am using the xcode command line tools from the apple dev site, which provides this version of gcc: i686-apple-darwin11-llvm-gcc-4.2.  I can compile the HDK examples just fine ( I have sourced houdini_setup_bash).  Im following Jeff's notes verbatim

When i try to compile openvdb i get this error after a bunch of warnings:

Building libopenvdb.so.98.0 because of Grid.o and others
c++ -pthread -O3 -DNDEBUG -I . -I .. -I /Library/Frameworks/Houdini.framework/Resources/toolkit/include -I /Library/Frameworks/Houdini.framework/Resources/toolkit/include -I /Library/Frameworks/Houdini.framework/Resources/toolkit/include -shared -o libopenvdb.so.98.0 Grid.o io/Archive.o io/Compression.o io/File.o io/GridDescriptor.o io/Stream.o math/Hermite.o math/Maps.o math/Proximity.o math/QuantizedUnitVec.o math/Transform.o metadata/Metadata.o metadata/MetaMap.o Platform.o tools/LevelSetUtil.o tools/MeshToVolume.o util/Formats.o util/Util.o -ldl -lm -lz -Wl,-rpath,/Library/Frameworks/Houdini.framework/Resources/dsolib -L /Library/Frameworks/Houdini.framework/Resources/dsolib -lHalf -Wl,-rpath,/Library/Frameworks/Houdini.framework/Resources/dsolib -L /Library/Frameworks/Houdini.framework/Resources/dsolib -ltbb 
clang: warning: argument unused during compilation: '-pthread'
ld: library not found for -lHalf
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [libopenvdb.so.98.0] Error 1

Any ideas?

Cheers

Charles

koen

unread,
Nov 24, 2012, 3:15:36 PM11/24/12
to openvd...@googlegroups.com
Hey Charles, 

Did you get this compiled yet? I got the same error on the vdb lib. You can fix it by adding 

HDSO=/Library/Frameworks/Houdini.framework/Versions/12.1.77/Libraries

To the library makefile as well. I think on osx, this variable does not get set properly by sidefx.

Cheers,
kpen

enfezzed

unread,
Nov 27, 2012, 11:31:11 AM11/27/12
to openvd...@googlegroups.com
Hey Koen,

That fixed openvdb, though now im having trouble compiling the houdini nodes with this error:

Building houdini/GEO_PrimVDB.o because of GEO_PrimVDB.cc and others
c++ -c -pthread -O3 -DNDEBUG -I . -I .. -I /Library/Frameworks/Houdini.framework/Resources/toolkit/include -I /Library/Frameworks/Houdini.framework/Resources/toolkit/include -I /Library/Frameworks/Houdini.framework/Resources/toolkit/include -DVERSION=\"12.1.77\" -D_GNU_SOURCE -DMBSD -DMBSD_COCOA -DMBSD_INTEL -arch x86_64 -DAMD64 -fPIC -DSIZEOF_VOID_P=8 -DSESI_LITTLE_ENDIAN -DENABLE_THREADS -DUSE_PTHREADS -D_REENTRANT -D_FILE_OFFSET_BITS=64 -c -DGCC4 -DGCC3 -Wno-deprecated -DNEED_SPECIALIZATION_STORAGE -I/Library/Frameworks/Houdini.framework/Resources/toolkit/include -Wall -W -Wno-parentheses -Wno-sign-compare -Wno-reorder -Wno-uninitialized -Wunused -Wno-unused-parameter -O2 \
   -I /Library/Frameworks/Houdini.framework/Resources/toolkit/include -fPIC -o houdini/GEO_PrimVDB.o houdini/GEO_PrimVDB.cc
In file included from houdini/GEO_PrimVDB.cc:49:
In file included from houdini/GEO_PrimVDB.h:54:
In file included from /Library/Frameworks/Houdini.framework/Resources/toolkit/include/GEO/GEO_Primitive.h:30:
In file included from /Library/Frameworks/Houdini.framework/Resources/toolkit/include/GA/GA_Primitive.h:24:
In file included from /Library/Frameworks/Houdini.framework/Resources/toolkit/include/GA/GA_Detail.h:22:
In file included from /Library/Frameworks/Houdini.framework/Resources/toolkit/include/GA/GA_ATIGBPoint.h:24:
In file included from /Library/Frameworks/Houdini.framework/Resources/toolkit/include/GA/GA_Attribute.h:23:
In file included from /Library/Frameworks/Houdini.framework/Resources/toolkit/include/GA/GA_Iterator.h:24:
In file included from /Library/Frameworks/Houdini.framework/Resources/toolkit/include/GA/GA_Range.h:22:
In file included from /Library/Frameworks/Houdini.framework/Resources/toolkit/include/GA/GA_RangeTypeInterface.h:24:
In file included from /Library/Frameworks/Houdini.framework/Resources/toolkit/include/SYS/SYS_AtomicInt.h:24:
/Library/Frameworks/Houdini.framework/Resources/toolkit/include/SYS/SYS_AtomicImpl.h:114:1: error: explicit specialization has extraneous, inconsistent storage
      class 'static'
test_and_set<int32>(int32 *addr, int32 val)
^
/Library/Frameworks/Houdini.framework/Resources/toolkit/include/SYS/SYS_AtomicImpl.h:125:1: error: explicit specialization has extraneous, inconsistent storage
      class 'static'
test_and_add<int32>(int32 *addr, int32 val)
^
/Library/Frameworks/Houdini.framework/Resources/toolkit/include/SYS/SYS_AtomicImpl.h:132:1: error: explicit specialization has extraneous, inconsistent storage
      class 'static'
compare_and_swap<int32>(volatile int32 *addr, int32 oldval, int32 newval)
^
/Library/Frameworks/Houdini.framework/Resources/toolkit/include/SYS/SYS_AtomicImpl.h:140:1: error: explicit specialization has extraneous, inconsistent storage
      class 'static'
test_and_set<int64>(int64 *addr, int64 val)
^
/Library/Frameworks/Houdini.framework/Resources/toolkit/include/SYS/SYS_AtomicImpl.h:148:1: error: explicit specialization has extraneous, inconsistent storage
      class 'static'
test_and_add<int64>(int64 *addr, int64 val)
^
/Library/Frameworks/Houdini.framework/Resources/toolkit/include/SYS/SYS_AtomicImpl.h:156:1: error: explicit specialization has extraneous, inconsistent storage
      class 'static'
compare_and_swap<int64>(volatile int64 *addr, int64 oldval, int64 newval)


I noticed another post with the same error, and Ken mentioned something about sidefx fixing this.  Have you run into this and what did you do to get around it if so.

koen

unread,
Jan 10, 2013, 9:29:20 PM1/10/13
to openvd...@googlegroups.com
Hey Charles,

Sorry for the late reply. I only recently upgraded to mountain lion and ran
into this. I did not get this error anymore after uninstalling xcode and
installing the gcc package from here:
https://github.com/kennethreitz/osx-gcc-installer

Not sure if that is an option for you.

Cheers,
koen
Reply all
Reply to author
Forward
0 new messages