From: Steve K. <st...@st...> - 2003-06-30 23:51:06
|
On Mon, 2003-06-30 at 19:27, Dan Fernandez wrote: > Steve, > > Thanks for the tip. I added windows.h to wx.cc and I was able to move > ahead. Now I am getting an error while linking. It´s telling me it > can´t find wxmswd.a > > I have tried with all possible directories (/usr/local/lib, /usr/lib, > $WXWIN/lib, $WXWIN/lib/mswd) and different names (libwxmsw241d.a, > libwxmswd.a and wxmswd.a) and I am still getting the same error. > And I am still getting the same error. > > Any ideas? Hmm, OK, so there's two issues here, which is why some of my previous instructions might not have worked: 1) I originally developed this with the 2.4.0 wxwindows stuff, and some things might have changed in 2.4.1. (like the "windows.h" thing). 2) I didn't use ./configure for wxwindows build, I used makefile.g95. Anyway, before the whole baby thing, I got 2.4.1, and tried to do the "makefile.g95" build, which didn't work. I looked into it a bit, and apparently that's not the "preferred" way to do the wxwindows build (I guess they're not maintaining those makefiles anymore), so I build with ./configure, and then ran into some of the same problems that y'all did. So, I have steps 1 - 4 of the README directions for this already written, but didn't get to finish them, because I realized that I ought to make the Makefiles smarter, so some of the steps wouldn't be necessary. I.e. ./configure installs the library as libwxmswd241.a, while the makefile.g95 build make libwxmswd.a, which seems like it should be a symlink or something to the versioned library. The MSWin wx stuff doesn't have "wx-config" as far as I can see, so it's harder to make the link command find the library, etc. Okay, all that's definately not helping anyone :) For your question, the link line is looking for -lwxmswd and it's looking for it in $WXWIN/lib as libwxmswd.a . The versioned file you have (libwxmswd241.a) should work fine if you rename it, and put it in $WXWIN/lib. On the other hand, I won't be in the office tomorrow (and don't have Win32 boxes at home), so if people want to figure out what code changes are needed to make the build more "version independent", and better instructions, here's what I wrote so far: ======================= Building WXWindows on Win32, with MinGW/Cygwin: Here's what I did to buld wxWindows 2.4.1, on Win2K, using MinGW and cygwin. This may not be the best way to do this, but it worked for me. 1) First, I have both cygwin and MinGW installed (including cygwin's "make"), and MinGW ahead of cygwin in the PATH. 2) I got the wxWindows 2.4.1 ZIP archive (not the -setup version), and unzipped it into the root of my "c" drive. The path to this is (from cygwin or MinGW) c:/wxWindows-2.4.1 3) set WXWIN environment variable to point to this location, by editing my .bashrc, and then reloading my bashrc. here's the line: export WXWIN="c:/wxWindows-2.4.1" 4) as in the directions, just did this: cd $WXWIN ./configure --disable-shared make 5) ======================= > > > > ----- Original Message ----- > From: Steve Kann > To: Dan Fernandez > Cc: iaxclient devel > Sent: Monday, June 30, 2003 11:27 AM > Subject: Re: [Iaxclient-devel] cygwin compilation error > > On Sat, 2003-06-28 at 18:03, Dan Fernandez wrote: > > > Greetings! > > > > I am trying to build WxWin32.exe as per the instructions on > > the ../simpleclient/wx/README. > > > > I installed and downloaded cygwin and installed wxWindows > > with the ./configure, make, and make installed (I used > > --enable debug and --disable-shared). This created a > > libwxmsw241d.a (I´ve tried renaming this also) on the > > WXWIN/lib directory. > > > > Now when I do a make I get the following errors: > > > > wx.cc In member function 'bool IAXFrame::GetPTTState()': > > wx.cc:441: 'VK_CONTROL' undecalred (first use this function) > > wx.cc:441: (Each undeclared identifier is reported only once > > for each function it appears in.) > > wx.cc441: 'GetAsyncKeyState' undeclared (first use this > > function) > > > > What have I don wrong? > > > I don't know -- that particular constant (VK_CONTROL) is > actually a MSWIN API constant, and not a wxWindows constant. > In my setup, the wxwindows headers automatically include > windows.h, etc, so that was defined for me.. > > Is that the first and only error you're getting, or is it > complaining about not finding headers before that? > > Try adding a #include <windows.h> to the beginning of wx.cc, > and let us know if that helps. > > -SteveK > > > > Thanks in advance! > > Dan > > -- > Steve Kann - Chief Engineer - 520 8th Ave #2300 NY 10018 - (212) 533-1775 > HorizonLive.com - collaborate . interact . learn > "The box said 'Requires Windows 95, NT, or better,' so I installed Linux." -- Steve Kann - Chief Engineer - 520 8th Ave #2300 NY 10018 - (212) 533-1775 HorizonLive.com - collaborate . interact . learn "The box said 'Requires Windows 95, NT, or better,' so I installed Linux." |