Author Topic: Using CygWin to Install Code::Blocks  (Read 8357 times)

Online stahta01

  • Lives here!
  • ****
  • Posts: 7590
    • My Best Post
Using CygWin to Install Code::Blocks
« on: May 12, 2009, 10:46:46 pm »
FYI:

This is a record of me trying to install Code::Blocks under CygWin.
Note: I know it is rather pointless; but, it should help me test Code::Blocks Build changes without using Linux till the final test.

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

Online stahta01

  • Lives here!
  • ****
  • Posts: 7590
    • My Best Post
Re: Using CygWin to Install Code::Blocks
« Reply #1 on: May 12, 2009, 11:04:26 pm »
Cygwin setup 1.7 packages needed; this is not a complete list.
    Build Tools
        gcc4-g++         (Devel)
        libtool              (Devel)
        make               (Devel)
        pkg-config        (Devel)
        subversion        (Devel)
        zip                  (Archive)
    Code Packages
        atk-devel         (Gnome)
        gtk2-x11-devel  (Devel, Graphic, Libs
        pango-devel      (Devel, Libs, Test)
       
Test before doing configure
    pkg-config gtk+-2.0 --libs
    g++ -v
« Last Edit: May 22, 2009, 08:00:12 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Online stahta01

  • Lives here!
  • ****
  • Posts: 7590
    • My Best Post
Re: Using CygWin to Install Code::Blocks
« Reply #2 on: May 13, 2009, 02:46:31 am »
Patch needed for Building CB under CygWin. Tim S

Code
Index: codeblocks-trunk/src/sdk/wxscintilla/Makefile.am
===================================================================
--- codeblocks-trunk/src/sdk/wxscintilla/Makefile.am (revision 5593)
+++ codeblocks-trunk/src/sdk/wxscintilla/Makefile.am (working copy)
@@ -3,7 +3,7 @@
  -I$(srcdir)/src/scintilla/include \
  -I$(srcdir)/src/scintilla/src
 
-AM_CPPFLAGS = -DSCI_LEXER -DLINK_LEXERS -DGTK -D__WX__
+AM_CPPFLAGS = -DSCI_LEXER -DLINK_LEXERS -DGTK -D__WX__ -DWXMAKINGDLL_SCI
 
 noinst_LTLIBRARIES = libwxscintilla.la
 
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Online stahta01

  • Lives here!
  • ****
  • Posts: 7590
    • My Best Post
Re: Using CygWin to Install Code::Blocks
« Reply #3 on: May 18, 2009, 01:39:49 am »
I am having problems with scripting (sqplus and etc.)

Going to have to relearn how to patch Squirrel stuff; it always seems so complex.


SVN 4648 note: update from Squirrel 2.1.0/SQPlus 1.7 to Squirrel 2.1.1/SQPlus 2.3

from squirrel.h SQUIRREL_VERSION    "Squirrel 2.1.1 stable"

bindings   Code::Blocks custom bindings best guess
include     "Squirrel 2.1.1 stable" best guess
sqstdlib    "Squirrel 2.1.1 stable" best guess
squirrel     "Squirrel 2.1.1 stable" best guess 
sqplus      2.3 or higher              best guess

Tim S.

« Last Edit: May 18, 2009, 02:13:08 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Using CygWin to Install Code::Blocks
« Reply #4 on: May 18, 2009, 08:26:09 am »
from squirrel.h SQUIRREL_VERSION    "Squirrel 2.1.1 stable"

bindings   Code::Blocks custom bindings best guess
include     "Squirrel 2.1.1 stable" best guess
sqstdlib    "Squirrel 2.1.1 stable" best guess
squirrel     "Squirrel 2.1.1 stable" best guess 
sqplus      2.3 or higher              best guess
I don't really get the question from this part but keep in mind that we are using a patched version of Squirrel to match C::B requirements. So there is no package you can download with the sources except exactly the ones from C::B SVN.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Online stahta01

  • Lives here!
  • ****
  • Posts: 7590
    • My Best Post
Re: Using CygWin to Install Code::Blocks
« Reply #5 on: May 18, 2009, 10:03:45 am »
from squirrel.h SQUIRREL_VERSION    "Squirrel 2.1.1 stable"

bindings   Code::Blocks custom bindings best guess
include     "Squirrel 2.1.1 stable" best guess
sqstdlib    "Squirrel 2.1.1 stable" best guess
squirrel     "Squirrel 2.1.1 stable" best guess 
sqplus      2.3 or higher              best guess
I don't really get the question from this part but keep in mind that we are using a patched version of Squirrel to match C::B requirements. So there is no package you can download with the sources except exactly the ones from C::B SVN.

Not a question; just trying to figure out where the build fails; I normally have to get it working with normally sqplus before seeing the change that breaks the build. This time I am trying to build Code::Blocks using Cygwin and GCC 4.3.

I want to try to build some software using Code::Blocks and Cygwin and I thought see how well Code::Blocks build. Might give up in a few days.

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