Author Topic: Mac Nightly Build  (Read 10075 times)

Offline smchronos

  • Multiple posting newcomer
  • *
  • Posts: 12
Mac Nightly Build
« on: August 03, 2009, 03:40:37 am »
I think this is the right board for this sort of topic, if not, I apologize.

Anyway, I'm sure people have talked about this quite a lot, and I'm pretty sure that there are some older discussions as to why Mac OS X was dropped from open nightly build support; however, I was hoping to get some more up-to-date reasons as to why the Mac operating system is not supported by CodeBlocks. I love the IDE and the tools that it comes with, I just really wish that it was also available on the Mac platform. Please keep in mind that I have no knowledge about what goes on when trying to build something like this. I'm looking for someone (or multiple people) to calmly explain to me why porting CodeBlocks to Macintosh computers is so difficult. If I was knowledgeable enough on this subject, I wouldn't bother you guys with these questions.

Furthermore, with the current nightly builds, I was hoping to see if I could get the *NIX version to work with the Mac operating system since it does have a heavy UNIX background. Could someone also tell me if that is or is not possible and why (please don't berate me and just tell me that it isn't possible... I'd like to understand why).

Things like this interest me, which is why, I suppose, I am going into computer engineering and computer science this fall.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6676
    • My Best Post
Re: Mac Nightly Build
« Reply #1 on: August 03, 2009, 04:23:54 am »
Because no Mac person is willing, and able, to take the time and effort for a long term effort to provide the builds.
(Just guessing more Mac people have jobs than PC people.)

Are you willing to?

afb did it for a while and does the releases from time to time.
http://forums.codeblocks.org/index.php?action=profile;u=1384
http://www.algonet.se/~afb/wx/codeblocks.html
http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Mac_OS_X

Quote
Furthermore, with the current nightly builds, I was hoping to see if I could get the *NIX version to work with the Mac operating system since it does have a heavy UNIX background. Could someone also tell me if that is or is not possible and why (please don't berate me and just tell me that it isn't possible... I'd like to understand why).

Get the 8.02 version of the Mac release and use SVN to try to build the current source code.
The berlios site has a patched version of wxWidgets in it to fix a bug in C::B 8.02.

Note: berlios SVN done right now. Link below to check status.
 http://monitor.berlios.de/berlios-status/index.php


Tim S.
« Last Edit: August 03, 2009, 04:35:56 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline smchronos

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Mac Nightly Build
« Reply #2 on: August 03, 2009, 04:45:13 am »
Thank you for the helpful post!

I would love to help provide Mac-ready builds of CodeBlocks (I have enough free time to get it done). If I'm actually successful at doing so, I'd try and do it for every nightly build. I'm downloading the 8.02 binary as I'm typing this (sluggish 17.0 KB download speed isn't helping), so I'll give that a go first. I had looked at compiling sources before; so, I'll try my hand at that if the 8.02 method doesn't work.

As for that patch you mentioned, where from berlios.de do I find it? The status page simply told me what parts of the site were working (at least, that's all I got from it).

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6676
    • My Best Post
Re: Mac Nightly Build
« Reply #3 on: August 03, 2009, 05:40:10 am »
As for that patch you mentioned, where from berlios.de do I find it? The status page simply told me what parts of the site were working (at least, that's all I got from it).

From here, but the site is down.
http://developer.berlios.de/projects/codeblocks/
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline smchronos

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Mac Nightly Build
« Reply #4 on: August 03, 2009, 05:44:52 am »
Well, it appeared like CodeBlocks 8.02 compiled the Unix CodeBlocks project of revision 5723; however, I can't find any trace of what it did.

I moved on to the source compilation guide; however, I've run into a problem. When trying to use the bootstrap to setup the environment, I'm simply getting a "command not found" message in the Mac terminal. Since I'm not very knowledgeable with these things it's going to to make awhile to figure out what to do.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6676
    • My Best Post
Re: Mac Nightly Build
« Reply #5 on: August 03, 2009, 05:54:54 am »
http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Mac_OS_X#Install_Developer_Tools

My guess, Do you have XCode?

I am a WinXP person so it is a very wild guess.

Tim S
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline smchronos

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Mac Nightly Build
« Reply #6 on: August 03, 2009, 05:58:14 am »
I've installed XCode, but I can always do another install... I guess. Keep in mind that I had downloaded it from Apple. This time, I'm going to run the installation disks that came with my computer.

I'll let you know in this post how it goes.

[EDIT]
This install seemed to do a lot more than my online copy. Fingers are crossed.

[EDIT2]
No good. Nothing has changed. I still type "sudo {PATH-TO-BOOTSTRAP-IN-REVISION-FOLDER}\bootstrap" without the quotes and I get:
"sudo: {PATH-TO-BOOTSTRAP-IN-REVISION-FOLDER}\bootstrap: command not found"
« Last Edit: August 03, 2009, 06:22:23 am by smchronos »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6676
    • My Best Post
Re: Mac Nightly Build
« Reply #7 on: August 03, 2009, 06:33:02 am »
No good. Nothing has changed. I still type "sudo {PATH-TO-BOOTSTRAP-IN-REVISION-FOLDER}\bootstrap" without the quotes and I get:
"sudo: {PATH-TO-BOOTSTRAP-IN-REVISION-FOLDER}\bootstrap: command not found"

The Wiki shows the command as below; I have no idea if it work with an different build folder.
http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Mac_OS_X#Bootstrap_with_Autotools

EDIT: You need to use "/" instead of "\" on NON-Windows to my Knowedge

Code: [Select]
ACLOCAL_FLAGS="-I /usr/share/aclocal" ./bootstrap

Edit: What version of automake are you using?

Tim S
« Last Edit: August 03, 2009, 06:38:51 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline smchronos

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Mac Nightly Build
« Reply #8 on: August 03, 2009, 06:40:10 am »
I tried using this:
Code: [Select]
cd /Users/robertsenkbeil/Desktop/CodeBlocks_Revision_5723Yes, my name is Robert Senkbeil. ;)

Followed by this:
Code: [Select]
sudo ACLOCAL_FLAGS="-I /Developer/usr/share/aclocal" ./bootstrap
I still get this:
Code: [Select]
sudo: ACLOCAL_FLAGS=-I /Developer/usr/share/aclocal: command not found
As for my automake version, the one located in the /Developer/usr/share/aclocal is 1.10.

[EDIT]
Another note is that when I type in the terminal:
Code: [Select]
automake --version
I get:
Code: [Select]
automake (GNU automake) 1.10
Written by Tom Tromey <[email protected]>
       and Alexandre Duret-Lutz <[email protected]>.

Copyright 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

When I type in the terminal:
Code: [Select]
autoconf --version
I get:
Code: [Select]
autoconf (GNU Autoconf) 2.61
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software.  You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.

Written by David J. MacKenzie and Akim Demaille.

When I type in the terminal:
Code: [Select]
glibtool --version
I get:
Code: [Select]
ltmain.sh (GNU libtool) 1.5.22 (1.1220.2.365 2005/12/18 22:14:06)

Copyright (C) 2005  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

When I type in the terminal:
Code: [Select]
aclocal --version
I get:
Code: [Select]
aclocal (GNU automake) 1.10
Written by Tom Tromey <[email protected]>
       and Alexandre Duret-Lutz <[email protected]>.

Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
« Last Edit: August 03, 2009, 06:58:43 am by smchronos »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6676
    • My Best Post
Re: Mac Nightly Build
« Reply #9 on: August 03, 2009, 07:57:32 am »
I suggest trying it in smaller chunks

Code: [Select]
cd /Users/robertsenkbeil/Desktop/CodeBlocks_Revision_5723
Code: [Select]
export ACLOCAL_FLAGS="-I /Developer/usr/share/aclocal"Not sure if export keyword is required or not.

Code: [Select]
sudo ./bootstrapNot sure if sudo keyword is required or not.
« Last Edit: August 03, 2009, 08:02:08 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline smchronos

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Mac Nightly Build
« Reply #10 on: August 03, 2009, 08:00:27 am »
I'm pretty sure there's something missing when I try to execute the bootstrap file.

Everything worked up until:
Code: [Select]
./bootstrap
In fact, any bootstrap file that I try to run on my Mac returns "command not found" in the terminal.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6676
    • My Best Post
Re: Mac Nightly Build
« Reply #11 on: August 03, 2009, 08:03:28 am »
I'm pretty sure there's something missing when I try to execute the bootstrap file.

Everything worked up until:
Code: [Select]
./bootstrap
In fact, any bootstrap file that I try to run on my Mac returns "command not found" in the terminal.

Does the file "bootstrap" exist to the current directory?

The old way to do script files is
Code: [Select]
sh < bootstrap


Tim S
« Last Edit: August 03, 2009, 08:12:46 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline smchronos

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Mac Nightly Build
« Reply #12 on: August 03, 2009, 08:17:34 am »
I'm not sure what's going now. Following your advice and typing:
Code: [Select]
sh < bootstrap
Got me:
Code: [Select]
$ sh < bootstrapsh: line 11: ./update_revision.sh: Permission denied
rm: autom4te.cache/output.0t: Permission denied
rm: autom4te.cache/requests: Permission denied
rm: autom4te.cache/traces.0t: Permission denied
rm: autom4te.cache: Directory not empty
You should add the contents of `/usr/share/aclocal/libtool.m4' to `aclocal.m4'.
aclocal-1.10: configure.in:3: file `revision.m4' does not exist

Obviously, to force permission, I used 'sudo' followed by my password when asked:
Code: [Select]
$ sudo sh < bootstrap
Password: *****
sh: line 11: ./update_revision.sh: Permission denied
You should add the contents of `/usr/share/aclocal/libtool.m4' to `aclocal.m4'.
aclocal: configure.in:3: file `revision.m4' does not exist

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6676
    • My Best Post
Re: Mac Nightly Build
« Reply #13 on: August 03, 2009, 08:24:38 am »
Try doing

Code: [Select]
sudo chmod 777 update_revision.sh

I think it should set the execute flag and give you permissions on it.

Tim S
« Last Edit: August 03, 2009, 08:28:13 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline smchronos

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Mac Nightly Build
« Reply #14 on: August 03, 2009, 08:28:46 am »
Well... that definitely caused a change.

After typing with no resulting errors:
Code: [Select]
sudo chmod 777 update_revision.sh
I then retyped:
Code: [Select]
sudo sh < bootstrap
What followed was as below:
Code: [Select]
svn: '.' is not a working copy
svn: '.' is not a working copy
You should add the contents of `/usr/share/aclocal/libtool.m4' to `aclocal.m4'.
configure.in:9: installing `./missing'
configure.in:9: installing `./install-sh'
src/base/tinyxml/Makefile.am: installing `./depcomp'
src/include/Makefile.am:3: PRECOMPILE_HEADERS does not appear in AM_CONDITIONAL
src/plugins/Makefile.am:1: BUILD_ASTYLE does not appear in AM_CONDITIONAL
src/plugins/Makefile.am:5: BUILD_AUTOSAVE does not appear in AM_CONDITIONAL
src/plugins/Makefile.am:9: BUILD_CLASSWIZARD does not appear in AM_CONDITIONAL
src/plugins/Makefile.am:13: BUILD_CODECOMPLETION does not appear in AM_CONDITIONAL
src/plugins/Makefile.am:17: BUILD_COMPILER does not appear in AM_CONDITIONAL
src/plugins/Makefile.am:21: BUILD_DEBUGGER does not appear in AM_CONDITIONAL
src/plugins/Makefile.am:25: BUILD_MIMEHANDLER does not appear in AM_CONDITIONAL
src/plugins/Makefile.am:29: BUILD_OPENFILESLIST does not appear in AM_CONDITIONAL
src/plugins/Makefile.am:33: BUILD_PROJECTSIMPORTER does not appear in AM_CONDITIONAL
src/plugins/Makefile.am:37: BUILD_SCRIPTEDWIZARD does not appear in AM_CONDITIONAL
src/plugins/Makefile.am:41: BUILD_TODO does not appear in AM_CONDITIONAL
src/plugins/Makefile.am:45: BUILD_MANIFEST does not appear in AM_CONDITIONAL
src/plugins/contrib/Makefile.am:1: BUILD_AUTOVERSIONING does not appear in AM_CONDITIONAL
src/plugins/contrib/Makefile.am:5: BUILD_BROWSETRACKER does not appear in AM_CONDITIONAL
src/plugins/contrib/Makefile.am:9: BUILD_BYOGAMES does not appear in AM_CONDITIONAL
src/plugins/contrib/Makefile.am:13: BUILD_CBKODERS does not appear in AM_CONDITIONAL
src/plugins/contrib/Makefile.am:17: BUILD_CODESNIPPETS does not appear in AM_CONDITIONAL
src/plugins/contrib/Makefile.am:21: BUILD_CODESTAT does not appear in AM_CONDITIONAL
src/plugins/contrib/Makefile.am:25: BUILD_COPYSTRINGS does not appear in AM_CONDITIONAL
src/plugins/contrib/Makefile.am:29: BUILD_DRAGSCROLL does not appear in AM_CONDITIONAL
src/plugins/contrib/Makefile.am:33: BUILD_ENVVARS does not appear in AM_CONDITIONAL
src/plugins/contrib/Makefile.am:37: BUILD_HELP does not appear in AM_CONDITIONAL
src/plugins/contrib/Makefile.am:41: BUILD_HEADERFIXUP does not appear in AM_CONDITIONAL
src/plugins/contrib/Makefile.am:45: BUILD_KEYBINDER does not appear in AM_CONDITIONAL
src/plugins/contrib/Makefile.am:49: BUILD_LIBFINDER does not appear in AM_CONDITIONAL
src/plugins/contrib/Makefile.am:53: BUILD_PROFILER does not appear in AM_CONDITIONAL
src/plugins/contrib/Makefile.am:57: BUILD_REGEX does not appear in AM_CONDITIONAL
src/plugins/contrib/Makefile.am:61: BUILD_EXPORTER does not appear in AM_CONDITIONAL
src/plugins/contrib/Makefile.am:65: BUILD_SYMTAB does not appear in AM_CONDITIONAL
src/plugins/contrib/Makefile.am:69: BUILD_THREADSEARCH does not appear in AM_CONDITIONAL
src/plugins/contrib/Makefile.am:73: BUILD_VALGRIND does not appear in AM_CONDITIONAL
src/plugins/contrib/Makefile.am:77: BUILD_WXSMITH does not appear in AM_CONDITIONAL
src/plugins/contrib/Makefile.am:81: BUILD_WXSMITHCONTRIB does not appear in AM_CONDITIONAL
src/plugins/contrib/Makefile.am:85: BUILD_WXSMITHAUI does not appear in AM_CONDITIONAL
src/plugins/contrib/Makefile.am:89: BUILD_HEXEDITOR does not appear in AM_CONDITIONAL
src/plugins/contrib/Makefile.am:93: BUILD_INCSEARCH does not appear in AM_CONDITIONAL
src/src/Makefile.am:10: CODEBLOCKS_LINUX does not appear in AM_CONDITIONAL
src/templates/Makefile.am:1: CODEBLOCKS_NT does not appear in AM_CONDITIONAL