Discussion:
[mitk-users] Deprecated functions on OSX
Admin Uniapp
2017-06-05 12:28:07 UTC
Permalink
Hi all,

During my last attempts at building MITK 2016.3 from source on the latest
version of OSX Sierra 10.12.5, the compiler complains about deprecated
functions at usThreads_p.h. I got around this by setting the CXX_Flags to
ignore deprecated warnings but is this something to consider more seriously?

My understanding is that the newer version of MITK is not yet recommended
for OSX.

Many thanks
Dora
Dinkelacker, Stefan
2017-06-06 07:56:17 UTC
Permalink
Hi,


what are the deprecated functions and what are the recommended replacements for them? Are the replacements already available in our set of currently supported versions of OSX?


We cannot yet officially recommend the latest version of MITK for OSX, as this version based on the minimum Qt version 5.6 has rendering issues when anything related to QWebEngine (help pages and statistics view) is on the screen at the same time as the render windows.


Best,

Stefan


________________________________
Von: Admin Uniapp <***@gmail.com>
Gesendet: Montag, 5. Juni 2017 14:28
An: MITK
Betreff: [mitk-users] Deprecated functions on OSX

Hi all,

During my last attempts at building MITK 2016.3 from source on the latest version of OSX Sierra 10.12.5, the compiler complains about deprecated functions at usThreads_p.h. I got around this by setting the CXX_Flags to ignore deprecated warnings but is this something to consider more seriously?

My understanding is that the newer version of MITK is not yet recommended for OSX.

Many thanks
Dora
Admin Uniapp
2017-06-06 11:06:51 UTC
Permalink
Hi Stefan,

Thanks for your reply. This is the example output from the compiler:

/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usThreads_p.h:203:5:
error:
'OSAtomicIncrement64Barrier' is deprecated: first deprecated in macOS
10.12 - Use std::atomic_fetch_add() from <atomic>
instead [-Werror,-Wdeprecated-declarations]
US_ATOMIC_INCREMENT(&m_Counter);
^
/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usThreads_p.h:90:55:
note: expanded from
macro 'US_ATOMIC_INCREMENT'
#define US_ATOMIC_INCREMENT(x) IntType n =
OSAtomicIncrement64Barrier(x)
^
/usr/include/libkern/OSAtomicDeprecated.h:269:9: note:
'OSAtomicIncrement64Barrier' has been explicitly marked deprecated here
int64_t OSAtomicIncrement64Barrier( volatile OSAtomic_int64_aligned64_t
*__theValue );
^
In file included from
/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usSharedLibrary.cpp:22:
In file included from
/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/include/usSharedLibrary.h:26:
In file included from
/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/include/usSharedData.h:32:
In file included from
/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usAtomicInt_p.h:27:
/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usThreads_p.h:209:5:
error:
'OSAtomicIncrement64Barrier' is deprecated: first deprecated in macOS
10.12 - Use std::atomic_fetch_add() from <atomic>
instead [-Werror,-Wdeprecated-declarations]
US_ATOMIC_INCREMENT(&lval);
^
/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usThreads_p.h:90:55:
note: expanded from
macro 'US_ATOMIC_INCREMENT'
#define US_ATOMIC_INCREMENT(x) IntType n =
OSAtomicIncrement64Barrier(x)
^
/usr/include/libkern/OSAtomicDeprecated.h:269:9: note:
'OSAtomicIncrement64Barrier' has been explicitly marked deprecated here
int64_t OSAtomicIncrement64Barrier( volatile OSAtomic_int64_aligned64_t
*__theValue );
^
In file included from
/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usSharedLibrary.cpp:22:
In file included from
/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/include/usSharedLibrary.h:26:
In file included from
/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/include/usSharedData.h:32:
In file included from
/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usAtomicInt_p.h:27:
/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usThreads_p.h:215:5:
error:
'OSAtomicDecrement64Barrier' is deprecated: first deprecated in macOS
10.12 - Use std::atomic_fetch_sub() from <atomic>
instead [-Werror,-Wdeprecated-declarations]
US_ATOMIC_DECREMENT(&m_Counter);
^
/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usThreads_p.h:91:55:
note: expanded from
macro 'US_ATOMIC_DECREMENT'
#define US_ATOMIC_DECREMENT(x) IntType n =
OSAtomicDecrement64Barrier(x)
^
/usr/include/libkern/OSAtomicDeprecated.h:288:9: note:
'OSAtomicDecrement64Barrier' has been explicitly marked deprecated here
int64_t OSAtomicDecrement64Barrier( volatile OSAtomic_int64_aligned64_t
*__theValue );
^
In file included from
/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usSharedLibrary.cpp:22:
In file included from
/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/include/usSharedLibrary.h:26:
In file included from
/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/include/usSharedData.h:32:
In file included from
/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usAtomicInt_p.h:27:
/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usThreads_p.h:227:5:
error:
'OSAtomicCompareAndSwap64Barrier' is deprecated: first deprecated in
macOS 10.12 - Use
std::atomic_compare_exchange_strong() from <atomic> instead
[-Werror,-Wdeprecated-declarations]
US_ATOMIC_ASSIGN(&lval, m_Counter);
^
/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usThreads_p.h:92:43:
note: expanded from
macro 'US_ATOMIC_ASSIGN'
#define US_ATOMIC_ASSIGN(l, v)
OSAtomicCompareAndSwap64Barrier(*l, v, l)
^
/usr/include/libkern/OSAtomicDeprecated.h:645:9: note:
'OSAtomicCompareAndSwap64Barrier' has been explicitly marked deprecated
here
bool OSAtomicCompareAndSwap64Barrier( int64_t __oldValue, int64_t
__newValue,
^

On Tue, Jun 6, 2017 at 8:56 AM, Dinkelacker, Stefan <
Post by Dinkelacker, Stefan
Hi,
what are the deprecated functions and what are the recommended
replacements for them? Are the replacements already available in our set of
currently supported versions of OSX?
We cannot yet officially recommend the latest version of MITK for OSX,
as this version based on the minimum Qt version 5.6 has rendering issues
when anything related to QWebEngine (help pages and statistics view) is on
the screen at the same time as the render windows.
Best,
Stefan
------------------------------
*Gesendet:* Montag, 5. Juni 2017 14:28
*An:* MITK
*Betreff:* [mitk-users] Deprecated functions on OSX
Hi all,
During my last attempts at building MITK 2016.3 from source on the latest
version of OSX Sierra 10.12.5, the compiler complains about deprecated
functions at usThreads_p.h. I got around this by setting the CXX_Flags to
ignore deprecated warnings but is this something to consider more seriously?
My understanding is that the newer version of MITK is not yet recommended for OSX.
Many thanks
Dora
Dinkelacker, Stefan
2017-06-06 11:15:03 UTC
Permalink
Thank you, I created a task for this [1].

Best,
Stefan

[1] https://phabricator.mitk.org/T22929

From: Admin Uniapp [mailto:***@gmail.com]
Sent: Dienstag, 6. Juni 2017 13:07
To: Dinkelacker, Stefan
Cc: MITK
Subject: Re: [mitk-users] Deprecated functions on OSX

Hi Stefan,

Thanks for your reply. This is the example output from the compiler:

/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usThreads_p.h:203:5: error:
'OSAtomicIncrement64Barrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_fetch_add() from <atomic>
instead [-Werror,-Wdeprecated-declarations]
US_ATOMIC_INCREMENT(&m_Counter);
^
/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usThreads_p.h:90:55: note: expanded from
macro 'US_ATOMIC_INCREMENT'
#define US_ATOMIC_INCREMENT(x) IntType n = OSAtomicIncrement64Barrier(x)
^
/usr/include/libkern/OSAtomicDeprecated.h:269:9: note: 'OSAtomicIncrement64Barrier' has been explicitly marked deprecated here
int64_t OSAtomicIncrement64Barrier( volatile OSAtomic_int64_aligned64_t *__theValue );
^
In file included from /Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usSharedLibrary.cpp:22:
In file included from /Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/include/usSharedLibrary.h:26:
In file included from /Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/include/usSharedData.h:32:
In file included from /Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usAtomicInt_p.h:27:
/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usThreads_p.h:209:5: error:
'OSAtomicIncrement64Barrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_fetch_add() from <atomic>
instead [-Werror,-Wdeprecated-declarations]
US_ATOMIC_INCREMENT(&lval);
^
/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usThreads_p.h:90:55: note: expanded from
macro 'US_ATOMIC_INCREMENT'
#define US_ATOMIC_INCREMENT(x) IntType n = OSAtomicIncrement64Barrier(x)
^
/usr/include/libkern/OSAtomicDeprecated.h:269:9: note: 'OSAtomicIncrement64Barrier' has been explicitly marked deprecated here
int64_t OSAtomicIncrement64Barrier( volatile OSAtomic_int64_aligned64_t *__theValue );
^
In file included from /Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usSharedLibrary.cpp:22:
In file included from /Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/include/usSharedLibrary.h:26:
In file included from /Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/include/usSharedData.h:32:
In file included from /Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usAtomicInt_p.h:27:
/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usThreads_p.h:215:5: error:
'OSAtomicDecrement64Barrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_fetch_sub() from <atomic>
instead [-Werror,-Wdeprecated-declarations]
US_ATOMIC_DECREMENT(&m_Counter);
^
/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usThreads_p.h:91:55: note: expanded from
macro 'US_ATOMIC_DECREMENT'
#define US_ATOMIC_DECREMENT(x) IntType n = OSAtomicDecrement64Barrier(x)
^
/usr/include/libkern/OSAtomicDeprecated.h:288:9: note: 'OSAtomicDecrement64Barrier' has been explicitly marked deprecated here
int64_t OSAtomicDecrement64Barrier( volatile OSAtomic_int64_aligned64_t *__theValue );
^
In file included from /Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usSharedLibrary.cpp:22:
In file included from /Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/include/usSharedLibrary.h:26:
In file included from /Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/include/usSharedData.h:32:
In file included from /Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usAtomicInt_p.h:27:
/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usThreads_p.h:227:5: error:
'OSAtomicCompareAndSwap64Barrier' is deprecated: first deprecated in macOS 10.12 - Use
std::atomic_compare_exchange_strong() from <atomic> instead [-Werror,-Wdeprecated-declarations]
US_ATOMIC_ASSIGN(&lval, m_Counter);
^
/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usThreads_p.h:92:43: note: expanded from
macro 'US_ATOMIC_ASSIGN'
#define US_ATOMIC_ASSIGN(l, v) OSAtomicCompareAndSwap64Barrier(*l, v, l)
^
/usr/include/libkern/OSAtomicDeprecated.h:645:9: note: 'OSAtomicCompareAndSwap64Barrier' has been explicitly marked deprecated
here
bool OSAtomicCompareAndSwap64Barrier( int64_t __oldValue, int64_t __newValue,
^

On Tue, Jun 6, 2017 at 8:56 AM, Dinkelacker, Stefan <***@dkfz-heidelberg.de<mailto:***@dkfz-heidelberg.de>> wrote:

Hi,



what are the deprecated functions and what are the recommended replacements for them? Are the replacements already available in our set of currently supported versions of OSX?



We cannot yet officially recommend the latest version of MITK for OSX, as this version based on the minimum Qt version 5.6 has rendering issues when anything related to QWebEngine (help pages and statistics view) is on the screen at the same time as the render windows.



Best,

Stefan



________________________________
Von: Admin Uniapp <***@gmail.com<mailto:***@gmail.com>>
Gesendet: Montag, 5. Juni 2017 14:28
An: MITK
Betreff: [mitk-users] Deprecated functions on OSX

Hi all,

During my last attempts at building MITK 2016.3 from source on the latest version of OSX Sierra 10.12.5, the compiler complains about deprecated functions at usThreads_p.h. I got around this by setting the CXX_Flags to ignore deprecated warnings but is this something to consider more seriously?

My understanding is that the newer version of MITK is not yet recommended for OSX.

Many thanks
Dora
Sascha Zelzer
2017-06-06 11:20:23 UTC
Permalink
The task should read "Update to CppMicroServices 3.x" which uses the
recommended C++11 atomics :)

- Sascha
Post by Dinkelacker, Stefan
Thank you, I created a task for this [1].
Best,
Stefan
[1] https://phabricator.mitk.org/T22929
*Sent:* Dienstag, 6. Juni 2017 13:07
*To:* Dinkelacker, Stefan
*Cc:* MITK
*Subject:* Re: [mitk-users] Deprecated functions on OSX
Hi Stefan,
'OSAtomicIncrement64Barrier' is deprecated: first deprecated in
macOS 10.12 - Use std::atomic_fetch_add() from <atomic>
instead [-Werror,-Wdeprecated-declarations]
US_ATOMIC_INCREMENT(&m_Counter);
^
note: expanded from
macro 'US_ATOMIC_INCREMENT'
#define US_ATOMIC_INCREMENT(x) IntType n =
OSAtomicIncrement64Barrier(x)
^
'OSAtomicIncrement64Barrier' has been explicitly marked deprecated here
int64_t OSAtomicIncrement64Barrier( volatile
OSAtomic_int64_aligned64_t *__theValue );
^
In file included from
In file included from
In file included from
In file included from
'OSAtomicIncrement64Barrier' is deprecated: first deprecated in
macOS 10.12 - Use std::atomic_fetch_add() from <atomic>
instead [-Werror,-Wdeprecated-declarations]
US_ATOMIC_INCREMENT(&lval);
^
note: expanded from
macro 'US_ATOMIC_INCREMENT'
#define US_ATOMIC_INCREMENT(x) IntType n =
OSAtomicIncrement64Barrier(x)
^
'OSAtomicIncrement64Barrier' has been explicitly marked deprecated here
int64_t OSAtomicIncrement64Barrier( volatile
OSAtomic_int64_aligned64_t *__theValue );
^
In file included from
In file included from
In file included from
In file included from
'OSAtomicDecrement64Barrier' is deprecated: first deprecated in
macOS 10.12 - Use std::atomic_fetch_sub() from <atomic>
instead [-Werror,-Wdeprecated-declarations]
US_ATOMIC_DECREMENT(&m_Counter);
^
note: expanded from
macro 'US_ATOMIC_DECREMENT'
#define US_ATOMIC_DECREMENT(x) IntType n =
OSAtomicDecrement64Barrier(x)
^
'OSAtomicDecrement64Barrier' has been explicitly marked deprecated here
int64_t OSAtomicDecrement64Barrier( volatile
OSAtomic_int64_aligned64_t *__theValue );
^
In file included from
In file included from
In file included from
In file included from
'OSAtomicCompareAndSwap64Barrier' is deprecated: first deprecated in macOS 10.12 - Use
std::atomic_compare_exchange_strong() from <atomic> instead
[-Werror,-Wdeprecated-declarations]
US_ATOMIC_ASSIGN(&lval, m_Counter);
^
note: expanded from
macro 'US_ATOMIC_ASSIGN'
#define US_ATOMIC_ASSIGN(l, v)
OSAtomicCompareAndSwap64Barrier(*l, v, l)
^
'OSAtomicCompareAndSwap64Barrier' has been explicitly marked deprecated
here
bool OSAtomicCompareAndSwap64Barrier( int64_t __oldValue, int64_t
__newValue,
^
On Tue, Jun 6, 2017 at 8:56 AM, Dinkelacker, Stefan
Hi,
what are the deprecated functions and what are the recommended
replacements for them? Are the replacements already available in our
set of currently supported versions of OSX?
We cannot yet officially recommend the latest version of MITK for OSX,
as this version based on the minimum Qt version 5.6 has rendering
issues when anything related to QWebEngine (help pages and statistics
view) is on the screen at the same time as the render windows.
Best,
Stefan
------------------------------------------------------------------------
*Gesendet:* Montag, 5. Juni 2017 14:28
*An:* MITK
*Betreff:* [mitk-users] Deprecated functions on OSX
Hi all,
During my last attempts at building MITK 2016.3 from source on the
latest version of OSX Sierra 10.12.5, the compiler complains about
deprecated functions at usThreads_p.h. I got around this by setting
the CXX_Flags to ignore deprecated warnings but is this something to
consider more seriously?
My understanding is that the newer version of MITK is not yet
recommended for OSX.
Many thanks
Dora
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mitk-users mailing list
https://lists.sourceforge.net/lists/listinfo/mitk-users
Dinkelacker, Stefan
2017-06-06 12:23:27 UTC
Permalink
We’re happy for contributions of all kind. :-D

Best,
Stefan

From: Sascha Zelzer [mailto:***@gmail.com]
Sent: Dienstag, 6. Juni 2017 13:20
To: mitk-***@lists.sourceforge.net
Subject: Re: [mitk-users] Deprecated functions on OSX


The task should read "Update to CppMicroServices 3.x" which uses the recommended C++11 atomics :)

- Sascha

On 06/06/2017 01:15 PM, Dinkelacker, Stefan wrote:
Thank you, I created a task for this [1].

Best,
Stefan

[1] https://phabricator.mitk.org/T22929

From: Admin Uniapp [mailto:***@gmail.com]
Sent: Dienstag, 6. Juni 2017 13:07
To: Dinkelacker, Stefan
Cc: MITK
Subject: Re: [mitk-users] Deprecated functions on OSX

Hi Stefan,

Thanks for your reply. This is the example output from the compiler:

/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usThreads_p.h:203:5: error:
'OSAtomicIncrement64Barrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_fetch_add() from <atomic>
instead [-Werror,-Wdeprecated-declarations]
US_ATOMIC_INCREMENT(&m_Counter);
^
/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usThreads_p.h:90:55: note: expanded from
macro 'US_ATOMIC_INCREMENT'
#define US_ATOMIC_INCREMENT(x) IntType n = OSAtomicIncrement64Barrier(x)
^
/usr/include/libkern/OSAtomicDeprecated.h:269:9: note: 'OSAtomicIncrement64Barrier' has been explicitly marked deprecated here
int64_t OSAtomicIncrement64Barrier( volatile OSAtomic_int64_aligned64_t *__theValue );
^
In file included from /Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usSharedLibrary.cpp:22:
In file included from /Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/include/usSharedLibrary.h:26:
In file included from /Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/include/usSharedData.h:32:
In file included from /Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usAtomicInt_p.h:27:
/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usThreads_p.h:209:5: error:
'OSAtomicIncrement64Barrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_fetch_add() from <atomic>
instead [-Werror,-Wdeprecated-declarations]
US_ATOMIC_INCREMENT(&lval);
^
/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usThreads_p.h:90:55: note: expanded from
macro 'US_ATOMIC_INCREMENT'
#define US_ATOMIC_INCREMENT(x) IntType n = OSAtomicIncrement64Barrier(x)
^
/usr/include/libkern/OSAtomicDeprecated.h:269:9: note: 'OSAtomicIncrement64Barrier' has been explicitly marked deprecated here
int64_t OSAtomicIncrement64Barrier( volatile OSAtomic_int64_aligned64_t *__theValue );
^
In file included from /Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usSharedLibrary.cpp:22:
In file included from /Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/include/usSharedLibrary.h:26:
In file included from /Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/include/usSharedData.h:32:
In file included from /Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usAtomicInt_p.h:27:
/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usThreads_p.h:215:5: error:
'OSAtomicDecrement64Barrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_fetch_sub() from <atomic>
instead [-Werror,-Wdeprecated-declarations]
US_ATOMIC_DECREMENT(&m_Counter);
^
/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usThreads_p.h:91:55: note: expanded from
macro 'US_ATOMIC_DECREMENT'
#define US_ATOMIC_DECREMENT(x) IntType n = OSAtomicDecrement64Barrier(x)
^
/usr/include/libkern/OSAtomicDeprecated.h:288:9: note: 'OSAtomicDecrement64Barrier' has been explicitly marked deprecated here
int64_t OSAtomicDecrement64Barrier( volatile OSAtomic_int64_aligned64_t *__theValue );
^
In file included from /Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usSharedLibrary.cpp:22:
In file included from /Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/include/usSharedLibrary.h:26:
In file included from /Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/include/usSharedData.h:32:
In file included from /Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usAtomicInt_p.h:27:
/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usThreads_p.h:227:5: error:
'OSAtomicCompareAndSwap64Barrier' is deprecated: first deprecated in macOS 10.12 - Use
std::atomic_compare_exchange_strong() from <atomic> instead [-Werror,-Wdeprecated-declarations]
US_ATOMIC_ASSIGN(&lval, m_Counter);
^
/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usThreads_p.h:92:43: note: expanded from
macro 'US_ATOMIC_ASSIGN'
#define US_ATOMIC_ASSIGN(l, v) OSAtomicCompareAndSwap64Barrier(*l, v, l)
^
/usr/include/libkern/OSAtomicDeprecated.h:645:9: note: 'OSAtomicCompareAndSwap64Barrier' has been explicitly marked deprecated
here
bool OSAtomicCompareAndSwap64Barrier( int64_t __oldValue, int64_t __newValue,
^

On Tue, Jun 6, 2017 at 8:56 AM, Dinkelacker, Stefan <***@dkfz-heidelberg.de<mailto:***@dkfz-heidelberg.de>> wrote:

Hi,



what are the deprecated functions and what are the recommended replacements for them? Are the replacements already available in our set of currently supported versions of OSX?



We cannot yet officially recommend the latest version of MITK for OSX, as this version based on the minimum Qt version 5.6 has rendering issues when anything related to QWebEngine (help pages and statistics view) is on the screen at the same time as the render windows.



Best,

Stefan



________________________________
Von: Admin Uniapp <***@gmail.com<mailto:***@gmail.com>>
Gesendet: Montag, 5. Juni 2017 14:28
An: MITK
Betreff: [mitk-users] Deprecated functions on OSX

Hi all,

During my last attempts at building MITK 2016.3 from source on the latest version of OSX Sierra 10.12.5, the compiler complains about deprecated functions at usThreads_p.h. I got around this by setting the CXX_Flags to ignore deprecated warnings but is this something to consider more seriously?

My understanding is that the newer version of MITK is not yet recommended for OSX.

Many thanks
Dora





------------------------------------------------------------------------------

Check out the vibrant tech community on one of the world's most

engaging tech sites, Slashdot.org! http://sdm.link/slashdot




_______________________________________________

mitk-users mailing list

mitk-***@lists.sourceforge.net<mailto:mitk-***@lists.sourceforge.net>

https://lists.sourceforge.net/lists/listinfo/mitk-users

Continue reading on narkive:
Loading...