← Back to team overview

dolfin team mailing list archive

Re: Fwd: Re: add option to scons

 



Ilmar Wilbers wrote:


>Well, scons does not generate a package config file for gts, as it 
>normally comes with the installation of gts itself. So you really need 
>to make sure that there is a correct gts.pc file available before 
>running scons.

What do you mean by a CORRECT gts file. the gts.pc is located in 
/usr/lib/pkgconfig and contains: (does it seem to be correct???)

prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: GTS
Description: GNU Triangulated Surface Library
Version: 0.7.6
Requires: glib-2.0
Libs: -L${libdir}  -lgts -lm
Cflags: -I${includedir}

Please note that when I do scons on the top directory SConstruct file 
for installation, scons picks up the GTS, However when I try to compile 
a demo with the small SConstruct file (contains a couple of lines)which 
you can find in /demo/pde, scons does not pick up the GTS. Why is 
that?? When I clone a new dolfin and do "scons enableDemos=yes" I can 
see it is reporting -DHAS_GTS but using the small SConstruct files 
included in demos, I see no  -DHAS_GTS option at the beginning of the 
report and get a runtime error missing GTS. 


>ilmar
>
>Hatef Monajemi wrote:
>>
>> Ilmar Wilbers wrote:
>>
>>
>>   
>>> This file (gts.pc) should be part of a GTS installation. On my 
machine, 
>>> using Ubuntu and the gts package, it is found under 
>>> /usr/lib/pkgconfig/gts.pc
>>> Try 'locate gts.pc'
>>>
>>> ilmar
>>>     
>>
>> I have "/usr/lib/pkgconfig/gts.pc" on my machine. and when I do 
>>   
>>>> pkg-config --libs gts 
>>>>       
>> I get:
>>   
>>>> -lgts -lm -lglib-2.0
>>>>       
>>
>> It means that I have evrything on my machine for gts but when I try to 
>> compile with this option there is no success. scons does not pick it 
up.
>> and note that in ../simula_scons/pkgconfiggenerators I have nothing 
>> related to GTS while there are other files such as umfpack.py. does it 
>> seem OK to you?
>> The error is talking a bout a pkg-config "generator"
>>
>>  
>>
>>
>>
>>
>>   
>>> Hatef Monajemi wrote:
>>>     
>>>> Hatef Monajemi wrote:
>>>>
>>>>
>>>>   
>>>>       
>>>>> Dag Lindbo wrote:
>>>>>
>>>>>
>>>>>     
>>>>>         
>>>>>> It works nicely for me... To force it to put -DHAS_GTS=1 into the
>>>>>> compilation, add it to the custom cxx flags, on line 104 of the 
>>>>>>       
>>>>>>           
>>>>> SConstruct.
>>>>>     
>>>>>         
>>>>>> /Dag
>>>>>>       
>>>>>>           
>>>>> Hi Dag
>>>>> I did what you said but no success. still when I want to compile a pde 
>>>>> demo individually scons does not pick up GTS package.
>>>>>
>>>>> I get a message in my "simula-scons.log" saying that:
>>>>>
>>>>> "resolveCompiler: No pkg-config generator for package 'gts'. Assuming 
>>>>> Ok."
>>>>>
>>>>> I guess my problem is that there is no "pkg-config generator" for gts. 
>>>>> Do you know how to resolve this? 
>>>>>
>>>>> Thank you,
>>>>> Hatef
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>     
>>>>>         
>>>>>> Hatef Monajemi wrote:
>>>>>>       
>>>>>>           
>>>>>>> Hi all,
>>>>>>>
>>>>>>> I have noticed that scons does not pick up GTS. How Can I add the 
>>>>>>> option -DHAS_GTS=1 to scons. It does pick up other packages such as 
>>>>>>> umfpack, etc.
>>>>>>>
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Hatef
>>>>>>> _______________________________________________
>>>>>>> DOLFIN-dev mailing list
>>>>>>> DOLFIN-dev@xxxxxxxxxx
>>>>>>> http://www.fenics.org/mailman/listinfo/dolfin-dev
>>>>>>>         
>>>>>>>             
>>>>>>           
>> 
------------------------------------------------------------------------
>>   
>>>>>> Subject:
>>>>>> Re: [DOLFIN-dev] add option to scons
>>>>>> From:
>>>>>> Hatef Monajemi <hmonajem@xxxxxxxxxxxxxxxxxxx>
>>>>>> Date:
>>>>>> Fri, 18 Jul 2008 12:41:57 -0400 (EDT)
>>>>>> To:
>>>>>> Dag Lindbo <dag@xxxxxxxxxx>
>>>>>>
>>>>>> To:
>>>>>> Dag Lindbo <dag@xxxxxxxxxx>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Dag Lindbo wrote:
>>>>>>
>>>>>>
>>>>>>       
>>>>>>           
>>>>>>> It works nicely for me... To force it to put -DHAS_GTS=1 into the
>>>>>>> compilation, add it to the custom cxx flags, on line 104 of the 
>>>>>>>         
>>>>>>>             
>>>>>> SConstruct.
>>>>>>       
>>>>>>           
>>>>>>> /Dag
>>>>>>>         
>>>>>>>             
>>>>>> Hi Dag
>>>>>> I did what you said but no success. still when I want to compile a pde 
>>>>>> demo individually scons does not pick up GTS package.
>>>>>>
>>>>>> I get a message in my "simula-scons.log" saying that:
>>>>>>
>>>>>> "resolveCompiler: No pkg-config generator for package 'gts'. Assuming 
>>>>>> Ok."
>>>>>>
>>>>>> I guess my problem is that there is no "pkg-config generator" for gts. 
>>>>>> Do you know how to resolve this? 
>>>>>>
>>>>>> Thank you,
>>>>>> Hatef
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>       
>>>>>>           
>>>>>>> Hatef Monajemi wrote:
>>>>>>>         
>>>>>>>             
>>>>>>>> Hi all,
>>>>>>>>
>>>>>>>> I have noticed that scons does not pick up GTS. How Can I add the 
>>>>>>>> option -DHAS_GTS=1 to scons. It does pick up other packages such as 
>>>>>>>> umfpack, etc.
>>>>>>>>
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> Hatef
>>>>>>>> _______________________________________________
>>>>>>>> DOLFIN-dev mailing list
>>>>>>>> DOLFIN-dev@xxxxxxxxxx
>>>>>>>> http://www.fenics.org/mailman/listinfo/dolfin-dev
>>>>>>>>           
>>>>>>>>               
>> 
------------------------------------------------------------------------
>>   
>>>>>>> _______________________________________________
>>>>>>> DOLFIN-dev mailing list
>>>>>>> DOLFIN-dev@xxxxxxxxxx
>>>>>>> http://www.fenics.org/mailman/listinfo/dolfin-dev
>>>>>>>         
>>>>>>>             
>