openFrameworks icon indicating copy to clipboard operation
openFrameworks copied to clipboard

Bug in linux compileOF.sh script when folders have spaces in names

Open JesseCake opened this issue 5 years ago • 2 comments

Hi folks,

There is a bug in the compileOF.sh script for Linux when you attempt to compile when your OF source code is in a folder with a space in the name.

The space is passed through the SCRIPTPATH variable without an escape character so therefore changing directory pops up with "too many variables" as it interprets this to be two separate arguments.

JesseCake avatar Apr 02 '20 02:04 JesseCake

The bug will keep troubling you though. In my case, the compiling kept failing because of the presence of a space in the folder name. This in turn is likely because Make doesn't quite support spaces properly, and the compile scripts seem to refer to the files by their full paths quite often, making Make fail (and possibly throw really weird errors). The only solution I know of is to shift to a location whose full path doesn't have a space. I could not find any recent information about the situation, so I think this issue is likely still around in parts of Make (partially implemented support perhaps?). In any case, my opinion is that this is an issue that really just comes down to improper support for spaces in filenames in Make, and hence may not be fixable. Nonetheless, if you find any more information about this, please let me know, especially if it turns out I'm mistaken and the issue can be fixed somehow. Likewise, let me know if you want any more details about my case.

Lord-of-the-Galaxy avatar Apr 24 '20 17:04 Lord-of-the-Galaxy

Ran into the same bug. Spent half an hour trying to find the problem and finally came across this thread.

ianyepan avatar Mar 01 '22 03:03 ianyepan