Author Topic: Compiling wx 2.6.0 by following the instructions fails.  (Read 11597 times)

Offline David Perfors

  • Developer
  • Lives here!
  • *****
  • Posts: 560
Compiling wx 2.6.0 by following the instructions fails.
« on: April 28, 2005, 07:31:24 pm »
when trying to compile with the the new instructions on the forum, I get a bump of errors. The first error says that it couldn't found an includefile in the wx/ directory. Do I have to copy the include/wx directory to the include dir of codeblocks?
OS: winXP
Compiler: mingw
IDE: Code::Blocks SVN WX: 2.8.4 Wish list: faster code completion, easier debugging, refactoring

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Compiling wx 2.6.0 by following the instructions fails.
« Reply #1 on: April 28, 2005, 07:46:44 pm »
Quote
when trying to compile

Compile what? wxWidgets or C::B?
Quote
The first error says that it couldn't found an includefile in the wx/ directory

Please post the exact error...

Yiannis.
Be patient!
This bug will be fixed soon...

Offline Frank3000

  • Multiple posting newcomer
  • *
  • Posts: 17
Compiling wx 2.6.0 by following the instructions fails.
« Reply #2 on: April 28, 2005, 09:50:24 pm »
@mispunt: Is it setup.h ?
If yes, it has to be copied from wxWidgets-2.6.0\lib\gcc_dll\msw\wx to wxWidgets-2.6.0\include\wx.
Klingon multitasking systems do not support 'time-sharing'. When a Klingon program wants to run,
it challenges the scheduler in hand-to-hand combat and owns the machine.

Offline David Perfors

  • Developer
  • Lives here!
  • *****
  • Posts: 560
Compiling wx 2.6.0 by following the instructions fails.
« Reply #3 on: April 28, 2005, 10:54:59 pm »
Quote from: mandrav

Compile what? wxWidgets or C::B?

Sorry to be incomplete :oops: (although I mention it in the topic name :P) I am trying to compile wxWidgets in the dos box using the mingw compiler that comes with C::B.

To get the error, I had to redirect the output to a file, because there are 2222 lines of error messages. So I give you only the first lines:
Code
In file included from ../../src/regex/regguts.h:38,
                 from ../../src/regex/regcomp.c:33:
../../src/regex/regcustom.h:39:23: wx/wxchar.h: No such file or directory
In file included from ../../src/regex/regguts.h:38,
                 from ../../src/regex/regcomp.c:33:
../../src/regex/regcustom.h:82: error: syntax error before "chr"
../../src/regex/regcustom.h:82: warning: data definition has no type or storage class

@Frank3000: thanks for the reply, but no it is not the setup.h. (s)he is already at the right place.
OS: winXP
Compiler: mingw
IDE: Code::Blocks SVN WX: 2.8.4 Wish list: faster code completion, easier debugging, refactoring

prr

  • Guest
Compiling wx 2.6.0 by following the instructions fails.
« Reply #4 on: April 30, 2005, 08:01:21 am »
Quote from: mispunt
Quote from: mandrav

Compile what? wxWidgets or C::B?

Sorry to be incomplete :oops: (although I mention it in the topic name :P) I am trying to compile wxWidgets in the dos box using the mingw compiler that comes with C::B.

To get the error, I had to redirect the output to a file, because there are 2222 lines of error messages. So I give you only the first lines:
Code
In file included from ../../src/regex/regguts.h:38,
                 from ../../src/regex/regcomp.c:33:
../../src/regex/regcustom.h:39:23: wx/wxchar.h: No such file or directory
In file included from ../../src/regex/regguts.h:38,
                 from ../../src/regex/regcomp.c:33:
../../src/regex/regcustom.h:82: error: syntax error before "chr"
../../src/regex/regcustom.h:82: warning: data definition has no type or storage class

@Frank3000: thanks for the reply, but no it is not the setup.h. (s)he is already at the right place.


Have you checked the wxWidgets forum?
For example:
http://www.solidsteel.nl/users/wxwidgets/viewtopic.php?t=99&highlight=src+regex+regcustom

walter

Offline David Perfors

  • Developer
  • Lives here!
  • *****
  • Posts: 560
Compiling wx 2.6.0 by following the instructions fails.
« Reply #5 on: April 30, 2005, 09:47:39 am »
Thanks for the link, I've got it up and running (except that I can't use wxMimeTypeManager anymore :()
OS: winXP
Compiler: mingw
IDE: Code::Blocks SVN WX: 2.8.4 Wish list: faster code completion, easier debugging, refactoring

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: Compiling wx 2.6.0 by following the instructions fails.
« Reply #6 on: April 30, 2005, 12:45:03 pm »
Quote from: mispunt
when trying to compile with the the new instructions on the forum, I get a bump of errors...


i just checked out Code::Blocks from CVS and followed the instructions
from the README-wx2.6.0 file, and everything worked
as described there.

But it needs a little modification:
add the directory with the build info header setup.h to the compilers list of directories

Yiannis will not have detected this error, because he does obviously the following:
i've read here a few times that some are copying this setup.h file to the
"include\wx" directory, but  i can't recommend this, because you get
in troubles, if you want develop in parallel for several builds of wxWidgets
on the same development environment.

The intended way is to include the nesseray setup.h file dependent
of which libs one want to use for building the application.
Therefore, only one directory more has to be given as described below:


Quote from: modified README-wx2.6.0

Now that wxWidgets-2.6.0 is released, work has begun to port Code::Blocks to work with it.
Officialy, Code::Blocks still uses wxWidgets-2.4.2, until all issues from porting it to wxWidgets-2.6.0  are resolved.

KNOWN ISSUES
------------
Win32: MDI client window is not behaving correctly when maximized (initially, by code)

HOWTO build wxWidgets-2.6.0 for use with Code::Blocks
------------------------------------------------------
This process requires that you have MinGW installed. MSYS is *not* needed.
Download and decompress the wxWidgets-2.6.0 source distribution. For the rest of this small HOWTO, C:\wx2.6.0 will be assumed to be the directory wxWidgets-2.6.0 exists in.
Open a command prompt and type the following:

cd C:\wx2.6.0\build\msw
mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 USE_XRC=1 UNICODE=0 VENDOR=cb
cd ..\..\contrib\build\stc
mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 USE_XRC=1 UNICODE=0 VENDOR=cb

If all has gone well, the necessary libs and DLLs will exist in C:\wx2.6.0\lib\gcc_dll.
Copy the DLLs somewhere in your path (c:\windows\system32 is a good choice).
Open CodeBlocks-wx2.6.0.cbp with Code::Blocks and add the following search dirs:

Compiler:
C:\wx2.6.0\include
C:\wx2.6.0\contrib\include
C:\wx2.6.0\lib\gcc_dll\msw

Linker:
C:\wx2.6.0\lib\gcc_dll

Resource compiler:
C:\wx2.6.0\include

Now hit "Compile".
That's it!
Now, fix that MDI window bug ;)

REMARKS:
- If all goes well and you build Code::Blocks with wx2.6.0, but when you launch it it crashes, delete all plugins and hit "Compile" again (it will only link the plugins).
- Different object files output dirs are used for building Code::Blocks with wx2.6.0, so you can have Code::Blocks work with either wxWidgets version (2.4.2 or 2.6.0) independently.

If you have any problems, post them in the Development forum at http://www.codeblocks.org/index.php?name=PNphpBB2&file=viewforum&f=7

Yiannis.



best regards
-tiwag

DreadNot

  • Guest
Compiling wx 2.6.0 by following the instructions fails.
« Reply #7 on: May 20, 2005, 11:08:22 pm »
FYI: To compile wxWidgets 2.6.0, we need GNU Make 3.80 for the mingw compile.  Code::Blocks 1.0 ships with 3.77.  I copied mine over from DevCpp.  Can you update mingw in the install?

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Compiling wx 2.6.0 by following the instructions fails.
« Reply #8 on: May 21, 2005, 09:30:49 am »
Will do. Thanks for the info.

Yiannis.
Be patient!
This bug will be fixed soon...

DreadNot

  • Guest
Compiling wx 2.6.0 by following the instructions fails.
« Reply #9 on: May 24, 2005, 05:10:27 pm »
Also: I'm assuming the added directories in the doc refer to the Project->Properties->(Project's Build Options...)->(Directories Tab) and NOT the general Compile->Compiler Options->(Directories Tab).  Correct?

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Compiling wx 2.6.0 by following the instructions fails.
« Reply #10 on: May 24, 2005, 10:45:11 pm »
Quote from: DreadNot
Also: I'm assuming the added directories in the doc refer to the Project->Properties->(Project's Build Options...)->(Directories Tab) and NOT the general Compile->Compiler Options->(Directories Tab).  Correct?

Both are correct. It's just a matter of scope: global vs project...

Yiannis.
Be patient!
This bug will be fixed soon...