Author Topic: [SOLVED] Problems with MinGW-gcc4.4.0 instalation  (Read 10443 times)

Offline DanRR

  • Multiple posting newcomer
  • *
  • Posts: 18
[SOLVED] Problems with MinGW-gcc4.4.0 instalation
« on: July 25, 2009, 04:32:24 pm »
Hello,
I've installed the new MinGW-gcc4.4.0 version.
When opening and building projects with CB I got the following error message:
Header : "cc1plus.exe - Unable To Locate Component"
Message: "This application has failecl to start because libgmp-3.dll was not founcl. Re-installing the application may fix this problem."
I found and downloaded this dll and then got the following message:
Header : "cc1plus.exe - Unable To Locate Component"
Message: "This application has failecl to start because libmpfr-1.dll was not founcl. Re-installing the application may fix this problem."
I didn't found this one, but obviously there is something wrong with my installation.

I'm using Windows XP and CodeBlocks build 5459 (I've also tested the new 5696 build and got the same error)
I've installed the following MinGW packages:
'binutils-2.19.1-mingw32-bin.tar.gz',
'gcc-core-4.4.0-mingw32-bin.tar.gz',
'gcc-c++-4.4.0-mingw32-bin.tar.gz',
'mingwrt-3.15.2-mingw32-dev.tar.gz',
'mingwrt-3.15.2-mingw32-dll.tar.gz',
'w32api-3.13-mingw32-dev.tar.gz',
'mingw32-make-3.81-20080326-3.tar.gz',
'gdb-6.8-mingw-3.tar.bz2',
'mingw-utils-0.3.tar.gz'

Whats wrong with my instillation? How can I fix it?
Thanks  
« Last Edit: July 25, 2009, 06:07:52 pm by DanRR »

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5930
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Problems with MinGW-gcc4.4.0 instalation
« Reply #1 on: July 25, 2009, 04:52:49 pm »
you can search the MinGW maillist, there are some message about your problem these days.
But this is not related to Codeblocks. :D
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline DanRR

  • Multiple posting newcomer
  • *
  • Posts: 18
Re: Problems with MinGW-gcc4.4.0 instalation
« Reply #2 on: July 25, 2009, 06:06:46 pm »
Thanks ollydbg,
I fixed it, the problem was missing packages.

If someone will have installation problems with this release, here is a Python script
for a working installation, you can also check that for the required packages:

#!/usr/bin/env python
import tarfile

files = [ 'binutils-2.19.1-mingw32-bin.tar.gz',
            'gcc-core-4.4.0-mingw32-bin.tar.gz',
            'gcc-core-4.4.0-mingw32-dll.tar.gz',
            'gcc-c++-4.4.0-mingw32-bin.tar.gz',
            'gcc-c++-4.4.0-mingw32-dll.tar.gz',
            'gmp-4.2.4-mingw32-dll.tar.gz',
            'mpfr-2.4.1-mingw32-dll.tar.gz',
            'pthreads-w32-2-8-0-src.tar.gz',
            'mingwrt-3.15.2-mingw32-dev.tar.gz',
            'mingwrt-3.15.2-mingw32-dll.tar.gz',
            'w32api-3.13-mingw32-dev.tar.gz',
            'mingw32-make-3.81-20080326-3.tar.gz',
            'gdb-6.8-mingw-3.tar.bz2',
            'mingw-utils-0.3.tar.gz']

for file in files:
    print 'Extracting', file
    tar = tarfile.open(file)
    tar.extractall('C:\MinGW')
    tar.close()
print 'Done'