wxWidgets 2.5.2 - MinGW - WinXP - cannot find wx/wxchar.h !

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
akkumar
Earned a small fee
Earned a small fee
Posts: 15
Joined: Sat Sep 11, 2004 8:35 pm
Location: CA

wxWidgets 2.5.2 - MinGW - WinXP - cannot find wx/wxchar.h !

Post by akkumar »

Hi,
I downloaded a fresh build of wxWidgets-2.5.2 and was trying to compile the same on my platform.

gcc (GCC) 3.3.1 (mingw special 20030804-1)
WinXP SP 2.

As per the documentation ( WXDIR/docs/msw/install.txt ) , I went to the directory WXDIR/build/msw and invoked the makefile as follows.

<-- Build Log starts -->

C:\Programs\wxWidgets-2.5.2\build\msw>make -f makefile.gcc

gcc -c -o gcc_mswd\wxregex_regcomp.o -g -O0 -DHAVE_W32API_H -I..\..\include -I.
.\..\lib\gcc_lib\mswd ../../src/regex/regcomp.c
In file included from ../../src/regex/regguts.h:38,
from ../../src/regex/regcomp.c:33:
../../src/regex/regcustom.h:30:23: wx/wxchar.h: No such file or directory

<-- Build Log Ends -->

There is a whole long list of error log, but this is the first among them.
I was wondering what could have gone here. Did anyone encounter similar errors. If so,
how would I fix this.

--
Karthik.
akkumar
Earned a small fee
Earned a small fee
Posts: 15
Joined: Sat Sep 11, 2004 8:35 pm
Location: CA

Post by akkumar »

I am adding the version info of Make too here -

C:\Programs\wxWidgets-2.5.2\build\msw>make --version
GNU Make version 3.77, by Richard Stallman and Roland McGrath.
KaReL
Experienced Solver
Experienced Solver
Posts: 78
Joined: Mon Aug 30, 2004 8:52 am
Contact:

Post by KaReL »

Have you checked if that wx/wxchar.h is in one of the include-locations?
wxWidgets: SVN/trunk
OS: WinXP/2 + Ubuntu + Mac 10.4.11
Compiler: VS2005 + GCC 4.2 + GCC 4.0.1
-----
home: http://www.salvania.be
akkumar
Earned a small fee
Earned a small fee
Posts: 15
Joined: Sat Sep 11, 2004 8:35 pm
Location: CA

Post by akkumar »

KaReL wrote:Have you checked if that wx/wxchar.h is in one of the include-locations?
gcc -c -o gcc_mswd\wxregex_regcomp.o -g -O0 -DHAVE_W32API_H -I..\..\include -I.
.\..\lib\gcc_lib\mswd ../../src/regex/regcomp.c


Checed for ..\..\include,

Yeah. of course, it is.

C:\Programs\wxWidgets-2.5.2\build\msw>dir ..\..\include\wx\wxchar.h

05/23/2004 09:50 PM 36,388 wxchar.h
1 File(s) 36,388 bytes


The file indeed is there. I donno what could have gone wrong out here.
eros
I live to help wx-kind
I live to help wx-kind
Posts: 162
Joined: Mon Sep 06, 2004 1:40 am
Location: Argentina

Post by eros »

I'm having some weird problems to compile with mingw aswell, and I'm trying with configure (using MSYS).

I'll give a try on Cygwin.
...
akkumar
Earned a small fee
Earned a small fee
Posts: 15
Joined: Sat Sep 11, 2004 8:35 pm
Location: CA

Post by akkumar »

I donno if i would try it on MSYS. Since I dont want the POSIX compatibility layer API when compiling my applications. That is the reason, I want to natively compile my applications.
User avatar
Ryan Norton
wxWorld Domination!
wxWorld Domination!
Posts: 1319
Joined: Mon Aug 30, 2004 6:01 pm

Post by Ryan Norton »

I recall this being brought up a few times on the lists.

For now though you can add $WXFOLDER$\include to your PATH environment variable.
[Mostly retired moderator, still check in to clean up some stuff]
akkumar
Earned a small fee
Earned a small fee
Posts: 15
Joined: Sat Sep 11, 2004 8:35 pm
Location: CA

Post by akkumar »

Ryan Norton wrote:I recall this being brought up a few times on the lists.

For now though you can add $WXFOLDER$\include to your PATH environment variable.
Thanks for that though. The problem though actually seems with the 'make' utility that is mentioned in that file - Extra.zip , that I had downloaded as per the instructions for wxWindows - 2.4.2 codeline.

* I downloaded the latest version of devcpp ( with MinGW distribution) 4.9.9.0 . Added the binaries in that distribution to the PATH environment variable.

* Then I went to build/msw directory and invoked the make command.
Right now, it is compiling pretty much ok

The make utility that am using is -

'GNU Make 3.80'

instead of 3.77 that I was using previously. Thanks guyz for all your help.
akkumar
Earned a small fee
Earned a small fee
Posts: 15
Joined: Sat Sep 11, 2004 8:35 pm
Location: CA

Post by akkumar »

Yes. It did compile successfully. But just a point to the developers here,
the page http://www.wxwidgets.org/dl_msw2.htm says we might need a Extra.zip for building wxwindows.
While that is true, ( we need the executables, cp.exe - rm.exe exe ) , the make.exe that comes bundled with that Extra.zip seems to be buggy. That was the cause for the strange errors that I had reported in the beginning. It would be nice if you could add that disclaimer somewhere, so that people would find it easier to build wxWidgets.
Karthik.
Post Reply