[vtkusers] can't build VTK 5.2.0 on Leopard 10.5

chris cdcasey at gmail.com
Mon Nov 17 18:11:31 EST 2008


Possibly solved... ftmac.c has a line that defines ResourceIndex if
MAC_OS_X_VERSION_10_5 is true. However, there's a function
FT_New_Face_From_Suitcase that uses ResourceIndex regardelss. I'm
using the 10.4 SDK to build things (so I can deploy on 10.4), and
removing the dependence on it allows the build to proceed (at 21% now,
anyway).

So this begs the question, how can VTK be built on 10.4 with this
definition on place? Or rather, how can it be built on 10.5 so that it
is deployable on 10.4?

Thanks,
-Chris

On Mon, Nov 17, 2008 at 4:17 PM, chris <cdcasey at gmail.com> wrote:
> It's not obvious :-). Looks like it has something to do with ftmac
> (freetype?). Here's the section that *looks* relevant (I didn't want
> to include all 900+ lines):
>
> <stuff>
> ...
>
> [  1%] Built target vtkpng
> make -f Utilities/vtklibxml2/CMakeFiles/vtklibxml2.dir/build.make
> Utilities/vtklibxml2/CMakeFiles/vtklibxml2.dir/depend
> cd /Users/chris/Documents/VTK && "/Applications/CMake
> 2.6-2.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles"
> /Users/chris/Documents/VTK
> /Users/chris/Documents/VTK/Utilities/vtklibxml2
> /Users/chris/Documents/VTK
> /Users/chris/Documents/VTK/Utilities/vtklibxml2
> /Users/chris/Documents/VTK/Utilities/vtklibxml2/CMakeFiles/vtklibxml2.dir/DependInfo.cmake
> --color=
> Dependee "/Users/chris/Documents/VTK/Utilities/vtklibxml2/CMakeFiles/vtklibxml2.dir/DependInfo.cmake"
> is newer than depender
> "/Users/chris/Documents/VTK/Utilities/vtklibxml2/CMakeFiles/vtklibxml2.dir/depend.internal".
> Scanning dependencies of target vtklibxml2
> make -f Utilities/vtklibxml2/CMakeFiles/vtklibxml2.dir/build.make
> Utilities/vtklibxml2/CMakeFiles/vtklibxml2.dir/build
> "/Applications/CMake 2.6-2.app/Contents/bin/cmake" -E
> cmake_progress_report /Users/chris/Documents/VTK/CMakeFiles
> [  1%] Building C object
> Utilities/vtklibxml2/CMakeFiles/vtklibxml2.dir/DOCBparser.o
> cd /Users/chris/Documents/VTK/Utilities/vtklibxml2 && /usr/bin/gcc
> -DVTK_IN_VTK -DHAVE_CONFIG_H -D_GNU_SOURCE -DPIC -D_REENTRANT
> -Dvtklibxml2_EXPORTS -arch ppc -arch i386 -isysroot
> /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4  -w -fPIC
> -I/Users/chris/Documents/VTK/Utilities/vtklibxml2
> -I/Users/chris/Documents/VTK -I/Users/chris/Documents/VTK/Common
> -I/Users/chris/Documents/VTK/Utilities
> -I/Users/chris/Documents/VTK/VolumeRendering
> -I/Users/chris/Documents/VTK/Rendering
> -I/Users/chris/Documents/VTK/Infovis
> -I/Users/chris/Documents/VTK/Views -I/Users/chris/Documents/VTK/Hybrid
> -I/Users/chris/Documents/VTK/Widgets
> -I/Users/chris/Documents/VTK/Rendering/Testing/Cxx
> -I/Users/chris/Documents/VTK/IO -I/Users/chris/Documents/VTK/Imaging
> -I/Users/chris/Documents/VTK/Graphics
> -I/Users/chris/Documents/VTK/GenericFiltering
> -I/Users/chris/Documents/VTK/Filtering
> -I/Users/chris/Documents/VTK/Common/Testing/Cxx
> -I/Users/chris/Documents/VTK/Utilities/DICOMParser
> -I/Users/chris/Documents/VTK/Utilities/vtkfreetype/include
> -I/Users/chris/Documents/VTK/Utilities/vtknetcdf
> -I/Users/chris/Documents/VTK/Utilities/vtkexodus2/include
> -I/Users/chris/Documents/VTK/Utilities/MaterialLibrary
> -I/Users/chris/Documents/VTK/Utilities/verdict
> -I/Users/chris/Documents/VTK/Utilities/gl2ps
> -I/Users/chris/Documents/VTK/Utilities/ftgl/src
> -I/Users/chris/Documents/VTK/Utilities/ftgl
> -I/Users/chris/Documents/VTK/Utilities/TclTk/internals/tk8.4
> -I/System/Library/Frameworks/Tcl.framework/Headers
> -I/Library/Frameworks/Python.framework/Versions/Current/Headers
> -I/System/Library/Frameworks/Tk.framework/Headers   -o
> CMakeFiles/vtklibxml2.dir/DOCBparser.o   -c
> /Users/chris/Documents/VTK/Utilities/vtklibxml2/DOCBparser.c
> "/Applications/CMake 2.6-2.app/Contents/bin/cmake" -E
> cmake_progress_report /Users/chris/Documents/VTK/CMakeFiles
> [  1%] Building C object
> Utilities/vtklibxml2/CMakeFiles/vtklibxml2.dir/HTMLparser.o
> cd /Users/chris/Documents/VTK/Utilities/vtklibxml2 && /usr/bin/gcc
> -DVTK_IN_VTK -DHAVE_CONFIG_H -D_GNU_SOURCE -DPIC -D_REENTRANT
> -Dvtklibxml2_EXPORTS -arch ppc -arch i386 -isysroot
> /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4  -w -fPIC
> -I/Users/chris/Documents/VTK/Utilities/vtklibxml2
> -I/Users/chris/Documents/VTK -I/Users/chris/Documents/VTK/Common
> -I/Users/chris/Documents/VTK/Utilities
> -I/Users/chris/Documents/VTK/VolumeRendering
> -I/Users/chris/Documents/VTK/Rendering
> -I/Users/chris/Documents/VTK/Infovis
> -I/Users/chris/Documents/VTK/Views -I/Users/chris/Documents/VTK/Hybrid
> -I/Users/chris/Documents/VTK/Widgets
> -I/Users/chris/Documents/VTK/Rendering/Testing/Cxx
> -I/Users/chris/Documents/VTK/IO -I/Users/chris/Documents/VTK/Imaging
> -I/Users/chris/Documents/VTK/Graphics
> -I/Users/chris/Documents/VTK/GenericFiltering
> -I/Users/chris/Documents/VTK/Filtering
> -I/Users/chris/Documents/VTK/Common/Testing/Cxx
> -I/Users/chris/Documents/VTK/Utilities/DICOMParser
> -I/Users/chris/Documents/VTK/Utilities/vtkfreetype/include
> -I/Users/chris/Documents/VTK/Utilities/vtknetcdf
> -I/Users/chris/Documents/VTK/Utilities/vtkexodus2/include
> -I/Users/chris/Documents/VTK/Utilities/MaterialLibrary
> -I/Users/chris/Documents/VTK/Utilities/verdict
> -I/Users/chris/Documents/VTK/Utilities/gl2ps
> -I/Users/chris/Documents/VTK/Utilities/ftgl/src
> -I/Users/chris/Documents/VTK/Utilities/ftgl
> -I/Users/chris/Documents/VTK/Utilities/TclTk/internals/tk8.4
> -I/System/Library/Frameworks/Tcl.framework/Headers
> -I/Library/Frameworks/Python.framework/Versions/Current/Headers
> -I/System/Library/Frameworks/Tk.framework/Headers   -o
> CMakeFiles/vtklibxml2.dir/HTMLparser.o   -c
> /Users/chris/Documents/VTK/Utilities/vtklibxml2/HTMLparser.c
> In file included from
> /Users/chris/Documents/VTK/Utilities/vtkfreetype/src/base/ftbase.c:36:
> /Users/chris/Documents/VTK/Utilities/vtkfreetype/src/base/ftmac.c: In
> function 'FT_New_Face_From_Suitcase':
> /Users/chris/Documents/VTK/Utilities/vtkfreetype/src/base/ftmac.c:867:
> error: 'ResourceIndex' undeclared (first use in this function)
> /Users/chris/Documents/VTK/Utilities/vtkfreetype/src/base/ftmac.c:867:
> error: (Each undeclared identifier is reported only once
> /Users/chris/Documents/VTK/Utilities/vtkfreetype/src/base/ftmac.c:867:
> error: for each function it appears in.)
> /Users/chris/Documents/VTK/Utilities/vtkfreetype/src/base/ftmac.c:867:
> error: syntax error before 'res_index'
> /Users/chris/Documents/VTK/Utilities/vtkfreetype/src/base/ftmac.c:880:
> error: 'res_index' undeclared (first use in this function)
> In file included from
> /Users/chris/Documents/VTK/Utilities/vtkfreetype/src/base/ftbase.c:36:
> /Users/chris/Documents/VTK/Utilities/vtkfreetype/src/base/ftmac.c: In
> function 'FT_New_Face_From_Suitcase':
> /Users/chris/Documents/VTK/Utilities/vtkfreetype/src/base/ftmac.c:867:
> error: 'ResourceIndex' undeclared (first use in this function)
> /Users/chris/Documents/VTK/Utilities/vtkfreetype/src/base/ftmac.c:867:
> error: (Each undeclared identifier is reported only once
> /Users/chris/Documents/VTK/Utilities/vtkfreetype/src/base/ftmac.c:867:
> error: for each function it appears in.)
> /Users/chris/Documents/VTK/Utilities/vtkfreetype/src/base/ftmac.c:867:
> error: syntax error before 'res_index'
> /Users/chris/Documents/VTK/Utilities/vtkfreetype/src/base/ftmac.c:880:
> error: 'res_index' undeclared (first use in this function)
> lipo: can't figure out the architecture type of:
> /var/folders/mL/mL-lJfHBHCCGPAyZDjWDwk+++TI/-Tmp-//ccnbH3Lv.out
> make[2]: *** [Utilities/vtkfreetype/CMakeFiles/vtkfreetype.dir/src/base/ftbase.o]
> Error 1
> make[1]: *** [Utilities/vtkfreetype/CMakeFiles/vtkfreetype.dir/all] Error 2
> make[1]: *** Waiting for unfinished jobs....
> "/Applications/CMake 2.6-2.app/Contents/bin/cmake" -E
> cmake_progress_report /Users/chris/Documents/VTK/CMakeFiles
> [  1%] Building C object
> Utilities/vtklibxml2/CMakeFiles/vtklibxml2.dir/HTMLtree.o
> ...
> <more stuff>
>
> On Mon, Nov 17, 2008 at 2:01 PM, David Cole <david.cole at kitware.com> wrote:
>> Do a "make VERBOSE=1" and send that error output if it's still not
>> obvious...
>>
>> On Mon, Nov 17, 2008 at 2:26 PM, chris <cdcasey at gmail.com> wrote:
>>>
>>> When trying to build VTK on Leopard, I get the following error message:
>>>
>>> [  2%] Building C object
>>> Utilities/vtklibxml2/CMakeFiles/vtklibxml2.dir/xpath.o
>>> [  2%] Building C object
>>> Utilities/vtklibxml2/CMakeFiles/vtklibxml2.dir/xpointer.o
>>> Linking C shared library ../../bin/libvtklibxml2.dylib
>>> [  2%] Built target vtklibxml2
>>> make: *** [all] Error 2
>>> DEBUG: return value for "make "-j2"" is 2
>>>
>>> I'm using cmake 2.6-2 (binary downloaded). I have a coworker that is
>>> able to build on 10.4 with no problems.
>>>
>>>
>>> Thanks,
>>> -Chris
>>> _______________________________________________
>>> This is the private VTK discussion list.
>>> Please keep messages on-topic. Check the FAQ at:
>>> http://www.vtk.org/Wiki/VTK_FAQ
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
>



More information about the vtkusers mailing list