Code::Blocks Forums

User forums => Help => Topic started by: Ptomaine on February 23, 2007, 04:08:42 am

Title: Building C::B from SVN is a problem.
Post by: Ptomaine 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.
Title: Re: Building C::B from SVN is a problem.
Post by: killerbot on February 23, 2007, 07:30:30 am
are the autotools and automake installed ??
Title: Re: Building C::B from SVN is a problem.
Post by: Ptomaine 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)
Title: Re: Building C::B from SVN is a problem.
Post by: Ptomaine 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
Title: Re: Building C::B from SVN is a problem.
Post by: Biplab 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. ;)
Title: Re: Building C::B from SVN is a problem.
Post by: mandrav 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...
Title: Re: Building C::B from SVN is a problem.
Post by: Ptomaine 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!
Title: Re: Building C::B from SVN is a problem.
Post by: Ptomaine 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.