-
Notifications
You must be signed in to change notification settings - Fork 28
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
Unable to build on macOS 12.2 Monterey and XCode 13. #6
Comments
To follow up, I don't think it's a macOS Monterey or XCode 13 thing, it has something to do with the c/c++ tooling. Below are my findings with a workaround. I downgraded my intel mbp and used this environment:
Setting things up
Installing basic build tools When you try to build unreal gdal: Looks like autoconf (v2.71) is the problem here. To fix it, you can do the following:
Open up a new terminal and try: You will now run into the same
I'm not entirely sure why |
After doing the above, you should probably do the following:
On the mac you might have issues with UE4 launching and building the project giving you this error: That's because this: https://github.com/TensorWorks/UnrealGDAL/blob/master/Source/GDAL/GDAL.Build.cs#L21 I'm not sure if this is a macOS specific issue but you can patch it as follows:
to
which will turn |
Hello,
I tried to pick up last years project but unfortunately it looks like things are broken for the latest macOS/XCode version.
Initially I tried to retrace my steps I had posted here #1 (comment)
I'm still on an Intel Macbook Pro, but there are a few things that have changed:
On a fresh setup I started out by installing homebrew and installing the same basic dependencies via homebrew:
And then I used
pyenv
to install Python 3.9.9 as well as the ue4cli toolspip3 install ue4cli conan-ue4cli
The steps described here https://docs.adamrehn.com/conan-ue4cli/workflow/installation still work well for UE4 (version 4.26.2)
This part works fine:
ue4 conan build "mergetiff-ue4==0.0.6"
This does not:
ue4 conan build "gdal-ue4==2.4.0"
The initial failure:
The first error you'll get is:
configure: error: cannot find required auxiliary files: config.rpath
.I used this OSGeo/gdal#4341 (comment) to get around it. Opening
/Users/{Username}/.config/conan-ue4cli/recipes/gdal-ue4/2.4.0/conanfile.py
and patching it like this:The second error
When running
ue4 conan build "gdal-ue4==2.4.0"
again, you'll now get this error:The error is
configure: error: cannot run C compiled programs.
.Unfortunately, I am not quite sure what to try next. I tried updating the command line tools and looked at some tips posted in here https://stackoverflow.com/questions/53038856/macos-configure-error-cannot-run-c-compiled-programs but those seem to apply to older macOS/XCode versions.
Have others attempt to build UnrealGDAL for macOS Monterey / XCode 13 recently?
The text was updated successfully, but these errors were encountered: