As we never had any trouble with Boost thread, the problem might be related to
Boost asio, so we can only guess. Please check if you link against pthread?
Best regards,
Stefan
Please keep the conversation on the list.
From: Pukhlikov Mikhail [mailto:mikhail.pukhli...@outlook.com]
Sent: Montag, 1. Februar 2016 07:43
To: Kislinskiy, Stefan
Subject: RE: AW: [mitk-users] How to link module with pthread
Hello
I used to add system;thread there and either tryed to use system boost and
superbuild boost but still facing this problem
> From: s.kislins...@dkfz-heidelberg.de<mailto:s.kislins...@dkfz-heidelberg.de>
> To: mikhail.pukhli...@outlook.com<mailto:mikhail.pukhli...@outlook.com>;
> mitk-users@lists.sourceforge.net<mailto:mitk-users@lists.sourceforge.net>
> Date: Fri, 29 Jan 2016 15:19:34 +0100
> Subject: AW: [mitk-users] How to link module with pthread
>
> Hi!
>
> Did you add "thread" to MITK_USE_Boost_LIBRARIES in the *superbuild*? Binary
> boost libraries like the thread library must be switched on explicitly. If I
> remember correctly, there's a dependency between Boost system and Boost
> thread, so you should set MITK_USE_Boost_LIBRARIES actually to
> "system;thread".
>
> Best regards,
> Stefan
> ________________________________________
> Von: Pukhlikov Mikhail [mikhail.pukhli...@outlook.com]
> Gesendet: Freitag, 29. Januar 2016 14:37
> An: mitk-users@lists.sourceforge.net<mailto:mitk-users@lists.sourceforge.net>
> Betreff: [mitk-users] How to link module with pthread
>
> Hello!
>
> I'm writing module which is using boost asio which fails during linking due
> pthread_deatch etc... missing
>
> I need to guard pthread linking only for linux
>
> for now my cmake looks this way:
>
>
> MITK_CREATE_MODULE(
> PACKAGE_DEPENDS PUBLIC Boost
> )
>
>
>
> but I'm getting:
> MITK-superbuild/ep/include/boost/asio/detail/impl/posix_thread.ipp:35:
> undefined reference to `pthread_detach'
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users