News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Using CygWin to Install Code::Blocks

Started by stahta01, May 12, 2009, 10:46:46 PM

Previous topic - Next topic

stahta01

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++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

stahta01

#1
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
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

stahta01

Patch needed for Building CB under CygWin. Tim S


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++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

stahta01

#3
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.

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

MortenMacFly

Quote from: stahta01 on May 18, 2009, 01:39:49 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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

stahta01

Quote from: MortenMacFly on May 18, 2009, 08:26:09 AM
Quote from: stahta01 on May 18, 2009, 01:39:49 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++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]