Started by prissi, September 01, 2020, 07:57:10 AM
0 Members and 1 Guest are viewing this topic.
cd simutranssvn upcd trunkmake
make -f Makefile.mingwcc -Wall -Os -DNDEBUG -D_WIN32_WINNT=0X501 -o wingenminiupnpcstrings.exe wingenminiupnpcstrings.cmake: cc: No such file or directorymake: *** [Makefile.mingw:80: wingenminiupnpcstrings.exe] Error 127
Quote from: prissi on September 05, 2020, 01:10:17 PMIf you do pacman -Syu then it often happens that pacman stops and say to close this window. It will confuse people.
Use msys2 shell for running pacman, makepkg, makepkg-mingw and for building POSIX-dependent software that you don't intend to distribute. Use mingw shells for building native Windows software and other tasks.
Quote from: prissi on September 03, 2020, 12:22:01 PMThis installation of mingw64 should compile also extended. Download (clone) the git into a path below C:\mingw64\home\username The config.default you can probably copy from standard. And type make. It should compile and link.
===> RES simres.rc/bin/sh: x86_64-w64-mingw32-windres: command not foundmake: *** [common.mk:60: build/default/simres.o] Error 127make: *** Waiting for unfinished jobs....
ifneq ($(findstring $(OSTYPE), cygwin mingw32 mingw64),) SOURCES += simres.rc # See https://sourceforge.net/p/mingw-w64/discussion/723798/thread/bf2a464d/ ifeq ($(OSTYPE), mingw32) WINDRES ?= windres -F pe-i386 else ifeq ($(OSTYPE), mingw64) WINDRES ?= x86_64-w64-mingw32-windres endif endifendif
ifeq ($(OSTYPE),mingw) SOURCES += simres.rc WINDRES ?= windresendif
Quote from: prissi on September 06, 2020, 11:36:25 AMAcutally, you have to use pacman from mingw32 or ming64 or else no development libraries will be installed (at least when I tried this with this script two weeks ago). That is why you need the MING prefix.
Quote from: Matthew on September 03, 2020, 06:23:57 AMNow the next challenge for me is to try to adapt this method to compiling Extended......
===> LD /r/build/Simutrans-Extended.exeR:/build/bauer/brueckenbauer.o:brueckenbauer.cc:(.text+0x55ee): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `TLS init function for karte_t::marker_index'R:/build/bauer/brueckenbauer.o:brueckenbauer.cc:(.text+0x560b): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `TLS init function for karte_t::marker_index'...R:/build/bauer/wegbauer.o:wegbauer.cc:(.text+0x7615): additional relocation overflows omitted from the outputcollect2.exe: error: ld returned 1 exit statusmake: *** [common.mk:27: /r/build/Simutrans-Extended.exe] Error 1
Quote from: Matthew on September 07, 2020, 01:57:02 PMAnd I am slightly concerned that the file name is x86_64-w64-mingw32-windres. Yes, the first part (x86_64) suggests that it's the right resource compiler for 64-bit builds, but I thought that mingw32 and mingw64 refer to different sets of packages?
Quote from: Matthew on October 01, 2020, 04:14:45 AMFirstly, the hashes need to be the same, i.e., the same commit must be at the end of the commit history. But I'm not sure how to do this.
ifneq ($(MULTI_THREAD),) ifeq ($(shell expr $(MULTI_THREAD) \>= 1), 1) CFLAGS += -DMULTI_THREAD ifeq ($(OSTYPE),mingw32 mingw64)#use lpthreadGC2d for debug alternatively# Disabled, as this does not work for cross-compiling# LDFLAGS += -lpthreadGC2 LDFLAGS += -static -lpthread else ifneq ($(OSTYPE),haiku) LDFLAGS += -lpthread endif endif endifendif