Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building error in VS 2017 #5546

Closed
warm2018 opened this issue May 2, 2019 · 24 comments
Closed

Building error in VS 2017 #5546

warm2018 opened this issue May 2, 2019 · 24 comments
Labels

Comments

@warm2018
Copy link

warm2018 commented May 2, 2019

System can't launch " SUMO_HOME/Cmake-build/ Debug/ALL-Build
The specified file could not be found.

Win10 is used

@palvarezlopez
Copy link
Member

@warm2018 You need to specify a project (for example, SUMO-GUI) as startup project

startup

@warm2018
Copy link
Author

warm2018 commented May 2, 2019

image

OK, I follow it, but sumo-gui.exe can't be excutable.

@warm2018
Copy link
Author

warm2018 commented May 2, 2019

I choose Win32 , not Win64 which wiki advise when I configure sumo by Cmake. And Python3.7, VS2017, win10 64 are used.

@palvarezlopez
Copy link
Member

palvarezlopez commented May 2, 2019

@warm2018 Can you compile for 64 bits instead of 32 bits? In the list of compilers of CMake you can choose the 64 bits of Visual Studio 2017 compiler

@warm2018
Copy link
Author

warm2018 commented May 2, 2019

When I choose 64bits, erros happened. "Failed to run MSBuild command:"
image
image

@palvarezlopez
Copy link
Member

Can you translate the chinese characters of the output messages?

@warm2018
Copy link
Author

warm2018 commented May 2, 2019

OK, thank for your patience.
TRANSLATION:
CMake Error at CMakeLists.txt:7 (project):
Failed to run MSBuild command:

D:/Program Files (x86)/VisualStudio/Packages/MSBuild/15.0/Bin/MSBuild.exe
to get the value of VCTargetsPath:

Microsoft (R) build engine version 15.9.21+g9802d43bc3 for the.net Framework
Copyright (C) Microsoft Corporation.All rights reserved.

The build startup time is 2019/5/2 18:35:53.
Item "D:\Project\SUMO\cmake-build\CMakeFiles\3.14.3\VCTargetsPath. Vcxproj" on node 1 (default target).
D: \ \ Program Files \ VisualStudio \ Packages (x86) \ Common7 \ VC IDE \ \ VCTargets \ Microsoft Cpp. InvalidPlatform.
The Targets (22, 7) : error MSB8007: project "VCTargetsPath. Vcxproj" platform is invalid.The platform is "Win64".The likely reason you will see this message is that you are trying to build a project without a solution file and specify a non-default platform for the project that does not exist.[D: \ Project \ SUMO \ cmake - build \ CMakeFiles \ 3.14.3 \ VCTargetsPath vcxproj]

"D:\Project\SUMO\cmake-build\CMakeFiles\3.14.3\VCTargetsPath. Vcxproj" (default target) operation - failed.
Build failed.
"D:\Project\SUMO\cmake-build\CMakeFiles\3.14.3\VCTargetsPath. Vcxproj" (default target) (1) ->
InvalidPlatformError target ->
D: \ \ Program Files \ VisualStudio \ Packages (x86) \ Common7 \ VC IDE \ \ VCTargets \ Microsoft Cpp. InvalidPlatform. The Targets (22, 7) : error MSB8007: project "VCTargetsPath. Vcxproj" platform is invalid.The platform is "Win64".The likely reason you will see this message is that you are trying to build a project without a solution file and specify a non-default platform for the project that does not exist.[D: \ Project \ SUMO \ cmake - build \ CMakeFiles \ 3.14.3 \ VCTargetsPath vcxproj]
0 a warning
1 mistake

@palvarezlopez
Copy link
Member

Try the following solution:

  1. Close Visual Studio and CMake
  2. Remove folder "D:\Project\SUMO\Cmake-build"
  3. Open CMake-gui and repeat the entire process, but for Visual Studio 15, 64 bits

Cmake1564

  1. Check if now works

If not, check the following thread in which there is differents solutions for your porblem:

microsoft/vscode-cmake-tools#222

@warm2018
Copy link
Author

warm2018 commented May 2, 2019

Thank you for your guide, and I sloved the CMAKE problem. But when I build it in VS, error happened again.
image

@warm2018
Copy link
Author

warm2018 commented May 2, 2019

"LINK : fatal error LNK1104: cannot open file 'gui\dialogs\Debug\gui_dialogs.lib'

I check the path and find it has no gui_dialogs.lib but nothing.

@palvarezlopez
Copy link
Member

palvarezlopez commented May 2, 2019

Try to compile using this button:

buildSolution

Sometimes CMake doesn't compile all dependences in debug mode.

@warm2018
Copy link
Author

warm2018 commented May 2, 2019

image
image

I am a beginner in VS and C++. Thank for your patience again. When I rebuild it and VS shows above errors. When I Check path: "D:\Project\SUMO\bin" , find some excutable files(Every one have the suffix "D") are generated ,
image

but when I click them, errors happened :
image
image

TRANSLATION:
Unable to continue executing the code because them cannot be found. Reinstallation may solve this problem.

@palvarezlopez
Copy link
Member

The suffix D is normal, because its the debug version. If you compile in Release mode, the suffix D disappeared.

About the other error, you only need to build the project "Solution 'SUMO'/CMake/install_dll"

@warm2018
Copy link
Author

warm2018 commented May 2, 2019

Ok, thank you very much.
where is "install_all"? Is it "ALL_BUILD"?(maybe my sumo is older version. Correctly, I clone it from "plexe-sumo" )

image

@palvarezlopez
Copy link
Member

Yes, definitely your SUMO version is old. Try it cloning the current GIT version.

@warm2018
Copy link
Author

warm2018 commented May 2, 2019

Thank for your advice. But I want “plexe-sumo” for a special use. The functions which plexe-sumo has is important to my project. Did the platooning function has been intergrated in latest SUMO?

@palvarezlopez
Copy link
Member

@namdre is Platooning already in SUMO?

@namdre
Copy link
Contributor

namdre commented May 2, 2019

We integrated several compatibility fixes for plexe into SUMO and I think that the author of plexe (@michele-segata) has an updated version of plexe that works with the latest sumo version. I suggest that @warm2018 approaches him directly.

@warm2018
Copy link
Author

warm2018 commented May 2, 2019

OK,thank you guys!

@michele-segata
Copy link
Contributor

@warm2018 if you fetch updates from plexe-sumo (master branch, 1d09773) you will get the latest SUMO version. This is exactly the same as SUMO 1.2.0, as Plexe models have been integrated into the official SUMO release.

@warm2018
Copy link
Author

warm2018 commented May 2, 2019

Oh! Thank you ! I clone branch "plexe2.1", not master branch.

You mean that latest SUMO is same as plexe-sumo?

@warm2018
Copy link
Author

warm2018 commented May 2, 2019

OK, I downloaded latest SUMO 1.2.0 binary files just now, and find that it can realize the platooning behavior which python scripts support .
I understand what we want know at first, thank you guys so much.

@michele-segata
Copy link
Contributor

If you just need the python support and not the Plexe-Veins network simulator, then you are fine with SUMO 1.2.0.

@behrisch
Copy link
Contributor

behrisch commented May 6, 2019

Looks like being solved to me, please reopen if questions persist.

@behrisch behrisch closed this as completed May 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants