Author Topic: Error building from source  (Read 3931 times)

Offline michaelis

  • Single posting newcomer
  • *
  • Posts: 3
Error building from source
« on: March 12, 2021, 03:00:51 pm »
Hi.

I'm using GNU/Linux Slackware current, 64 bit, and have installed wxGTK3. When trying to install version 20.03 with option PLUGINS=yes I get the following build error:

make[5]: Entering directory '/tmp/SBo/codeblocks-20.03/src/plugins/contrib/wxSmith/wxwidgets'
Making all in defitems
make[6]: Entering directory '/tmp/SBo/codeblocks-20.03/src/plugins/contrib/wxSmith/wxwidgets/defitems'
depbase=`echo wxsdatepickerctrl.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ../../../../../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../../../../src/include  -I/usr/lib64/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -I../../../../../../src/include -I../../../../../../src/sdk/wxscintilla/include  -DCB_AUTOCONF  -DCB_PRECOMP -DPIC -I../../../../../../src/include/tinyxml -DTIXML_USE_STL=YES  -O2 -fPIC -fpermissive -Winvalid-pch -fPIC -fexceptions -MT wxsdatepickerctrl.lo -MD -MP -MF $depbase.Tpo -c -o wxsdatepickerctrl.lo wxsdatepickerctrl.cpp &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../../../../../src/include -I/usr/lib64/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -I../../../../../../src/include -I../../../../../../src/sdk/wxscintilla/include -DCB_AUTOCONF -DCB_PRECOMP -DPIC -I../../../../../../src/include/tinyxml -DTIXML_USE_STL=YES -O2 -fPIC -fpermissive -Winvalid-pch -fPIC -fexceptions -MT wxsdatepickerctrl.lo -MD -MP -MF .deps/wxsdatepickerctrl.Tpo -c wxsdatepickerctrl.cpp  -fPIC -DPIC -o .libs/wxsdatepickerctrl.o
In file included from /usr/include/wx-3.0/wx/arrstr.h:32,
                 from ../wxsevents.h:26,
                 from ../wxsitem.h:26,
                 from ../wxswidget.h:26,
                 from wxsdatepickerctrl.h:27,
                 from wxsdatepickerctrl.cpp:24:
../properties/wxsarraystringcheckproperty.h: In member function ‘_wxArraywxArrayBool& wxArrayBool::Item(size_t) const’:
/usr/include/wx-3.0/wx/dynarray.h:144:44: error: invalid cast of an rvalue expression of type ‘std::vector<bool>::const_reference’ {aka ‘bool’} to type ‘_wxArraywxArrayBool&’ {aka ‘bool&’}
  144 |     { wxASSERT( uiIndex < size() ); return (T&)operator[](uiIndex); }   \
      |                                            ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/wx-3.0/wx/dynarray.h:114:4: note: in expansion of macro ‘_WX_DECLARE_BASEARRAY_2’
  114 |    _WX_DECLARE_BASEARRAY_2(T, name, name##_Predicate, classexp)
      |    ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/wx-3.0/wx/dynarray.h:339:5: note: in expansion of macro ‘_WX_DECLARE_BASEARRAY’
  339 |     _WX_DECLARE_BASEARRAY(T, name, classexp)
      |     ^~~~~~~~~~~~~~~~~~~~~
/usr/include/wx-3.0/wx/dynarray.h:342:10: note: in expansion of macro ‘_WX_DEFINE_TYPEARRAY’
  342 |          _WX_DEFINE_TYPEARRAY(T, name, base, classexp)
      |          ^~~~~~~~~~~~~~~~~~~~
/usr/include/wx-3.0/wx/dynarray.h:697:5: note: in expansion of macro ‘_WX_DEFINE_TYPEARRAY_PTR’
  697 |     _WX_DEFINE_TYPEARRAY_PTR(_wxArray##name, name, base, classdecl)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/wx-3.0/wx/dynarray.h:677:5: note: in expansion of macro ‘WX_DEFINE_TYPEARRAY_WITH_DECL_PTR’
  677 |     WX_DEFINE_TYPEARRAY_WITH_DECL_PTR(T, name, base, class wxARRAY_DEFAULT_EXPORT)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/wx-3.0/wx/dynarray.h:880:5: note: in expansion of macro ‘WX_DEFINE_TYPEARRAY_PTR’
  880 |     WX_DEFINE_TYPEARRAY_PTR(T, name, wxBaseArrayInt)
      |     ^~~~~~~~~~~~~~~~~~~~~~~
../properties/wxsarraystringcheckproperty.h:28:1: note: in expansion of macro ‘WX_DEFINE_ARRAY_INT’
   28 | WX_DEFINE_ARRAY_INT(bool,wxArrayBool);
      | ^~~~~~~~~~~~~~~~~~~
make[6]: *** [Makefile:986: wxsdatepickerctrl.lo] Error 1
make[6]: Leaving directory '/tmp/SBo/codeblocks-20.03/src/plugins/contrib/wxSmith/wxwidgets/defitems'
make[5]: *** [Makefile:861: all-recursive] Error 1
make[5]: Leaving directory '/tmp/SBo/codeblocks-20.03/src/plugins/contrib/wxSmith/wxwidgets'
make[4]: *** [Makefile:847: all-recursive] Error 1
make[4]: Leaving directory '/tmp/SBo/codeblocks-20.03/src/plugins/contrib/wxSmith'
make[3]: *** [Makefile:638: all-recursive] Error 1
make[3]: Leaving directory '/tmp/SBo/codeblocks-20.03/src/plugins/contrib'
make[2]: *** [Makefile:534: all-recursive] Error 1
make[2]: Leaving directory '/tmp/SBo/codeblocks-20.03/src/plugins'
make[1]: *** [Makefile:544: all-recursive] Error 1
make[1]: Leaving directory '/tmp/SBo/codeblocks-20.03/src'
make: *** [Makefile:675: all-recursive] Error 1


Any idea why?


Offline michaelis

  • Single posting newcomer
  • *
  • Posts: 3
Re: Error building from source
« Reply #1 on: March 12, 2021, 03:15:21 pm »
It worked without the PLUGINS flag so it must be something with one of the plugins then, I guess.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: Error building from source
« Reply #2 on: March 12, 2021, 04:27:24 pm »
That is related to the use of STL containers with wxSmith
Next time please use code tags

Offline michaelis

  • Single posting newcomer
  • *
  • Posts: 3
Re: Error building from source
« Reply #3 on: March 12, 2021, 06:01:47 pm »
That is related to the use of STL containers with wxSmith
Next time please use code tags

What exactly do you mean with code tags? Sorry for me not knowing

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Error building from source
« Reply #4 on: March 12, 2021, 06:57:43 pm »
Means to use the # button when posting messages on the forum.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]