← Back to team overview

dolfin team mailing list archive

Re: [Dorsal] Linking on Mac

 

On 8/23/10 9:17 AM, Harish Narayanan wrote:
> On 8/23/10 4:21 AM, Anders Logg wrote:
>> On Sun, Aug 22, 2010 at 09:09:50PM +0200, Anders Logg wrote:
>>> On Sun, Aug 22, 2010 at 07:48:36PM +0100, Garth N. Wells wrote:
>>>> On Sun, 2010-08-22 at 13:03 +0200, Anders Logg wrote:
>>>>> Dorsal/DOLFIN/CMake seems to work fine now on Ubuntu Lucid, but it
>>>>> still breaks on Mac (Snow Leopard) with some CGAL linking error.
>>>>>
>>>>> The problem seems to be the way the flags are given to the linker.
>>>>>
>>>>> On Lucid, the following type of flags are given:
>>>>>
>>>>>   -L/usr/lib/libCGAL.so
>>>>>
>>>>> This seems to work fine (although it looks wrong to me, the -L flag
>>>>> should take a directory).
>>>>>
>>>>> On Mac, the corresponding flag becomes:
>>>>>
>>>>>   -L/opt/local/lib/libCGAL.dylib
>>>>>
>>>>> But then the linker complains that the path following -L is not a
>>>>> directory. This explains why the CGAL stuff is missing when linking.
>>>>>
>>>>> Anyone knows why CMake spits out things like -L/usr/lib/libCGAL.so,
>>>>> why this works on Lucid and not Mac (probably different compilers) and
>>>>> how to fix it?
>>>>>
>>>>
>>>> There was an error in dolfin/CMakeLists.txt. Try again now.
>>>
>>> Yes, that looks like it should fix the problem. Build in progress.
>>
>> Builds and runs fine now on Lucid and Snow Leopard, but Python is not
>> building yet on Snow Leopard (haven't looked into why yet).
> 
> I think I fixed it.

Or maybe not.

Harish



Follow ups

References