On 6/17/2012 5:08 PM, Martin Costabel wrote:
> On 17/06/12 15:44, Alexander Hansen wrote:
>> On 6/17/12 4:16 AM, Hanspeter Niederstrasser wrote:
>>> On 06/17/2012 5:25 AM, Martin Costabel wrote:
>>>> On 17/06/12 03:41, Hanspeter Niederstrasser wrote:
>>>> []
>>>>> I just tried building this with UseMaxBuildJobs: false added to
>>>>> vtk58.info and the build failed the same way.  I've put up my full
>>>>> build
>>>>> log here:
>>>>> <http://www.snaggledworks.com/fink/logs/fink-build-log_vtk58_5.8.0-2_2012.06.16-19.52.25>
>>>>>
>>>>> for easy diffing against a successful build log.
>>>>>
>>>>> The failed linker line is identical to Alex's.
>>>>
>>>> OK, I rebuilt it with UseMaxBuildJobs: false uncommented and compared
>>>> with your build log. This time, I do not have libvtkDICOMParser (and a
>>>> dozen other dylibs I had in a previous build) on the linker command
>>>> line. In fact, my linker line is the same as yours, but it still does
>>>> not fail. There is no error message, and the build succeeds. The only
>
> Now it fails for me, too. I give up for the moment, because I don't see
> any obvious difference in configuration to when my builds succeeded. I
> also will have very little time the next 3 weeks, and time is what is
> needed even for a crude fix. It is not immediately clear how to convince
> cmake to place that library on the linker line. Another possibility
> would be to remove -flat_namespace, but then one needs to test
> applications like mayavi2 to see whether it still works. I haven't tried
> it with this version, but in the past the -flat_namespace was necessary.

Martin,

This solution worked for me locally to allow the build to finish (final 
functionality untested):

@@ -81,7 +81,13 @@
  # half-baked; doesn't work for python modules
   export DYLD_LIBRARY_PATH=`pwd`/bin
  #
- make
+# cmake is broken even after setting DYLD_LIBRARY_PATH and needs help
+# finding libvtkDICOMParser.5.8.dylib when linking vtkpython.  So let's
+# add an explicit -L flag to the linker for that case (only).
+ cd Wrapping/Python/CMakeFiles/vtkpython.dir
+   echo `cat link.txt` -L../../bin > link.txt
+ cd ../../../..
+ make -w

Hanspeter

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to