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

Build on mac catalina failing #68

Open
JWambaugh opened this issue Mar 11, 2021 · 2 comments
Open

Build on mac catalina failing #68

JWambaugh opened this issue Mar 11, 2021 · 2 comments
Assignees
Labels
Bug Something isn't working To Be Reproduced Has not been reproduced

Comments

@JWambaugh
Copy link

Describe the bug
The latest code from master branch is not compiling on mac for unreal 4.26.1.

This is because of an error in the Test module.

Removing the Test module from the plugin's .uproject file allows the plugin to compile successfully.

To Reproduce

  1. Download latest code and put in a project's plugins directory
  2. regenerate xcode project
  3. Build product

Expected: build projectand plugin c++
Actual result: comilation fails with error

Logs
The error message is:

2/4] Compile Module.SaveExtensionTest.gen.cpp
[1/4] Compile Module.SaveExtensionTest.cpp
In file included from /Users/jordan/source/pillager/Plugins/SaveExtension/Intermediate/Build/Mac/x86_64/UE4Editor/Development/SaveExtensionTest/Module.SaveExtensionTest.cpp:2:
In file included from /Users/jordan/source/pillager/Plugins/SaveExtension/Source/Test/Private/Files.spec.cpp:3:
/Users/jordan/source/pillager/Plugins/SaveExtension/Source/Test/Private/Automatron.h:1223:26: error: variable 'PIEStartedHandle' is uninitialized when used within its own initialization [-Werror,-Wuninitialized]
                                [this, OnWorldReady, PIEStartedHandle](const bool bIsSimulating) {
                                                     ^~~~~~~~~~~~~~~~
1 error generated.

Environment (please complete the following information):

  • Engine Version: [e.g. 4.26.1]
  • Plugin Version: [master@Head]
  • OS: [mac catalina]
@JWambaugh JWambaugh added Bug Something isn't working To Be Reproduced Has not been reproduced labels Mar 11, 2021
@JWambaugh JWambaugh changed the title Build on mac catalina failing, Editor crashes on start Build on mac catalina failing Mar 11, 2021
@xiejiangzhi
Copy link

I made a simple fix for this: maybe you can try it.

main...xiejiangzhi:osx_fix

@xiejiangzhi
Copy link

But I stiil got a codesign error in xcode.
image

I don’t know why, but after the compilation is passed(without codesign), the UE4 editor can run the plugin normally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working To Be Reproduced Has not been reproduced
Projects
None yet
Development

No branches or pull requests

3 participants