[Dune] Problem linking parmetis with cmake

Aleksejs Fomins aleksejs.fomins at lspr.ch
Wed Nov 26 15:11:53 CET 2014


Dear Carsten,

Please look at this file I send. The only thing that is specified in
CONFIGURE_FLAGS is the --enable-parallel, everything else is the
CMAKE_PREFIX_PATH. This opts file creates the error I described.

Regards,
Aleksejs

On 11/26/2014 03:01 PM, Carsten Gräser wrote:
> The wiki text and example state that you should pass flags and paths
> via CMAKE_FLAGS (in the form form CMAKE_PREFIX_PATH) while you use
> CONFIGURE_FLAGS and --with-foo=foopath. For me this is a major
> difference.
> 
> Carsten
> 
> 
> Am 26.11.2014 um 14:57 schrieb Aleksejs Fomins:
>> Hi Carsten,
>>
>> Thank you for your suggestion. I have tried removing the build-cmake
>> directory and building again, the dependency is still not found, even at
>> configure stage.
>>
>> Please, tell me how to make my opts file to use cmake options directly
>>
>> http://users.dune-project.org/projects/main-wiki/wiki/Using_cmake_to_build_your_DUNE_project#Configuration-and-external-libraries
>>
>> I have read this document, and to the best of my knowledge I have
>> adapted the opts file to what it says. I really don't understand what I
>> need to change about it
>>
>> Regards,
>> Aleksejs
>>
>> On 11/26/2014 02:17 PM, Carsten Gräser wrote:
>>> Hi Aleksejs,
>>> your option file relies on the autotools -> cmake
>>> translation of configure options and you should switch
>>> to passing cmake options directly.
>>>
>>> Besides this your problem may be related to FS#1532.
>>> In order to check this, you can remove your build
>>> directory and try if the dependency is found by
>>> configure afterwards.
>>>
>>> Carsten
>>>
>>> Am 26.11.2014 um 12:11 schrieb Aleksejs Fomins:
>>>> Dear Christoph,
>>>>
>>>> I can not see any major differences between the opts file in my original
>>>> e-mail (af.debian7.lsprag.cmakebuild.minimalistic.opts)
>>>> and the example opts file. Please be more specific
>>>>
>>>> Thanks,
>>>> Aleksejs
>>>>
>>>> On 11/26/2014 11:46 AM, Christoph Grüninger wrote:
>>>>> Aleksejs,
>>>>> you have to adjust your opts file, cf.
>>>>> http://users.dune-project.org/projects/main-wiki/wiki/Using_cmake_to_build_your_DUNE_project#Configuration-and-external-libraries
>>>>>
>>>>> Christoph
> 
> 



-------------- next part --------------
#################################################################################################################
## objective - opts file for building vulcain, based on Dune, with cmake
##
## history - 2014 apr 16, created
##
## usage - time ./dune-common/bin/dunecontrol --use-cmake --opts=af.debian7.lsprag.cmakebuild.minimalistic.opts all
##
##################################################################################################################


USE_CMAKE=yes

CONFIGURE_FLAGS="--enable-parallel" 

CMAKE_PREFIX_PATH="\
/opt/extlib/boost/1.55.0/gcc/4.9.0;\
/opt/extlib/parmetis/4.0.3/openmpi/1.8.1/gcc/4.9.0;\
/opt/extlib/metis/5.1.0/gcc/4.9.0;\
"

GXX_WARNING_OPTS="-Wall -pedantic" 
GXX_OPTS="-O0 -g2" 

CMAKE_FLAGS="\
CXXFLAGS=\"$GXX_WARNING_OPTS $GXX_OPTS\" \
-DCMAKE_PREFIX_PATH=\"$CMAKE_PREFIX_PATH\" \
-DDUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS:BOOL=TRUE \
" 



# -DCXXFLAGS=\"-O2 -Wall\" \
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: OpenPGP digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20141126/245a4281/attachment.sig>


More information about the Dune mailing list