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
Fix linking errors with LIBSCSYNTH=ON #5014
Fix linking errors with LIBSCSYNTH=ON #5014
Conversation
c2f26d3
to
4818dd1
Compare
@brianlheim Sorry, I cant review this PR because my macos knowledge is really bad, I dont even have one. |
@sonoro1234 -- ok, no worries. @Spacechild1 or @joshpar , perhaps you could give this a quick look? |
common/SC_AppleEventLoop.hpp
Outdated
@@ -0,0 +1,34 @@ | |||
/************************************************************************ | |||
* | |||
* Copyright 2013 Seth Nickell <snickell@gmail.com> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Who is Seth Nickell? ;-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure! this was in the file before, and you kept it when you added your functions. do you want the copyright assignment then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, I see! well, I would be flattered :-)
common/SC_AppleEventLoop.mm
Outdated
@@ -0,0 +1,83 @@ | |||
/************************************************************************ | |||
* | |||
* Copyright 2013 Seth Nickell <snickell@gmail.com> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see above
Apart from that it looks fine! The event loops certainly belongs to the scsynth/supernova apps. Note that people can still use the event loop with libscsynth, they just have to include |
I’m guessing event loop code came from another source.
I’m ok adding attribution, but I prefer not to remove any previous ones.
/*
Josh Parmenter
www.realizedsound.net/josh
*/
… On Jun 14, 2020, at 09:24, Brian Heim ***@***.***> wrote:
@brianlheim commented on this pull request.
In common/SC_AppleEventLoop.hpp:
> @@ -0,0 +1,34 @@
+/************************************************************************
+ *
+ * Copyright 2013 Seth Nickell ***@***.***>
not sure! this was in the file before, and you kept it when you added your functions. do you want the copyright assignment then?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@Spacechild1 is the one who added the event loop code, that's why i asked if they wanted attribution. :) removing Seth Nickell's name here would not be removing attribution, because they did not contribute any of that code. |
I’m wondering if that is the author of some code (or even sample code) that was used for this bit of code that @Spacechild1 was including as reference.
If not, I’m totally fine removing it as well.
… On Jun 14, 2020, at 09:56, Brian Heim ***@***.***> wrote:
I’m guessing event loop code came from another source.
@Spacechild1 is the one who added the event loop code, that's why i asked if they wanted attribution. :) removing Seth Nickell's name here would not be removing attribution, because they did not contribute any of that code.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Seth Nickell was not involved in the event loop code. He probably wrote the |
a865795
to
bdd624b
Compare
@joshpar @Spacechild1 updated! |
Yes, that's true, I remember Seth turning up out of nowhere when AppNap was giving people a little scare ;-) |
Backport the linker error patches (supercollider#5014) for 3.11.2.
Purpose and Motivation
This fixes #5013, as well as another linking error with LIBSCSYNTH
On linux, building with LIBSCSYNTH=ON and SYSTEM_BOOST=OFF fails with linking errors because
a static library is being linked into a shared library. solved by compiling the offending library with -fPIC.
On macOS, building with LIBSCSYNTH=ON fails with linking errors because SC_EventLoop.hpp functions used in
scsynth's main() are hidden, similar to what we encountered in #4992. This PR solves the issue the same way as
#5012, by including the file in scsynth rather than libscsynth (and doing the equivalent change for supernova).
This required separating out the event loop-specific functions into a new header and implementation file since
disableAppNap is not used in quite the same way.
Types of changes
To-do list
succeed