-
Notifications
You must be signed in to change notification settings - Fork 156
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
Linker warnings on macOS #1172
Comments
The lib folder is not on other platforms (864bb5b). I'm not seeing this on MacOS 12.7.6 / clang 14 / cmake 3.30.2. I am building out of tree in
|
Ok,
(don't know why it tries to link libbz2.tbd in MacOSX13.sdk which must be MacOSX14.sdk on my system ...) |
Well, you can have as many SDK versions as you want installed. homebrew might not be compatible with v14 yet. "libbz2" looks like the bzip2 compression library. Perhaps this can be overridden with a homebrew package. If this doesn't help, I would investigate this in homebrew support/forums, this type of error it would affect all sorts of applications (the name of the library might differ, for example "libz.tbd" is probably more common that libbz2.tbd). As a last resort you may want to do a clean reinstall of latest homebrew and/or xcode/devtools. I don't know how possible it is to fully remove everything these days, but there used to be a script that would do it provided by Apple, I would recommend doing that first before the reinstall. |
I don't understand this. I added
to
at the right location. But still the cmake likes to link libbz2.tbd (Considering target) from MacOSX14.sdk while libz.tbd is correct. This is frustrating ...
|
Maybe the cmake log has clues. Also in case you forgot, make sure to remove Cmakecache etc before re-running cmake (I just do |
Yeah, tried this all. Looks like the system (brew) quazip is somehow broken. So tried to rebuild from 3rd-party quazip ( But this does not relate to my original issue
which is still there and IMHO shouldn't ... |
|
Sure, lets do a PR. On a related topic, do you have any interest in fixing the build to make a portable binary/dmg possible? |
I found something ... |
What do you mean with "portable". I thought macdeployqt will do that job. Problem is also, how to test this ... |
By portable I just mean the dmg can be published and work as expected (at least on the target OS/CPU). The last time I checked this was not working. I don't know if macdeployqt is at fault or we're doing it wrong. To test it, monitor every dylib that is loaded, and make sure none come from /usr/local. I know there are environment variables to get this information, or maybe the debugger or some other tool if you prefer. To double-check, maybe rename /usr/local temporarily, copy the .app from the .dmg to different locations. |
Closing this issue as solved and open new issue for portable os x .dmg file. |
During compilation of the plugins I get these warnings:
There is no libs folder within build. So the warning is correct. Is it created at Linux or Windows?
Otherwise
${NOMACS_BUILD_DIRECTORY}/libs
at
https://github.com/novomesk/nomacs-plugins/blob/18861dc71c015006bfc551090a30e96b4fa37c78/CompositePlugin/CMakeLists.txt#L52
could be removed ...
I didn't find the reason for the duplicate libraries: '-lc++' yet. Is it on other platforms as well?
The text was updated successfully, but these errors were encountered: