Author Topic: Building C::B from SVN is a problem.  (Read 5373 times)

Ptomaine

  • Guest
Building C::B from SVN is a problem.
« on: February 23, 2007, 04:08:42 am »
1) I've downloaded the latest SVN.
2) ran a ./bootstrap (it completed with no errors).
3) ran ./configure ... and in a few moments it's displayed an error: "cannot find file: Makefile"

I've checked it out and found Makefile.in and Makefile.am at its places. No "Makefile"s were generated.

any solutions will be appreciated.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: Building C::B from SVN is a problem.
« Reply #1 on: February 23, 2007, 07:30:30 am »
are the autotools and automake installed ??

Ptomaine

  • Guest
Re: Building C::B from SVN is a problem.
« Reply #2 on: February 23, 2007, 01:21:21 pm »
are the autotools and automake installed ??

Sure, they are. Otherwise bootstrap should print an error.
(I'm using openSuSE Linux 10.2 x86_64)

Ptomaine

  • Guest
Re: Building C::B from SVN is a problem.
« Reply #3 on: February 24, 2007, 08:59:24 pm »
This is the exact term output:
...
Code
checking for pkg-config... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GTK2... yes
checking for wx-config... /usr/local/bin/wx-config
checking for wxWidgets version >= 2.6.0... yes (version 2.8.0)
checking for wxWidgets static library... no
configure: Configuring Code::Blocks...
configure: SVN revision trunk-r3639 (2007-02-23 23:40:54)
configure: creating ./config.status
.infig.status: error: cannot find input file: Makefile

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: Building C::B from SVN is a problem.
« Reply #4 on: February 24, 2007, 09:36:32 pm »
I'm not sure whether this could be the cause or not but your pc has wx-2.8.0 by default. Officially C::B does not support wx-2.8.0.

You can try typing the following command (Based on the solution posted in http://forums.codeblocks.org/index.php?topic=5247.msg40910#msg40910 )-
Code
./configure --enable-contrib --with-wx-config=wx-config-2.6

Don't flame me if that doesn't work. ;)
Be a part of the solution, not a part of the problem.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Building C::B from SVN is a problem.
« Reply #5 on: February 25, 2007, 12:52:17 am »
Code
.infig.status: error: cannot find input file: Makefile

Your files have DOS line endings instead of unix. This is the problem. Did you copy the source code from a windows machine? If yes, it doesn't work that way. Checkout a new copy from svn...
Be patient!
This bug will be fixed soon...

Ptomaine

  • Guest
Re: Building C::B from SVN is a problem.
« Reply #6 on: February 25, 2007, 05:37:03 pm »
Code
.infig.status: error: cannot find input file: Makefile

Your files have DOS line endings instead of unix. This is the problem. Did you copy the source code from a windows machine? If yes, it doesn't work that way. Checkout a new copy from svn...

Yes, you're absolutely right!
Thank you ever so much!

Ptomaine

  • Guest
Re: Building C::B from SVN is a problem.
« Reply #7 on: February 25, 2007, 08:32:03 pm »
I'm not sure whether this could be the cause or not but your pc has wx-2.8.0 by default. Officially C::B does not support wx-2.8.0.

C::B perfectly compiles under wx-2.8.0 with a few corrections of some files in the wxSmith plugin.
wx-2.8.0 has backward compatibility macro definitions for wx-2.6. C::B compiles almost flawlessly even without setting that macro.