Compile error on OS X 10.5

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Compile error on OS X 10.5

Bryn Lloyd
Hi,

I tried to compile VTK-5.6 on my system, with
gcc-4.0.1
Qt 4.6.2 (Cocoa version)


I used following settings:

cmake \
-DBUILD_SHARED_LIBS=ON \
-DVTK_USE_RENDERING=ON \
-DVTK_USE_PARALLEL=ON \
-DVTK_USE_MPI=OFF \
-DVTK_USE_HYBRID=ON \
-DVTK_USE_GUISUPPORT=ON \
-DVTK_USE_QVTK=ON \
-DVTK_USE_QVTK_QTOPENGL=ON \
-DDESIRED_QT_VERSION=4 \
../VTK


The error is listed below. Thanks for any help or suggestions.
Cheers, Bryn


[  0%] Built target vtksys
[  1%] Built target vtkzlib
[  3%] Built target vtkjpeg
[  4%] Built target vtkpng
[  4%] Built target vtkmkg3states
[  6%] Built target vtktiff
[  6%] Built target vtkexpat
[  7%] Built target vtkfreetype
[  8%] Built target vtklibxml2
[  8%] Built target vtkDICOMParser
[  8%] Built target ProcessShader-real
[  8%] Built target ProcessShader
[  8%] Built target vtkMaterialLibraryConfiguredFiles
[ 13%] Built target vtkproj4
[ 13%] Built target lproj
[ 13%] Built target vtkverdict
[ 13%] Built target vtkNetCDF
[ 14%] Built target vtkmetaio
[ 14%] Built target vtksqlite
[ 20%] Built target vtkexoIIc
[ 21%] Built target vtkalglib
[ 21%] Built target vtkEncodeString
[ 21%] Built target vtkHashSource
[ 21%] Built target VPIC
[ 28%] Built target vtkCommon
[ 28%] Built target Cosmo
[ 28%] Built target vtkftgl
[ 28%] Built target vtkParseOGLExt
[ 28%] Built target mpistubs
[ 28%] Built target MapReduceMPI
[ 36%] Built target vtkFiltering
[ 40%] Built target vtkImaging
[ 49%] Built target vtkGraphics
[ 50%] Built target vtkGenericFiltering
[ 56%] Built target vtkIO
[ 65%] Built target vtkRendering
[ 70%] Built target vtkVolumeRendering
[ 70%] Generating vtkSocketCommunicatorHash.h
dyld: Library not loaded: libvtksys.5.6.dylib
   Referenced from:
/Users/brynlloyd/pack/VTK-5.6/Build/Parallel/../bin/vtkHashSo
urce
   Reason: image not found
/bin/sh: line 1:  3362 Trace/BPT trap          ../bin/vtkHashSource
/Users/brynl
loyd/pack/VTK-5.6/VTK/Parallel/vtkSocketCommunicator.cxx
vtkSocketCommunicatorHa
sh vtkSocketCommunicatorHash.h
make[2]: *** [Parallel/vtkSocketCommunicatorHash.h] Error 133
make[1]: *** [Parallel/CMakeFiles/vtkParallel.dir/all] Error 2
make: *** [all] Error 2
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: Compile error on OS X 10.5

Michael Jackson
The vtk build system is try to run one of it's own program which links
to then vtksys library. The problem is that when vtksys is linked the
'install_name' is not set to a path but just the name of the library.
You need to export the DYLD_LIBRARY_PATH environment variable to
include the bin directory of your build folder. This assumes makefiles
and not Xcode.

-----
Mike Jackson                      www.bluequartz.net
Principal Software Engineer       [hidden email]
BlueQuartz Software               Dayton, Ohio


On Apr 29, 2010, at 3:17, Bryn Lloyd <[hidden email]> wrote:

> Hi,
>
> I tried to compile VTK-5.6 on my system, with
> gcc-4.0.1
> Qt 4.6.2 (Cocoa version)
>
>
> I used following settings:
>
> cmake \
> -DBUILD_SHARED_LIBS=ON \
> -DVTK_USE_RENDERING=ON \
> -DVTK_USE_PARALLEL=ON \
> -DVTK_USE_MPI=OFF \
> -DVTK_USE_HYBRID=ON \
> -DVTK_USE_GUISUPPORT=ON \
> -DVTK_USE_QVTK=ON \
> -DVTK_USE_QVTK_QTOPENGL=ON \
> -DDESIRED_QT_VERSION=4 \
> ../VTK
>
>
> The error is listed below. Thanks for any help or suggestions.
> Cheers, Bryn
>
>
> [  0%] Built target vtksys
> [  1%] Built target vtkzlib
> [  3%] Built target vtkjpeg
> [  4%] Built target vtkpng
> [  4%] Built target vtkmkg3states
> [  6%] Built target vtktiff
> [  6%] Built target vtkexpat
> [  7%] Built target vtkfreetype
> [  8%] Built target vtklibxml2
> [  8%] Built target vtkDICOMParser
> [  8%] Built target ProcessShader-real
> [  8%] Built target ProcessShader
> [  8%] Built target vtkMaterialLibraryConfiguredFiles
> [ 13%] Built target vtkproj4
> [ 13%] Built target lproj
> [ 13%] Built target vtkverdict
> [ 13%] Built target vtkNetCDF
> [ 14%] Built target vtkmetaio
> [ 14%] Built target vtksqlite
> [ 20%] Built target vtkexoIIc
> [ 21%] Built target vtkalglib
> [ 21%] Built target vtkEncodeString
> [ 21%] Built target vtkHashSource
> [ 21%] Built target VPIC
> [ 28%] Built target vtkCommon
> [ 28%] Built target Cosmo
> [ 28%] Built target vtkftgl
> [ 28%] Built target vtkParseOGLExt
> [ 28%] Built target mpistubs
> [ 28%] Built target MapReduceMPI
> [ 36%] Built target vtkFiltering
> [ 40%] Built target vtkImaging
> [ 49%] Built target vtkGraphics
> [ 50%] Built target vtkGenericFiltering
> [ 56%] Built target vtkIO
> [ 65%] Built target vtkRendering
> [ 70%] Built target vtkVolumeRendering
> [ 70%] Generating vtkSocketCommunicatorHash.h
> dyld: Library not loaded: libvtksys.5.6.dylib
>  Referenced from: /Users/brynlloyd/pack/VTK-5.6/Build/Parallel/../
> bin/vtkHashSo
> urce
>  Reason: image not found
> /bin/sh: line 1:  3362 Trace/BPT trap          ../bin/vtkHashSource /
> Users/brynl
> loyd/pack/VTK-5.6/VTK/Parallel/vtkSocketCommunicator.cxx
> vtkSocketCommunicatorHa
> sh vtkSocketCommunicatorHash.h
> make[2]: *** [Parallel/vtkSocketCommunicatorHash.h] Error 133
> make[1]: *** [Parallel/CMakeFiles/vtkParallel.dir/all] Error 2
> make: *** [all] Error 2
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: Compile error on OS X 10.5

Eric E. Monson
Hey Bryn,

Is VTK_USE_RPATH = ON or OFF in the CMakeCache.txt file of your build directory? If it's OFF, and you don't need it OFF, then you could try turning it ON in your cmake command and that may be another way to get past this error, too. (At least it used to work for me.)

-Eric

------------------------------------------------------
Eric E Monson
Duke Visualization Technology Group


On Apr 29, 2010, at 8:08 AM, Mike Jackson wrote:

> The vtk build system is try to run one of it's own program which links
> to then vtksys library. The problem is that when vtksys is linked the
> 'install_name' is not set to a path but just the name of the library.
> You need to export the DYLD_LIBRARY_PATH environment variable to
> include the bin directory of your build folder. This assumes makefiles
> and not Xcode.
>
> -----
> Mike Jackson                      www.bluequartz.net
> Principal Software Engineer       [hidden email]
> BlueQuartz Software               Dayton, Ohio
>
>
> On Apr 29, 2010, at 3:17, Bryn Lloyd <[hidden email]> wrote:
>
>> Hi,
>>
>> I tried to compile VTK-5.6 on my system, with
>> gcc-4.0.1
>> Qt 4.6.2 (Cocoa version)
>>
>>
>> I used following settings:
>>
>> cmake \
>> -DBUILD_SHARED_LIBS=ON \
>> -DVTK_USE_RENDERING=ON \
>> -DVTK_USE_PARALLEL=ON \
>> -DVTK_USE_MPI=OFF \
>> -DVTK_USE_HYBRID=ON \
>> -DVTK_USE_GUISUPPORT=ON \
>> -DVTK_USE_QVTK=ON \
>> -DVTK_USE_QVTK_QTOPENGL=ON \
>> -DDESIRED_QT_VERSION=4 \
>> ../VTK
>>
>>
>> The error is listed below. Thanks for any help or suggestions.
>> Cheers, Bryn
>>
>>
>> [  0%] Built target vtksys
>> [  1%] Built target vtkzlib
>> [  3%] Built target vtkjpeg
>> [  4%] Built target vtkpng
>> [  4%] Built target vtkmkg3states
>> [  6%] Built target vtktiff
>> [  6%] Built target vtkexpat
>> [  7%] Built target vtkfreetype
>> [  8%] Built target vtklibxml2
>> [  8%] Built target vtkDICOMParser
>> [  8%] Built target ProcessShader-real
>> [  8%] Built target ProcessShader
>> [  8%] Built target vtkMaterialLibraryConfiguredFiles
>> [ 13%] Built target vtkproj4
>> [ 13%] Built target lproj
>> [ 13%] Built target vtkverdict
>> [ 13%] Built target vtkNetCDF
>> [ 14%] Built target vtkmetaio
>> [ 14%] Built target vtksqlite
>> [ 20%] Built target vtkexoIIc
>> [ 21%] Built target vtkalglib
>> [ 21%] Built target vtkEncodeString
>> [ 21%] Built target vtkHashSource
>> [ 21%] Built target VPIC
>> [ 28%] Built target vtkCommon
>> [ 28%] Built target Cosmo
>> [ 28%] Built target vtkftgl
>> [ 28%] Built target vtkParseOGLExt
>> [ 28%] Built target mpistubs
>> [ 28%] Built target MapReduceMPI
>> [ 36%] Built target vtkFiltering
>> [ 40%] Built target vtkImaging
>> [ 49%] Built target vtkGraphics
>> [ 50%] Built target vtkGenericFiltering
>> [ 56%] Built target vtkIO
>> [ 65%] Built target vtkRendering
>> [ 70%] Built target vtkVolumeRendering
>> [ 70%] Generating vtkSocketCommunicatorHash.h
>> dyld: Library not loaded: libvtksys.5.6.dylib
>> Referenced from: /Users/brynlloyd/pack/VTK-5.6/Build/Parallel/../
>> bin/vtkHashSo
>> urce
>> Reason: image not found
>> /bin/sh: line 1:  3362 Trace/BPT trap          ../bin/vtkHashSource /
>> Users/brynl
>> loyd/pack/VTK-5.6/VTK/Parallel/vtkSocketCommunicator.cxx
>> vtkSocketCommunicatorHa
>> sh vtkSocketCommunicatorHash.h
>> make[2]: *** [Parallel/vtkSocketCommunicatorHash.h] Error 133
>> make[1]: *** [Parallel/CMakeFiles/vtkParallel.dir/all] Error 2
>> make: *** [all] Error 2
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: Compile error on OS X 10.5

Dave Partyka
There is a check if the version is the release branch (even minor version number) or the development head (odd minor version number). If it's even, as it is in Bryn's case, VTK_USE_RPATH gets switched to off by default.

As Eric and Mike just said, if you don't need it OFF turning it ON or setting the LD_LIBRARY_PATH to your bin dir should work.

On Thu, Apr 29, 2010 at 9:13 AM, Eric E. Monson <[hidden email]> wrote:
Hey Bryn,

Is VTK_USE_RPATH = ON or OFF in the CMakeCache.txt file of your build directory? If it's OFF, and you don't need it OFF, then you could try turning it ON in your cmake command and that may be another way to get past this error, too. (At least it used to work for me.)

-Eric

------------------------------------------------------
Eric E Monson
Duke Visualization Technology Group


On Apr 29, 2010, at 8:08 AM, Mike Jackson wrote:

> The vtk build system is try to run one of it's own program which links
> to then vtksys library. The problem is that when vtksys is linked the
> 'install_name' is not set to a path but just the name of the library.
> You need to export the DYLD_LIBRARY_PATH environment variable to
> include the bin directory of your build folder. This assumes makefiles
> and not Xcode.
>
> -----
> Mike Jackson                      www.bluequartz.net
> Principal Software Engineer       [hidden email]
> BlueQuartz Software               Dayton, Ohio
>
>
> On Apr 29, 2010, at 3:17, Bryn Lloyd <[hidden email]> wrote:
>
>> Hi,
>>
>> I tried to compile VTK-5.6 on my system, with
>> gcc-4.0.1
>> Qt 4.6.2 (Cocoa version)
>>
>>
>> I used following settings:
>>
>> cmake \
>> -DBUILD_SHARED_LIBS=ON \
>> -DVTK_USE_RENDERING=ON \
>> -DVTK_USE_PARALLEL=ON \
>> -DVTK_USE_MPI=OFF \
>> -DVTK_USE_HYBRID=ON \
>> -DVTK_USE_GUISUPPORT=ON \
>> -DVTK_USE_QVTK=ON \
>> -DVTK_USE_QVTK_QTOPENGL=ON \
>> -DDESIRED_QT_VERSION=4 \
>> ../VTK
>>
>>
>> The error is listed below. Thanks for any help or suggestions.
>> Cheers, Bryn
>>
>>
>> [  0%] Built target vtksys
>> [  1%] Built target vtkzlib
>> [  3%] Built target vtkjpeg
>> [  4%] Built target vtkpng
>> [  4%] Built target vtkmkg3states
>> [  6%] Built target vtktiff
>> [  6%] Built target vtkexpat
>> [  7%] Built target vtkfreetype
>> [  8%] Built target vtklibxml2
>> [  8%] Built target vtkDICOMParser
>> [  8%] Built target ProcessShader-real
>> [  8%] Built target ProcessShader
>> [  8%] Built target vtkMaterialLibraryConfiguredFiles
>> [ 13%] Built target vtkproj4
>> [ 13%] Built target lproj
>> [ 13%] Built target vtkverdict
>> [ 13%] Built target vtkNetCDF
>> [ 14%] Built target vtkmetaio
>> [ 14%] Built target vtksqlite
>> [ 20%] Built target vtkexoIIc
>> [ 21%] Built target vtkalglib
>> [ 21%] Built target vtkEncodeString
>> [ 21%] Built target vtkHashSource
>> [ 21%] Built target VPIC
>> [ 28%] Built target vtkCommon
>> [ 28%] Built target Cosmo
>> [ 28%] Built target vtkftgl
>> [ 28%] Built target vtkParseOGLExt
>> [ 28%] Built target mpistubs
>> [ 28%] Built target MapReduceMPI
>> [ 36%] Built target vtkFiltering
>> [ 40%] Built target vtkImaging
>> [ 49%] Built target vtkGraphics
>> [ 50%] Built target vtkGenericFiltering
>> [ 56%] Built target vtkIO
>> [ 65%] Built target vtkRendering
>> [ 70%] Built target vtkVolumeRendering
>> [ 70%] Generating vtkSocketCommunicatorHash.h
>> dyld: Library not loaded: libvtksys.5.6.dylib
>> Referenced from: /Users/brynlloyd/pack/VTK-5.6/Build/Parallel/../
>> bin/vtkHashSo
>> urce
>> Reason: image not found
>> /bin/sh: line 1:  3362 Trace/BPT trap          ../bin/vtkHashSource /
>> Users/brynl
>> loyd/pack/VTK-5.6/VTK/Parallel/vtkSocketCommunicator.cxx
>> vtkSocketCommunicatorHa
>> sh vtkSocketCommunicatorHash.h
>> make[2]: *** [Parallel/vtkSocketCommunicatorHash.h] Error 133
>> make[1]: *** [Parallel/CMakeFiles/vtkParallel.dir/all] Error 2
>> make: *** [all] Error 2
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers


_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: Compile error on OS X 10.5

Michael Jackson
So why is it turned OFF on the release branch? Wouldn't this be  
considered a bug?
--
mike jackson

On Apr 29, 2010, at 9:22 AM, Dave Partyka wrote:

> There is a check if the version is the release branch (even minor  
> version number) or the development head (odd minor version number).  
> If it's even, as it is in Bryn's case, VTK_USE_RPATH gets switched  
> to off by default.
>
> As Eric and Mike just said, if you don't need it OFF turning it ON  
> or setting the LD_LIBRARY_PATH to your bin dir should work.
>
> On Thu, Apr 29, 2010 at 9:13 AM, Eric E. Monson  
> <[hidden email]> wrote:
> Hey Bryn,
>
> Is VTK_USE_RPATH = ON or OFF in the CMakeCache.txt file of your  
> build directory? If it's OFF, and you don't need it OFF, then you  
> could try turning it ON in your cmake command and that may be  
> another way to get past this error, too. (At least it used to work  
> for me.)
>
> -Eric
>
> ------------------------------------------------------
> Eric E Monson
> Duke Visualization Technology Group
>
>
> On Apr 29, 2010, at 8:08 AM, Mike Jackson wrote:
>
> > The vtk build system is try to run one of it's own program which  
> links
> > to then vtksys library. The problem is that when vtksys is linked  
> the
> > 'install_name' is not set to a path but just the name of the  
> library.
> > You need to export the DYLD_LIBRARY_PATH environment variable to
> > include the bin directory of your build folder. This assumes  
> makefiles
> > and not Xcode.
> >
> > -----
> > Mike Jackson                      www.bluequartz.net
> > Principal Software Engineer       [hidden email]
> > BlueQuartz Software               Dayton, Ohio
> >
> >
> > On Apr 29, 2010, at 3:17, Bryn Lloyd <[hidden email]>  
> wrote:
> >
> >> Hi,
> >>
> >> I tried to compile VTK-5.6 on my system, with
> >> gcc-4.0.1
> >> Qt 4.6.2 (Cocoa version)
> >>
> >>
> >> I used following settings:
> >>
> >> cmake \
> >> -DBUILD_SHARED_LIBS=ON \
> >> -DVTK_USE_RENDERING=ON \
> >> -DVTK_USE_PARALLEL=ON \
> >> -DVTK_USE_MPI=OFF \
> >> -DVTK_USE_HYBRID=ON \
> >> -DVTK_USE_GUISUPPORT=ON \
> >> -DVTK_USE_QVTK=ON \
> >> -DVTK_USE_QVTK_QTOPENGL=ON \
> >> -DDESIRED_QT_VERSION=4 \
> >> ../VTK
> >>
> >>
> >> The error is listed below. Thanks for any help or suggestions.
> >> Cheers, Bryn
> >>
> >>
> >> [  0%] Built target vtksys
> >> [  1%] Built target vtkzlib
> >> [  3%] Built target vtkjpeg
> >> [  4%] Built target vtkpng
> >> [  4%] Built target vtkmkg3states
> >> [  6%] Built target vtktiff
> >> [  6%] Built target vtkexpat
> >> [  7%] Built target vtkfreetype
> >> [  8%] Built target vtklibxml2
> >> [  8%] Built target vtkDICOMParser
> >> [  8%] Built target ProcessShader-real
> >> [  8%] Built target ProcessShader
> >> [  8%] Built target vtkMaterialLibraryConfiguredFiles
> >> [ 13%] Built target vtkproj4
> >> [ 13%] Built target lproj
> >> [ 13%] Built target vtkverdict
> >> [ 13%] Built target vtkNetCDF
> >> [ 14%] Built target vtkmetaio
> >> [ 14%] Built target vtksqlite
> >> [ 20%] Built target vtkexoIIc
> >> [ 21%] Built target vtkalglib
> >> [ 21%] Built target vtkEncodeString
> >> [ 21%] Built target vtkHashSource
> >> [ 21%] Built target VPIC
> >> [ 28%] Built target vtkCommon
> >> [ 28%] Built target Cosmo
> >> [ 28%] Built target vtkftgl
> >> [ 28%] Built target vtkParseOGLExt
> >> [ 28%] Built target mpistubs
> >> [ 28%] Built target MapReduceMPI
> >> [ 36%] Built target vtkFiltering
> >> [ 40%] Built target vtkImaging
> >> [ 49%] Built target vtkGraphics
> >> [ 50%] Built target vtkGenericFiltering
> >> [ 56%] Built target vtkIO
> >> [ 65%] Built target vtkRendering
> >> [ 70%] Built target vtkVolumeRendering
> >> [ 70%] Generating vtkSocketCommunicatorHash.h
> >> dyld: Library not loaded: libvtksys.5.6.dylib
> >> Referenced from: /Users/brynlloyd/pack/VTK-5.6/Build/Parallel/../
> >> bin/vtkHashSo
> >> urce
> >> Reason: image not found
> >> /bin/sh: line 1:  3362 Trace/BPT trap          ../bin/
> vtkHashSource /
> >> Users/brynl
> >> loyd/pack/VTK-5.6/VTK/Parallel/vtkSocketCommunicator.cxx
> >> vtkSocketCommunicatorHa
> >> sh vtkSocketCommunicatorHash.h
> >> make[2]: *** [Parallel/vtkSocketCommunicatorHash.h] Error 133
> >> make[1]: *** [Parallel/CMakeFiles/vtkParallel.dir/all] Error 2
> >> make: *** [all] Error 2

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: Compile error on OS X 10.5

Bryn Lloyd
In reply to this post by Eric E. Monson
Hey Eric,

Thanks. That did the trick. I used to set this VTK_USE_RPATH=ON option,
but completely forgot about it when compiling now.

-Bryn


Eric E. Monson wrote:

> Hey Bryn,
>
> Is VTK_USE_RPATH = ON or OFF in the CMakeCache.txt file of your build directory? If it's OFF, and you don't need it OFF, then you could try turning it ON in your cmake command and that may be another way to get past this error, too. (At least it used to work for me.)
>
> -Eric
>
> ------------------------------------------------------
> Eric E Monson
> Duke Visualization Technology Group
>
>
> On Apr 29, 2010, at 8:08 AM, Mike Jackson wrote:
>
>> The vtk build system is try to run one of it's own program which links
>> to then vtksys library. The problem is that when vtksys is linked the
>> 'install_name' is not set to a path but just the name of the library.
>> You need to export the DYLD_LIBRARY_PATH environment variable to
>> include the bin directory of your build folder. This assumes makefiles
>> and not Xcode.
>>
>> -----
>> Mike Jackson                      www.bluequartz.net
>> Principal Software Engineer       [hidden email]
>> BlueQuartz Software               Dayton, Ohio
>>
>>
>> On Apr 29, 2010, at 3:17, Bryn Lloyd <[hidden email]> wrote:
>>
>>> Hi,
>>>
>>> I tried to compile VTK-5.6 on my system, with
>>> gcc-4.0.1
>>> Qt 4.6.2 (Cocoa version)
>>>
>>>
>>> I used following settings:
>>>
>>> cmake \
>>> -DBUILD_SHARED_LIBS=ON \
>>> -DVTK_USE_RENDERING=ON \
>>> -DVTK_USE_PARALLEL=ON \
>>> -DVTK_USE_MPI=OFF \
>>> -DVTK_USE_HYBRID=ON \
>>> -DVTK_USE_GUISUPPORT=ON \
>>> -DVTK_USE_QVTK=ON \
>>> -DVTK_USE_QVTK_QTOPENGL=ON \
>>> -DDESIRED_QT_VERSION=4 \
>>> ../VTK
>>>
>>>
>>> The error is listed below. Thanks for any help or suggestions.
>>> Cheers, Bryn
>>>
>>>
>>> [  0%] Built target vtksys
>>> [  1%] Built target vtkzlib
>>> [  3%] Built target vtkjpeg
>>> [  4%] Built target vtkpng
>>> [  4%] Built target vtkmkg3states
>>> [  6%] Built target vtktiff
>>> [  6%] Built target vtkexpat
>>> [  7%] Built target vtkfreetype
>>> [  8%] Built target vtklibxml2
>>> [  8%] Built target vtkDICOMParser
>>> [  8%] Built target ProcessShader-real
>>> [  8%] Built target ProcessShader
>>> [  8%] Built target vtkMaterialLibraryConfiguredFiles
>>> [ 13%] Built target vtkproj4
>>> [ 13%] Built target lproj
>>> [ 13%] Built target vtkverdict
>>> [ 13%] Built target vtkNetCDF
>>> [ 14%] Built target vtkmetaio
>>> [ 14%] Built target vtksqlite
>>> [ 20%] Built target vtkexoIIc
>>> [ 21%] Built target vtkalglib
>>> [ 21%] Built target vtkEncodeString
>>> [ 21%] Built target vtkHashSource
>>> [ 21%] Built target VPIC
>>> [ 28%] Built target vtkCommon
>>> [ 28%] Built target Cosmo
>>> [ 28%] Built target vtkftgl
>>> [ 28%] Built target vtkParseOGLExt
>>> [ 28%] Built target mpistubs
>>> [ 28%] Built target MapReduceMPI
>>> [ 36%] Built target vtkFiltering
>>> [ 40%] Built target vtkImaging
>>> [ 49%] Built target vtkGraphics
>>> [ 50%] Built target vtkGenericFiltering
>>> [ 56%] Built target vtkIO
>>> [ 65%] Built target vtkRendering
>>> [ 70%] Built target vtkVolumeRendering
>>> [ 70%] Generating vtkSocketCommunicatorHash.h
>>> dyld: Library not loaded: libvtksys.5.6.dylib
>>> Referenced from: /Users/brynlloyd/pack/VTK-5.6/Build/Parallel/../
>>> bin/vtkHashSo
>>> urce
>>> Reason: image not found
>>> /bin/sh: line 1:  3362 Trace/BPT trap          ../bin/vtkHashSource /
>>> Users/brynl
>>> loyd/pack/VTK-5.6/VTK/Parallel/vtkSocketCommunicator.cxx
>>> vtkSocketCommunicatorHa
>>> sh vtkSocketCommunicatorHash.h
>>> make[2]: *** [Parallel/vtkSocketCommunicatorHash.h] Error 133
>>> make[1]: *** [Parallel/CMakeFiles/vtkParallel.dir/all] Error 2
>>> make: *** [all] Error 2
>>> _______________________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.vtk.org/mailman/listinfo/vtkusers
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>


--
-------------------------------------------------
Bryn Lloyd
Computer Vision Laboratory
ETH Zürich, Sternwartstrasse 7, ETF C110
CH - 8092 Zürich, Switzerland
Tel: +41 44 63 26668
Fax: +41 44 63 21199
-------------------------------------------------
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers