Trouble with building LDC on Windows, specifically with building libconfig

Eappen Nelluvelil via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Tue Jul 21 00:46:31 PDT 2015


On Monday, 20 July 2015 at 05:53:31 UTC, Kai Nacke wrote:
> On Saturday, 18 July 2015 at 03:33:26 UTC, Eappen Nelluvelil 
> wrote:
>> Kai, I ran into another problem. The configure script works as 
>> expected, and libconfig builds successfully. However, when I 
>> am trying to build ldc, I run into an issue with the location 
>> of the correct dll. On the D wiki page for building LDC from 
>> source for MinGW, the cmake command to build LDC works, but 
>> then the Ninja configuration file doesn't seem to run.
>>
>> I have created a gist of the output when cmake and ninja are 
>> run:
>> https://gist.github.com/anonymous/83ba87ea2a8d9f0c3722
>>
>> I am not really sure where to go on from here.
>
> Hi Eappen!
>
> I currently have no idea. I simply compile and install 
> libconfig into /usr/local. Then the linker picks up the library 
> automatically and you do not need to specify the path to the 
> include and lib file.
>
> At least one error is there: you need to link against 
> libconfig.dll.a because the C version is used by ldc (I changed 
> this some time ago).
>
> The policy complain from CMake was introduced in cmake 3.3. The 
> latest cmake I used to build ldc is currently 3.2.3 therefore I 
> did not encounter this message. I will fix it as soon as I have 
> some more time. The easiest "fix" is to use an older version of 
> CMake.
>
> You may want to have a look at the build scripts used to create 
> a release: 
> https://github.com/ldc-developers/ldc-scripts/tree/master/ldc2-packaging
> They work on MingW, too, and use ninja to build ldc.
>
> Regards,
> Kai

Hi Kai!

I gave up on building on Windows. I was running into all sorts of 
issues with Ninja and libconfig, and I couldn't get ldc to link 
against libconfig.all.a. I'm going to assume it's most likely an 
issue with my toolchain, because msys2 is kinda broken for me, 
and Cygwin wasn't faring any better. Good news is that I got a 
Lubuntu virtual machine up and running, and I after an hour or so 
of hunting down some needed packages, I got ldc up and running 
successfully :) I'll keep looking into the issues with building 
ldc on Windows (for some odd reason, MSVC wasn't working either, 
and it ended up having to do with libconfig). Oh well :P Thanks 
for helping me out Kai!


More information about the digitalmars-d-ldc mailing list