[Lemon-user] Cannot use Linear Programming module - MacOs Sierra

Noel Farrugia noel.farrugia.09 at um.edu.mt
Wed Dec 28 18:59:05 CET 2016


Hi All,

I have managed to solve this problem. The issue was that as GLPK was not installed in the default location, LEMON did not find GLPK.
To solve it I appended -DGLPK_ROOT_DIR=<root directory of glpk> to the cmake command.

Cheers,
Noel
> On 28 Dec 2016, at 12:00, lemon-user-request at lemon.cs.elte.hu wrote:
> 
> Send Lemon-user mailing list submissions to
> 	lemon-user at lemon.cs.elte.hu
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://lemon.cs.elte.hu/mailman/listinfo/lemon-user
> or, via email, send a message with subject or body 'help' to
> 	lemon-user-request at lemon.cs.elte.hu
> 
> You can reach the person managing the list at
> 	lemon-user-owner at lemon.cs.elte.hu
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Lemon-user digest..."
> 
> 
> Today's Topics:
> 
>   1. Cannot use Linear Programming module - MacOs Sierra
>      (Noel Farrugia)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Wed, 28 Dec 2016 09:04:40 +0100
> From: Noel Farrugia <noel.farrugia.09 at um.edu.mt>
> To: lemon-user at lemon.cs.elte.hu
> Subject: [Lemon-user] Cannot use Linear Programming module - MacOs
> 	Sierra
> Message-ID: <753F4317-7E69-4773-B22F-A078F48BEE1C at um.edu.mt>
> Content-Type: text/plain; charset="utf-8"
> 
> Dear all,
> 
> I have successfully managed to install and compile the first lemon example shown here http://lemon.cs.elte.hu/pub/tutorial/a00012.html <http://lemon.cs.elte.hu/pub/tutorial/a00012.html>.
> 
> When I?m trying to compile source code that contains Linear Programming features I get the following error
> lemon_lp.cc:25:3: error: unknown type name 'Lp'
>  Lp lp;
> 
> The compile command I am using is:
> g++ -o lemon_lp lemon_lp.cc -lemon
> 
> Where lemon_lp.cc is the source code that is an identical copy of the code provided here http://lemon.cs.elte.hu/pub/tutorial/a00025.html <http://lemon.cs.elte.hu/pub/tutorial/a00025.html>
> 
> Am I doing something wrong, because I did not face similar issues when installing Lemon on UBUNTU.
> 
> My OS version is macOS Sierra 10.12.2
> 
> Thanks a lot for your time. Much appreciated.
> 
> Kind Regards,
> Noel Farrugia
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lemon.cs.elte.hu/pipermail/lemon-user/attachments/20161228/41f303e3/attachment-0001.html>
> 
> ------------------------------
> 
> Subject: Digest Footer
> 
> _______________________________________________
> Lemon-user mailing list
> Lemon-user at lemon.cs.elte.hu
> http://lemon.cs.elte.hu/mailman/listinfo/lemon-user
> 
> 
> ------------------------------
> 
> End of Lemon-user Digest, Vol 92, Issue 1
> *****************************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lemon.cs.elte.hu/pipermail/lemon-user/attachments/20161228/9fd7039f/attachment.html>


More information about the Lemon-user mailing list