|
Re: Ambiguous C++ symbols
Glenn,
I got it sorted!
Thanks for the hint!
-Carl
Glenn,
I got it sorted!
Thanks for the hint!
-Carl
|
By
Carl Hoefs
·
#1127
·
|
|
Re: Ambiguous C++ symbols
You can always put the #import inside its own namespace, e.g.
namespace OpenCV {
#import "opencv/header.h"
}
To use:
result = OpenCV::opencvAPI(parameters)
--
Glenn L. Austin, Computer Wizard and
You can always put the #import inside its own namespace, e.g.
namespace OpenCV {
#import "opencv/header.h"
}
To use:
result = OpenCV::opencvAPI(parameters)
--
Glenn L. Austin, Computer Wizard and
|
By
Glenn L. Austin
·
#1126
·
|
|
Ambiguous C++ symbols
Objc++, macOS 10.14, OpenCV2
I'm trying to issue Objc methods from within a .mm file, without success.
For instance:
[[NSNotificationCenter defaultCenter]
Objc++, macOS 10.14, OpenCV2
I'm trying to issue Objc methods from within a .mm file, without success.
For instance:
[[NSNotificationCenter defaultCenter]
|
By
Carl Hoefs
·
#1125
·
|
|
Re: Declaring a method as 'noreturn'
Thanks for the addt'l info. Note that it's only a stub method, to be replaced with one provided by a 3rd party. I wanted to quiet the 'noreturn' warning mostly out of curiosity, since I had never seen
Thanks for the addt'l info. Note that it's only a stub method, to be replaced with one provided by a 3rd party. I wanted to quiet the 'noreturn' warning mostly out of curiosity, since I had never seen
|
By
Carl Hoefs
·
#1124
·
|
|
Re: Declaring a method as 'noreturn'
Are you sure `noreturn` is appropriate there? I mean, the name "providerCV06" kind of sounds like it actually does something. A `noreturn` function literally never returns, i.e. it either throws an
Are you sure `noreturn` is appropriate there? I mean, the name "providerCV06" kind of sounds like it actually does something. A `noreturn` function literally never returns, i.e. it either throws an
|
By
Jens Alfke
·
#1123
·
|
|
Re: Declaring a method as 'noreturn'
Jens,
Yes, that works! A bit unintuitive ;-) but it works!
- (void)providerCV06 __attribute((noreturn));
Many thanks!
-Carl
Jens,
Yes, that works! A bit unintuitive ;-) but it works!
- (void)providerCV06 __attribute((noreturn));
Many thanks!
-Carl
|
By
Carl Hoefs
·
#1122
·
|
|
Re: Declaring a method as 'noreturn'
Carl, that error message isn’t in the code I sent you, is it? If to, I’ll just send you the class and you can modify it to your liking. I just copied and pasted in the code from a working class,
Carl, that error message isn’t in the code I sent you, is it? If to, I’ll just send you the class and you can modify it to your liking. I just copied and pasted in the code from a working class,
|
By
Alex Zavatone
·
#1121
·
|
|
Re: Declaring a method as 'noreturn'
__attribute((noreturn))
It should work if placed right before the ";" in the @interface.
https://clang.llvm.org/docs/AttributeReference.html
—Jens
__attribute((noreturn))
It should work if placed right before the ";" in the @interface.
https://clang.llvm.org/docs/AttributeReference.html
—Jens
|
By
Jens Alfke
·
#1120
·
|
|
Re: Declaring a method as 'noreturn'
https://stackoverflow.com/questions/36346451/clang-warning-in-dubious-case-function-foo-could-be-declared-with-attribute
https://www.qtcentre.org/threads/70260-How-to-declare-attribute-noreturn
Just
https://stackoverflow.com/questions/36346451/clang-warning-in-dubious-case-function-foo-could-be-declared-with-attribute
https://www.qtcentre.org/threads/70260-How-to-declare-attribute-noreturn
Just
|
By
Alex Zavatone
·
#1119
·
|
|
Declaring a method as 'noreturn'
Xcode 11.3.1
What is the syntax to declare an Objc method as 'noreturn'? I can't find any documentation on it anywhere.
∙ Xcode: Method 'providerCV06' could be declared with attribute
Xcode 11.3.1
What is the syntax to declare an Objc method as 'noreturn'? I can't find any documentation on it anywhere.
∙ Xcode: Method 'providerCV06' could be declared with attribute
|
By
Carl Hoefs
·
#1118
·
|
|
Re: Accessing Xcode build symbols
Alex,
Thanks for the very complete example! I got it working!
-Carl
Alex,
Thanks for the very complete example! I got it working!
-Carl
|
By
Carl Hoefs
·
#1117
·
|
|
Re: Accessing Xcode build symbols
So, to expose the build configuration environment variable to the app, I enter it as above into the app’s info,plist.
The code below is most of the BuildEnvironment class that enables my old app to
So, to expose the build configuration environment variable to the app, I enter it as above into the app’s info,plist.
The code below is most of the BuildEnvironment class that enables my old app to
|
By
Alex Zavatone
·
#1116
·
|
|
Re: Accessing Xcode build symbols
You can set them to be an entry within a plist.
I did that for the build environment so that we can determine if an app is built for debug, test or release.
I’ll look for a sample and get back to
You can set them to be an entry within a plist.
I did that for the build environment so that we can determine if an app is built for debug, test or release.
I’ll look for a sample and get back to
|
By
Alex Zavatone
·
#1115
·
|
|
Accessing Xcode build symbols
Xcode 11.3.1
How can I read Xcode build symbols (e.g., $(MARKETING_VERSION)) from within my macOS app?
-Carl
Xcode 11.3.1
How can I read Xcode build symbols (e.g., $(MARKETING_VERSION)) from within my macOS app?
-Carl
|
By
Carl Hoefs
·
#1114
·
|
|
Re: NSLogs going nowhere
I’d never heard of this either… found this interesting…
https://stackoverflow.com/questions/37800790/hide-strange-unwanted-xcode-logs
Sandor
I’d never heard of this either… found this interesting…
https://stackoverflow.com/questions/37800790/hide-strange-unwanted-xcode-logs
Sandor
|
By
Sandor Szatmari
·
#1113
·
|
|
Re: NSLogs going nowhere
Bingo!
I have no idea what OS_ACTIVITY_MODE is or why it was disabled.
Thanks!
-Carl
Bingo!
I have no idea what OS_ACTIVITY_MODE is or why it was disabled.
Thanks!
-Carl
|
By
Carl Hoefs
·
#1112
·
|
|
Re: NSLogs going nowhere
Verify you’ve not enabled OS_ACTIVITY_MODE.
--
Gary L. Wade
http://www.garywade.com/
Verify you’ve not enabled OS_ACTIVITY_MODE.
--
Gary L. Wade
http://www.garywade.com/
|
By
Gary L. Wade
·
#1111
·
|
|
Re: NSLogs going nowhere
FWIW, I just upgraded to Xcode 11.3.1. Same issue.
-Carl
FWIW, I just upgraded to Xcode 11.3.1. Same issue.
-Carl
|
By
Carl Hoefs
·
#1110
·
|
|
Re: NSLogs going nowhere
Sandor,
Thanks for the suggestion.
My "macOS Deployment Target" is set to "macOS 10.14" for both Debug and Release. Trying other versions gives the same result.
-Carl
Sandor,
Thanks for the suggestion.
My "macOS Deployment Target" is set to "macOS 10.14" for both Debug and Release. Trying other versions gives the same result.
-Carl
|
By
Carl Hoefs
·
#1109
·
|
|
Re: NSLogs going nowhere
Carl,
I found that the new logging system does not like it when you target something like 10.9 or prior… i was loosing NSLog statements on some apps until I moved the deployment target to 10.11 or
Carl,
I found that the new logging system does not like it when you target something like 10.9 or prior… i was loosing NSLog statements on some apps until I moved the deployment target to 10.11 or
|
By
Sandor Szatmari
·
#1108
·
|