User forums > General (but related to Code::Blocks)

Compiling Codeblocks from sourcecode

<< < (3/6) > >>

sethjackson:
OK let me get this straight where did you download them from? You need the libs to build C::B.... Just having the DLL's won't work....

Download wx 2.6.3 from here.

http://prdownloads.sourceforge.net/wxwindows/wxMSW-2.6.3-Setup-1.exe

Then compile with these instructions... It doesn't matter that it says wx 2.6.2....

http://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.2_to_develop_Code::Blocks_%28MSW%29

cprgmswr2:
I downloaded wx 2.6.3, and I set the global variable wx to point to that directory and then compiled the project and along the way I get the error message

   ld.exe:: cannot find -lwxmsw26u

I will addon that I now understand that I have to compile the library for wxWidgets before I can compile codeblocks, now the problem I am having is compiling wxWidgets library according to the link you sent me

After Researching and if I understand correctly, MingW cannot build the library for wxWidgets, only borland or vc++ can

sethjackson:

--- Quote from: cprgmswr2 on April 28, 2006, 02:38:26 am ---I downloaded wx 2.6.3, and I set the global variable wx to point to that directory and then compiled the project and along the way I get the error message

   ld.exe:: cannot find -lwxmsw26u

I will addon that I now understand that I have to compile the library for wxWidgets before I can compile codeblocks, now the problem I am having is compiling wxWidgets library according to the link you sent me

After Researching and if I understand correctly, MingW cannot build the library for wxWidgets, only borland or vc++ can

--- End quote ---

NO.  :shock: MinGW builds wx just fine. It is the official way of building C::B.... I have no clue where you read that....  :shock:

EDIT:

Here is what I do. I have MinGW.


--- Code: (dos) ---cd <WXWIN>\build\msw

--- End code ---


--- Code: (dos) ---mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=1 UNICODE=1 BUILD=release

--- End code ---

That is all now wait for MinGW to finish compiling wx. Then compile C::B. :D HTH

cprgmswr2:
I miss read the instructions...this is the output I am getting


--- Code: ---C:\Program Files\wxWidgets-2.6.3\build\msw>mingw32-make -f makefile.gcc BUILD=re
lease MONOLITHIC=1 SHARED=0 UNICODE=1
if not exist gcc_mswu mkdir gcc_mswu
if not exist ..\..\lib\gcc_lib mkdir ..\..\lib\gcc_lib
if not exist ..\..\lib\gcc_lib\mswu mkdir ..\..\lib\gcc_lib\mswu
if not exist ..\..\lib\gcc_lib\mswu\wx mkdir ..\..\lib\gcc_lib\mswu\wx
if not exist ..\..\lib\gcc_lib\mswu\wx\setup.h copy ..\..\include\wx\msw\setup.h
 ..\..\lib\gcc_lib\mswu\wx\setup.h
        1 file(s) copied.
if not exist ..\..\lib\gcc_lib\mswu\wx\msw mkdir ..\..\lib\gcc_lib\mswu\wx\msw
gcc -E "..\..\include\wx\msw\genrcdefs.h" > "..\..\lib\gcc_lib\mswu\wx\msw\rcdef
s.h"
gcc -c -o gcc_mswu\wxregex_regcomp.o  -O2 -mthreads  -DHAVE_W32API_H -I..\..\inc
lude -I..\..\lib\gcc_lib\mswu -D__WXMSW__ -D_UNICODE   -MTgcc_mswu\wxregex_regco
mp.o -MFgcc_mswu\wxregex_regcomp.o.d -MD ../../src/regex/regcomp.c
In file included from ../../src/regex/regcustom.h:39,
                 from ../../src/regex/regguts.h:38,
                 from ../../src/regex/regcomp.c:33:
../../include/wx/defs.h:210: error: syntax error before "typedef"
mingw32-make: *** [gcc_mswu\wxregex_regcomp.o] Error 1
--- End code ---

sethjackson:
Ok I fixed the Wiki. someone changed the build steps (doesn't matter too much, but it wasn't correct). :P

Use this


--- Code: (dos) ---mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=1 UNICODE=1 BUILD=release

--- End code ---

EDIT:

You need at least GCC 3.4.2 to compile I belive.... I have 3.4.4 which comes with RC2. I think you have an older version of GCC.

See this.

http://wiki.codeblocks.org/index.php?title=MinGW_installation


Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version