Why I dont have Poly2tri.h?

0

Hi All. I have never succeeded to build although tried for many times. My Lumberyard is 1.25. I don't have 2017 but I have 2019. This is my Setup: REMOVEDUPLOAD

I want to build the StarterGame. It runs well in Lumberyard Editor. The fatal error is no Poly2tri.h. I checked in file explorer. No, I really don't have it. Why? Thank you !

asked 4 years ago273 views
24 Answers
0

Hi @REDACTEDUSER

Sorry to hear you've been having trouble building.

It turns out this poly2tri issue is an error on our part. For now the work around is unfortunately that you'll need to build the tools and editor as well (check 'Compile the Lumberyard Editor and tools').

There is a fix for the issue you're seeing and I'll try and get a patch uploaded to the forum next week.

Building might take a while so I'd also recommend enabling Uber Files (it's an option in user_settings.options in the WAF folder), there's some more info about it here - https://docs.aws.amazon.com/lumberyard/latest/userguide/waf-uber-files.html

Hope that helps for now!

Best of luck,

Tom

answered 4 years ago
0

Hi @REDACTEDUSER In fact I also made some small changes on StarterGame. It looks: REMOVEDUPLOAD This evening I will remove my entities and build again. I'm afraid that the reason lies in them.

I'm not eager to build. So if I still cannt build, I will wait patiently. Thank you!

answered 4 years ago
0

I have removed almost all. But poly2tri.h is still needed. REMOVEDUPLOAD

Don't be busy. I can learn others before building. 😄

answered 4 years ago
0

Hi @REDACTEDUSER

Did you try building the editor and tools as well?

I believe the issue is the build target game_and_engine is missing a dependency on poly2tri so it isn't built properly (include paths are not set etc...) however for all and I think editor it is.

I'll try find the relevant info tomorrow, hopefully you were able to make some progress!

Thanks!

Tom

answered 4 years ago
0

Hi @REDACTEDUSER

answered 4 years ago
0

Hi @REDACTEDUSER

So this particular issue should be fixed in an upcoming release.

In the meantime if you want to make a local change to resolve it, in SetupAssistantConfig.json (which should be in the root dev/ folder), if you find the line with the identifier 'poly2tri', and change the "roles" entry from.

"roles" : [ "compilesandbox" ]

to

"roles" : [ "compileengine", "compilesandbox" ]

That should hopefully fix things,

Thanks!

Tom

answered 4 years ago
0

Hi @REDACTEDUSER

REMOVEDUPLOAD

answered 4 years ago
0

That's the one! :slight_smile:

Sounds great thanks!

answered 4 years ago
0

Hi @REDACTEDUSER and replaced "roles" : [ "compilesandbox" ] with "roles" : [ "compileengine", "compilesandbox" ]. But the problem is still there. This is from the log: c:\Amazon\Lumberyard\1.25.0.0\dev\Gems\PhysX\Code\Editor/PolygonPrismMeshUtils.h(18): fatal error C1083: 无法打开包括文件: “poly2tri.h”: No such file or directory

Would you check my SetupAssistantConfig.json? Thank you.

SetupAssistantConfig.zip|attachment (6.6 KB)

answered 4 years ago
0

Hey @REDACTEDUSER

That looks correct to me - I think you might just need to run the configure step once you have that change. I'm trying to remember exactly how this works with the public release but with that change try opening ProjectConfigurator and switching projects (just to a random one and back), and then try building again. It might just be that change wasn't picked up and your build cache just needs to be refreshed.

You might be able to try running lmbr_waf configure from the dev folder too.

If none of that works I'll try check with someone else on the team who might have an idea 👍

Thanks,

Tom

answered 4 years ago
0

Hi this would be great if this fix the problem. Your solution is right, enable build editor and tools fix the build error, but takes nearly two to three hours to build. The option to specify the max-cores to use is also ignored by the buildsystem. IncrediBuild fails to work, maybe due to personal license. I would appreciate it, if the build errors would be fixed in next release.

answered 4 years ago
0

Hi @REDACTEDUSER Below is copied from cmd window. Wish it provides some infomation for you. Thank you.

C:\Amazon\Lumberyard\1.25.0.0\dev>lmbr_waf configure [WAF] Engine Root: C:\Amazon\Lumberyard\1.25.0.0\dev
[WAF] Executing 'configure' [WARN] Missing JDK path from Setup Assistant detected. Target platforms that require java will be disabled. Please re-run Setup Assistant with "Compile For Android" enabled and run the configure command again. [SETTINGS] msvs_version = 16 (default 15) [SETTINGS] enable_android_armv8_clang = False (default True) [SETTINGS] enable_win_x64_vs2017 = False (default True) [WARN] Unable to process 3rd party config file 'angle.json': Invalid/missing LIBPATH value 'c:\Amazon\Lumberyard\1.25.0.0\dev\Tools\Redistributables\ANGLE\win32': (c:\Amazon\Lumberyard\1.25.0.0\dev_WAF_\3rdParty\angle.json, platform win_x64_vs2019) [WARN] Unable to configure uselibs 'ANGLE' for platform 'win_x64_vs2019'. This may cause build errors for modules that depend on those uselibs for that platform [WARN] Unable to process 3rd party config file 'benchmark.json': Invalid/missing SYSTEM_INCLUDES value 'C:\Amazon\Lumberyard\1.25.0.0\3rdParty\benchmark\1.4.1\include': (c:\Amazon\Lumberyard\1.25.0.0\dev_WAF_\3rdParty\benchmark.json, platform win_x64_vs2019) [WARN] Unable to configure uselibs 'BENCHMARK' for platform 'win_x64_vs2019'. This may cause build errors for modules that depend on those uselibs for that platform [WARN] Unable to process 3rd party config file 'crashpad.json': Invalid/missing INCLUDES value 'c:\Amazon\Lumberyard\1.25.0.0\dev\Tools\Crashpad\include': (c:\Amazon\Lumberyard\1.25.0.0\dev_WAF_\3rdParty\crashpad.json, platform win_x64_vs2019) [WARN] Unable to configure uselibs 'CRASHPAD,CRASHPAD_HANDLER' for platform 'win_x64_vs2019'. This may cause build errors for modules that depend on those uselibs for that platform [WARN] Unable to process 3rd party config file 'd3d_compiler.json': Invalid/missing LIBPATH value 'c:\Amazon\Lumberyard\1.25.0.0\dev\Tools\Redistributables\D3DCompiler\win32': (c:\Amazon\Lumberyard\1.25.0.0\dev_WAF_\3rdParty\d3d_compiler.json, platform win_x64_vs2019) [WARN] Unable to configure uselibs 'D3D_COMPILER,D3D_COMPILER_43,D3D_COMPILER_46,D3D_COMPILER_47' for platform 'win_x64_vs2019'. This may cause build errors for modules that depend on those uselibs for that platform [WARN] Unable to process 3rd party config file 'dbg_help.json': Invalid/missing LIBPATH value 'c:\Amazon\Lumberyard\1.25.0.0\dev\Tools\Redistributables\DbgHelp\win32': (c:\Amazon\Lumberyard\1.25.0.0\dev_WAF_\3rdParty\dbg_help.json, platform win_x64_vs2019) [WARN] Unable to configure uselibs 'DBG_HELP' for platform 'win_x64_vs2019'. This may cause build errors for modules that depend on those uselibs for that platform [WARN] Unable to process 3rd party config file 'libav.json': Invalid/missing SYSTEM_INCLUDES value 'C:\Amazon\Lumberyard\1.25.0.0\3rdParty\libav\11.7\usr\include': (c:\Amazon\Lumberyard\1.25.0.0\dev_WAF_\3rdParty\libav.json, platform win_x64_vs2019) [WARN] Unable to configure uselibs 'LIBAV' for platform 'win_x64_vs2019'. This may cause build errors for modules that depend on those uselibs for that platform [WARN] Unable to process 3rd party config file 'msvc90.json': Invalid/missing LIBPATH value 'c:\Amazon\Lumberyard\1.25.0.0\dev\Tools\Redistributables\MSVC90': (c:\Amazon\Lumberyard\1.25.0.0\dev_WAF_\3rdParty\msvc90.json, platform win_x64_vs2019) [WARN] Unable to configure uselibs 'MSVC90' for platform 'win_x64_vs2019'. This may cause build errors for modules that depend on those uselibs for that platform [WARN] Unable to process 3rd party config file 'opengl32.json': Invalid/missing LIBPATH value 'c:\Amazon\Lumberyard\1.25.0.0\dev\Tools\Redistributables\OpenGL32': (c:\Amazon\Lumberyard\1.25.0.0\dev_WAF_\3rdParty\opengl32.json, platform win_x64_vs2019) [WARN] Unable to configure uselibs 'OPENGL32' for platform 'win_x64_vs2019'. This may cause build errors for modules that depend on those uselibs for that platform [WARN] 3rd party alias poly2tri references a missing local SDK path: C:\Amazon\Lumberyard\1.25.0.0\3rdParty\poly2tri\0.3.3-az.1. Make sure it is available through Setup Assistant [WARN] Unable to process 3rd party config file 'poly2tri.json': Invalid/missing SYSTEM_INCLUDES value 'C:\Amazon\Lumberyard\1.25.0.0\3rdParty\poly2tri\0.3.3-az.1\poly2tri': (c:\Amazon\Lumberyard\1.25.0.0\dev_WAF_\3rdParty\poly2tri.json, platform win_x64_vs2019) [WARN] Unable to configure uselibs 'POLY2TRI_LIB' for platform 'win_x64_vs2019'. This may cause build errors for modules that depend on those uselibs for that platform [WARN] Unable to process 3rd party config file 'ssleay.json': Invalid/missing LIBPATH value 'c:\Amazon\Lumberyard\1.25.0.0\dev\Tools\Redistributables\SSLEAY\win32': (c:\Amazon\Lumberyard\1.25.0.0\dev_WAF_\3rdParty\ssleay.json, platform win_x64_vs2019) [WARN] Unable to configure uselibs 'SSLEAY' for platform 'win_x64_vs2019'. This may cause build errors for modules that depend on those uselibs for that platform [WARN] Unable to process 3rd party config file 'wwise.json': Invalid/missing SYSTEM_INCLUDES value 'C:\Amazon\Lumberyard\1.25.0.0\3rdParty\Wwise\2018.1.4.6807\SDK\include': (c:\Amazon\Lumberyard\1.25.0.0\dev_WAF_\3rdParty\wwise.json, platform win_x64_vs2019) [WARN] Unable to configure uselibs 'WWISE' for platform 'win_x64_vs2019'. This may cause build errors for modules that depend on those uselibs for that platform [WARN] Unable to process 3rd party config file 'wwise2017.json': Invalid/missing SYSTEM_INCLUDES value 'C:\Amazon\Lumberyard\1.25.0.0\3rdParty\Wwise\2018.1.4.6807\SDK\include': (c:\Amazon\Lumberyard\1.25.0.0\dev_WAF_\3rdParty\wwise2017.json, platform win_x64_vs2019) [WARN] Unable to configure uselibs 'WWISE2017' for platform 'win_x64_vs2019'. This may cause build errors for modules that depend on those uselibs for that platform [WAF] 'Initialize Build Variants' starting... [WAF] Configure "win_x64_vs2019 - [debug,debug_dedicated,debug_test,debug_test_dedicated,profile,profile_dedicated,profile_test,profile_test_dedicated,performance,performance_dedicated,release,release_dedicated]" [WAF] 'Initialize Build Variants' successful (0.984s) [WAF] 'Configure Projects' starting... [WAF] 'Configure Projects' successful (8.655s) [WAF] 'configure' finished successfully (12.902s) [WAF] Executing 'generate_uber_files' in 'c:\Amazon\Lumberyard\1.25.0.0\dev\BinTemp' [WAF] 'generate_uber_files' finished successfully (38.429s) [WAF] Executing 'msvs_2019' in 'c:\Amazon\Lumberyard\1.25.0.0\dev\BinTemp' [INFO] Generating Visual Studio 2019 solution. [WARN] Invalid module 'AmazonStyle' in spec 'all' [WARN] Invalid module 'LyIdentity_shared' in spec 'all' [WARN] Invalid module 'LyIdentity_static' in spec 'all' [WARN] Invalid module 'LyInstallerMetrics' in spec 'all' [WARN] Invalid module 'LyMetricsConsumer' in spec 'all' [WARN] Invalid module 'LyMetricsProducer_python' in spec 'all' [WARN] Invalid module 'LyMetricsProducer_shared' in spec 'all' [WARN] Invalid module 'LyMetricsProducer_static' in spec 'all' [WARN] Invalid module 'LyMetricsShared_shared' in spec 'all' [WARN] Invalid module 'LyMetricsShared_static' in spec 'all' [WARN] Invalid module 'LyzardGems' in spec 'all' [WARN] Invalid module 'LyzardEngines' in spec 'all' [WARN] Invalid module 'LyzardProjects' in spec 'all' [WARN] Invalid module 'NewsBuilder' in spec 'all' [WARN] Invalid module 'ToolsCrashUploader' in spec 'all' [WARN] Invalid module 'SerializeContextTools' in spec 'all' [WARN] Invalid module 'DeltaCataloger' in spec 'all' [WARN] Module use dependency 'CrashHandler' for target 'CrySystem' refers to an invalid module [WARN] Module use dependency 'ToolsCrashHandler' for target 'EditorLib' refers to an invalid module [WARN] Module use dependency 'ToolsCrashHandler' for target 'AssetProcessor' refers to an invalid module [WARN] Module use dependency 'ToolsCrashHandler' for target 'LuaIDE' refers to an invalid module Creating c:\Amazon\Lumberyard\1.25.0.0\dev\Solutions\LumberyardSDK_vs2019.sln [WAF] 'msvs_2019' finished successfully (16.254s) C:\Amazon\Lumberyard\1.25.0.0\dev>

answered 4 years ago
0

Hello again,

Hmm in SetupAssistant can you check that Poly2Tri has been downloaded?

REMOVEDUPLOAD

Also in that 'Install Required SDKs` section there's an icon in top right you can press on to refresh the 3rd Partly libraries. You might need to try clicking that?

REMOVEDUPLOAD

Sorry this is has been a bit of a slog, hopefully this should be the last thing!

Thanks,

Tom

answered 4 years ago
0
answered 4 years ago
0

Hi @REDACTEDUSER

answered 4 years ago
0

Hi @REDACTEDUSER

REMOVEDUPLOAD

answered 4 years ago
0

Hi @REDACTEDUSER Having downloaded polty2tri, that problem disappeasrs and another problem comes. REMOVEDUPLOAD

I opened this file with VS2010 to save AS codepage 936.

REMOVEDUPLOAD

Now I'm compiling again.

answered 4 years ago
0

similar thing happens on c:\Amazon\Lumberyard\1.25.0.0\dev\Gems\EMotionFX\Code\EMotionFX\Rendering\Common\FirstPersonCamera.cpp.

These files also changed to codepage 936: FirstPersonCamera.h C:\Amazon\Lumberyard\1.25.0.0\3rdParty\squish-ccr\20150601_lmbr_v2\config.h C:\Amazon\Lumberyard\1.25.0.0\3rdParty\squish-ccr\20150601_lmbr_v2\simd_sse.h C:\Amazon\Lumberyard\1.25.0.0\3rdParty\squish-ccr\20150601_lmbr_v2\inlineables.cpp C:\Amazon\Lumberyard\1.25.0.0\3rdParty\squish-ccr\20150601_lmbr_v2\hdrfit.cpp C:\Amazon\Lumberyard\1.25.0.0\3rdParty\squish-ccr\20150601_lmbr_v2\hdrrangefit.cpp C:\Amazon\Lumberyard\1.25.0.0\3rdParty\squish-ccr\20150601_lmbr_v2\paletteclusterfit.cpp C:\Amazon\Lumberyard\1.25.0.0\3rdParty\squish-ccr\20150601_lmbr_v2\palettenormalfit.cpp c:\Amazon\Lumberyard\1.25.0.0\dev\Code\Sandbox\Editor\MainWindow.cpp c:\Amazon\Lumberyard\1.25.0.0\dev\Code\Sandbox\Editor\TerrainModifyTool.cpp c:\Amazon\Lumberyard\1.25.0.0\dev\Code\Sandbox\Editor\VegetationTool.cpp

Now I build, but the compiler window disappeared suddenly, without success or failure notice. I searched in StarterGame directory but no EXE file. I don't know building succeeded or not. The other problem is disk space. I have 12.2 G available space before rebuilding. Now only 4.8G. I'm afraid that the building failed in fact, and the disk space was not released.

Would you tell me where the exe file should be (if build succeeds) and where are the temporary files. I want to delete them manually before try again. Thank you.

answered 4 years ago
0

Hi @REDACTEDUSER

answered 4 years ago
0

Hooray! 🥳 Really glad it's finally working! Definitely strange about the file encoding issues... I checked the files locally and it seems the enoding is UTF-8, not sure if that was a local issue but I'll keep an eye out for it.

Thanks for the update!

Tom

answered 4 years ago
0

Lumberyard spec says clearly that you will need 14GB of memory to build Engine and Editor.

REMOVEDUPLOAD

answered 4 years ago
0

Hi @REDACTEDUSER Thanks for your support! On my computer, those files were UTF-8 coded and I saved them as 936 code.

answered 4 years ago
0

Hi @REDACTEDUSER I didn't know 14G. Thank you for telling me. Now by cleaning BinTemp and Cache I have got enough space.

answered 4 years ago
0

Hi @REDACTEDUSER

REMOVEDUPLOAD

answered 4 years ago

This post is closed: Adding new answers, comments, and votes is disabled.