Discussion:
[Wxart2d-users_dev] wxADJUST_MINSIZE no longer available
damateem
2014-02-14 18:24:51 UTC
Permalink
Using:
wxWidgets-3.0.0
MinGW (tdm-gcc-4.8.1-3)
wxArt2D tip as of 2/13/2014

When building wxArt2D I get the following errors.

C:\user_data\david\dajac\source_pool\wxArt2D\wxArt2D\packages\wxart2d\canvas\src
\strucdlg.cpp: In member function 'bool
a2dCanvasObjectsDialog::Create(wxWindow*
, wxWindowID, const wxString&, const wxPoint&, const wxSize&, long int)':
C:\user_data\david\dajac\source_pool\wxArt2D\wxArt2D\packages\wxart2d\canvas\src
\strucdlg.cpp:108:81: error: 'wxADJUST_MINSIZE' was not declared in this
scope
itemBoxSizer2->Add( m_numberObjects, 0, wxALIGN_CENTER_HORIZONTAL
| wxALL |
wxADJUST_MINSIZE, 5 );

^
C:\user_data\david\dajac\source_pool\wxArt2D\wxArt2D\packages\wxart2d\canvas\src
\strucdlg.cpp: In member function 'bool
a2dCanvasObjectsChooseDialog::Create(wxW
indow*, wxWindowID, const wxString&, const wxPoint&, const wxSize&, long
int)':
C:\user_data\david\dajac\source_pool\wxArt2D\wxArt2D\packages\wxart2d\canvas\src
\strucdlg.cpp:519:81: error: 'wxADJUST_MINSIZE' was not declared in this
scope
itemBoxSizer2->Add( m_numberObjects, 0, wxALIGN_CENTER_HORIZONTAL
| wxALL |
wxADJUST_MINSIZE, 5 );

^
canvas\src\CMakeFiles\canvas.dir\build.make:1017: recipe for target
'canvas/src/
CMakeFiles/canvas.dir/strucdlg.cpp.obj' failed
mingw32-make[2]: *** [canvas/src/CMakeFiles/canvas.dir/strucdlg.cpp.obj]
Error 1

CMakeFiles\Makefile2:302: recipe for target
'canvas/src/CMakeFiles/canvas.dir/al
l' failed
mingw32-make[1]: *** [canvas/src/CMakeFiles/canvas.dir/all] Error 2
Makefile:115: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

I've built wxWidgets with

#define WXWIN_COMPATIBILITY_2_6 0
#define WXWIN_COMPATIBILITY_2_8 0

so wxADJUST_MINSIZE is no longer available. Removing it from the code,
removed the error.

David
damateem
2014-02-14 20:15:25 UTC
Permalink
The same issue exists in

wxArt2D\packages\wxart2d\editor\src\strucdlgdoc.cpp:119:81
Post by damateem
wxWidgets-3.0.0
MinGW (tdm-gcc-4.8.1-3)
wxArt2D tip as of 2/13/2014
When building wxArt2D I get the following errors.
C:\user_data\david\dajac\source_pool\wxArt2D\wxArt2D\packages\wxart2d\canvas\src
\strucdlg.cpp: In member function 'bool
a2dCanvasObjectsDialog::Create(wxWindow*
C:\user_data\david\dajac\source_pool\wxArt2D\wxArt2D\packages\wxart2d\canvas\src
\strucdlg.cpp:108:81: error: 'wxADJUST_MINSIZE' was not declared in
this scope
itemBoxSizer2->Add( m_numberObjects, 0, wxALIGN_CENTER_HORIZONTAL
| wxALL |
wxADJUST_MINSIZE, 5 );
^
C:\user_data\david\dajac\source_pool\wxArt2D\wxArt2D\packages\wxart2d\canvas\src
\strucdlg.cpp: In member function 'bool
a2dCanvasObjectsChooseDialog::Create(wxW
indow*, wxWindowID, const wxString&, const wxPoint&, const wxSize&,
C:\user_data\david\dajac\source_pool\wxArt2D\wxArt2D\packages\wxart2d\canvas\src
\strucdlg.cpp:519:81: error: 'wxADJUST_MINSIZE' was not declared in
this scope
itemBoxSizer2->Add( m_numberObjects, 0, wxALIGN_CENTER_HORIZONTAL
| wxALL |
wxADJUST_MINSIZE, 5 );
^
canvas\src\CMakeFiles\canvas.dir\build.make:1017: recipe for target
'canvas/src/
CMakeFiles/canvas.dir/strucdlg.cpp.obj' failed
mingw32-make[2]: ***
[canvas/src/CMakeFiles/canvas.dir/strucdlg.cpp.obj] Error 1
CMakeFiles\Makefile2:302: recipe for target
'canvas/src/CMakeFiles/canvas.dir/al
l' failed
mingw32-make[1]: *** [canvas/src/CMakeFiles/canvas.dir/all] Error 2
Makefile:115: recipe for target 'all' failed
mingw32-make: *** [all] Error 2
I've built wxWidgets with
#define WXWIN_COMPATIBILITY_2_6 0
#define WXWIN_COMPATIBILITY_2_8 0
so wxADJUST_MINSIZE is no longer available. Removing it from the code,
removed the error.
David
Loading...