mingw32-make.exe: *** [..\..\lib\gcc_dll\\wxmsw291u_gcc_cust

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.
Pares
Earned a small fee
Earned a small fee
Posts: 15
Joined: Thu Jun 23, 2011 11:07 am

mingw32-make.exe: *** [..\..\lib\gcc_dll\\wxmsw291u_gcc_cust

Post by Pares » Thu Jun 23, 2011 11:26 am

I get an error while building

Code: Select all

mingw32-make.exe: *** [..\..\lib\gcc_dll\wxmsw291u_gcc_custom.dll] Error 1
My system is a w7-32 OS, core i5 4Gb ram (only 3 recogized due to 32 bit:( ),the IDE is codebloks 10.05,the compiler Gcc 4.5.2 (from mingw-get-inst-20110530.exe) with msys tools selected

first did't check msys install from mingw installer,and installed Mys (MSYS-1.0.11.exe) in a separate folder from MinGW from WxMSW-2.9.1-Setup.exe C:\MinGW\bin\;C:\msys\1.0\bin\;C:\wxconfig\ (i copied wx-config.exe there), I have added mingw and msys to my systemvariables Path if i try Mingw separated from Msys i get errors on buld cannotfind mafke32...
I've unistalled deleted folders and install MinGW as a bundle again, and deleted mingw/msyss/1.0/bin from path also

I've installed the sources on C:\wxMSW-2.9.1

using MinGW I've build release build shared 1 build monolitic 1 build unicode 1

setx path "%WXWIN%;C:\wxMSW-2.9.1"
cd %WXWIN%\build\msw
mingw32-make.exe -f makefile.gcc clean

C:\wxWidgets-2.9.1\build\msw>mingw32-make.exe -f makefile.gcc USE_XRC=1 SHARED=1
MONOLITHIC=1 BUILD=release UNICODE=1 2>compile_error_log.txt

there are many options in the make config and it takes that long to build, i just want to be able to build the wxwidgets library so i can start compiling my wxwidgets helloworld program, the codeblocks wizard doesn't make a compilable project, i would like to know which compiler linker seting and search paths
i would have to set

the error i get in the txt is the following:

Code: Select all

../../src/common/translation.cpp: In member function 'virtual wxMsgCatalog* wxResourceTranslationsLoader::LoadCatalog(const wxString&, const wxString&)':
../../src/common/translation.cpp:1802:8: warning: suggest explicit braces to avoid ambiguous 'else'
../../src/common/translation.cpp: In member function 'virtual wxArrayString wxResourceTranslationsLoader::GetAvailableTranslations(const wxString&) const':
../../src/common/translation.cpp:1849:12: warning: suggest explicit braces to avoid ambiguous 'else'
In file included from ../../src/common/ustring.cpp:18:0:
..\..\include/wx/ustring.h: In copy constructor 'wxUString::wxUString(const wxUString&)':
..\..\include/wx/ustring.h:48:5: warning: base class 'class std::basic_string<unsigned int>' should be explicitly initialized in the copy constructor
../../src/msw/sockmsw.cpp: In function 'LRESULT wxSocket_Internal_WinProc(HWND__*, UINT, WPARAM, LPARAM)':
../../src/msw/sockmsw.cpp:350:38: warning: missing initializer for member 'timeval::tv_usec'
../../src/msw/caret.cpp: In static member function 'static void wxCaretBase::SetBlinkTime(int)':
../../src/msw/caret.cpp:69:5: warning: suggest explicit braces to avoid ambiguous 'else'
../../src/msw/caret.cpp: In member function 'bool wxCaret::MSWCreateCaret()':
../../src/msw/caret.cpp:83:9: warning: suggest explicit braces to avoid ambiguous 'else'
../../src/msw/caret.cpp: In member function 'virtual void wxCaret::OnKillFocus()':
../../src/msw/caret.cpp:114:9: warning: suggest explicit braces to avoid ambiguous 'else'
../../src/msw/caret.cpp: In member function 'virtual void wxCaret::DoShow()':
../../src/msw/caret.cpp:140:9: warning: suggest explicit braces to avoid ambiguous 'else'
../../src/msw/caret.cpp: In member function 'virtual void wxCaret::DoHide()':
../../src/msw/caret.cpp:149:9: warning: suggest explicit braces to avoid ambiguous 'else'
../../src/msw/caret.cpp: In member function 'virtual void wxCaret::DoMove()':
../../src/msw/caret.cpp:167:9: warning: suggest explicit braces to avoid ambiguous 'else'
../../src/msw/caret.cpp: In member function 'virtual void wxCaret::DoSize()':
../../src/msw/caret.cpp:182:9: warning: suggest explicit braces to avoid ambiguous 'else'
../../src/msw/statusbar.cpp: In static member function 'static const wxStatusBar::MSWMetrics& wxStatusBar::MSWGetMetrics()':
../../src/msw/statusbar.cpp:392:39: warning: missing initializer for member 'wxStatusBar::MSWMetrics::textMargin'
../../src/msw/textctrl.cpp: In member function 'virtual void wxTextCtrl::AppendText(const wxString&)':
../../src/msw/textctrl.cpp:1196:61: warning: passing NULL to non-pointer argument 4 of 'LRESULT SendMessageW(HWND__*, UINT, WPARAM, LPARAM)'
../../src/msw/treectrl.cpp: In member function 'virtual bool wxTreeCtrl::IsVisible(const wxTreeItemId&) const':
../../src/msw/treectrl.cpp:1278:20: warning: dereferencing type-punned pointer will break strict-aliasing rules
../../src/msw/treectrl.cpp: In member function 'virtual wxTreeItemId wxTreeCtrl::DoInsertAfter(const wxTreeItemId&, const wxTreeItemId&, const wxString&, int, int, wxTreeItemData*)':
../../src/msw/treectrl.cpp:1565:9: warning: dereferencing type-punned pointer will break strict-aliasing rules
../../src/msw/treectrl.cpp: In member function 'virtual bool wxTreeCtrl::GetBoundingRect(const wxTreeItemId&, wxRect&, bool) const':
../../src/msw/treectrl.cpp:2112:10: warning: dereferencing type-punned pointer will break strict-aliasing rules
../../src/msw/treectrl.cpp: In member function 'virtual WXLRESULT wxTreeCtrl::MSWWindowProc(WXUINT, WXWPARAM, WXLPARAM)':
../../src/msw/treectrl.cpp:3181:22: warning: dereferencing type-punned pointer will break strict-aliasing rules
../../src/common/ctrlcmn.cpp: In static member function 'static wxString wxControlBase::DoEllipsizeSingleLine(const wxString&, const wxDC&, wxEllipsizeMode, int, int, int)':
../../src/common/ctrlcmn.cpp:379:4: warning: comparison of unsigned expression >= 0 is always true
gcc_mswudll\monodll_xh_hyperlink.o: file not recognized: Memory exhausted
collect2: ld returned 1 exit status
mingw32-make.exe: *** [..\..\lib\gcc_dll\wxmsw291u_gcc_custom.dll] Error 1

Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Re: mingw32-make.exe: *** [..\..\lib\gcc_dll\\wxmsw291u_gcc_

Post by Auria » Thu Jun 23, 2011 3:25 pm

Hi,

Memory exhausted problems are due to a bug in Mingw; try using Tdm-mingw instead
"Keyboard not detected. Press F1 to continue"
-- Windows

Pares
Earned a small fee
Earned a small fee
Posts: 15
Joined: Thu Jun 23, 2011 11:07 am

Re: mingw32-make.exe: *** [..\..\lib\gcc_dll\\wxmsw291u_gcc_

Post by Pares » Thu Jun 23, 2011 7:17 pm

I uninstalled mingw and tried tdm-gcc-4.5.2.exeI think i managed to build it, well there is no txt error file,

the content is the following, now ets see if i have the same luck setting it to works

Thank you very much

Code: Select all

 El volumen de la unidad C no tiene etiqueta.
 El n£mero de serie del volumen es: FA93-1719

 Directorio de C:\wxWidgets-2.9.1\build\msw\gcc_mswuddll

23/06/2011  21:13    <DIR>          .
23/06/2011  21:13    <DIR>          ..
23/06/2011  21:00           377.505 advdll_aboutdlg.o
23/06/2011  21:00            26.087 advdll_aboutdlg.o.d
23/06/2011  20:59           529.694 advdll_aboutdlgg.o
23/06/2011  20:59            26.884 advdll_aboutdlgg.o.d
23/06/2011  20:59           526.435 advdll_animatecmn.o
23/06/2011  20:59            19.156 advdll_animatecmn.o.d
23/06/2011  21:01           703.890 advdll_animateg.o
23/06/2011  21:01            19.697 advdll_animateg.o.d
23/06/2011  21:01           557.589 advdll_bmpcbox.o
23/06/2011  21:01            27.672 advdll_bmpcbox.o.d
23/06/2011  20:59           459.557 advdll_bmpcboxcmn.o
23/06/2011  20:59            20.228 advdll_bmpcboxcmn.o.d
23/06/2011  20:59           303.712 advdll_bmpcboxg.o
23/06/2011  20:59            18.177 advdll_bmpcboxg.o.d
23/06/2011  21:01           506.061 advdll_calctrl.o
23/06/2011  21:01            25.354 advdll_calctrl.o.d
23/06/2011  20:59           382.768 advdll_calctrlcmn.o
23/06/2011  20:59            17.596 advdll_calctrlcmn.o.d
23/06/2011  20:59           734.775 advdll_calctrlg.o
23/06/2011  20:59            20.413 advdll_calctrlg.o.d
23/06/2011  20:59         1.647.449 advdll_datavcmn.o
23/06/2011  20:59            21.702 advdll_datavcmn.o.d
23/06/2011  20:59         1.777.190 advdll_datavgen.o
23/06/2011  20:59            30.763 advdll_datavgen.o.d
23/06/2011  21:01           259.590 advdll_datecontrols.o
23/06/2011  21:01            24.639 advdll_datecontrols.o.d
23/06/2011  20:59           611.359 advdll_datectlg.o
23/06/2011  20:59            20.883 advdll_datectlg.o.d
23/06/2011  21:01           415.853 advdll_datectrl.o
23/06/2011  21:01            27.121 advdll_datectrl.o.d
23/06/2011  20:58             1.370 advdll_dummy.o
23/06/2011  20:58             2.963 advdll_dummy.o.d
23/06/2011  20:59           512.868 advdll_editlbox.o
23/06/2011  20:59            33.157 advdll_editlbox.o.d
23/06/2011  20:59         2.198.573 advdll_grid.o
23/06/2011  20:59            22.107 advdll_grid.o.d
23/06/2011  21:00           988.986 advdll_gridctrl.o
23/06/2011  21:00            20.479 advdll_gridctrl.o.d
23/06/2011  21:00         1.249.618 advdll_grideditors.o
23/06/2011  21:00            22.004 advdll_grideditors.o.d
23/06/2011  21:00           829.177 advdll_gridsel.o
23/06/2011  21:00            17.968 advdll_gridsel.o.d
23/06/2011  21:00           402.792 advdll_helpext.o
23/06/2011  21:00            26.794 advdll_helpext.o.d
23/06/2011  21:00           460.958 advdll_hyperlinkg.o
23/06/2011  21:00            20.095 advdll_hyperlinkg.o.d
23/06/2011  20:59           379.949 advdll_hyperlnkcmn.o
23/06/2011  20:59            18.471 advdll_hyperlnkcmn.o.d
23/06/2011  21:01           246.663 advdll_joystick.o
23/06/2011  21:01            25.005 advdll_joystick.o.d
23/06/2011  21:00           413.237 advdll_laywin.o
23/06/2011  21:00            19.481 advdll_laywin.o.d
23/06/2011  21:00           303.026 advdll_notifmsg.o
23/06/2011  21:00            25.841 advdll_notifmsg.o.d
23/06/2011  21:00           462.927 advdll_notifmsgg.o
23/06/2011  21:00            18.990 advdll_notifmsgg.o.d
23/06/2011  21:00           607.496 advdll_odcombo.o
23/06/2011  21:00            21.168 advdll_odcombo.o.d
23/06/2011  21:00           417.591 advdll_propdlg.o
23/06/2011  21:00            20.380 advdll_propdlg.o.d
.... too long ;)
23/06/2011  21:06           312.875 xrcdll_xmlrsall.o
23/06/2011  21:06            23.277 xrcdll_xmlrsall.o.d
            1573 archivos    810.812.757 bytes
               2 dirs  10.314.010.624 bytes libres

Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Re: mingw32-make.exe: *** [..\..\lib\gcc_dll\\wxmsw291u_gcc_

Post by Auria » Thu Jun 23, 2011 8:03 pm

It's hard to tell from this list, since the actual built files are under /lib, but if it completed without error messages then it worked
"Keyboard not detected. Press F1 to continue"
-- Windows

Pares
Earned a small fee
Earned a small fee
Posts: 15
Joined: Thu Jun 23, 2011 11:07 am

Re: mingw32-make.exe: *** [..\..\lib\gcc_dll\\wxmsw291u_gcc_

Post by Pares » Fri Jun 24, 2011 12:01 pm

I suppose it has been built fine , and the errors I am posting are more codeblocks ide related than wxwidgets, but regarding the build part i have to build a wxdebug and a wxrelease to be able to debug the project? (i mean setting BULD=release and BUILD=debug in mingw32-make.exe options )

i start codeblocks wizard, just by creating the project i get 2 warnings " not a matching debug configuratons cannot be been found int the wxwidgets directory u specified release/debug this means release/debug target wont be build"

btw WXWIN is a systemvariable C:\wxWidgets-2.9.1 (i doesn't have to be C:\wxWidgets-2.9.1\ right ?)

when i try to build i get:ld.exe||cannot find -lwxmsw29ud|||=== Build finished: 1 errors, 0 warnings ===|

current settings in Build/settings/ Debug /

search directories:
compiler: $(#WXWIN)\lib\gcc_dll\mswud
linker:$(#WXWIN)\lib\gcc_dll
Resource compiler: $(#WXWIN)\lib\gcc_dll\mswud

in Build/settings/ Release /

search directories:
compiler: $(#WXWIN)\lib\gcc_dll\mswu
linker:$(#WXWIN)\lib\gcc_dll
Resource compiler: $(#WXWIN)\lib\gcc_dll\mswu


i go to compiler settings and i see Build settings/linker/link libraries : i see libwxbase29ud.a i add it again with absoolute path C:\wxWidgets-2.9.1\lib\gcc_dll\libwxbase29ud.a if i do that even more errors go mad

Code: Select all

obj\Debug\dfMain.o||In function `dfDialog':|
C:\SRC_CODI_FONT\df\dfMain.cpp|61|undefined reference to `_imp__wxDefaultSize'|
C:\SRC_CODI_FONT\df\dfMain.cpp|61|undefined reference to `_imp__wxDefaultPosition'|
C:\SRC_CODI_FONT\df\dfMain.cpp|61|undefined reference to `_imp___ZN8wxDialog6CreateEP8wxWindowiRK8wxStringRK7wxPointRK6wxSizelS4_'|
C:\SRC_CODI_FONT\df\dfMain.cpp|63|undefined reference to `_imp__wxDefaultSize'|
C:\SRC_CODI_FONT\df\dfMain.cpp|63|undefined reference to `_imp__wxDefaultPosition'|
C:\SRC_CODI_FONT\df\dfMain.cpp|64|undefined reference to `_imp___ZN22wxSystemSettingsNative7GetFontE12wxSystemFont'|
C:\SRC_CODI_FONT\df\dfMain.cpp|65|undefined reference to `_imp___ZN22wxSystemSettingsNative7GetFontE12wxSystemFont'|
C:\SRC_CODI_FONT\df\dfMain.cpp|65|undefined reference to `_imp___ZN6wxFontD1Ev'|
C:\SRC_CODI_FONT\df\dfMain.cpp|66|undefined reference to `_imp___ZN6wxFont12SetPointSizeEi'|
C:\SRC_CODI_FONT\df\dfMain.cpp|70|undefined reference to `_imp__wxDefaultValidator'|
C:\SRC_CODI_FONT\df\dfMain.cpp|70|undefined reference to `_imp__wxDefaultSize'|
C:\SRC_CODI_FONT\df\dfMain.cpp|70|undefined reference to `_imp__wxDefaultPosition'|
C:\SRC_CODI_FONT\df\dfMain.cpp|72|undefined reference to `_imp__wxDefaultPosition'|
C:\SRC_CODI_FONT\df\dfMain.cpp|74|undefined reference to `_imp__wxDefaultValidator'|
C:\SRC_CODI_FONT\df\dfMain.cpp|74|undefined reference to `_imp__wxDefaultSize'|
C:\SRC_CODI_FONT\df\dfMain.cpp|74|undefined reference to `_imp__wxDefaultPosition'|
C:\SRC_CODI_FONT\df\dfMain.cpp|77|undefined reference to `_imp___ZN12wxWindowBase8SetSizerEP7wxSizerb'|
C:\SRC_CODI_FONT\df\dfMain.cpp|78|undefined reference to `_imp___ZN7wxSizer3FitEP8wxWindow'|
C:\SRC_CODI_FONT\df\dfMain.cpp|79|undefined reference to `_imp___ZN7wxSizer12SetSizeHintsEP8wxWindow'|
C:\SRC_CODI_FONT\df\dfMain.cpp|81|undefined reference to `_imp__wxEVT_COMMAND_BUTTON_CLICKED'|
C:\SRC_CODI_FONT\df\dfMain.cpp|82|undefined reference to `_imp__wxEVT_COMMAND_BUTTON_CLICKED'|
C:\SRC_CODI_FONT\df\dfMain.cpp|64|undefined reference to `_imp___ZN6wxFontD1Ev'|
C:\SRC_CODI_FONT\df\dfMain.cpp|65|undefined reference to `_imp___ZN6wxFontD1Ev'|
C:\SRC_CODI_FONT\df\dfMain.cpp|64|undefined reference to `_imp___ZN6wxFontD1Ev'|
C:\SRC_CODI_FONT\df\dfMain.cpp|58|undefined reference to `_imp___ZN8wxDialogD2Ev'|
obj\Debug\dfMain.o||In function `~dfDialog':|
C:\SRC_CODI_FONT\df\dfMain.cpp|86|undefined reference to `_imp___ZN8wxDialogD2Ev'|
obj\Debug\dfMain.o:C:\SRC_CODI_FONT\df\dfMain.cpp|94|undefined reference to `_imp___ZN12wxWindowBase5CloseEb'|
obj\Debug\dfMain.o:C:\SRC_CODI_FONT\df\dfMain.cpp|100|undefined reference to `_imp___Z12wxMessageBoxRK8wxStringS1_lP8wxWindowii'|
obj\Debug\dfMain.o||In function `_static_initialization_and_destruction_0':|
C:\SRC_CODI_FONT\df\dfMain.cpp|53|undefined reference to `_imp___ZN12wxDialogBase13sm_eventTableE'|
obj\Debug\dfMain.o:C:\wxWidgets-2.9.1\include\wx\window.h|512|undefined reference to `_imp___ZNK12wxWindowBase11GetBestSizeEv'|
obj\Debug\dfMain.o:C:\wxWidgets-2.9.1\include\wx\window.h|931|undefined reference to `_imp___ZN12wxWindowBase10GetCaptureEv'|
obj\Debug\dfMain.o:C:\wxWidgets-2.9.1\include\wx\window.h|1002|undefined reference to `_imp___ZN12wxWindowBase25GetClassDefaultAttributesE15wxWindowVariant'|
obj\Debug\dfMain.o:C:\wxWidgets-2.9.1\include\wx\window.h|1662|undefined reference to `_imp__wxDefaultSize'|
obj\Debug\dfMain.o:C:\wxWidgets-2.9.1\include\wx\window.h|1791|undefined reference to `_imp___ZN12wxWindowBase14SetInitialSizeERK6wxSize'|
obj\Debug\dfMain.o||In function `wxWindow':|
C:\wxWidgets-2.9.1\include\wx\msw\window.h|41|undefined reference to `_imp___ZN12wxWindowBaseC2Ev'|
C:\wxWidgets-2.9.1\include\wx\msw\window.h|41|undefined reference to `_imp___ZTV8wxWindow'|
C:\wxWidgets-2.9.1\include\wx\msw\window.h|41|undefined reference to `_imp___ZN8wxWindow4InitEv'|
C:\wxWidgets-2.9.1\include\wx\msw\window.h|41|undefined reference to `_imp___ZN12wxWindowBaseD2Ev'|
obj\Debug\dfMain.o:C:\wxWidgets-2.9.1\include\wx\msw\window.h|74|undefined reference to `_imp___ZN8wxWindow17MSWShowWithEffectEb12wxShowEffectj'|
obj\Debug\dfMain.o:C:\wxWidgets-2.9.1\include\wx\msw\window.h|79|undefined reference to `_imp___ZN8wxWindow17MSWShowWithEffectEb12wxShowEffectj'|
obj\Debug\dfMain.o:C:\wxWidgets-2.9.1\include\wx\msw\window.h|608|undefined reference to `_imp__wxDefaultPosition'|
obj\Debug\dfMain.o:C:\wxWidgets-2.9.1\include\wx\msw\window.h|609|undefined reference to `_imp__wxDefaultSize'|
obj\Debug\dfMain.o||In function `wxwxSizerItemListNode':|
C:\wxWidgets-2.9.1\include\wx\sizer.h|477|undefined reference to `_imp___ZTV21wxwxSizerItemListNode'|
obj\Debug\dfMain.o||In function `wxSizerItemList':|
C:\wxWidgets-2.9.1\include\wx\sizer.h|477|undefined reference to `_imp___ZTV15wxSizerItemList'|
obj\Debug\dfMain.o||In function `~wxSizerItemList':|
C:\wxWidgets-2.9.1\include\wx\sizer.h|477|undefined reference to `_imp___ZTV15wxSizerItemList'|
obj\Debug\dfMain.o||In function `wxSizer':|
C:\wxWidgets-2.9.1\include\wx\sizer.h|487|undefined reference to `_imp___ZTV7wxSizer'|
C:\wxWidgets-2.9.1\include\wx\sizer.h|487|undefined reference to `_imp___ZTV7wxSizer'|
obj\Debug\dfMain.o||In function `wxBoxSizer':|
C:\wxWidgets-2.9.1\include\wx\sizer.h|916|undefined reference to `_imp___ZTV10wxBoxSizer'|
C:\wxWidgets-2.9.1\include\wx\sizer.h|916|undefined reference to `_imp___ZTV10wxBoxSizer'|
C:\wxWidgets-2.9.1\include\wx\sizer.h|916|undefined reference to `_imp___ZN7wxSizerD2Ev'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings ===|

lib folder contents:

Code: Select all

Directorio de C:\wxWidgets-2.9.1\lib\gcc_dll

24/06/2011  10:36    <DIR>          .
24/06/2011  10:36    <DIR>          ..
24/06/2011  10:36               145 content_gcc_dll
24/06/2011  10:36                 0 content_gcc_dll_lib.txt
23/06/2011  20:27         6.162.434 libwxbase29ud.a
23/06/2011  20:29           276.112 libwxbase29ud_net.a
23/06/2011  21:03            68.874 libwxbase29ud_xml.a
23/06/2011  20:15           345.708 libwxexpatd.a
23/06/2011  20:15           830.606 libwxjpegd.a
23/06/2011  21:01         2.914.628 libwxmsw29ud_adv.a
23/06/2011  21:07           860.420 libwxmsw29ud_aui.a
23/06/2011  20:56        10.977.528 libwxmsw29ud_core.a
23/06/2011  21:09            61.498 libwxmsw29ud_gl.a
23/06/2011  21:03           932.654 libwxmsw29ud_html.a
23/06/2011  21:01           209.928 libwxmsw29ud_media.a
23/06/2011  21:08         1.660.562 libwxmsw29ud_propgrid.a
23/06/2011  21:07           587.034 libwxmsw29ud_ribbon.a
23/06/2011  21:09         1.729.784 libwxmsw29ud_richtext.a
23/06/2011  21:09           606.268 libwxmsw29ud_stc.a
23/06/2011  21:06           525.196 libwxmsw29ud_xrc.a
23/06/2011  20:14           535.724 libwxpngd.a
23/06/2011  20:14           167.974 libwxregexud.a
23/06/2011  20:15         4.581.380 libwxscintillad.a
23/06/2011  20:15           895.110 libwxtiffd.a
23/06/2011  20:14           170.284 libwxzlibd.a
23/06/2011  21:10    <DIR>          mswud
23/06/2011  20:28       103.671.810 wxbase291ud_gcc_custom.dll
23/06/2011  20:29         2.751.581 wxbase291ud_net_gcc_custom.dll
23/06/2011  21:03           645.128 wxbase291ud_xml_gcc_custom.dll
23/06/2011  21:01        14.537.596 wxmsw291ud_adv_gcc_custom.dll
23/06/2011  21:07         3.721.815 wxmsw291ud_aui_gcc_custom.dll
23/06/2011  20:58       197.397.200 wxmsw291ud_core_gcc_custom.dll
23/06/2011  21:09           745.851 wxmsw291ud_gl_gcc_custom.dll
23/06/2011  21:03        11.437.389 wxmsw291ud_html_gcc_custom.dll
23/06/2011  21:01         1.326.713 wxmsw291ud_media_gcc_custom.dll
23/06/2011  21:08         7.549.658 wxmsw291ud_propgrid_gcc_custom.dll
23/06/2011  21:07         3.934.276 wxmsw291ud_ribbon_gcc_custom.dll
23/06/2011  21:09         7.375.126 wxmsw291ud_richtext_gcc_custom.dll
23/06/2011  21:09         5.095.015 wxmsw291ud_stc_gcc_custom.dll
23/06/2011  21:06        14.117.439 wxmsw291ud_xrc_gcc_custom.dll
              37 archivos    409.406.448 bytes
               3 dirs  10.204.164.096 bytes libres
well anyways thanks for your help being able to compile is a great step forward

Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Re: mingw32-make.exe: *** [..\..\lib\gcc_dll\\wxmsw291u_gcc_

Post by Auria » Fri Jun 24, 2011 3:37 pm

Please enable full compiler logging and show the full GCC build commands

(and indeed this is more a C::B issue now, but maybe we can help)
"Keyboard not detected. Press F1 to continue"
-- Windows

ouch67
Earned some good credits
Earned some good credits
Posts: 134
Joined: Sun Mar 23, 2008 12:09 am

Re: mingw32-make.exe: *** [..\..\lib\gcc_dll\\wxmsw291u_gcc_

Post by ouch67 » Fri Jun 24, 2011 3:51 pm

it's not really an C:B issue...

just that this person is specifying libs wrong for the compiler.

you want to add the lib name without an extension or path.

so your line:

C:\wxWidgets-2.9.1\lib\gcc_dll\libwxbase29ud.a

is totally wrong you just need it like:

libwxbase29ud

you put the path to that library in your search directories. C:B already has this set up for you though with the global variables. (the $(#WXWIN) jazz...) make sure your wxwin global variable is correct. (settings->global variables)

what your doing is confusing the compiler, it's expecting a dll and you basically just give it the headers and not the dll itself. by not specifying a .a or DLL you allow your project to switch between dynamic and statically linked libraries as you please without changing anything other than your search directories.

Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Re: mingw32-make.exe: *** [..\..\lib\gcc_dll\\wxmsw291u_gcc_

Post by Auria » Fri Jun 24, 2011 4:49 pm

well it's a C::B issue in the sense that C::B includes a wxWidgets new project wizard that is supposed to get the right flags. Unless the OP is not using that wizard
"Keyboard not detected. Press F1 to continue"
-- Windows

Pares
Earned a small fee
Earned a small fee
Posts: 15
Joined: Thu Jun 23, 2011 11:07 am

Re: mingw32-make.exe: *** [..\..\lib\gcc_dll\\wxmsw291u_gcc_

Post by Pares » Fri Jun 24, 2011 6:40 pm

I am sure i am doing somethng wrong but not that, the lib without an absolute path when I create a project from wizard, the problem i that by deffault, the target as debug i get the following:

ouch67 i tried to add the file with an absolute path tring to solve the not found issue, in compile setting link libraries there is libwxmsw29ud, and in search current settings in Build/settings/ Debug /
search directories:
compiler: $(#WXWIN)\lib\gcc_dll\mswud
linker:$(#WXWIN)\lib\gcc_dll
Resource compiler: $(#WXWIN)\lib\gcc_dll\mswud

well the file isnt there there are som files with similar name in the linker path search

Code: Select all

23/06/2011  21:01         2.914.628 libwxmsw29ud_adv.a
23/06/2011  21:07           860.420 libwxmsw29ud_aui.a
23/06/2011  20:56        10.977.528 libwxmsw29ud_core.a
23/06/2011  21:09            61.498 libwxmsw29ud_gl.a
23/06/2011  21:03           932.654 libwxmsw29ud_html.a
23/06/2011  21:01           209.928 libwxmsw29ud_media.a
23/06/2011  21:08         1.660.562 libwxmsw29ud_propgrid.a
23/06/2011  21:07           587.034 libwxmsw29ud_ribbon.a
23/06/2011  21:09         1.729.784 libwxmsw29ud_richtext.a
23/06/2011  21:09           606.268 libwxmsw29ud_stc.a
23/06/2011  21:06           525.196 libwxmsw29ud_xrc.a
so when i compile i ge the following message

Code: Select all

-------------- Build: Debug in dfd ---------------

mingw32-g++.exe -LC:\wxWidgets-2.9.1\lib\gcc_dll  -o bin\Debug\dfd.exe obj\Debug\dfdMain.o obj\Debug\dfdApp.o  obj\Debug\resource.res  -mthreads  -lwxmsw29ud  -mwindows
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot find -lwxmsw29ud
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 1 seconds)
1 errors, 0 warnings
regarding the build part i have to build a wxdebug and a wxrelease to be able to debug the project? (i mean setting BULD=release and BUILD=debug in mingw32-make.exe options ) ?

Thanks again for your help,

ouch67
Earned some good credits
Earned some good credits
Posts: 134
Joined: Sun Mar 23, 2008 12:09 am

Re: mingw32-make.exe: *** [..\..\lib\gcc_dll\\wxmsw291u_gcc_

Post by ouch67 » Fri Jun 24, 2011 6:54 pm

your linking wxmsw29ud instead of libwxmsw29ud.

also the .a files in the gcc_dll folders are just headers, the dll files are the actual libraries.

the .a files in the gcc_lib folders are the actual libraries.

but just so your aware that it appears your trying to set up your project to use a non-monolithic dynamic version of wxwidgets.

this means you will have to distribute each library you use in your distribution of your exe. (base, core, adv, etc...)

you sure you want to do that? most non-monolithic builds are statically linked to avoid that. Or you can use a monolithic dll so you only have one extra file to distribute.

but Auria brings a good point, what did you select in the C:B wizard or are you creating your project from scratch? C:B should set everything up correctly, I have a feeling your compiling wxwidgets with different settings than you selected in C:B.

Pares
Earned a small fee
Earned a small fee
Posts: 15
Joined: Thu Jun 23, 2011 11:07 am

Re: mingw32-make.exe: *** [..\..\lib\gcc_dll\\wxmsw291u_gcc_

Post by Pares » Fri Jun 24, 2011 7:16 pm

the wxwidgets build configuration is the one I ha've read from countless tutorials and install.txt, if i only need to copy a dll to make my exe run im fine with that, if i create a single exe with wx funcionalities embeded within it, even better if i dont have to put dll in same folder or in path. i don't have any particular reason to chose either one.
I tried some cofings to find the one that could be set to compile and work. i've read someplace that monolitic makes it easier to config the project is that true ?

I use the CB wizard ( use wxwidgets dll set, wxwidgets is build as a monolytic library, and enable unicode is set ) and again the wizard adds libwxmsw29ud (without .a nor .)

Thanks again

ouch67
Earned some good credits
Earned some good credits
Posts: 134
Joined: Sun Mar 23, 2008 12:09 am

Re: mingw32-make.exe: *** [..\..\lib\gcc_dll\\wxmsw291u_gcc_

Post by ouch67 » Fri Jun 24, 2011 7:43 pm

and there is your problem. you have not compiled wxwidgets as a monolithic dll even though you set up codeblocks to expect a monolithic dll.

and yes monolithic is easier to set up as you only link to one library.

Pares
Earned a small fee
Earned a small fee
Posts: 15
Joined: Thu Jun 23, 2011 11:07 am

Re: mingw32-make.exe: *** [..\..\lib\gcc_dll\\wxmsw291u_gcc_

Post by Pares » Fri Jun 24, 2011 11:04 pm

I thought i compiled Monolithic before (seem weird to me cause there were more than one dll), seems not
i tried to compile it again, this time with this command

mingw32-make -f makefile.gcc USE_XRC=1 BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1 2>errlog_mono_shared_uni_xrc.txt 24/06/11 22:00

after 3 hours it ends, and it really ises all ram abailible and fails to compile it, i saw it in system performance window, the process used more than 2 Gb,

then it ends abruptly and

Code: Select all

../../src/common/translation.cpp: In member function 'virtual wxMsgCatalog* wxResourceTranslationsLoader::LoadCatalog(const wxString&, const wxString&)':
../../src/common/translation.cpp:1802:8: warning: suggest explicit braces to avoid ambiguous 'else'
../../src/common/translation.cpp: In member function 'virtual wxArrayString wxResourceTranslationsLoader::GetAvailableTranslations(const wxString&) const':
../../src/common/translation.cpp:1849:12: warning: suggest explicit braces to avoid ambiguous 'else'
In file included from ../../src/common/ustring.cpp:18:0:
..\..\include/wx/ustring.h: In copy constructor 'wxUString::wxUString(const wxUString&)':
..\..\include/wx/ustring.h:48:5: warning: base class 'class std::basic_string<unsigned int>' should be explicitly initialized in the copy constructor
../../src/msw/sockmsw.cpp: In function 'LRESULT wxSocket_Internal_WinProc(HWND__*, UINT, WPARAM, LPARAM)':
../../src/msw/sockmsw.cpp:350:38: warning: missing initializer for member 'timeval::tv_usec'
../../src/msw/caret.cpp: In static member function 'static void wxCaretBase::SetBlinkTime(int)':
../../src/msw/caret.cpp:69:5: warning: suggest explicit braces to avoid ambiguous 'else'
../../src/msw/caret.cpp: In member function 'bool wxCaret::MSWCreateCaret()':
../../src/msw/caret.cpp:83:9: warning: suggest explicit braces to avoid ambiguous 'else'
../../src/msw/caret.cpp: In member function 'virtual void wxCaret::OnKillFocus()':
../../src/msw/caret.cpp:114:9: warning: suggest explicit braces to avoid ambiguous 'else'
../../src/msw/caret.cpp: In member function 'virtual void wxCaret::DoShow()':
../../src/msw/caret.cpp:140:9: warning: suggest explicit braces to avoid ambiguous 'else'
../../src/msw/caret.cpp: In member function 'virtual void wxCaret::DoHide()':
../../src/msw/caret.cpp:149:9: warning: suggest explicit braces to avoid ambiguous 'else'
../../src/msw/caret.cpp: In member function 'virtual void wxCaret::DoMove()':
../../src/msw/caret.cpp:167:9: warning: suggest explicit braces to avoid ambiguous 'else'
../../src/msw/caret.cpp: In member function 'virtual void wxCaret::DoSize()':
../../src/msw/caret.cpp:182:9: warning: suggest explicit braces to avoid ambiguous 'else'
../../src/msw/statusbar.cpp: In static member function 'static const wxStatusBar::MSWMetrics& wxStatusBar::MSWGetMetrics()':
../../src/msw/statusbar.cpp:392:39: warning: missing initializer for member 'wxStatusBar::MSWMetrics::textMargin'
../../src/msw/textctrl.cpp: In member function 'virtual void wxTextCtrl::AppendText(const wxString&)':
../../src/msw/textctrl.cpp:1196:61: warning: passing NULL to non-pointer argument 4 of 'LRESULT SendMessageW(HWND__*, UINT, WPARAM, LPARAM)'
../../src/msw/treectrl.cpp: In member function 'virtual bool wxTreeCtrl::IsVisible(const wxTreeItemId&) const':
../../src/msw/treectrl.cpp:1278:20: warning: dereferencing type-punned pointer will break strict-aliasing rules
../../src/msw/treectrl.cpp: In member function 'virtual wxTreeItemId wxTreeCtrl::DoInsertAfter(const wxTreeItemId&, const wxTreeItemId&, const wxString&, int, int, wxTreeItemData*)':
../../src/msw/treectrl.cpp:1565:9: warning: dereferencing type-punned pointer will break strict-aliasing rules
../../src/msw/treectrl.cpp: In member function 'virtual bool wxTreeCtrl::GetBoundingRect(const wxTreeItemId&, wxRect&, bool) const':
../../src/msw/treectrl.cpp:2112:10: warning: dereferencing type-punned pointer will break strict-aliasing rules
../../src/msw/treectrl.cpp: In member function 'virtual WXLRESULT wxTreeCtrl::MSWWindowProc(WXUINT, WXWPARAM, WXLPARAM)':
../../src/msw/treectrl.cpp:3181:22: warning: dereferencing type-punned pointer will break strict-aliasing rules
../../src/common/ctrlcmn.cpp: In static member function 'static wxString wxControlBase::DoEllipsizeSingleLine(const wxString&, const wxDC&, wxEllipsizeMode, int, int, int)':
../../src/common/ctrlcmn.cpp:379:4: warning: comparison of unsigned expression >= 0 is always true
gcc_mswudll\monodll_xh_fontpicker.o: file not recognized: Memory exhausted
collect2: ld returned 1 exit status
mingw32-make: *** [..\..\lib\gcc_dll\wxmsw291u_gcc_custom.dll] Error 1
I fail again,

Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Re: mingw32-make.exe: *** [..\..\lib\gcc_dll\\wxmsw291u_gcc_

Post by Auria » Sat Jun 25, 2011 1:18 am

gcc_mswudll\monodll_xh_fontpicker.o: file not recognized: Memory exhausted
collect2: ld returned 1 exit status
this is the classic Mingw bug, the only solution I know of is to try tdm-mingw
"Keyboard not detected. Press F1 to continue"
-- Windows

Pares
Earned a small fee
Earned a small fee
Posts: 15
Joined: Thu Jun 23, 2011 11:07 am

Re: mingw32-make.exe: *** [..\..\lib\gcc_dll\\wxmsw291u_gcc_

Post by Pares » Sat Jun 25, 2011 8:32 am

I already said I uninstalled MINGW( and deleted its folder) and installed tdm-gcc-4.5.2.exe, from what I've read its simply a experimental-variant of that minGW, now i have 2 folder minGW and mingw32, in the mingw32 there is a README-gcc-tdm.txt, I ddint read it, just run the exe and hoped it was installed,these 2 mingw folders come from the tdm-gcc-4.5.2.exe installer.

now in path i have C:\MinGW\bin\;C:\msys\1.0\bin;C:\MinGW32\bin

C:\>gcc -v yields
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.5.2/lto-wrapper.exe
Target: mingw32
Configured with: ../gcc-4.5.2/configure --enable-languages=c,c++,ada,fortran,objc,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared
--enable-libgomp --disable-win32-registry --enable-libstdcxx-debug --enable-version-specific-runtime-libs --disable-werror --build=mingw32 --pre
fix=/mingw
Thread model: win32
gcc version 4.5.2 (GCC)

btw the last wxwidgets build "C:\wxWidgets-2.9.1\build\msw>mingw32-make -f makefile.gcc USE_XRC=1 BUILD=releas
e SHARED=1 MONOLITHIC=0 UNICODE=1 2>errlog_Nomono_shared_uni_xrc.txt"

got me this errorlog

Code: Select all

../../src/common/translation.cpp: In member function 'virtual wxMsgCatalog* wxResourceTranslationsLoader::LoadCatalog(const wxString&, const wxString&)':
../../src/common/translation.cpp:1802:8: warning: suggest explicit braces to avoid ambiguous 'else'
../../src/common/translation.cpp: In member function 'virtual wxArrayString wxResourceTranslationsLoader::GetAvailableTranslations(const wxString&) const':
../../src/common/translation.cpp:1849:12: warning: suggest explicit braces to avoid ambiguous 'else'
In file included from ../../src/common/ustring.cpp:18:0:
..\..\include/wx/ustring.h: In copy constructor 'wxUString::wxUString(const wxUString&)':
..\..\include/wx/ustring.h:48:5: warning: base class 'class std::basic_string<unsigned int>' should be explicitly initialized in the copy constructor
../../src/msw/sockmsw.cpp: In function 'LRESULT wxSocket_Internal_WinProc(HWND__*, UINT, WPARAM, LPARAM)':
../../src/msw/sockmsw.cpp:350:38: warning: missing initializer for member 'timeval::tv_usec'
../../src/msw/caret.cpp: In static member function 'static void wxCaretBase::SetBlinkTime(int)':
../../src/msw/caret.cpp:69:5: warning: suggest explicit braces to avoid ambiguous 'else'
../../src/msw/caret.cpp: In member function 'bool wxCaret::MSWCreateCaret()':
../../src/msw/caret.cpp:83:9: warning: suggest explicit braces to avoid ambiguous 'else'
../../src/msw/caret.cpp: In member function 'virtual void wxCaret::OnKillFocus()':
../../src/msw/caret.cpp:114:9: warning: suggest explicit braces to avoid ambiguous 'else'
../../src/msw/caret.cpp: In member function 'virtual void wxCaret::DoShow()':
../../src/msw/caret.cpp:140:9: warning: suggest explicit braces to avoid ambiguous 'else'
../../src/msw/caret.cpp: In member function 'virtual void wxCaret::DoHide()':
../../src/msw/caret.cpp:149:9: warning: suggest explicit braces to avoid ambiguous 'else'
../../src/msw/caret.cpp: In member function 'virtual void wxCaret::DoMove()':
../../src/msw/caret.cpp:167:9: warning: suggest explicit braces to avoid ambiguous 'else'
../../src/msw/caret.cpp: In member function 'virtual void wxCaret::DoSize()':
../../src/msw/caret.cpp:182:9: warning: suggest explicit braces to avoid ambiguous 'else'
../../src/msw/statusbar.cpp: In static member function 'static const wxStatusBar::MSWMetrics& wxStatusBar::MSWGetMetrics()':
../../src/msw/statusbar.cpp:392:39: warning: missing initializer for member 'wxStatusBar::MSWMetrics::textMargin'
../../src/msw/textctrl.cpp: In member function 'virtual void wxTextCtrl::AppendText(const wxString&)':
../../src/msw/textctrl.cpp:1196:61: warning: passing NULL to non-pointer argument 4 of 'LRESULT SendMessageW(HWND__*, UINT, WPARAM, LPARAM)'
../../src/msw/treectrl.cpp: In member function 'virtual bool wxTreeCtrl::IsVisible(const wxTreeItemId&) const':
../../src/msw/treectrl.cpp:1278:20: warning: dereferencing type-punned pointer will break strict-aliasing rules
../../src/msw/treectrl.cpp: In member function 'virtual wxTreeItemId wxTreeCtrl::DoInsertAfter(const wxTreeItemId&, const wxTreeItemId&, const wxString&, int, int, wxTreeItemData*)':
../../src/msw/treectrl.cpp:1565:9: warning: dereferencing type-punned pointer will break strict-aliasing rules
../../src/msw/treectrl.cpp: In member function 'virtual bool wxTreeCtrl::GetBoundingRect(const wxTreeItemId&, wxRect&, bool) const':
../../src/msw/treectrl.cpp:2112:10: warning: dereferencing type-punned pointer will break strict-aliasing rules
../../src/msw/treectrl.cpp: In member function 'virtual WXLRESULT wxTreeCtrl::MSWWindowProc(WXUINT, WXWPARAM, WXLPARAM)':
../../src/msw/treectrl.cpp:3181:22: warning: dereferencing type-punned pointer will break strict-aliasing rules
../../src/common/ctrlcmn.cpp: In static member function 'static wxString wxControlBase::DoEllipsizeSingleLine(const wxString&, const wxDC&, wxEllipsizeMode, int, int, int)':
../../src/common/ctrlcmn.cpp:379:4: warning: comparison of unsigned expression >= 0 is always true
the content of lib is

Code: Select all

C:\wxWidgets-2.9.1\lib\gcc_dll

25/06/2011  10:31    <DIR>          .
25/06/2011  10:31    <DIR>          ..
24/06/2011  10:36             2.590 content_gcc_dll_lib.txt
25/06/2011  10:31                 0 libcontent.txt
25/06/2011  02:19         6.161.780 libwxbase29u.a
25/06/2011  02:20           276.016 libwxbase29u_net.a
25/06/2011  03:00            68.862 libwxbase29u_xml.a
25/06/2011  01:59           196.042 libwxexpat.a
25/06/2011  01:58           144.378 libwxjpeg.a
25/06/2011  02:58         2.907.982 libwxmsw29u_adv.a
25/06/2011  03:03           858.362 libwxmsw29u_aui.a
25/06/2011  02:56        10.974.920 libwxmsw29u_core.a
25/06/2011  03:07            61.464 libwxmsw29u_gl.a
25/06/2011  03:00           932.472 libwxmsw29u_html.a
25/06/2011  02:58           209.436 libwxmsw29u_media.a
25/06/2011  03:05         1.660.286 libwxmsw29u_propgrid.a
25/06/2011  03:04           586.916 libwxmsw29u_ribbon.a
25/06/2011  03:06         1.729.456 libwxmsw29u_richtext.a
25/06/2011  03:07           604.786 libwxmsw29u_stc.a
25/06/2011  03:03           524.096 libwxmsw29u_xrc.a
25/06/2011  01:58           164.986 libwxpng.a
25/06/2011  01:58            80.416 libwxregexu.a
25/06/2011  02:00         1.393.052 libwxscintilla.a
25/06/2011  01:59           382.088 libwxtiff.a
25/06/2011  01:58            70.934 libwxzlib.a
25/06/2011  03:07    <DIR>          mswu
23/06/2011  21:10    <DIR>          mswud
25/06/2011  02:20        12.922.001 wxbase291u_gcc_custom.dll
25/06/2011  02:20           451.999 wxbase291u_net_gcc_custom.dll
25/06/2011  03:00           251.998 wxbase291u_xml_gcc_custom.dll
25/06/2011  02:58         2.746.248 wxmsw291u_adv_gcc_custom.dll
25/06/2011  03:03           899.797 wxmsw291u_aui_gcc_custom.dll
25/06/2011  02:56        22.864.381 wxmsw291u_core_gcc_custom.dll
25/06/2011  03:07           210.486 wxmsw291u_gl_gcc_custom.dll
25/06/2011  03:00         1.644.210 wxmsw291u_html_gcc_custom.dll
25/06/2011  02:58           292.214 wxmsw291u_media_gcc_custom.dll
25/06/2011  03:05         1.713.271 wxmsw291u_propgrid_gcc_custom.dll
25/06/2011  03:04           626.314 wxmsw291u_ribbon_gcc_custom.dll
25/06/2011  03:06         1.921.535 wxmsw291u_richtext_gcc_custom.dll
25/06/2011  03:07         1.663.624 wxmsw291u_stc_gcc_custom.dll
25/06/2011  03:03         1.218.860 wxmsw291u_xrc_gcc_custom.dll
thanks again for your help,

Post Reply