Problem installing MinGW packages

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

Post Reply
kotssmurf
Traffic Manager
Traffic Manager
Posts: 158
Joined: 27 May 2008 20:33

Problem installing MinGW packages

Post by kotssmurf »

Hi all,

After reinstalling my computer I obviously needed to install and configure MinGW.
Small note: I'm not a specialist on this matter and thus any noob-like mistakes should be ignored, or better yet corrected.

So since this low level of knowledge I'm obliged to follow the wiki page and try to comprehend as much as possible.
(http://wiki.openttd.org/Compiling_on_Mi ... ing_libpng)

First problem I encoutered is during the installation of the libpng package.
When executing "wget http://sourceforge.net/projects/libpng/ ... z/download" in the Msys console it doesn't seem to find the file. This I could fix by downloading it myself and moving it to the correct folder.

However when I try to perform the ./configure command the error message Zlib not installed gets displayed.
Does anybody have any idea how to overcome this? I've done the Zlib part again twice, there seem to be no errors.

On a sidenote, but highly related, there seem to be newer version of the packages. Can it be the wiki page is outdated?
And does anybody know how to copy from the Msys console? :-) I would've attached the output but I can't seem to find how to do it...

Thanks in advance!
Nicolas
SirOzlington
Engineer
Engineer
Posts: 20
Joined: 03 Feb 2012 16:42

Re: Problem installing MinGW packages

Post by SirOzlington »

try PKG_CONFIG_PATH=/usr/local/lib ./configure

helped for me, also i believe later on i removed libz.a from /lib since there were two, one in /lib one in /local/lib
kotssmurf
Traffic Manager
Traffic Manager
Posts: 158
Joined: 27 May 2008 20:33

Re: Problem installing MinGW packages

Post by kotssmurf »

Thanks for you quick reply! It doesn't work however :-)
I tried it, still the same errormessage...

Checking for zlibversion in -lz... no
Checking for z_zlibVersion in -lz... no
Configure: error: zlib not installed
Terkhen
OpenTTD Developer
OpenTTD Developer
Posts: 1034
Joined: 11 Sep 2008 07:32
Location: Spain

Re: Problem installing MinGW packages

Post by Terkhen »

kotssmurf wrote:First problem I encoutered is during the installation of the libpng package.
When executing "wget http://sourceforge.net/projects/libpng/ ... z/download" in the Msys console it doesn't seem to find the file. This I could fix by downloading it myself and moving it to the correct folder.
I can execute "wget http://sourceforge.net/projects/libpng/ ... z/download" fine here. Sometimes sourceforge is laggy and wget might not download the file. In that case just try again or, as a last resort, just download the file with your browser as you did.
kotssmurf wrote:However when I try to perform the ./configure command the error message Zlib not installed gets displayed.
Does anybody have any idea how to overcome this? I've done the Zlib part again twice, there seem to be no errors.
Most of the time, when OpenTTD configure can't find a library you already compiled and installed, it's because you missed the first line of the Setting_up_MSYS step of the MinGW tutorial. If your /etc/fstab file is missing that additional line then you should reinstall all libraries after adding it.
kotssmurf wrote:On a sidenote, but highly related, there seem to be newer version of the packages. Can it be the wiki page is outdated?
The packages at the wiki can be outdated, and will be most of the time. The newest versions of the libraries are usually not required to compile OpenTTD correctly, so I don't update the tutorial whenever a new version comes out. Personally I only update the tutorial when I have to reinstall MinGW again. That allows me to test the new libraries in a "clean" MinGW installation to be sure that no new problems occur. Other people have occassionally updated the packages too, which is fine as long as they test that they work as intended and they don't forget to update all appearances of the library version in the tutorial.
kotssmurf wrote:And does anybody know how to copy from the Msys console? :-) I would've attached the output but I can't seem to find how to do it...
The options of the MSYS are identical to those of the regular Windows console. Just do a right click at the title of the window, select Options, go to the Options tab and enable "QuickEdit mode". After doing this you can select text with the mouse and a right click will allow you to copy the selected text. IIRC there is a way to copy text without enabling QuickEdit, but this is simpler :)
kotssmurf
Traffic Manager
Traffic Manager
Posts: 158
Joined: 27 May 2008 20:33

Re: Problem installing MinGW packages

Post by kotssmurf »

Terkhen wrote: Most of the time, when OpenTTD configure can't find a library you already compiled and installed, it's because you missed the first line of the Setting_up_MSYS step of the MinGW tutorial. If your /etc/fstab file is missing that additional line then you should reinstall all libraries after adding it.
That was it... I feel stupid now :roll:
Thanks a for clearing everything out!
Terkhen
OpenTTD Developer
OpenTTD Developer
Posts: 1034
Joined: 11 Sep 2008 07:32
Location: Spain

Re: Problem installing MinGW packages

Post by Terkhen »

I'm also forgetting that step most of the time. I just made the text bold to make it more noticeable.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 13 guests