← Back to team overview

yade-dev team mailing list archive

Re: Potential Particles (DEM non-spherical particles)

 

Hi Chia,
did you try cmake from the scratch, i.e. deleting build directory and
running cmake again?
cheers
Jan


2015-12-31 16:41 GMT+01:00 Chia Weng Boon <chiaweng@xxxxxxxxx>:

> Hi,
>
> I have this problem with linking with external library
>
>
> I added onto my build directory, CMakeCache.txt
>
> CLP2_INCLUDE_DIR:PATH=/home/boon/coin-Clp/lib/pkgconfig
> CLP2_LIBRARY:FILEPATH=/home/boon/coin-Clp/Clp/src/.libs/libClpSolver.so
> CLP3_INCLUDE_DIR:PATH=/home/boon/coin-Clp/CoinUtils/src
> CLP3_LIBRARY:FILEPATH=/home/boon/coin-Clp/Clp/src/OsiClp/.libs/libOsiClp.so
> CLP4_LIBRARY:FILEPATH=/home/boon/coin-Clp/lib/libCoinUtils.so
> CLP_INCLUDE_DIR:PATH=/home/boon/coin-Clp/Clp/src
> CLP_LIBRARY:FILEPATH=/home/boon/coin-Clp/Clp/src/.libs/libClp.so
>
>
> Created FindCLP.cmake in trunk/cMake/
> FIND_PATH(CLP_INCLUDE_DIR *)
> FIND_PATH(CLP2_INCLUDE_DIR *)
> FIND_PATH(CLP3_INCLUDE_DIR CoinPragma.hpp)
> FIND_LIBRARY(CLP_LIBRARY NAMES Clp)
> FIND_LIBRARY(CLP2_LIBRARY NAMES ClpSolver)
> FIND_LIBRARY(CLP3_LIBRARY NAMES OsiClp)
> FIND_LIBRARY(CLP4_LIBRARY NAMES CoinUtils)
>
>
> Added in CMakeLists.txt in trunk:
>  INCLUDE(FindCLP)
>
>
> But I still get the following error when compiling:
> /home/boon/coin-Clp/Clp/src/ClpPackedMatrix.hpp:9:26: fatal error:
> CoinPragma.hpp: No such file or directory
>
> And when running:
>     import yade
>   File
> "/home/boon/yadeRev/install/lib/x86_64-linux-gnu/yade-2015-11-06.git-c5330ac6/py/yade/__init__.py",
> line 65, in <module>
>     import boot
> ImportError:
> /home/boon/yadeRev/install/lib/x86_64-linux-gnu/yade-2015-11-06.git-c5330ac6/libyade.so:
> undefined symbol: _ZN10ClpSimplex4dualEii
>
>
>
> I have already added onto my bashrc the PATH and LD_LIBRARY_PTATH.
>
> It appears I have not done things correctly.  Hope someone could help.
>
> Happy New Year 2016~!  Planning to get some programming done over the
> holidays!
>
>
>
> Yours,
> BOON
>
> On Wed, Dec 16, 2015 at 12:54 PM, chiaweng <chiaweng@xxxxxxxxx> wrote:
>
>> Can someone advise what do i need to do to link to an external library
>> with this new cmake?
>>
>>
>>
>> Sent from my Samsung Galaxy smartphone.
>> -------- Original message --------
>> From: Anton Gladky <gladky.anton@xxxxxxxxx>
>> Date: 16/12/2015 01:50 (GMT+08:00)
>> To: Jan Stránský <honzik.stransky@xxxxxxxxx>
>> Cc: chiaweng <chiaweng@xxxxxxxxx>, Yade developers <
>> yade-dev@xxxxxxxxxxxxxxxxxxx>
>> Subject: Re: [Yade-dev] Potential Particles (DEM non-spherical particles)
>>
>> Hi Jan,
>>
>> 2015-12-15 16:47 GMT+01:00 Jan Stránský <honzik.stransky@xxxxxxxxx>:
>> > @Anton: Do you have any suggestions / link how to work with pull
>> requests?
>>
>> We need to review them and to check, whether it does not cause compilation
>> failures. After that we can merge them. I will try to have a closer look
>> within
>> the next few days.
>>
>> Best regards
>>
>> Anton
>>
>
>

Follow ups

References