HDK: compile 32-bit on 64-bit linux

   2785   0   0
User Avatar
Member
83 posts
Joined: 7月 2005
Offline
this is also posted at odforum

I am trying to compile a 32-bit DSO on a 64-bit machine. I've hacked the hcustom script with the following:
else if ( $?AMD64 ) then
set SYSTEMDEFS = “-m32 -fPIC”
set OSLFLAGS = “-m32”

works niceley on a machine at work. Now, I try and compile on my home machine.
I had to add a -I/32_bit/usr/include/ to the compile line, and now the linker chokes:

/usr/bin/ld: crti.o: No such file: No such file or directory


and locate crti.o gives 2 results:

/32_bit/usr/lib/crti.o
/usr/lib64/crti.o

I have tried adding -L /32_bit/usr/lib/ to the compile line, no dice. same error.

any ideas?
  • Quick Links