For what it’s worth, I’ve had good luck running the Linux builds in Windows under WSL. Just install an X server like vcxsrv
Sent from my iPhone On Jul 22, 2021, at 12:21 PM, Bob Plymale <bplymale@gmail.com> wrote:
Starting clean I installed msys2 and then ran the below script
and received the following error:
Build make
configure: loading site script /etc/config.site
checking build system type... x86_64-pc-msys
checking host system type... x86_64-pc-msys
checking target system type... x86_64-pc-msys
checking for pkgconfig... yes
checking for gnustep-config... no
checking for gawk... gawk
checking for library combo... gnu-gnu-gnu
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/bplymale/gnustep/tools-make':
configure: error: C compiler cannot create executables
See `config.log' for more details
./tools-scripts/build-msys_nt: line 33:
/usr/GNUstep/System/Library/Makefiles/GNUstep.sh: No such file or
directory
================ Post Installation ================
/bin/bash: line 55: ./tools-scripts/post-install-msys_nt: No such
file or directory
Also, someone else responded with a different method to use. So
to be honest I am confused.
On 7/22/2021 7:49 AM, Gregory Casamento
wrote:
Bob,
Greetings!
Clang/libobjc2 is a PITA to get working on Windows.
Currently, we build using GCC on Msys2+Windows, but that
will change soon. You might find the following link
helpful:
Once you
havc installed MSYS2, open an MSYS shell and run the above.
It should download and install everything you need to get
started. This does use gcc which means you will have access
to some, not all, of ObjC2.0 features.
Please try that and
let me know if you have any questions.
Thanks, GC
<image.gif>
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.
--
|