Author Topic: The 15 December 2007 build (4734) is out.  (Read 34181 times)

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: The 15 December 2007 build (4734) is out.
« Reply #15 on: December 17, 2007, 07:50:20 am »
dannyyy:
Quote
bash: ./bootstrap: /bin/sh^M: bad interpreter: No such file or directory
take a look at the bootstrap file, if it does contain that "^M" character then it's probably messed up

No, I can't find this character in the bootstrap file.

All source files were freshly retrieved from CB SVN.

The versions of the tools I have should work, right ?

There are still dos line-endings in the bootstrap-script.

"^M" is the control character for carriage return shown as readable character.
Your shell tries to find an interpreter called "sh^M" in your "/bin" dir. But there is none of course.

Did you accidently use the "-d" switch when running the "dos2unix"-tool.

Normally the (fresh) sources should compile without doing "dos2unix" before.
I've never used "dos2unix" and have it compiled quiet often.

Offline dannyyy

  • Multiple posting newcomer
  • *
  • Posts: 23
Re: The 15 December 2007 build (4734) is out.
« Reply #16 on: December 17, 2007, 11:58:50 am »
I tried again, and now there is a completely different error:

Code
$ ./bootstrap
You should add the contents of `/usr/share/aclocal/libtool.m4' to `aclocal.m4'.
configure.in:77: warning: macro `AM_OPTIONS_WXCONFIG' not found in library
configure.in:78: warning: macro `AM_PATH_WXCONFIG' not found in library
configure.in:9: installing `./missing'
configure.in:9: installing `./install-sh'
src/base/tinyxml/Makefile.am: installing `./depcomp'
configure.in:77: error: possibly undefined macro: AM_OPTIONS_WXCONFIG
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.in:78: error: possibly undefined macro: AM_PATH_WXCONFIG

I believe the problem is in my configurations, but I don't know what to do.

EDIT: I noticed that the wiki was edited...thanks for that ! I'm starting again from the beginning, let's see what happens.
« Last Edit: December 17, 2007, 01:07:19 pm by dannyyy »

Offline JGM

  • Lives here!
  • ****
  • Posts: 518
  • Got to practice :)
Re: The 15 December 2007 build (4734) is out.
« Reply #17 on: December 17, 2007, 01:28:14 pm »
Code
$ ./bootstrap
You should add the contents of `/usr/share/aclocal/libtool.m4' to `aclocal.m4'.

that happened to me, and I did just what the output says, copy the content of /usr/share/aclocal/libtool.m4 to aclocal.m4 and run the bootstrap again, that worked on my ubuntu box

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: The 15 December 2007 build (4734) is out.
« Reply #18 on: December 17, 2007, 02:19:07 pm »
Code
configure.in:77: error: possibly undefined macro: AM_OPTIONS_WXCONFIG
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.in:78: error: possibly undefined macro: AM_PATH_WXCONFIG

I believe the problem is in my configurations, but I don't know what to do.

Copy wxwin.m4 file to /usr/share/aclocal folder. If you install wx using configure && make then it often forgets this step. :)
Be a part of the solution, not a part of the problem.

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: The 15 December 2007 build (4734) is out.
« Reply #19 on: December 17, 2007, 04:16:48 pm »
afb : What black magic are you doing to get the mac version running? Here I built from SVN but wxDynamicLibrary wouldn't work (I've met that problem before, the class refuses to load perfectly valid libraries) What I don't get is why it works when you build it  :)

Maybe bugs with wxWidgets 2.8.7 ? Otherwise I don't known either, the only patches I have left is to make it build as a universal binary - i.e. outside of the source tree, and inside a "build" subdirectory

Offline dannyyy

  • Multiple posting newcomer
  • *
  • Posts: 23
Re: The 15 December 2007 build (4734) is out.
« Reply #20 on: December 17, 2007, 09:42:03 pm »
Jens & JGM: the problem disappeared after I paid more attention to the wiki instructions  :), but thanks for your help, anyway.

Biplab: I don't find this instruction you gave me anywhere, even on wxWidgets website. Without your help I could never compile CodeBlocks successfully. Thank you !

Let me ask something else: now that I have CB installed, how can I update it to the next SVN revisions ? Do I just need to do the " configure, make, make install" trio or do I have to do something else ?

howardh

  • Guest
Re: The 15 December 2007 build (4734) is out.
« Reply #21 on: December 17, 2007, 09:50:04 pm »
Codeblocks is grreyed in the update manager, why is that and how do I fix it?
It's been a while since I updated because of ths...

[attachment deleted by admin]

Offline darthdespotism

  • Almost regular
  • **
  • Posts: 163
    • Coder's Nemesis
Re: The 15 December 2007 build (4734) is out.
« Reply #22 on: December 17, 2007, 10:04:22 pm »
Probably a conflict I guess. Try using either synaptic/adept or aptitude (sudo aptitude safe-upgrade) and look what it tells you. (Maybee an sudo aptitude install codeblocks is more productive)

howardh

  • Guest
Re: The 15 December 2007 build (4734) is out.
« Reply #23 on: December 18, 2007, 06:25:18 am »
sudo aptitude install codeblocks
Quote
sudo aptitude install codeblocks
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information     
Initializing package states... Done
Building tag database... Done     
The following packages are BROKEN:
  libcodeblocks0
The following packages will be upgraded:
  codeblocks
2 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 5949kB of archives. After unpacking 680kB will be freed.
The following packages have unmet dependencies:
  libcodeblocks0: Depends: libwxbase2.8-0 (>= 2.8.7.1) but 2.8.4.0-0ubuntu3 is installed.
                  Depends: libwxgtk2.8-0 (>= 2.8.7.1) but 2.8.4.0-0ubuntu3 is installed.

Resolving dependencies...
The following actions will resolve these dependencies:

Remove the following packages:
codeblocks


Keep the following packages at their current version:
libcodeblocks0 [1.0svn4545 (now)]

Score is -9811

Accept this solution? [Y/n/q/?]

sudo aptitude safe-upgrade
Quote
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information     
Initializing package states... Done
Building tag database... Done     
The following packages have been kept back:
  codeblocks libcodeblocks0

0 packages upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information       
Initializing package states... Done
Building tag database... Done     

what do I do?

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: The 15 December 2007 build (4734) is out.
« Reply #24 on: December 18, 2007, 09:20:37 am »
Which repository do you use ?

I don't know how to force "apt" not to use dependency checking. If "dpkg" is installed you can force installation of a special .deb-file with
Code
dpkg -i --force-depends </path/and/name/of/deb>
.

The cleaner way is to install more recent versions of wxWidgets.
Look here.



Offline dannyyy

  • Multiple posting newcomer
  • *
  • Posts: 23
Re: The 15 December 2007 build (4734) is out.
« Reply #25 on: December 18, 2007, 02:07:13 pm »
I still have an unanswered question. After I compiled CB for the first time, how do I update it to the new SVN versions ?

Offline JGM

  • Lives here!
  • ****
  • Posts: 518
  • Got to practice :)
Re: The 15 December 2007 build (4734) is out.
« Reply #26 on: December 18, 2007, 02:34:55 pm »
I still have an unanswered question. After I compiled CB for the first time, how do I update it to the new SVN versions ?

maybe you will have to create a script that automatically make all the steps that you do to compile it and install it, and also that uninstall the current codeblocks first.

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: The 15 December 2007 build (4734) is out.
« Reply #27 on: December 18, 2007, 03:54:14 pm »
Let me ask something else: now that I have CB installed, how can I update it to the next SVN revisions ? Do I just need to do the " configure, make, make install" trio or do I have to do something else ?

Issue svn up command to update your local repo to the latest revision. Then do a configure, make and make install. If any new files have been added / deleted, you need to ./bootstrap before configure, make. :)

P.S.: I don't have internet access at work. :x So I couldn't reply your question.
Be a part of the solution, not a part of the problem.

Offline dannyyy

  • Multiple posting newcomer
  • *
  • Posts: 23
Re: The 15 December 2007 build (4734) is out.
« Reply #28 on: December 18, 2007, 04:47:46 pm »
Thanks  :D