Skip to content

Update to the official VS 2015 release #72

Closed

Activity

  1. j-rivero commented on Aug 5, 2015

    @j-rivero

    It should not be difficult. I was about to do it, but found a really minimal installation or configuration of Windows when connected through VPN to eatable. I can not see or touch more than the Jenkins Window. How can I interact with that? Is it possible to set it back to the standard Windows desktop?

  2. wjwwood commented on Aug 5, 2015

    @wjwwood
    MemberAuthor

    It's been like that for a while, I just restarted the machine, maybe that will fix the desktop.

  3. j-rivero commented on Aug 5, 2015

    @j-rivero

    That made the trick, thanks William.

  4. j-rivero commented on Aug 5, 2015

    @j-rivero

    One minor issue before installing. You are currently passing amd64 as argument to vcvarsall.bat, which configures the 64 bit native compiler to generate 64 bit code. That is ideal, but for some reason, the free Express editions of VS don't support it. However, these Express versions support the x86_amd64 code, which runs the 32 bit compiler to generate 64 bit code.

    In our case, we can go with VS Professional and use the amd64 keyword, no problem. But if the building farm is designed to be reconfigurable, maybe it is better to use the Express version and/or the x86_amd64.

  5. dirk-thomas commented on Aug 5, 2015

    @dirk-thomas
    Member

    I have create a branch for the CI scripts: https://github.com/ros2/ros2/tree/x86_amd64 which uses what you suggest (3a0e537)

    You can try this by passing x86_amd64 to the CI_SCRIPTS_BRANCH parameter of the job.

  6. j-rivero commented on Aug 5, 2015

    @j-rivero

    Nice, let's try installing the Express version then.

  7. j-rivero commented on Aug 5, 2015

    @j-rivero

    The update should be ready, to 2015 Express version. The system needed a reboot, a press the button but I can not contact with the machine again. Maybe is running Boot Camp and need to restart it on Windows? Hopefully it is not broken.

  8. j-rivero commented on Aug 5, 2015

    @j-rivero

    The testing run since it can not find the devenv.exe utility. Our fork of uncrustify is calling it to upgrade .sln files.

    I've verified that it is not present in the Express edition, and some people is using 'an equivalent' command, which is in the Express edition seems to be VWDExpress.exe. It has no option for "Upgrade".

    Two solutions:

    • VC team is also recommended the VCUpgrade.exe which was introduced in 2010 and could be done what we need. It is present in the Express edition.
    • Install the Professional version and give a look if it ship devenv.exe and it still has the upgrade option.
  9. wjwwood commented on Aug 5, 2015

    @wjwwood
    MemberAuthor

    It's strange that they removed devenv in the express edition. It's in the RC of VS2015, so I'd expect it to at least be in 2015 professional.

    It would be nice to work with the express edition I guess, but if we need to we can step up to professional if needed.

  10. esteve commented on Aug 5, 2015

    @esteve
    Member

    Microsoft now recommends using MSBuild (which is included in VS 2015 Express) instead of Devenv:

    https://msdn.microsoft.com/en-us/library/xee0c8y7.aspx

    but I don't know if MSBuild can upgrade .sln files.

  11. wjwwood commented on Aug 5, 2015

    @wjwwood
    MemberAuthor

    We use msbuild for everything but the upgrade. It looks like it doesn't have the upgrade option though.

  12. j-rivero commented on Aug 6, 2015

    @j-rivero

    After searching and playing for a bit, some conclusions:

    • VCUpgrade.exe does not play with .sln files, so we can not upgrade it. I did not find any command line tool to do it.
    • The files can easily be upgraded manually (and cross your fingers).

    Not sure what we want to do here. The fastest solution would be to check if the Professional edition ships it and go for it until we find a solution. Since the RC has it, I would expect the final version to also have it, but who knows.

    The other solution would be to add some cmake logic that would be able to patch/generate the .sln file automatically and use the VCupdater.exe for the .vcproj, probably using the MSVC_VERSION, but that will require patching in the future.

  13. wjwwood commented on Aug 6, 2015

    @wjwwood
    MemberAuthor

    The files can easily be upgraded manually (and cross your fingers).

    ament/uncrustify#6

  14. j-rivero commented on Aug 6, 2015

    @j-rivero

    ament/uncrustify#6

    Ouch. Yes, this approach works.

    After hacking around to autogenerate the sln file (using cmake MSVC variables and parsing the msbuild version) we still need to figure out how to get the "File format version" corresponding to each version. No go for me.

    We could create a couple of .sln/.vcproj files for each MSVC supported version and call the corresponding one by: relying on cmake MSVC_VERSION (note that it updates new VC version only in new cmake versions) or parsing msbuild output (ugly).

    On the other hand, I've verified that devenv.exe is present in the Professional version.

  15. dirk-thomas commented on Aug 6, 2015

    @dirk-thomas
    Member

    I think a major goal is that the ROS 2 build farm only uses "open" tools. Therefore I would argue the professional payed version of VS is not a good option.

    We also don't have to support the more then a single VS version. Everything older then 2015 is not going to successfully build ROS 2 anyway. Therefore I would propose to try committing the converted VS project to the uncrustify repo and go from there with the express version of VS.

  16. dirk-thomas commented on Aug 6, 2015

    @dirk-thomas
    Member

    Also please keep in mind once a new version of uncrustify is released and it becomes available in the Ubuntu release (likely 16.04) we don't even have to bother with our custom fork anymore.

  17. j-rivero commented on Aug 7, 2015

    @j-rivero

    We hit a compilation problem, described in ros2/examples#43.

    The plan is to back to the restoration point before changing the VS2015 on Aug 5th, to get back the RC compiler (14.0.22816.0). I was not able to find an installer for it. @wjwwood do you remember how did you get it?

  18. esteve commented on Aug 7, 2015

    @esteve
    Member

    @j-rivero I installed the RC compiler from MSDN, but it doesn't seem to be available anymore. It'd be good to come up with a minimal and reproducible example to report it to MS.

  19. j-rivero commented on Aug 7, 2015

    @j-rivero

    @j-rivero I installed the RC compiler from MSDN, but it doesn't seem to be available anymore. It'd be good to come up with a minimal and reproducible example to report it to MS.

    I agree, as the way for final solution. I tried it with a simple version but it compiled fine.

    My proposal to get back to Aug 5th in the Windows Jenkins node was more to have something working by now, while we find what happen with this bug and the confirmation that RC is compiling the same code just fine.

  20. dirk-thomas commented on Aug 8, 2015

    @dirk-thomas
    Member

    Finally I got it working with the Community version of Visual Studio 2015 (final release) and a patch to the generated OpenSplice code: http://ci.ros2.org/job/ros2_batch_ci_windows/133/

  21. self-assigned this
    on Aug 8, 2015
  22. added
    in progress
    in review
    and removed
    in progress
    on Aug 8, 2015
  23. dirk-thomas commented on Aug 8, 2015

    @dirk-thomas
    Member

    Done. The windows slave is ready to use again.

  24. removed
    in review
    on Aug 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions