Re: [AD] allegro (image addon) build on 64-bit windows |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: allegro-developers@xxxxxxxxxx
- Subject: Re: [AD] allegro (image addon) build on 64-bit windows
- From: SiegeLord <siegelordex@xxxxxxxxxx>
- Date: Tue, 1 Dec 2015 08:17:24 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=pxF/3B7AzvC/POClqFF41w97EFmuwsJBBVpF2p5/i8k=; b=viRf6dMG3JLa6oEcRGaY0oZNDh8g9CEXBzed/prZeZU15e8XxCi8cr9XSRME989Ssk 1WmiNzSEa/ZOyawyBCxGBMW47AS0heGhUnCzHjJ7KVxbM9ppmFkg8UbaOx+xDstJqykB Lipa3pHJY7rmyQTRFw076T8extHQXBHM/o7CWX0TDouK3KImELHe6sYuN70+0Rd8lWnH RMGpjkpSpru1yspBlPz6AYeWXTk1VDR8MzIrWSHYonR5dgNvouR5KCDD0pOapuzATVPx /d3JbHwN81w8ujFMKrpEncwVi70pnxAKz1m5dH22XUu04l0yyfWN82zqc0Jb41XjkC+q y9tg==
See also https://github.com/liballeg/allegro5/issues/510
As far as I understand, all that's needed is to stick the GDI+ detection
into the FindDirectX.cmake which has all of the Windows SDK searching
logic (and rename it in the process).
-SL
On 12/01/2015 01:17 AM, Peter Hull wrote:
I tried to build Allegro on 64 bit windows and it fails because it can't
find the correct GDI+ library.
I am configuring like this:
> cmake -A x64 path-to-allegro-source
And get 18 link errors, the first of which is:
gdiplus.obj : error LNK2019: unresolved external symbol GdipAlloc
The problem seems to be that CMake can only look for the 32-bit version
of GDIplus.lib because the Windows SDK puts the 32/64 bit libs in
directories that don't match the pattern that CMake expects.
I asked on Stack overflow:
http://stackoverflow.com/questions/33124745/cmake-finding-32bit-gdi-on-64-bit-platform
and also on the cmake ML:
http://public.kitware.com/pipermail/cmake/2015-October/061804.html
There was not a great response but a suggested workaround from Sergey.
Unless anyone else has some brighter idea I can submit a patch for this
but I'd like to know - does the currect code work OK on MinGW (is there
such a thing as 64-bit MinGW?)
Thanks,
Pete
ps, Siegelord when I fix this I can send in the final Nuget package
script for your allegro_winpkg repo! Promise!!
_______________________________________________
Allegro-developers mailing list
Allegro-developers@xxxxxxxxxx
https://mail.gna.org/listinfo/allegro-developers