Page 4 of 6
Re: [re-unsolved] Mingw compiling problems
Posted: 28 Oct 2010 09:40
by Terkhen
I have just installed a fresh MinGW/MSYS and I did not require to do the step "Setting up MSYS" (which means that the MinGW folder was already mounted as /mingw after install). IIRC they were planning to correct this problem, and it seems like they did. Can anybody confirm if this step is not required anymore?
Re: [re-unsolved] Mingw compiling problems
Posted: 11 Nov 2010 22:23
by Terkhen
The MinGW section of the wiki has been updated with instructions for compiling libicu. This is an optional dependency that you should install only if you need to use right-to-left scripts.
Re: [re-unsolved] Mingw compiling problems
Posted: 11 Nov 2010 22:40
by Lord Aro
Surely you mean right-to-left?
Nice to see you're using my thread as the 'official' mingw wiki thread
I feel privlidged

Re: [re-unsolved] Mingw compiling problems
Posted: 12 Nov 2010 07:32
by Terkhen
Indeed, the post has been edited.
Re: [re-unsolved] Mingw compiling problems
Posted: 29 Nov 2010 18:57
by Lord Aro
Terkhen: Can you change the wiki on the updates r21340-4?
I'm not entirely sure what to do...

Re: [re-unsolved] Mingw compiling problems
Posted: 29 Nov 2010 23:22
by Terkhen
The wiki was updated just after r21344 was commited.
Re: [re-unsolved] Mingw compiling problems
Posted: 30 Nov 2010 03:29
by Lord Aro
Ok, how are official binaries compiled? (icu and sorting etc)
Re: [re-unsolved] Mingw compiling problems
Posted: 30 Nov 2010 07:32
by Terkhen
Official binaries (except windows 9x ones) are compiled with MSVC, not with MinGW. They use
OpenTTD Useful which includes libicu with a reduced icudata size.
Re: [re-unsolved] Mingw compiling problems
Posted: 02 Apr 2011 22:24
by Lord Aro
i'm having trouble installing zlib, following the instructions on the wiki:
Code: Select all
xxxxxxx@xxxx ~/zlib-1.2.5
$ make -f win32/Makefile.gcc BINARY_PATH=/usr/local/bin INCLUDE_PATH=/usr/local/include LIBRAR
Y_PATH=/usr/local/lib install
gcc -O3 -Wall -DNO_VIZ -c -o adler32.o adler32.c
gcc -O3 -Wall -DNO_VIZ -c -o compress.o compress.c
gcc -O3 -Wall -DNO_VIZ -c -o crc32.o crc32.c
gcc -O3 -Wall -DNO_VIZ -c -o deflate.o deflate.c
gcc -O3 -Wall -DNO_VIZ -c -o gzclose.o gzclose.c
gcc -O3 -Wall -DNO_VIZ -c -o gzlib.o gzlib.c
gcc -O3 -Wall -DNO_VIZ -c -o gzread.o gzread.c
gcc -O3 -Wall -DNO_VIZ -c -o gzwrite.o gzwrite.c
gcc -O3 -Wall -DNO_VIZ -c -o infback.o infback.c
gcc -O3 -Wall -DNO_VIZ -c -o inffast.o inffast.c
gcc -O3 -Wall -DNO_VIZ -c -o inflate.o inflate.c
gcc -O3 -Wall -DNO_VIZ -c -o inftrees.o inftrees.c
gcc -O3 -Wall -DNO_VIZ -c -o trees.o trees.c
gcc -O3 -Wall -DNO_VIZ -c -o uncompr.o uncompr.c
gcc -O3 -Wall -DNO_VIZ -c -o zutil.o zutil.c
ar rcs libz.a adler32.o compress.o crc32.o deflate.o gzclose.o gzlib.o gzread.o gzwrite.o infba
ck.o inffast.o inflate.o inftrees.o trees.o uncompr.o zutil.o
windres --define GCC_WINDRES -o zlibrc.o win32/zlib1.rc
gcc -shared -Wl,--out-implib,libzdll.a \
-o zlib1.dll win32/zlib.def adler32.o compress.o crc32.o deflate.o gzclose.o gzlib.o gz
read.o gzwrite.o infback.o inffast.o inflate.o inftrees.o trees.o uncompr.o zutil.o zlibrc.o
Creating library file: libzdll.a
strip zlib1.dll
if [ "0" = "1" ]; then \
mkdir -p /usr/local/bin; \
cp -fp zlib1.dll /usr/local/bin; \
cp -fp libzdll.a /usr/local/lib; \
fi
cp -fp zlib.h /usr/local/include
cp -fp zconf.h /usr/local/include
cp -fp libz.a /usr/local/lib
(note, lines may be split strangely due to command prompt)
Re: [re-unsolved] Mingw compiling problems
Posted: 02 Apr 2011 22:29
by Eddi
which part of that is supposed to say that there was anything wrong?
Re: [re-unsolved] Mingw compiling problems
Posted: 02 Apr 2011 22:50
by Lord Aro
well later when i try to install libpng, it says that zlib is not installed...
Re: [re-unsolved] Mingw compiling problems
Posted: 03 Apr 2011 07:45
by Alberth
So have the files been copied into /usr/local/* ?
doesn't look too promising.
Re: [re-unsolved] Mingw compiling problems
Posted: 03 Apr 2011 08:37
by Lord Aro
no idea, the instructions don't do it in a single instruction
Code: Select all
wget http://zlib.net/zlib-1.2.5.tar.gz
tar xvfz zlib-1.2.5.tar.gz
cd zlib-1.2.5
make -f win32/Makefile.gcc BINARY_PATH=/usr/local/bin INCLUDE_PATH=/usr/local/include LIBRARY_PATH=/usr/local/lib install
cd ..
Re: [re-unsolved] Mingw compiling problems
Posted: 03 Apr 2011 08:57
by Alberth
You can type 'ls' or 'dir' or so in that directory, or clickerdeclick with your file system browser to that directory, and look whether there are files with the right names there?
Re: [re-unsolved] Mingw compiling problems
Posted: 03 Apr 2011 09:12
by Lord Aro
i can't find a /usr/local/ directory...
Re: [re-unsolved] Mingw compiling problems
Posted: 03 Apr 2011 10:01
by Terkhen
Then there is something wrong with your MinGW/MSYS installation. You should have that folder with both the old tutorial (that did not edit fstab) and the new one.
Re: [re-unsolved] Mingw compiling problems
Posted: 04 Apr 2011 20:46
by Lord Aro
OK, i'll try reinstalling it, again...
I just had a thought, could this be to do with the no admin rights thing? i notice the tutorial mentions it... :/
edit: can someone clarify this section? :
Go to your msys folder (C:\MinGW\msys\1.0), open etc\fstab with a text editor (for example Notepad) and add the following line:
C:\MinGW\ /usr/local
does this mean delete the old line? or add it under the other line?
Re: [re-unsolved] Mingw compiling problems
Posted: 04 Apr 2011 21:16
by oberhümer
Delete the old one if it also ended with "/usr/local".
Re: [re-unsolved] Mingw compiling problems
Posted: 04 Apr 2011 21:40
by Lord Aro
it doesn't, it is:
C:\MinGW\ /mingw
Re: [re-unsolved] Mingw compiling problems
Posted: 04 Apr 2011 22:03
by oberhümer
I'd delete it, why mount the same folder in two different places?