Development > Newbie Coding
(log) Actually got new build system to (partially) work on Windows 7
Muton:
working
Mattn:
ok, configure now has a --enable-static option- please try and let me know which modifications you still have
Muton:
My mod is attached
I've added static a little different than you
and an --enable-w2k switch
We need the -static LDFLAG too ???
added this switch only at mingw32.mk
If you add this to $(TARGET)_LDFLAGS (ufo.mk ufoded.mk ....)
please use this for radiant
$(shell echo $(TARGET_OS) | grep -i "mingw32" >/dev/null || if [ -n "$(STATIC)" ]; then echo -$(STATIC); fi )
Its still not possible in Mingw to build radiant statically
The ufo and ufotest -lstdc++ problem is solved by adding this flag into SDL_mixer.pc
The Windows 2000 problem was caused by CCFLAGS += -std=c99
and please leave the -static-libgcc -static-libstdc++ flags for brush and radiant
Still one problem
stdout and stderr is redirected to
stderr.txt
stdout.txt
for ufomodel and ufo2map
btw. please merge this topic into this one http://ufoai.ninex.info/forum/index.php?topic=4689.0
Muton:
Still one problem
stdout and stderr is redirected to
stderr.txt
stdout.txt
for ufomodel and ufo2map
Is fixed too
As described here
recompiled SDL using --disable-stdio-redirect
removed -mwindows from sdl_config and sdl.pc
ufo2map and ufomodel do now output to stdout and stderr instead of a file
(ufo and testall still compile ;) )
One last very unimportant thing
Do you plan to use the -s switch in the future to reduce the file size?
Muton:
make pk3
/bin/sh: /bin/7za: Bad file number
make: *** [base/0models.pk3] Error 126
Fist im using 7za instead of 7z (easy fixed)
2nd you append all files as parameters to 7zip
and that will fail
The buffer is not long enough
A listfile is a way arround it
but
For list files, 7-Zip uses UTF-8 encoding by default. You can change encoding using -scs switch
UTF-8
Unicode UTF-8 character set.
WIN
Default character set of Windows.
DOS
Default DOS (OEM) character set of Windows.
7z a archive.7z @listfile.txt -scsWIN
another solution is to hardlink files
or the best solution is a python script (for windows only)
We|I are than able to optimize the pk3 build
because 7z only use 2 cores
On a quad core we can run 2 instances ...
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version