From: Pete S. <pst...@ve...> - 2008-03-16 15:35:22
|
PS = Pete Stieber PS>> Let me know if you have any difficulties. L = Leland L> Awesome...plays like a charm. I see you took the L> smart approach (unlike me) and pulled most of the L> incomplete dialogs and wound up with a decent base. L> L> There were a couple of build problems. The first L> was related to "cout" not being defined. Just L> added an include for iostream to get around it. I don't have this problem. I just did a clean build and didn't get any complaints. Could you let me know where (which source module) you had to add the include? L> The other was a few of these: L> L> 1>------ Build started: Project: A JazzPlusPlus Application, L> Configuration: Debug GUI VC8 Win32 ------ L> 1>Compiling... L> 1>Audio.cpp L> 1>..\src\Audio.cpp(956) : error C2666: 'wxDialog::wxDialog' : 2 L> overloads have similar conversions L> 1> C:\Documents and Settings\Administrator\My L> Documents\wxMSW-2.8.7\wxMSW-2.8.7-VC8\include\wx/msw/dialog.h(105): L> could be 'wxDialog::wxDialog(wxWindow *,const wxString L> &,bool,int,int,int,int,long,const wxString &)' L> 1> C:\Documents and Settings\Administrator\My L> Documents\wxMSW-2.8.7\wxMSW-2.8.7-VC8\include\wx/msw/dialog.h(33): or L> 'wxDialog::wxDialog(wxWindow *,wxWindowID,const wxString &,const wxPoint L> &,const wxSize &,long,const wxString &)' L> 1> while trying to match the argument list '(wxWindow *, , const L> char [16])' L> 1>Build log was saved at "file://c:\Documents and L> Settings\Administrator\My Documents\jazzplusplus\trunk\jazz\vc8\Debug L> GUI VC8\BuildLog.htm" L> 1>A JazzPlusPlus Application - 1 error(s), 0 warning(s) L> ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== L> L> Just wrapped the title in a wxString() to get it to build. After looking at all of the errors and warnings you posted, I believe I know what is causing the problem. I'm guessing I built wxWidgets with different options than you. I change some settings in setup.h before running nmake with the Microsoft tools. Here's how I build wxWidgets... 1. Download wxMSW-2.8.7.zip from the wxWidgets web site. 2. Extract the zip file to C:\ExternalPackages. Extracting creates a wxMSW-2.8.7 directory directly under C:\ExternalPackages. 3. Change the name of the top-level wxWidgets directory to wxMSW-2.8.7-VC8 so I can have other versions of wxWidgets built with other compilers in parallel with this directory. 4. Download wxWidgets-2.8.7-CHM.zip from the wxWidgets web site. 5. Extract the zip file to C:\ExternalPackages\wxMSW-2.8.7-VC8. This installs the compiled HTML help files for wxWidgets and tex2rtf. 6. Download wxWidgets-2.8.7-HTML.zip from the wxWidgets web site. 7. Extract the zip file to C:\ExternalPackages\wxMSW-2.8.7-VC8. This installs the HTML help files for wxWidgets and tex2rtf. 8. Make the following changes to C:\ExternalPackages\wxMSW-2.8.7-VC8\include\wx\msw\setup.h: Macro From To WXWIN_COMPATIBILITY_2_6 1 0 wxUSE_STD_IOSTREAM 0 1 wxUSE_IOSTREAMH 1 0 wxUSE_GLCANVAS 0 1 We don't really need the OpnGL code for this project, but I use it on other projects. I want to eventually change wxUSE_STL from 0 to 1, but a while ago there was a bug reported in this implementation on the wxWidgets developers list. 9. Edit C:\ExternalPackages\wxMSW-2.8.7-VC8\include\wx\msw\wx.rc and comment out the following line. #include "wx/msw/wince/wince.rc" 10. Use Start | All Programs | Microsoft Visual Studio .NET 2005 | Visual Studio .NET Tools | Visual Studio .NET 2005 Command Prompt to start a console session. 11. Ensure that the command-line compiler and tools (including nmake) are installed and ready to run. 12. Change directory to C:\ExternalPackages\wxMSW-2.8.7-VC8\build\msw. 13. Build the debug static version of the wxWidgets libraries by typing: nmake BUILD=debug SHARED=0 USE_OPENGL=1 -f makefile.vc 14. Build the release static version of the wxWidgets libraries by typing: nmake BUILD=release SHARED=0 USE_OPENGL=1 -f makefile.vc 15. Remove the build directories (vc_msw and vc_mswd) under c:\ExternalPackages\wxMSW-2.8.7-VC8\build\msw. 16. Change directory to C:\ExternalPackages\wxMSW-2.8.7-VC8\utils\tex2rtf\src. 17. Build the release static version of tex2rtf by typing: nmake BUILD=release SHARED=0 -f makefile.vc 18. Create a directory for the tex2rtf binaries under the wxWidgets distribution (c:\ExternalPackages\wxMSW-2.8.7-VC8\bin). 19. Move the tex2rtf binaries from c:\ExternalPackages\wxMSW-2.8.7-VC8\utils\tex2rtf\src \vc_msw. to c:\ExternalPackages\wxMSW-2.8.7-VC8\bin. 20. Remove the build directory (vc_msw) under c:\ExternalPackages\wxMSW-2.8.7-VC8\utils\tex2rtf\src. Leland, I hope you had the patience to follow all of that ;-) I really appreciate your attempt to build the code and report the problems you had. This is exactly what I'm looking for in terms of build feedback. I need to post the instructions listed above on the Jazz++ web site so others understand what I'm up to. I know this is asking a lot, but if you could build version 2.8.7 of wxWidgets described above and try it with the code in SVN I would really appreciate it. Thanks again for the very useful feedback, Pete |