cloudbase / wnbd

Windows Ceph RBD NBD driver
GNU Lesser General Public License v2.1
58 stars 26 forks source link

Build doesn't work if build path has spaces in it #27

Closed yoe closed 3 years ago

yoe commented 3 years ago

Finally tried to make some time to give this an in-depth review. When I try to build this on my Windows VM, I get:

PreBuildEvent:
  powershell.exe -executionpolicy bypass C:\Users\Wouter Verhelst\source\repos\wnbd\vstudio\generate_version_h.ps1
  :VCEnd
  C:\Users\Wouter : The term 'C:\Users\Wouter' is not recognized as the name of a cmdlet, function, script file, or ope
  ra
  ble program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again
  .
  At line:1 char:1
  + C:\Users\Wouter Verhelst\source\repos\wnbd\vstudio\generate_version_h ...
  + ~~~~~~~~~~~~~~~
      + CategoryInfo          : ObjectNotFound: (C:\Users\Wouter:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException

Things are obviously very unhappy after that.

petrutlucian94 commented 3 years ago

Thanks for giving it a try!

Looks like that path should've been quoted, otherwise it will error out if it contains whitespaces. Can you please use a path that doesn't contain whitespaces for now? We'll fix the Visual Studio solution as soon as possible.

As an alternative, you can fetch prebuilt binaries from here, the appveyor artifacts: https://ci.appveyor.com/api/projects/aserdean/wnbd/artifacts/wnbd-Release.zip?job=Configuration%3A+Release

yoe commented 3 years ago

Yeah, I did copy it to C:\wnbd and that did get me a bit further, but I thought I'd report bugs as I find them ;-)

(I do get stuck a bit further down the build, not sure yet whether it's me being stupid or whether that's another bug. In the latter case, you'll see another bug report appear soon, I promise! ;-) )

petrutlucian94 commented 3 years ago

That's great, please do report any issue or suggestion that you might have.

Feel free to ping me on freenode or OFTC as well, my IRC handle is lpetrut. I might be able to assist you.