Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errors compile #34

Closed
msslava opened this issue Jul 28, 2014 · 4 comments
Closed

errors compile #34

msslava opened this issue Jul 28, 2014 · 4 comments

Comments

@msslava
Copy link

msslava commented Jul 28, 2014

not be compiled on macintosh 10.8
bmdcapture.cpp:539:39: error: cannot initialize a parameter of type
'CFStringRef ' (aka 'const __CFString *') with an rvalue of type
'BMDProbeString ' (aka 'const char *')
result = displayMode->GetName(&str);
^~~~
../../include/DeckLinkAPIModes.h:166:53: note: passing argument to parameter
'name' here
virtual HRESULT GetName (/* out / CFStringRef *name) = 0;
^
bmdcapture.cpp:605:41: error: cannot initialize a parameter of type
'CFStringRef *' (aka 'const __CFString *
') with an rvalue of type
'BMDProbeString ' (aka 'const char *')
result = deckLink->GetModelName(&str);
^~~~
../../include/DeckLinkAPIDiscovery.h:56:58: note: passing argument to parameter
'modelName' here
virtual HRESULT GetModelName (/* out / CFStringRef *modelName) = 0;
^
bmdcapture.cpp:691:29: warning: '&&' within '||' [-Wlogical-op-parentheses]
if (g_maxFrames > 0 && frameCount >= g_maxFrames ||
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~
bmdcapture.cpp:691:29: note: place parentheses around the '&&' expression to
silence this warning
if (g_maxFrames > 0 && frameCount >= g_maxFrames ||
^
( )
bmdcapture.cpp:932:29: warning: comparison of unsigned expression < 0 is always
false [-Wtautological-compare]
if (selectedDisplayMode < 0) {
~~~~~~~~~~~~~~~~~~~ ^ ~
7 warnings and 2 errors generated.
make: *
* [bmdcapture] Error 1

@lu-zero
Copy link
Owner

lu-zero commented Jul 28, 2014

You have to pass darwin as operating system to make, I wanted to fix the
autoprobing later but hadn't time.
On Jul 28, 2014 5:27 PM, "musicman_08" notifications@github.com wrote:

not be compiled on macintosh 10.8
bmdcapture.cpp:539:39: error: cannot initialize a parameter of type
'CFStringRef ' (aka 'const __CFString *') with an rvalue of type
'BMDProbeString ' (aka 'const char *')
result = displayMode->GetName(&str);
^~~~
../../include/DeckLinkAPIModes.h:166:53: note: passing argument to
parameter
'name' here
virtual HRESULT GetName (/* out

/ CFStringRef *name) = 0; ^ bmdcapture.cpp:605:41: error: cannot
initialize a parameter of type 'CFStringRef *' (aka 'const __CFString *
')
with an rvalue of type
'BMDProbeString ' (aka 'const char *')
result = deckLink->GetModelName(&str);
^~~~
../../include/DeckLinkAPIDiscovery.h:56:58: note: passing argument to
parameter
'modelName' here
virtual HRESULT GetModelName (/* out

_/ CFStringRef modelName) = 0; ^ bmdcapture.cpp:691:29: warning: '&&'
within '||' [-Wlogical-op-parentheses] if (g_maxFrames > 0 && frameCount >=
g_maxFrames || ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~
bmdcapture.cpp:691:29: note: place parentheses around the '&&' expression
to silence this warning if (g_maxFrames > 0 && frameCount >= g_maxFrames ||
^ ( ) bmdcapture.cpp:932:29: warning: comparison of unsigned expression < 0
is always false [-Wtautological-compare] if (selectedDisplayMode < 0) {

[bmdcapture] Error 1

—
Reply to this email directly or view it on GitHub
https://github.com/lu-zero/bmdtools/issues/34.

@msslava
Copy link
Author

msslava commented Jul 28, 2014

I can get around this now?

@lu-zero
Copy link
Owner

lu-zero commented Jul 28, 2014

make SYS=Darwin

On Mon, Jul 28, 2014 at 7:25 PM, musicman_08 notifications@github.com
wrote:

I can get around this now?


Reply to this email directly or view it on GitHub
#34 (comment).

@msslava
Copy link
Author

msslava commented Jul 28, 2014

thank you!

@msslava msslava closed this as completed Jul 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants