[re-unsolved] Mingw compiling problems

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Terkhen
OpenTTD Developer
OpenTTD Developer
Posts: 1034
Joined: 11 Sep 2008 07:32
Location: Spain

Re: [re-unsolved] Mingw compiling problems

Post 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?
Terkhen
OpenTTD Developer
OpenTTD Developer
Posts: 1034
Joined: 11 Sep 2008 07:32
Location: Spain

Re: [re-unsolved] Mingw compiling problems

Post 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.
Last edited by Terkhen on 12 Nov 2010 07:31, edited 1 time in total.
User avatar
Lord Aro
Tycoon
Tycoon
Posts: 2369
Joined: 25 Jun 2009 16:42
Location: Location, Location
Contact:

Re: [re-unsolved] Mingw compiling problems

Post 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 :D
AroAI - A really feeble attempt at an AI

It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
Terkhen
OpenTTD Developer
OpenTTD Developer
Posts: 1034
Joined: 11 Sep 2008 07:32
Location: Spain

Re: [re-unsolved] Mingw compiling problems

Post by Terkhen »

Indeed, the post has been edited.
User avatar
Lord Aro
Tycoon
Tycoon
Posts: 2369
Joined: 25 Jun 2009 16:42
Location: Location, Location
Contact:

Re: [re-unsolved] Mingw compiling problems

Post by Lord Aro »

Terkhen: Can you change the wiki on the updates r21340-4?
I'm not entirely sure what to do... :lol:
AroAI - A really feeble attempt at an AI

It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
Terkhen
OpenTTD Developer
OpenTTD Developer
Posts: 1034
Joined: 11 Sep 2008 07:32
Location: Spain

Re: [re-unsolved] Mingw compiling problems

Post by Terkhen »

The wiki was updated just after r21344 was commited.
User avatar
Lord Aro
Tycoon
Tycoon
Posts: 2369
Joined: 25 Jun 2009 16:42
Location: Location, Location
Contact:

Re: [re-unsolved] Mingw compiling problems

Post by Lord Aro »

Ok, how are official binaries compiled? (icu and sorting etc)
AroAI - A really feeble attempt at an AI

It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
Terkhen
OpenTTD Developer
OpenTTD Developer
Posts: 1034
Joined: 11 Sep 2008 07:32
Location: Spain

Re: [re-unsolved] Mingw compiling problems

Post 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.
User avatar
Lord Aro
Tycoon
Tycoon
Posts: 2369
Joined: 25 Jun 2009 16:42
Location: Location, Location
Contact:

Re: [re-unsolved] Mingw compiling problems

Post 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)
AroAI - A really feeble attempt at an AI

It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: [re-unsolved] Mingw compiling problems

Post by Eddi »

which part of that is supposed to say that there was anything wrong?
User avatar
Lord Aro
Tycoon
Tycoon
Posts: 2369
Joined: 25 Jun 2009 16:42
Location: Location, Location
Contact:

Re: [re-unsolved] Mingw compiling problems

Post by Lord Aro »

well later when i try to install libpng, it says that zlib is not installed...
AroAI - A really feeble attempt at an AI

It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4766
Joined: 09 Sep 2007 05:03
Location: home

Re: [re-unsolved] Mingw compiling problems

Post by Alberth »

So have the files been copied into /usr/local/* ?

Code: Select all

if [ "0" = "1" ] ....
doesn't look too promising.
User avatar
Lord Aro
Tycoon
Tycoon
Posts: 2369
Joined: 25 Jun 2009 16:42
Location: Location, Location
Contact:

Re: [re-unsolved] Mingw compiling problems

Post 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 ..
AroAI - A really feeble attempt at an AI

It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4766
Joined: 09 Sep 2007 05:03
Location: home

Re: [re-unsolved] Mingw compiling problems

Post 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?
User avatar
Lord Aro
Tycoon
Tycoon
Posts: 2369
Joined: 25 Jun 2009 16:42
Location: Location, Location
Contact:

Re: [re-unsolved] Mingw compiling problems

Post by Lord Aro »

i can't find a /usr/local/ directory...
AroAI - A really feeble attempt at an AI

It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
Terkhen
OpenTTD Developer
OpenTTD Developer
Posts: 1034
Joined: 11 Sep 2008 07:32
Location: Spain

Re: [re-unsolved] Mingw compiling problems

Post 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.
User avatar
Lord Aro
Tycoon
Tycoon
Posts: 2369
Joined: 25 Jun 2009 16:42
Location: Location, Location
Contact:

Re: [re-unsolved] Mingw compiling problems

Post 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?
AroAI - A really feeble attempt at an AI

It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
oberhümer
Tycoon
Tycoon
Posts: 1283
Joined: 23 Oct 2009 19:35
Location: Here and there, sometime or another

Re: [re-unsolved] Mingw compiling problems

Post by oberhümer »

Delete the old one if it also ended with "/usr/local".
--- Licenses: GNU LGPL, version 2 or newer, code and graphics. CC-By-SA, graphics, alternatively. If you're using any, I'd like to hear about it --- Call them "track types" ---
--- Mostly inactive developer for: NuTracks - Central European Train Set --- Running/compiling for: Linux (x86) - Android - Windows (32/64 bit) ---

--- Need a file packer? 7-Zip --- BOINC - use your computing power to benefit science --- Block trackers, not ads --- Unix in dispersible pellets, the formula for the future. ---
User avatar
Lord Aro
Tycoon
Tycoon
Posts: 2369
Joined: 25 Jun 2009 16:42
Location: Location, Location
Contact:

Re: [re-unsolved] Mingw compiling problems

Post by Lord Aro »

it doesn't, it is:

C:\MinGW\ /mingw
AroAI - A really feeble attempt at an AI

It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
oberhümer
Tycoon
Tycoon
Posts: 1283
Joined: 23 Oct 2009 19:35
Location: Here and there, sometime or another

Re: [re-unsolved] Mingw compiling problems

Post by oberhümer »

I'd delete it, why mount the same folder in two different places?
--- Licenses: GNU LGPL, version 2 or newer, code and graphics. CC-By-SA, graphics, alternatively. If you're using any, I'd like to hear about it --- Call them "track types" ---
--- Mostly inactive developer for: NuTracks - Central European Train Set --- Running/compiling for: Linux (x86) - Android - Windows (32/64 bit) ---

--- Need a file packer? 7-Zip --- BOINC - use your computing power to benefit science --- Block trackers, not ads --- Unix in dispersible pellets, the formula for the future. ---
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: Bing [Bot] and 9 guests