o3de / o3de.org

The O3DE website
Other
85 stars 159 forks source link

Long project paths causes compile issues #1162

Open incisor opened 2 years ago

incisor commented 2 years ago

Describe the bug Not sure if this is really a path issue but I tried it several times and 47 character path seems to be path length that results to an error. Although 47 is not that long but some calls like for EMotionFX constructs a long path

Steps to reproduce Steps to reproduce the behavior:

  1. Create a project via the project manager(o3de.exe) and make sure the path is 47 in length or longer.
  2. Build the project.
  3. See it fail with an automoc subprocess error. It is consistent to fail in EmotionFX gem.

Expected behavior Compile normally whatever the path length is.

Actual behavior Fails with an automoc subprocess error.

Found in Branch latest development

Desktop/Device (please complete the following information):

amzn-pratikpa commented 2 years ago

@o3de/sig-docs we should communicate this is not fixable due to hardcoded CLI limits which we cannot work around.

sptramer commented 2 years ago

@amzn-pratikpa Given that information, should I move this ticket over to o3de/o3de.org for triage and work?

SelfishOlex commented 2 years ago

It's not the project path that gets you but the build folder. I suggest moving your build folder to a shorter path outside of your project and that will resolve the issue as well.

lmbr-pip commented 2 years ago

@sptramer - as this will be a long standing known issue, should it go to https://docs.o3de.org/docs/welcome-guide/setup/troubleshooting/ or is there a better page where it can be tracked?

sptramer commented 2 years ago

Our troubleshooting instructions are in some weird places right now and a little disparate. I'll think on this one.