Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] R: R: SUMO Windows build

Hi

 

@Mirko thanks for the extended explanation.

 

@Stefano Can you send me the log obtained from cmake-gui after generating the Visual Studio solution? (see cmake.png)

 

Regards

 

 

Von: sumo-user-bounces@xxxxxxxxxxx [mailto:sumo-user-bounces@xxxxxxxxxxx] Im Auftrag von Stefano Niero
Gesendet: Dienstag, 29. Mai 2018 01:04
An: Sumo project User discussions
Betreff: [sumo-user] R: R: SUMO Windows build

 

Thank you very much, I followed these instructions but tells me several times the following error this time:

Severity

Code

Description

Project

File

Line

Suppression State

Error

C1083

Cannot open include file: 'config.h': No such file or directory

z_microsim_output

c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.14.26428\include\windows_config.h

52

 

 

Preceeded once by this one:

Severity

Code

Description

Project

File

Line

Suppression State

Error

MSB6006

"cmd.exe" exited with code 3.

generate-version-h

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets

171

 

 

Although a config.h file is actually present in the src folder (that is the folder I told CMake to contain the source code). Even though I copy config.h in the path that contains windows_config.h, the the errors are that it can’t find several other files. It’s like it is using a directory that is different from the src one. Am I missing anything?


Thank you very much for the attention.

Stefano Niero

 

Da: sumo-user-bounces@xxxxxxxxxxx <sumo-user-bounces@xxxxxxxxxxx> Per conto di Mirko Barthauer
Inviato: 28 May 2018 20:23
A: sumo-user@xxxxxxxxxxx
Oggetto: Re: [sumo-user] R: SUMO Windows build

 

Hi,

Pablo just explained the advised way to generate a MSVC solution because DLR plans to scrap the preconfigured one in the near future. Some other hints for you because I also had some very uncomfortable time getting linker paths right some months ago:

  • Be sure the librarie directories are listed in the Windows "PATH" environment variable. If the directory mentioned there is outdated, edit it and apply again.
  • Have a look at the MSVC macros (those with the Dollar sign). The SUMO libraries should show up there with the correct path.
    • open some project property sheet of the solution (Solution Explorer > RMC on project > Properties)
    • go to Linker > General section and edit "Additional Dependencies", view all macros by clicking the button
    • e.g. look for $(XERCES) value

Regards
Mirko

 

Am 28.05.2018 um 17:37 schrieb Stefano Niero:

Hi,

Thank you for the answer. I am sorry but I am not getting how I am supposed to use CMake for compiling SUMO. I found in the source folder I downloaded, the project file already done for visual studio in the folder I mentioned, isn’t that correct? As far as I can remember that was written in the instructions in the page (although it did not mention the msvc17 folder) but I might be wrong. May I ask you if it is possible to agree a call on skype or a session through teamviewer, if that makes things quicker?

 

Thank you very much

Stefano Niero

 

Da: sumo-user-bounces@xxxxxxxxxxx <sumo-user-bounces@xxxxxxxxxxx> Per conto di Pablo.AlvarezLopez@xxxxxx
Inviato: 28 May 2018 16:54
A:
sumo-user@xxxxxxxxxxx
Oggetto: Re: [sumo-user] SUMO Windows build

 

Hi

 

Sorry for the problem with the Wiki, it’s not work due a Problem with the GDPR. About your Problem with the SUMO Build:

 

  • You need to use CMake for compiling SUMO. It can generate a Solution for Visual Studio 2017 quickly.
  • About the problem with the libraries, you can find all in this Project: https://github.com/DLR-TS/SUMOLibraries
  • For link all libraries correctly, clone the SUMOLibraries project in c:\ libraries,  define the environment variable SUMO_LIBRARIES with “c:\libraries”, and generate a VS 2017 solution using CMake-gui (If you need more help with this step, I can help you)
  • You need to put all .dlls in the PATH for executing sumo, but this step can be automatically done using the Script setPATH64.bat (in your case, DON’T use setPATH32.bat).
  • After defining the environment variable SUMO_LIBRARIES, execute two times the bat file  setPATH64.bat of c:\libraries

 

All of this information is in the SUMO Wiki, but while it don’t work, I can help you thought Email.

 

Regards.

 

Von: sumo-user-bounces@xxxxxxxxxxx [mailto:sumo-user-bounces@xxxxxxxxxxx] Im Auftrag von Stefano Niero
Gesendet: Montag, 28.
Mai 2018 16:39
An:
sumo-user@xxxxxxxxxxx
Betreff: [sumo-user] SUMO Windows build

 

Hello,

I have been trying to build SUMO on my pc which is a DELL 64bit with Windows 10 installed in order to study it in debug mode. I had many problems in building the program. I want to build the 64bit version using Microsoft Visual Studio 2017. I used the prj file contained in build\msvc17 then. At first I had problems in finding the files contained in the fox/include library, I solved this problem by copying them in the src folder. Secondly the program kept on giving me Link errors because it would not find the library: xerces-c-3.2.0-win64\lib\xerces-c_3D.lib. I did not provide in the config.props any value for the 32bit libraries but in one of the several attempts I made, this link problem disappeared when I introduced also the value of the 32bit libraries, in this case the program is built without error (although with 250 warnings) but once I launch or debug the application the error that appears is the following:
The program '[8428] duarouterD.exe' has exited with code -1073741701 (0xc000007b).

Whose code suggests architecture incompatibility. What should I do?

Moreover SUMO wiki server is not working so I cannot access it.

 

Thank you very much for the attention

Stefano Niero

 



_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user

 

Attachment: cmake.png
Description: cmake.png


Back to the top