Discussion:
[Wt-interest] Boost.Signals being deprecated
Nathan Ridge
2014-05-23 02:35:24 UTC
Permalink
With the latest Boost, I get the following warning message
when compiling a Wt application:

In file included from /home/nr/Dev/dist/wt/include/Wt/WSignal:17:0,
                 from /home/nr/Dev/dist/wt/include/Wt/WWidget:14,
                 from /home/nr/Dev/dist/wt/include/Wt/WWebWidget:14,
                 from /home/nr/Dev/dist/wt/include/Wt/WInteractWidget:10,
                 from /home/nr/Dev/dist/wt/include/Wt/WContainerWidget:10,
                 from /home/nr/Dev/dist/wt/include/Wt/WAnchor:10,
                 from src/tgweb.cpp:15:
/home/nr/Dev/dist/boost/include/boost/signal.hpp:17:4: warning: #warning "Boost.Signals is no longer being maintained and is now deprecated. Please switch to Boost.Signals2. To disable this warning message, define BOOST_SIGNALS_NO_DEPRECATION_WARNING." [-Wcpp]

I guess Wt should be updated to use Boost.Signals2?

Regards,
Nate
Alexey V. Chemakin
2014-05-23 03:32:15 UTC
Permalink
Hi.
I just a newbi, but found related issue:
http://redmine.webtoolkit.eu/issues/2085
----------
Alexey

On 23.05.2014 9:35, Nathan Ridge wrote:
> With the latest Boost, I get the following warning message
> when compiling a Wt application:
>
> In file included from /home/nr/Dev/dist/wt/include/Wt/WSignal:17:0,
> from /home/nr/Dev/dist/wt/include/Wt/WWidget:14,
> from /home/nr/Dev/dist/wt/include/Wt/WWebWidget:14,
> from /home/nr/Dev/dist/wt/include/Wt/WInteractWidget:10,
> from /home/nr/Dev/dist/wt/include/Wt/WContainerWidget:10,
> from /home/nr/Dev/dist/wt/include/Wt/WAnchor:10,
> from src/tgweb.cpp:15:
> /home/nr/Dev/dist/boost/include/boost/signal.hpp:17:4: warning: #warning "Boost.Signals is no longer being maintained and is now deprecated. Please switch to Boost.Signals2. To disable this warning message, define BOOST_SIGNALS_NO_DEPRECATION_WARNING." [-Wcpp]
>
> I guess Wt should be updated to use Boost.Signals2?
>
> Regards,
> Nate
>
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing platform available
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> _______________________________________________
> witty-interest mailing list
> witty-***@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
>
Wim Dumon
2014-05-23 09:23:58 UTC
Permalink
Recent versions of Wt (I believe since 3.3.1) support signals and signals2,
and will automatically use signals2 for boost versions that complain about
the deprecation of signals. So upgrade Wt and the warning will go away.

BR,
Wim.



2014-05-23 5:32 GMT+02:00 Alexey V. Chemakin <***@yandex.ru>:

> Hi.
> I just a newbi, but found related issue:
> http://redmine.webtoolkit.eu/issues/2085
> ----------
> Alexey
>
> On 23.05.2014 9:35, Nathan Ridge wrote:
> > With the latest Boost, I get the following warning message
> > when compiling a Wt application:
> >
> > In file included from /home/nr/Dev/dist/wt/include/Wt/WSignal:17:0,
> > from /home/nr/Dev/dist/wt/include/Wt/WWidget:14,
> > from /home/nr/Dev/dist/wt/include/Wt/WWebWidget:14,
> > from
> /home/nr/Dev/dist/wt/include/Wt/WInteractWidget:10,
> > from
> /home/nr/Dev/dist/wt/include/Wt/WContainerWidget:10,
> > from /home/nr/Dev/dist/wt/include/Wt/WAnchor:10,
> > from src/tgweb.cpp:15:
> > /home/nr/Dev/dist/boost/include/boost/signal.hpp:17:4: warning: #warning
> "Boost.Signals is no longer being maintained and is now deprecated. Please
> switch to Boost.Signals2. To disable this warning message, define
> BOOST_SIGNALS_NO_DEPRECATION_WARNING." [-Wcpp]
> >
> > I guess Wt should be updated to use Boost.Signals2?
> >
> > Regards,
> > Nate
> >
> >
> ------------------------------------------------------------------------------
> > "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> > Instantly run your Selenium tests across 300+ browser/OS combos.
> > Get unparalleled scalability from the best Selenium testing platform
> available
> > Simple to use. Nothing to install. Get started now for free."
> > http://p.sf.net/sfu/SauceLabs
> > _______________________________________________
> > witty-interest mailing list
> > witty-***@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/witty-interest
> >
> >
>
>
>
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing platform
> available
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> _______________________________________________
> witty-interest mailing list
> witty-***@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
Nathan Ridge
2015-06-14 02:58:58 UTC
Permalink
Hi,

> Recent versions of Wt (I believe since 3.3.1) support signals and
> signals2, and will automatically use signals2 for boost versions
> that complain about the deprecation of signals. So upgrade Wt
> and the warning will go away.

I tried building Wt 3.3.4 against a boost 1.58 installation that doesn't
have the 'signals' library built, but the Wt build system is still asking
for it:

Boost version: 1.58.0

Boost include path: /home/nr/dev/dist/boost/include

Could not find the following Boost libraries:

boost_signals

Note that Boost.Signals2 is header-only.

Am I doing something wrong, or is this a bug in the build system?

Thanks,
Nate
Wim Dumon
2015-06-16 11:07:30 UTC
Permalink
It's more a chicken-and-egg problem: we don't know the version of boost on
the system before we searched for boost, but on the other had we have to
specify the libraries to search at the moment that we call
FindPackage(boost), when we don't know the boost version yet. This is
indeed not optimal. You can simply remove boost_signals from the list of
libraries to be searched (in cmake/WtFindBoost-cmake.txt, in variable
Boost_COMPONENTS).

BR,
Wim.


On 14 June 2015 at 04:58, Nathan Ridge <***@hotmail.com> wrote:

> Hi,
>
> > Recent versions of Wt (I believe since 3.3.1) support signals and
> > signals2, and will automatically use signals2 for boost versions
> > that complain about the deprecation of signals. So upgrade Wt
> > and the warning will go away.
>
> I tried building Wt 3.3.4 against a boost 1.58 installation that doesn't
> have the 'signals' library built, but the Wt build system is still asking
> for it:
>
> Boost version: 1.58.0
>
> Boost include path: /home/nr/dev/dist/boost/include
>
> Could not find the following Boost libraries:
>
> boost_signals
>
> Note that Boost.Signals2 is header-only.
>
> Am I doing something wrong, or is this a bug in the build system?
>
> Thanks,
> Nate
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> witty-interest mailing list
> witty-***@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
>
Pau Garcia i Quiles
2015-06-16 11:27:49 UTC
Permalink
Hello,

You could do something like this:

set(Boost_REQUIRED_COMPONENTS date-time thread filesystem iostreams)

find_package(Boost REQUIRED)

if(Boost_VERSION VERSION_LESS 1.39.0)
set(Boost_REQUIRED_COMPONENTS ${Boost_REQUIRED_COMPONENTS} signals)
else()
set(Boost_REQUIRED_COMPONENTS ${Boost_REQUIRED_COMPONENTS} signals2)
endif()

find_package(Boost REQUIRED COMPONENTS ${Boost_REQUIRED_COMPONENTS})

I have not tested it but it should work




On Tue, Jun 16, 2015 at 1:07 PM, Wim Dumon <***@emweb.be> wrote:

> It's more a chicken-and-egg problem: we don't know the version of boost on
> the system before we searched for boost, but on the other had we have to
> specify the libraries to search at the moment that we call
> FindPackage(boost), when we don't know the boost version yet. This is
> indeed not optimal. You can simply remove boost_signals from the list of
> libraries to be searched (in cmake/WtFindBoost-cmake.txt, in variable
> Boost_COMPONENTS).
>
> BR,
> Wim.
>
>
> On 14 June 2015 at 04:58, Nathan Ridge <***@hotmail.com> wrote:
>
>> Hi,
>>
>> > Recent versions of Wt (I believe since 3.3.1) support signals and
>> > signals2, and will automatically use signals2 for boost versions
>> > that complain about the deprecation of signals. So upgrade Wt
>> > and the warning will go away.
>>
>> I tried building Wt 3.3.4 against a boost 1.58 installation that doesn't
>> have the 'signals' library built, but the Wt build system is still asking
>> for it:
>>
>> Boost version: 1.58.0
>>
>> Boost include path: /home/nr/dev/dist/boost/include
>>
>> Could not find the following Boost libraries:
>>
>> boost_signals
>>
>> Note that Boost.Signals2 is header-only.
>>
>> Am I doing something wrong, or is this a bug in the build system?
>>
>> Thanks,
>> Nate
>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> witty-interest mailing list
>> witty-***@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/witty-interest
>>
>>
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> witty-interest mailing list
> witty-***@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
>


--
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)
Continue reading on narkive:
Loading...