[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] glpk 4.57 release information
From: |
Heinrich Schuchardt |
Subject: |
Re: [Help-glpk] glpk 4.57 release information |
Date: |
Tue, 17 Nov 2015 19:56:52 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.8.0 |
Hello Andrew,
compiling as 64bit Linux with the patch works fine.
Next I tried to cross-compile with mingw64 on Debian:
sudo apt-get install mingw-w64
PREFIX=x86_64-w64-mingw32
./configure --host=x86_64-w64-mingw32
DESTDIR=$HOME/mingw64 make install
I the tried to use the generated glpsol.exec and libglpk-36.dll on Windows.
glpsol --help
worked
glpsol -m tsp.mod
resulted in an exception after generating the model.
glpsol -m sql/sudoku_odbc.mod
gave an error due to a missing odbc library.
Wouldn't you want to create the definitions of w32/config_VC when
compiling with mingw or cygwin?
#define __WOE__ 1
#define ODBC_DLNAME "odbc32.dll"
Best regards
Heinrich Schuchardt
On 17.11.2015 09:50, Andrew Makhorin wrote:
> Hi Marco, hi Heinrich,
>
>
> On Mon, 2015-11-16 at 12:32 +0100, Marco Atzeri wrote:
>> Hi Andrew,
>> it works fine, however the proposal of
>> Heinrich Schuchardt is probably better, as it
>> will cover also cross compilation
>>
>>
>> case "${host}" in
>> *-*-cygwin* | *-*-mingw*)
>> ...
>> ;;
>> esac
>
> Done.
>
> I have tested it under cygwin, and all works fine.
>
> Could you please test it, if possible, on other platforms that need
> --no-undefined linker option (in particular, cross-compilation)?
>
> Attached are the patched files to replace original ones in glpk-4.57.
>
> Best regards,
>
> Andrew Makhorin
>
>
>>
>>
>>
>> On 11/11/2015 15:54, Andrew Makhorin wrote:
>>> Hi Marco,
>>>
>>> Thank you for your patch.
>>>
>>>> for the next release, can you add the attached patch
>>>> to set the "-no-undefined" for LDFLAGS for Cygwin
>>>> and similar platforms ?
>>>>
>>>> In this way the source will build the shared lib
>>>> off the shelf.
>>>>
>>>
>>> Done.
>>>
>>> Could you please check if all works correctly and report to me or to the
>>> list? Then I will commit the changes for a next release.
>>>
>>> Attached are the patched files to replace original ones in glpk-4.57.
>>>
>>> Best regards,
>>>
>>> Andrew Makhorin
>>>
>>
>