Yes, using xcrun for the SDKVERSION was one change.
Also, I use subfolders under /Applications/. Notably, I have XCode installed
in /Applications/Development/, so I’ve added:
XCODE_PATH=`xcode-select --print-path`
and changed:
MACSDKDIR="${XCODE_PATH}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX${SDKVERSION}.sdk"
I think there’s an xcrun option that will provide the above path w/o having to
use the double var concatenation.
And:
PROCESSNUM=$(sysctl hw.ncpu | sed 's/^.*://' | sed 's/[^[:digit:]]//g’);
I have a feeling ‘sysctl’ may be more future-proof than the output of hostinfo.
Seems cleaner at least.
Another is for anything using cmake and CMakeModules/FindOpenMP.cmake for
libomp, add:
#Apple clang
"-Xpreprocessor -fopenmp -lomp”
(-lomp may not be necessary?)
I can use homebrew’s clang instead, but if that was the only reason for not
using Apple’s clang, that may be a solution. (I haven’t gotten a working build
yet, though, so...)
BTW, the only libiconv that I got to work without error was homebrew’s, so I
was thinking they’re building it with particular options. Are you able to get
it to link in and/or compile correctly? I was getting this error until I
installed homebrew’s version:
ld: warning: dylib
(/Users/rsc/src/hugin-2020.0.0-2/mac/ExternalPrograms/repository/lib/libiconv.dylib)
was built for newer macOS version (10.15) than being linked (10.13)
Undefined symbols for architecture x86_64:
"_iconv", referenced from:
Exiv2::
- Completely aside, when I ran into the above error (x86_64), I tried updating
the line:
OPTIMIZE="-march=core2 -mtune=core2 -ftree-vectorize” \
to a more current -march, but couldn't really find anything definitive to use
and nothing I tried helped anyway. But that might be something to consider as
well - core2 macs were deprecated quite a while ago (I had a white imac that
was core2 - I don’t think any of the silver ones are). So what might be a
better -march to optimize for?
Thanks for the updates! I assume I need to refresh hugin from hg?
> On Feb 5, 2021, at 9:33 AM, Niklas Mischkulnig <[email protected]> wrote:
>
> I've updated some external programs either because some links were dead or
> because the old version isn't compatible with the macOS 11.0 SDK.
> (I also had to bump the minimum version to macOS 10.10 because of wxWidgets
> 3.1.4). There's now also more apparent `mac/README.md` file.
>
> PTBatcherGUI.app works, but I think the GL Preview is somehow not working
> because Hugin.app itself freezes while the splash screen is shown (doesn't
> crash though).
> I haven't yet figured out why.
>
> > have some suggestions and updates for the scripts. Notably, how SetEnv.sh
> > finds paths and versions for Xcode, but also how Apple’s clang(++) can be
> > made to use libomp
>
> Go ahead :D
> I also changed to SDKVERSION=$(xcrun --show-sdk-version) already, if that's
> what you had in mind.
>
> Niklas
>
> Niklas Mischkulnig schrieb am Donnerstag, 4. Februar 2021 um 13:11:38 UTC+1:
> I have built the mac binaries for the last few releases. I can try to do one
> over the next couple of days.
>
> I added some instructions back when I moved the mac build system from XCode
> to cmake:
> http://hg.code.sf.net/p/hugin/hugin/file/tip/mac/configure-bundle.sh
> <http://hg.code.sf.net/p/hugin/hugin/file/tip/mac/configure-bundle.sh>
>
> Niklas
>
> Bob Campbell schrieb am Mittwoch, 3. Februar 2021 um 23:32:33 UTC+1:
> Thanks! Didn’t know about cmake gui’s. I’ll try that.
>
> I did see the cmake in configure-bundle.sh, but it seemed sparse? At least
> considering the complexity of the build scripts under ExternalPrograms, but
> I’ll see if that just works.
>
>
>
>
>> On Feb 3, 2021, at 10:00 AM, T. Modes <[email protected] <>> wrote:
>>
>
>> Bob Campbell schrieb am Mittwoch, 3. Februar 2021 um 07:13:03 UTC+1:
>> and the mac docs don’t tell you what you need for cmake options & vars. So I
>> feel like I’m at a bit of a dead-end. If anyone’s working on it, I’ll try
>> to help, but right now I’m stuck.
>> I don't have access to a Mac. But have a look at the script
>> mac/configure-bundle.sh. There are an example for the CMake invokation on a
>> mac.
>>
>> Another advice is to use a CMake GUI: there are all switches listed in the
>> GUI and you can so easily inspect and change the parameters.
>>
>
>> --
>> A list of frequently asked questions is available at:
>> http://wiki.panotools.org/Hugin_FAQ <http://wiki.panotools.org/Hugin_FAQ>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "hugin and other free panoramic software" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <>.
>
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/hugin-ptx/f4d2c0f2-9c2a-4924-948d-3257d56d821fn%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/hugin-ptx/f4d2c0f2-9c2a-4924-948d-3257d56d821fn%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
>
> --
> A list of frequently asked questions is available at:
> http://wiki.panotools.org/Hugin_FAQ <http://wiki.panotools.org/Hugin_FAQ>
> ---
> You received this message because you are subscribed to the Google Groups
> "hugin and other free panoramic software" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected]
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/hugin-ptx/6f2e6f57-307a-4423-8594-7ae153ebf7cbn%40googlegroups.com
>
> <https://groups.google.com/d/msgid/hugin-ptx/6f2e6f57-307a-4423-8594-7ae153ebf7cbn%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
A list of frequently asked questions is available at:
http://wiki.panotools.org/Hugin_FAQ
---
You received this message because you are subscribed to the Google Groups
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/hugin-ptx/C9AF869E-7527-485E-B6B2-315E96D577E6%40gmail.com.