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

/bin/sh: -c: line 0: syntax error near unexpected token `(' #47

Open
gardenvarietyse opened this issue Mar 28, 2017 · 8 comments
Open

Comments

@gardenvarietyse
Copy link

I'm getting the error in the subject when trying to compile my project. It seems to happen because the compiler is passed the option -g ( ). I'm not well versed enough in CMake/gcc/etc though to figure out why this happens.

In flags.make belonging to the project with the issue, I see:

 # compile CXX with /usr/bin/c++.exe
 CXX_FLAGS = -g   ( ) -std=gnu++11

but in CMakeCache.txt, there's only CMAKE_CXX_FLAGS_DEBUG:STRING=-g. I can't figure out where this ( ) is coming from.

Could anyone pinpoint the right place to look?

  • Windows 10
  • UE 4.14.3
  • CLion 2016.3.5
  • Cygwin 2.7.0
  • CMake 3.6.2
@gardenvarietyse
Copy link
Author

Actually, when cmake generates the scripts, it also outputs the following. Maybe it's related?

CMake Error: RelativePath must be passed a full path to remote: C:/Users/steve/code/ue/steveshooty/Intermediate/ProjectFiles/IncludeDirectories.cmake
CMake Error: RelativePath must be passed a full path to remote: C:/Users/steve/code/ue/steveshooty/Intermediate/ProjectFiles/Definitions.cmake
CMake Error: RelativePath must be passed a full path to remote: C:/Users/steve/code/ue/steveshooty/Intermediate/ProjectFiles/UE4Editor.cmake
CMake Error: RelativePath must be passed a full path to remote: C:/Users/steve/code/ue/steveshooty/Intermediate/ProjectFiles/UE4Game.cmake
CMake Error: RelativePath must be passed a full path to remote: C:/Users/steve/code/ue/steveshooty/Intermediate/ProjectFiles/steveshooty.cmake
CMake Error: RelativePath must be passed a full path to remote: C:/Users/steve/code/ue/steveshooty/Intermediate/ProjectFiles/steveshootyEditor.cmake

@reapazor
Copy link
Contributor

This sounds like its related to something ive been meaning to look at :) the slashes on windows, and filtering/swapping them from the generated projects in unreal.

@gardenvarietyse
Copy link
Author

Maybe. Forward slashes should work fine on Windows though..

@gardenvarietyse
Copy link
Author

After fixing that (manually), I still have trouble with the engine includes (reported elsewhere).
But I see that the includes in flags.make look like this (for example):

/cygdrive/c/Users/steve/code/ue/steveshooty/C:/Program Files (x86)/Epic Games/4.14/Engine/Source/Runtime/Engine/Public

first it has the base /cygdrive/c path which will point to the root of C:, but then it has my own project's entire path immediately followed by the Windows-style path to the include folder, which of course doesn't make sense. I'll try modifying all these includes manually and see if that helps.

Maybe this include path issue is related to the RelativePath one also.

@reapazor
Copy link
Contributor

@gardenvarietyse did this resolve when you manually changed them? Ie should we forcibly make the change in code?

We use the paths in CodeLite projects, generated by UE, and then UE's FPath API point to manipulate. Might be useful just to switch ALL paths to \ on windows before the paths are written out ...

@gardenvarietyse
Copy link
Author

gardenvarietyse commented Apr 22, 2017

Actually, I can't compile it still, since there doesn't seem to be any cygwin support .. so I gave up on that for now

@reapazor
Copy link
Contributor

:| got unreal downloading on windows :) ... gonna solve this :)

@VenyaG
Copy link

VenyaG commented Aug 8, 2018

@gardenvarietyse
I fix this errors by replacing to relative path from:
C:/Users/steve/code/ue/steveshooty/Intermediate/ProjectFiles/IncludeDirectories.cmake
to:
Intermediate/ProjectFiles/IncludeDirectories.cmake

Errors gone, but i dont know is this a right solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants