discuss-gnustep
[Top][All Lists]
Advanced

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

Re: GNUstep - libobjc2 compile error


From: Bob Plymale
Subject: Re: GNUstep - libobjc2 compile error
Date: Fri, 23 Jul 2021 15:21:13 -0400
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0

I am following the "build GNUstep using the Microsoft toolchain".

I verified the prerequisites for building and started the build.bat as follows:

>build.bat

### Checking prerequisites
Using Bash shell: msys2_shell -defterm -no-start -msys2 -full-path -here -c
C:\Program Files\Git\cmd\git.exe
C:\Program Files\CMake\bin\cmake.exe
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe
C:\Program Files\ninja\ninja.exe
C:\ProgramData\chocolatey\bin\ninja.exe
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja\ninja.exe C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\Llvm\x64\bin\clang-cl.exe
/usr/bin/make
/usr/bin/autoconf
/usr/bin/automake
/usr/bin/libtool

######## BUILDING FOR x64 Debug ########

######## BUILDING FOR x64 Release ########

### Finished building GNUstep into:
### C:\GNUstep\x64

C:\GNUstep folder is empty, not sure where I went wrong.



On 7/22/2021 8:53 AM, Frederik Seiffert wrote:
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:
https://github.com/gnustep/libobjc2/pull/190

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:
http://github.com/gnustep/tools-windows-msvc

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

Frederik


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 ..
set CCC_OVERRIDE_OPTIONS=x-TC x-TP x/TC x/TP
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]