Thread: [Audacity-devel] Dev-C++ Audacity compilation
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
From: <Mar...@ao...> - 2005-01-16 20:55:34
|
Hi I'm a newbie attempting to build Audacity using Dec-C++ and Mingw but struggling. I imported the VC++ project file audacity.vcproj from the win directory. It seems to have worked most things out but I get the following in the compile log and I don't know what to do next. Can anybody help please? I am guessing that I just don't have a compiler flag set properly. make.exe -f "C:\audacity\win\Makefile.win" all g++.exe -c ../src/AudacityApp.cpp -o ../src/AudacityApp.o -I"C:/Dev-Cpp/include/c++/3.3.1" -I"C:/Dev-Cpp/include/c++/3.3.1/mingw32" -I"C:/Dev-Cpp/include/c++/3.3.1/backward" -I"C:/Dev-Cpp/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Dev-Cpp/include" -I"C:/wxWindows-2.4.2/include" -I"C:/wxWindows-2.4.2/lib/msw" -I"C:/wxWindows-2.4.2/include/wx/msw" -I"." -I"../src/include" -I"../src/include/win32" -I"../lib-src/allegro" -I"../lib-src/expat" -I"../lib-src/libid3tag" -I"../lib-src/portaudio/pa_common" -I"../lib-src/libsndfile/src" -I"../lib-src/libmad" -I"../lib-src/libogg/include" -I"../lib-src/libvorbis/include" -I"../lib-src/libnyquist/nyx" -I"../lib-src/portmixer/px_common" -I"../lib-src/libsamplerate/src" -I"../lib-src/libflac/include" -I"../lib-src/soundtouch/include" -I"../lib-src/libresample/include" -D__GNUWIN32__ -W -finline-functions -DNDEBUG -D__WX__ -DWIN32 -D_WINDOWS -D__WINDOWS__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DWINVER=0x0400 -DSTRICT In file included from C:/wxWindows-2.4.2/include/wx/font.h:168, from C:/wxWindows-2.4.2/include/wx/gdicmn.h:29, from C:/wxWindows-2.4.2/include/wx/event.h:24, from C:/wxWindows-2.4.2/include/wx/app.h:24, from ../src/AudacityApp.cpp:14: C:/wxWindows-2.4.2/include/wx/msw/font.h: In copy constructor `wxFont::wxFont(const wxFont&)': C:/wxWindows-2.4.2/include/wx/msw/font.h:28: warning: base class `class wxFontBase' should be explicitly initialized in the copy constructor ... then about a dozen more 'should be explicitly initialized in the copy constructor' and then ... ../src/AudacityApp.cpp: In member function `void AudacityApp::AssociateFileTypes()': ../src/AudacityApp.cpp:1065: error: call of overloaded `wxString(wxRegKey&)' is ambiguous C:/wxWindows-2.4.2/include/wx/string.h:306: note: candidates are: wxString::wxString(wxChar, size_t) C:/wxWindows-2.4.2/include/wx/string.h:291: note: wxString::wxString(const wxString&) C:/wxWindows-2.4.2/include/wx/string.h:284: note: wxString::wxString(int) make.exe: *** [../src/AudacityApp.o] Error 1 Execution terminated ---------------------------------------------------- Thanks in advance Martyn |
From: Lynn A. <l_d...@ad...> - 2005-01-17 04:44:37
|
Are you working with Audacity 1.2.3? The 1.3.0 version of AudacityApp.cpp from CVS has changed. I'm not clear how productive it is to "wrestle" with 1.2.3. Just a quick guess ... perhaps specifying the appropriate cast would make the underlying mingw/g++ compiler happier. Perhaps wxRegKey& should be const? Visual C++ 6.0 is apparently much less "fussy" than g++ Also, could you post the audacity.dev project file you are using? I've been getting up to speed with Dev-C++ and am so far impressed. I've been using it with mezzo, but have given some thought to seeing how Dev-C++ does with Audacity. > ../src/AudacityApp.cpp: In member function `void AudacityApp::AssociateFileTypes()': > ../src/AudacityApp.cpp:1065: error: call of overloaded `wxString(wxRegKey&)' is ambiguous > C:/wxWindows-2.4.2/include/wx/string.h:306: note: candidates are: wxString::wxString(wxChar, size_t) > C:/wxWindows-2.4.2/include/wx/string.h:291: note: wxString::wxString(const wxString&) > C:/wxWindows-2.4.2/include/wx/string.h:284: note: wxString::wxString(int) |