[Cbc] Fwd: CMake version of Cbc

Sumit K. Nath skn123 at gmail.com
Wed Aug 8 05:49:59 EDT 2012


Hello Stefan
I am aware that it can be built under Linux. What I asked in the previous
mail was how to modify the CMake script so that it builds under linux. If
you take a look in the CMake subfolder, you will find a
Win32CompilesFlag.cmake. How can we write a similar script (say
LinuxCompilesFlag.cmake)? I am interested in the defines that go with it.
If that is available, then this can be used to compile the project under
Linux as well. I have a lurking suspicion that most of the defines for
MinGW can be reused for Linux (in addition to -fPIC for 64-but builds).
However, I would rather have confirmation from someone who has built it
under Linux.

Thank you for the information about LAPACK.

How can we build share libraries for the sub projects?

Best regards
Sumit


On Wed, Aug 8, 2012 at 5:06 AM, Stefan Vigerske <stefan at math.hu-berlin.de>wrote:

> Hi,
>
>
> On 08/08/2012 10:25 AM, Sumit K. Nath wrote:
>
>> Dear Cbc subscribers
>> I have started a project at http://code.google.com/p/**cmake-coin/<http://code.google.com/p/cmake-coin/>that will
>> leverage CMake to build Cbc (among other COIN-OR projects) across
>> platforms.
>>
>> May I request you to please take a look at it and try it out? The project
>> currently is tailor made for Windows platforms. I need some help in making
>> it compatible with other platforms, primarily Linux. Please take a look at
>> the wiki page in the project as to how to go about building the libraries.
>> Currently, the project does not build any third party dependencies. In
>> addition, the project build has been tested on Visual Studio 10 and MinGw
>> (gcc 4.7.0).
>>
>> During the build, I found a couple of things that I want to share with
>> members here:
>> a.) I am unable to build shared libraries for sub-projects. Is there a
>> mechanism for doing this? Maybe I am missing out some defines.
>>
>
> Works for me (linux, configure), must be a problem with your setup then.
>
>
>  b.) How is LAPACK used in the library?
>>
>
> LAPACK can be used for matrix factorization. The corresponding code is
> somewhere in CoinUtils.
>
>
>  c.) I ma accumulated all pre-processor defines using MSys. However, Cygwin
>> has been left out as I do not have Cygwin. Please share your findings on
>> this as well.
>>
>
> You can get Cygwin at http://www.cygwin.com
>
>
>  d.) A few examples in the Cbc/examples do not work. They are driver3.cpp
>> and driver4.cpp. In addition, CbcSolverLongThin.cpp has an include
>> "//#include "CbcHeuristicUser.hpp"" that is not available in the current
>> SVN. Hence, I had to comment out this file.
>>
>
> CbcSolverLongThin.cpp does not need to be compiled, because it is not used
> by any example.
> Anyhow, the include of CbcHeuristicUser.hpp is now removed in trunk.
>
> driver3 and driver4 compile fine for me.
>
> Stefan
>
>  f.) Once the library is installed, other projects can also call it from
>> CMake. An example for doing this can be found in the ExternalTest folder
>> of
>> the cmake-coin project.
>>
>> Feedback of any kind is welcome.
>> Best regards
>> Sumit
>>
>>
>>
>> ______________________________**_________________
>> Cbc mailing list
>> Cbc at list.coin-or.org
>> http://list.coin-or.org/**mailman/listinfo/cbc<http://list.coin-or.org/mailman/listinfo/cbc>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20120808/91e34207/attachment.html>


More information about the Cbc mailing list