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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...