From: <st...@us...> - 2003-07-15 13:50:15
|
Update of /cvsroot/iaxclient/iaxclient/simpleclient/wx In directory sc8-pr-cvs1:/tmp/cvs-serv29076 Modified Files: README Added Files: wxVC.dsp Log Message: README and project file for building wx with MSVC 6 on Win32 (by Babar Shafiq <bab...@ya...>) --- NEW FILE: wxVC.dsp --- # Microsoft Developer Studio Project File - Name="wxVC" - Package Owner=<4> # Microsoft Developer Studio Generated Build File, Format Version 6.00 # ** DO NOT EDIT ** # TARGTYPE "Win32 (x86) Application" 0x0101 CFG=wxVC - Win32 Debug !MESSAGE This is not a valid makefile. To build this project using NMAKE, !MESSAGE use the Export Makefile command and run !MESSAGE !MESSAGE NMAKE /f "wxVC.mak". !MESSAGE !MESSAGE You can specify a configuration when running NMAKE !MESSAGE by defining the macro CFG on the command line. For example: !MESSAGE !MESSAGE NMAKE /f "wxVC.mak" CFG="wxVC - Win32 Debug" !MESSAGE !MESSAGE Possible choices for configuration are: !MESSAGE !MESSAGE "wxVC - Win32 Release" (based on "Win32 (x86) Application") !MESSAGE "wxVC - Win32 Debug" (based on "Win32 (x86) Application") !MESSAGE # Begin Project # PROP AllowPerConfigDependencies 0 # PROP Scc_ProjName "" # PROP Scc_LocalPath "" CPP=cl.exe MTL=midl.exe RSC=rc.exe !IF "$(CFG)" == "wxVC - Win32 Release" # PROP BASE Use_MFC 0 # PROP BASE Use_Debug_Libraries 0 # PROP BASE Output_Dir "Release" # PROP BASE Intermediate_Dir "Release" # PROP BASE Target_Dir "" # PROP Use_MFC 0 # PROP Use_Debug_Libraries 0 # PROP Output_Dir "Release" # PROP Intermediate_Dir "Release" # PROP Ignore_Export_Lib 0 # PROP Target_Dir "" # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /YX /FD /c # ADD CPP /nologo /MD /W3 /GX /O1 /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D WINVER=0x400 /D "_MT" /D wxUSE_GUI=1 /FD /c # SUBTRACT CPP /YX # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 # ADD BASE RSC /l 0x409 /d "NDEBUG" # ADD RSC /l 0x409 /d "NDEBUG" BSC32=bscmake.exe # ADD BASE BSC32 /nologo # ADD BSC32 /nologo LINK32=link.exe # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386 # ADD LINK32 kernel32.lib user32.lib gdi32.lib advapi32.lib winspool.lib comdlg32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib zlib.lib regex.lib png.lib jpeg.lib tiff.lib wxmsw.lib winmm.lib ws2_32.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"LIBCMT.lib" !ELSEIF "$(CFG)" == "wxVC - Win32 Debug" # PROP BASE Use_MFC 0 # PROP BASE Use_Debug_Libraries 1 # PROP BASE Output_Dir "Debug" # PROP BASE Intermediate_Dir "Debug" # PROP BASE Target_Dir "" # PROP Use_MFC 0 # PROP Use_Debug_Libraries 1 # PROP Output_Dir "Debug" # PROP Intermediate_Dir "Debug" # PROP Target_Dir "" # ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /YX /FD /GZ /c # ADD CPP /nologo /W3 /Gm /GX /ZI /Od /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D WINVER=0x400 /D "_MT" /D wxUSE_GUI=1 /D "__WXDEBUG__" /D WXDEBUG=1 /YX /FD /GZ /c # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 # ADD BASE RSC /l 0x409 /d "_DEBUG" # ADD RSC /l 0x409 /d "_DEBUG" BSC32=bscmake.exe # ADD BASE BSC32 /nologo # ADD BSC32 /nologo LINK32=link.exe # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept # ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept !ENDIF # Begin Target # Name "wxVC - Win32 Release" # Name "wxVC - Win32 Debug" # Begin Group "Source Files" # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" # Begin Source File SOURCE=..\..\..\lib\iaxclient.h # End Source File # Begin Source File SOURCE=..\wx.cpp # End Source File # End Group # Begin Group "Header Files" # PROP Default_Filter "h;hpp;hxx;hm;inl" # End Group # Begin Group "Resource Files" # PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" # Begin Source File SOURCE=.\libiaxclient.lib # End Source File # End Group # End Target # End Project Index: README =================================================================== RCS file: /cvsroot/iaxclient/iaxclient/simpleclient/wx/README,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- README 2 Jul 2003 18:41:03 -0000 1.2 +++ README 15 Jul 2003 13:50:12 -0000 1.3 @@ -94,7 +94,86 @@ make strip wx ./wx.exe + ========================================================= +Building wx with MSVC 6 on Win32 (by Babar Shafiq <bab...@ya...>) + +Builing wx on MSVC is easy, + +Here is step by step procedure how to build wx on MSVC 6. + +First we make libraries and DLLs for wxWindows +1) Download wxWindows from http://wxwindows.org for VC we will have latest release: +http://prdownloads.sourceforge.net/wxwindows/wxMSW-2.4.1-setup.zip (approx 12MB) + +2) After running the setup it will install and create a directory for us such as +wxWindows-2.4.1 +if we install on D: Drive to we will have D:\wxWindows-2.4.1\ + +3) Now we have to compile wxWindows for VC we have wxWindows.dsw in d:\wxWindows-2.4.1\src +directory. + +4) Setup include directories from VC->Tools->Options->Include directories +(This is Global settings for all wxWindows projects) + +add D:\wxWindows-2.4.1\CONTRIB\INCLUDE +and D:\wxWindows-2.4.1\INCLUDE + +Setup Lib directories from VC->Tools->Options->Lib directories +add D:\wxWindows-2.4.1\CONTRIB\LIB +and D:\wxWindows-2.4.1\LIB + +5) Now from Build->Batch Build use Build to build all libraries and DLLs for us.(on my P3 +667 MHz +256 MB Ram it tooks more then an hour :) ). + +6) After the build process we will have all the libraires and DLLs in the lib folder it mean +we +are done. + + +http://www.geocities.com/babarnazmi/wxVC.zip ( unzip project files in wx folder) +[ These are now included in the CVS sources as well - SteveK ] + +or + +for wx we need to set up a new project + +1) Create a new empty project Win32 Application. + +2) I just renamed the wx.cc file from the iaxclient distribution to wx.cpp and then added +iaxclient.h in this new project. + +3) For Win32 Release. +update Project->Settings->C/C++->General(Category) update the Preprocessor Defination to +NDEBUG,WIN32,_WINDOWS,WINVER=0x400,_MT,wxUSE_GUI=1 +select Category Code Generation to "Multithreaded DLL" + + For Win32 Debug +update Project->Settings->C/C++->General(Category) update the Preprocessor Defination to +_DEBUG,WIN32,_WINDOWS,WINVER=0x400,_MT,wxUSE_GUI=1,__WXDEBUG__,WXDEBUG=1 +select Category Code Generation to "Debug Multithreaded DLL" + +4) Now in Link Tab + +for Win32 Release add +zlib.lib regex.lib png.lib jpeg.lib tiff.lib wxmsw.lib (for wxWidnows support) +winmm.lib ws2_32.lib (for iaxcleint support) +libiaxclient.lib (Win32 iaxlib must be Release version) +(other then default libs) + +for Win32 Debug add +zlibd.lib regexd.lib pngd.lib jpegd.lib tiffd.lib wxmswd.lib ( fow wxWindows support) +winmm.lib ws2_32.lib (for iaxcleint support) +libiaxclient.lib (Win32 iaxlib must be Debug version) +(other then default libs) + +update the #include "iaxclient.h" to #include "..\..\..\lib\iaxclient.h" +(or copy iaxclient.h to the souce directory) + +Build the new project and we are done. + +=========================================================== |