Compiling Problem Mac OS 10.6.4

   4873   4   1
User Avatar
Member
4 posts
Joined: Dec. 2010
Offline
Hi,

I'm trying to compile SOP_Star.C, but unfortunately it is failing to compile. I'm running Mac OS 10.6.4 and Xcode 3.2.5. My Houdini build is 11.0.581. I've tried uninstalling and reinstalling Houdini, but that didn't seem to help. Here's what I entered into the Houdini Shell to attempt to compile SOP_Star.C

Workstation4:Resources michaelmcneff$ cd $HFS/toolkit/samples/SOP
Workstation4OP michaelmcneff$ hcustom SOP_Star.C
Making SOP_Star.o and /Users/michaelmcneff/Library/Preferences/houdini/11.0/dso/SOP_Star.dylib from SOP_Star.C
/var/folders/8L/8LewdpRpGNKMbvCGnvcvpU+++TI/-Tmp-//ccpkU4ks.s:unknown:FATAL:can't create output file: SOP_Star.o
Compile failed
Workstation4OP michaelmcneff$

I don't have a programming background and I've only used the Terminal window on a few occasions so if you can keep things in layman's terms I would appreciate it.

Thanks for your help!
Michael
User Avatar
Staff
4259 posts
Joined: Sept. 2007
Offline
It's because you're writing to a directory where you don't have write permissions. Copy the files to a folder of yours, and try it from there.
I'm o.d.d.
User Avatar
Member
4 posts
Joined: Dec. 2010
Offline
goldleaf
It's because you're writing to a directory where you don't have write permissions. Copy the files to a folder of yours, and try it from there.

Hey Goldleaf,

Awesome! Thanks for the info. Yes, you were correct. I was unable to write to that directory.

To solve it I went to /Library/Frameworks and copied the folder Houdini.framework to a folder on my desktop called “mine”. Then I opened up the Terminal wan ran chmod -R 777 <path to “mine”> This changed all the permissions of the directories and sub-directories to read-write that are in the “mine” folder. Then I took my new read-write Houndini.framework folder from my desktop and replaced the original Houdini.framework folder with my new read-write enabled one.

Then I ran SOP_Star.C but I got an error. The error said that it couldn't find the directory /Library/Frameworks/Houdini.framework/Versions/11.0.581/Resources/Frameworks
So I just created a folder named “Frameworks” in my “Resources” folder. Then I ran SOP_Star.C and it finally worked.

Now I'm going to try to compile HOT.

Thanks again Goldleaf.

Cheers,
Michael
User Avatar
Member
4 posts
Joined: Dec. 2010
Offline
Okay, so now that I know that my hdk is working (thanks to SOP_Star.C) I'm trying to compile HOT from source code for Mac OS 10.6.4 and Houdini 11.0.581. I was able successfully run ./build_osx.sh via the mac terminal window. Then from the mac terminal window I ran the following to try to compile HOT and got the following error

Workstation4:src michaelmcneff$ python setup.py bdist
—> pavement.bdist
—> pavement.build
—> pavement.clean
—> pavement.build_sop_cleavehttp://forums.odforce.net/public/style_images/master/rte_icons/font_color.png [forums.odforce.net]
hcustom -e -I 3rdparty/osx/include -I 3rdparty/include -L 3rdparty/osx/lib -l blitz -l fftw3f -i . SOP_Cleave.C
/bin/sh: hcustom: command not found



Captured Task Output:
———————

—> pavement.bdist
—> pavement.build
—> pavement.clean
—> pavement.build_sop_cleave
hcustom -e -I 3rdparty/osx/include -I 3rdparty/include -L 3rdparty/osx/lib -l blitz -l fftw3f -i . SOP_Cleave.C
/bin/sh: hcustom: command not found


Build failed running pavement.bdist: Subprocess return code: 127
Workstation4:src michaelmcneff$

After getting that error I tried to compile HOT via the Houdini Shell which seemed to give me a better result (though I still can't seem to get HOT to work.) Please let me know if you have any ideas. Thanks!

Last login: Tue Dec 28 12:43:11 on ttys000
cd /Library/Frameworks/Houdini.framework/Versions/11.0.581/Resources;source houdini_setup
Workstation4:~ michaelmcneff$ cd /Library/Frameworks/Houdini.framework/Versions/11.0.581/Resources;source houdini_setup
The Houdini 11.0.581 environment has been initialized.
Workstation4:Resources michaelmcneff$ cd /Users/michaelmcneff/Desktop/source/src
Workstation4:src michaelmcneff$ python setup.py bdist
—> pavement.bdist
—> pavement.build
—> pavement.clean
—> pavement.build_sop_cleave
hcustom -e -I 3rdparty/osx/include -I 3rdparty/include -L 3rdparty/osx/lib -l blitz -l fftw3f -i . SOP_Cleave.C
Linking with ‘libblitz’
Linking with ‘libfftw3f’
Install directory = ‘.’
g++ -DUT_DSO_TAGINFO='“3262197cbf1f40172ba708844a399ff92d48f5c7c030d2b727f789515844b5c237912681d332772a5d6ccee72a8a78500eaaf55fa1d8f944274378f813afc2ac49a645b1ed885c84b934980855aa31ec814ed5f0cfa2d924b3f65f014d4ae141f25ded419a3ee437cdc3abae8d”' -DVERSION=\“11.0.581\” -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 -I3rdparty/osx/include -I3rdparty/include -DGCC4 -DGCC3 -Wno-deprecated -DNEED_SPECIALIZATION_STORAGE -I/Library/Frameworks/Houdini.framework/Versions/11.0.581/Resources/toolkit/include -I/Library/Frameworks/Houdini.framework/Versions/11.0.581/Resources/toolkit/include/htools -Wall -W -Wno-parentheses -Wno-sign-compare -Wno-reorder -Wno-uninitialized -Wunused -Wno-unused-parameter -O2 -DMAKING_DSO -o SOP_Cleave.o SOP_Cleave.C

g++ -bundle SOP_Cleave.o -arch x86_64 -fobjc-gc-only -I3rdparty/osx/include -I3rdparty/include -L3rdparty/osx/lib -lblitz -lfftw3f -framework OpenGL -framework Cocoa -rpath,@loader_path/Libraries -Wl,-rpath,/Library/Frameworks/Houdini.framework/Versions/11.0.581/Libraries -L/Library/Frameworks/Houdini.framework/Versions/11.0.581/Libraries -F/Library/Frameworks/Houdini.framework/Versions/11.0.581/Resources/Frameworks -framework Houdini -o ./SOP_Cleave.dylib
—> pavement.build_sop_ocean
hcustom -e -I 3rdparty/osx/include -I 3rdparty/include -L 3rdparty/osx/lib -l blitz -l fftw3f -i . SOP_Ocean.C
Linking with ‘libblitz’
Linking with ‘libfftw3f’
Install directory = ‘.’
g++ -DUT_DSO_TAGINFO='“3262197cbf1f40172ba708844a399ff92d48f5c7c030d2b727f789515844b5c237912681d332772a5d6ccee72a8a78500eaaf55fa1d8f944274378f813afc2ac49a645b1ed885c84b934940855aa31ec814ed5f0cfa2d924b3f65f014d4ae141f25ded419a3ee437cdc3abae8d”' -DVERSION=\“11.0.581\” -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 -I3rdparty/osx/include -I3rdparty/include -DGCC4 -DGCC3 -Wno-deprecated -DNEED_SPECIALIZATION_STORAGE -I/Library/Frameworks/Houdini.framework/Versions/11.0.581/Resources/toolkit/include -I/Library/Frameworks/Houdini.framework/Versions/11.0.581/Resources/toolkit/include/htools -Wall -W -Wno-parentheses -Wno-sign-compare -Wno-reorder -Wno-uninitialized -Wunused -Wno-unused-parameter -O2 -DMAKING_DSO -o SOP_Ocean.o SOP_Ocean.C

g++ -bundle SOP_Ocean.o -arch x86_64 -fobjc-gc-only -I3rdparty/osx/include -I3rdparty/include -L3rdparty/osx/lib -lblitz -lfftw3f -framework OpenGL -framework Cocoa -rpath,@loader_path/Libraries -Wl,-rpath,/Library/Frameworks/Houdini.framework/Versions/11.0.581/Libraries -L/Library/Frameworks/Houdini.framework/Versions/11.0.581/Libraries -F/Library/Frameworks/Houdini.framework/Versions/11.0.581/Resources/Frameworks -framework Houdini -o ./SOP_Ocean.dylib
—> pavement.build_vex_ocean
hcustom -e -I 3rdparty/osx/include -I 3rdparty/include -L 3rdparty/osx/lib -l blitz -l fftw3f -i . VEX_Ocean.C
Linking with ‘libblitz’
Linking with ‘libfftw3f’
Install directory = ‘.’
g++ -DUT_DSO_TAGINFO='“3262197cbf1f40172ba708844a399ff92d48f5c7c030d2b727f789515844b5c237912681d332772a5d6ccee72a8a78500eaaf55fa1d8f944274378f813afc2ac49a645b1ed885c84b9359b0855aa31ec814ed5f0cfa2d924b3f65f014d4ae141f25ded419a3ee437cdc3abae8d”' -DVERSION=\“11.0.581\” -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 -I3rdparty/osx/include -I3rdparty/include -DGCC4 -DGCC3 -Wno-deprecated -DNEED_SPECIALIZATION_STORAGE -I/Library/Frameworks/Houdini.framework/Versions/11.0.581/Resources/toolkit/include -I/Library/Frameworks/Houdini.framework/Versions/11.0.581/Resources/toolkit/include/htools -Wall -W -Wno-parentheses -Wno-sign-compare -Wno-reorder -Wno-uninitialized -Wunused -Wno-unused-parameter -O2 -DMAKING_DSO -o VEX_Ocean.o VEX_Ocean.C

g++ -bundle VEX_Ocean.o -arch x86_64 -fobjc-gc-only -I3rdparty/osx/include -I3rdparty/include -L3rdparty/osx/lib -lblitz -lfftw3f -framework OpenGL -framework Cocoa -rpath,@loader_path/Libraries -Wl,-rpath,/Library/Frameworks/Houdini.framework/Versions/11.0.581/Libraries -L/Library/Frameworks/Houdini.framework/Versions/11.0.581/Libraries -F/Library/Frameworks/Houdini.framework/Versions/11.0.581/Resources/Frameworks -framework Houdini -o ./VEX_Ocean.dylib
makedirs hotdist (mode 511)
cd hotdist
makedirs dso (mode 511)
makedirs config (mode 511)
makedirs config/Icons (mode 511)
makedirs vex (mode 511)
makedirs otls (mode 511)
cd /Users/michaelmcneff/Desktop/source/src
copy SOP_Cleave.dylib hotdist/dso/SOP_Cleave.dylib
copy SOP_Ocean.dylib hotdist/dso/SOP_Ocean.dylib
copy VEX_Ocean.dylib hotdist/dso/VEX_Ocean.dylib
copy ./SOP_Ocean.png hotdist/config/Icons/./SOP_Ocean.png
copy ./SOP_Cleave.icon hotdist/config/Icons/./SOP_Cleave.icon
copy ../otls/HOT.otl hotdist/otls
copytree ../examples hotdist/examples
rename hotdist to hotbin_osx_H11.0.581_1.0rc9
rmtree hotbin_osx_H11.0.581_1.0rc9 () {}
Workstation4:src michaelmcneff$
User Avatar
Member
4 posts
Joined: Dec. 2010
Offline
Solved! Thanks for the help Goldleaf.

When I compiled the source code it created a binary distribution. I opened that up and manually copied over the files and HOT started working. I'll post the binary distribution of H11.0.581 on the odforce forum as soon as I can figure out how to attache files to posts on that forum.

Thanks again.
  • Quick Links