Jump to content
Sign in to follow this  
Venqui

Error while building/compiling the code [BEGGINER]

Recommended Posts

Hello guys!

Im planning to start contributing to 0AD dev.

I've got an error while compiling the code:

Quote

Absolute path contains whitespace, which will break the build - move the game to a path without spaces

I'm following the guide, but can't find solution for this problem. PLs help :)

Share this post


Link to post
Share on other sites

As the error said, you can’t have spaces in paths to the code.

So, easiest fix would be to just remove the spaces.

“~/co de/ba se” should become “~/code/ba_se” or something else with no spaces.

  • Like 1

Share this post


Link to post
Share on other sites

Hmm, maybe the script shouldn’t reject it. Could properly escape the whitespaces. However, it really isn’t good practice to have spaces too.

Share this post


Link to post
Share on other sites
1 hour ago, (-_-) said:

Hmm, maybe the script shouldn’t reject it. Could properly escape the whitespaces. However, it really isn’t good practice to have spaces too.

If we fix it for one platform it wouldn't work for another I guess. A good rule of thumb for programming is avoiding spaces as much as possible :) Only dealing with for stuff like user input.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×