[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNUstep - libobjc2 compile error

From: Frederik Seiffert
Subject: Re: GNUstep - libobjc2 compile error
Date: Thu, 22 Jul 2021 14:53:16 +0200

Hi Bob,

libobjc2 currently doesn’t support MinGW. There has been work trying to get it 
to work, but it’s currently blocked on figuring out the C++ exception handling 
integration under MinGW. You can follow the efforts here:

Alternatively, if you just want a working Objective-C environment on Windows 
with Foundation (but currently not AppKit / gnustep-gui), you can build GNUstep 
using the Microsoft toolchain instead of MinGW using these scripts, which will 
use Clang and libobjc2:

If you give these scripts a try feel free to let me know if you run into any 


> Am 22.07.2021 um 13:32 schrieb Bob Plymale <bplymale@gmail.com>:
> Following the recommendation I cleaned up my previous attempts to get GNUstep 
> working properly.
> I installed msys2 and all of the required and optional packages to proceed on 
> compiling and building  the following:
> gnustep-make tools-make
> gnustep-base
> gnustep-gui
> gnustep-back
> Currently I am getting compile errors on compiling libobjc2.
> Input:
>> mkdir build
>> cd build
>> cmake -G Ninja -DCMAKE_C_COMPILER=d:\msys64\mingw64\bin\clang-cl.exe 
>> -DCMAKE_CXX_COMPILER=d:\msys64\mingw64\bin\clang-cl.exe ..
>> ninja
> Results:
> D:\Staging\libobjc2\build>cmake -G Ninja 
> -DCMAKE_C_COMPILER=d:\msys64\mingw64\bin\clang-cl.e
> xe -DCMAKE_CXX_COMPILER=d:\msys64\mingw64\bin\clang-cl.exe ..
> CMake Error at build/CMakeFiles/3.18.0/CMakeCCompiler.cmake:1 (set):
>  Syntax error in cmake code at
>    D:/Staging/libobjc2/build/CMakeFiles/3.18.0/CMakeCCompiler.cmake:1
>  when parsing string
>    d:\msys64\mingw64\bin\clang-cl.exe
>  Invalid character escape '\m'.
> Call Stack (most recent call first):
>  CMakeLists.txt:3 (project)
> CMake Error: CMAKE_ASM_COMPILER not set, after EnableLanguage
> -- Configuring incomplete, errors occurred!
> See also "D:/Staging/libobjc2/build/CMakeFiles/CMakeOutput.log".
> See also "D:/Staging/libobjc2/build/CMakeFiles/CMakeError.log”.
> Anyone help me out so I can get GNUstep compiled, installed and working?
> Apologies if I am using the wrong list account. I do not see much activity on 
> any of them..
> Thanks,
> Bob
> Ps: My end result is that I have a fully working object-c working on windows. 
> My macOS objective-c is working just fine.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]