If I remove the check and I reconfigure the log is the following:

The C compiler identification is MSVC 19.14.26429.4
The CXX compiler identification is MSVC 19.14.26429.4
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual 
Studio/2017/Community/VC/Tools/MSVC/14.14.26428/bin/Hostx86/x64/cl.exe
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual 
Studio/2017/Community/VC/Tools/MSVC/14.14.26428/bin/Hostx86/x64/cl.exe -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual 
Studio/2017/Community/VC/Tools/MSVC/14.14.26428/bin/Hostx86/x64/cl.exe
Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual 
Studio/2017/Community/VC/Tools/MSVC/14.14.26428/bin/Hostx86/x64/cl.exe -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Detecting CXX compile features - done
CMAKE_BUILD_TYPE: Release
CMAKE_BINARY_DIR: C:/Users/stefa/CodeblocksProjects/sumo-git/build/CMake-build17
CMAKE_SOURCE_DIR: C:/Users/stefa/CodeblocksProjects/sumo-git

Platform:
Host: Windows10.0.17134AMD64
CMake: 3.11.2
CMake generator: Visual Studio 15 2017 Win64
CMake build tool: C:/Program Files (x86)/Microsoft Visual 
Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe
MSVC: 1914

Using 64 bit libraries from SUMO_LIBRARIES placed in C:/libraries
Found Proj: C:/libraries/proj_gdal-1911_64/lib/proj_i.lib
Enabled features: Windows-10.0.17134 Proj GUI
Configuring done


But then again, generating I obtain this error:

CMake Error at unittest/src/utils/common/CMakeLists.txt:1 (add_executable):
Cannot find source file:

FileHelpersTest.cpp

Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at unittest/src/utils/common/CMakeLists.txt:1 (add_executable):
No SOURCES given to target: testcommon

Da: sumo-user-boun...@eclipse.org <sumo-user-boun...@eclipse.org> Per conto di 
pablo.alvarezlo...@dlr.de
Inviato: 29 May 2018 13:05
A: sumo-user@eclipse.org
Oggetto: Re: [sumo-user] R: R: R: R: SUMO Windows build

Hi Stefano

Do you checked the option "CHECK_OPTIONAL_LIBS" in CMake-GUI?

About the JAVA Warnings, you can ignore it (Are related with the JDK)

Regards

Von: sumo-user-boun...@eclipse.org<mailto:sumo-user-boun...@eclipse.org> 
[mailto:sumo-user-boun...@eclipse.org] Im Auftrag von Stefano Niero
Gesendet: Dienstag, 29. Mai 2018 11:33
An: Sumo project User discussions
Betreff: [sumo-user] R: R: R: R: SUMO Windows build

Thank you very much, I wait for a response then. One thing I noticed that is 
different from the log you sent me is this line:
Could NOT find Java (missing: Java_JAR_EXECUTABLE Java_JAVAC_EXECUTABLE 
Java_JAVAH_EXECUTABLE Java_JAVADOC_EXECUTABLE) (found version "1.8.0_171")

I don't understand what it's asking, is there anything I didn't do?

Thanks again
Best regards
Stefano Niero

Da: sumo-user-boun...@eclipse.org<mailto:sumo-user-boun...@eclipse.org> 
<sumo-user-boun...@eclipse.org<mailto:sumo-user-boun...@eclipse.org>> Per conto 
di pablo.alvarezlo...@dlr.de<mailto:pablo.alvarezlo...@dlr.de>
Inviato: 29 May 2018 10:43
A: sumo-user@eclipse.org<mailto:sumo-user@eclipse.org>
Oggetto: Re: [sumo-user] R: R: R: SUMO Windows build

Hi Stefano,

Thanks for the Information, I'm going to check and fix it.

Regards

Von: sumo-user-boun...@eclipse.org<mailto:sumo-user-boun...@eclipse.org> 
[mailto:sumo-user-boun...@eclipse.org] Im Auftrag von Stefano Niero
Gesendet: Dienstag, 29. Mai 2018 08:53
An: Sumo project User discussions
Betreff: [sumo-user] R: R: R: SUMO Windows build

If I specify the whole sumofolder as it is shown in the picture you showed me, 
as the folder containing the source I get this when I configure:

CMAKE_BUILD_TYPE: Release
CMAKE_BINARY_DIR: C:/Users/stefa/CodeblocksProjects/sumo-git/build/CMake-build17
CMAKE_SOURCE_DIR: C:/Users/stefa/CodeblocksProjects/sumo-git

Platform:
Host: Windows10.0.17134AMD64
CMake: 3.11.2
CMake generator: Visual Studio 15 2017 Win64
CMake build tool: C:/Program Files (x86)/Microsoft Visual 
Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe
MSVC: 1914

Using 64 bit libraries from SUMO_LIBRARIES placed in C:/libraries
Found Proj: C:/libraries/proj_gdal-1911_64/lib/proj_i.lib
Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
C:/libraries/grpc-1.10.0_64/Debug/grpc++.lib
C:/libraries/grpc-1.10.0_64/include
Could NOT find Java (missing: Java_JAR_EXECUTABLE Java_JAVAC_EXECUTABLE 
Java_JAVAH_EXECUTABLE Java_JAVADOC_EXECUTABLE) (found version "1.8.0_171")
Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY 
JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH)
Enabled features: Windows-10.0.17134 Proj GUI GDAL FFmpeg OSG GL2PS SWIG GRPC
Configuring done

But when I go on generating it tells me "Error in generation process, the 
project files may be invalid" adding the following code to the previous one:
CMake Error in src/libsumo/CMakeLists.txt:
Cannot find source file:

C:/Users/stefa/CodeblocksProjects/sumo-git/src/libsumo/libsumo.i

Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at src/microsim/pedestrians/CMakeLists.txt:26 (add_library):
Cannot find source file:

MSPModel_Remote.cpp

Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at unittest/src/utils/common/CMakeLists.txt:1 (add_executable):
Cannot find source file:

FileHelpersTest.cpp

Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at src/microsim/pedestrians/CMakeLists.txt:26 (add_library):
No SOURCES given to target: microsim_pedestrians
CMake Error at unittest/src/utils/common/CMakeLists.txt:1 (add_executable):
No SOURCES given to target: testcommon

While I did not come across this problem if I specified sumo/src folder as the 
folder containing the source code.


Da: sumo-user-boun...@eclipse.org<mailto:sumo-user-boun...@eclipse.org> 
<sumo-user-boun...@eclipse.org<mailto:sumo-user-boun...@eclipse.org>> Per conto 
di pablo.alvarezlo...@dlr.de<mailto:pablo.alvarezlo...@dlr.de>
Inviato: 29 May 2018 07:53
A: sumo-user@eclipse.org<mailto:sumo-user@eclipse.org>
Oggetto: 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-boun...@eclipse.org<mailto:sumo-user-boun...@eclipse.org> 
[mailto:sumo-user-boun...@eclipse.org] 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-boun...@eclipse.org<mailto:sumo-user-boun...@eclipse.org> 
<sumo-user-boun...@eclipse.org<mailto:sumo-user-boun...@eclipse.org>> Per conto 
di Mirko Barthauer
Inviato: 28 May 2018 20:23
A: sumo-user@eclipse.org<mailto:sumo-user@eclipse.org>
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-boun...@eclipse.org<mailto:sumo-user-boun...@eclipse.org> 
<sumo-user-boun...@eclipse.org><mailto:sumo-user-boun...@eclipse.org> Per conto 
di pablo.alvarezlo...@dlr.de<mailto:pablo.alvarezlo...@dlr.de>
Inviato: 28 May 2018 16:54
A: sumo-user@eclipse.org<mailto:sumo-user@eclipse.org>
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-boun...@eclipse.org<mailto:sumo-user-boun...@eclipse.org> 
[mailto:sumo-user-boun...@eclipse.org] Im Auftrag von Stefano Niero
Gesendet: Montag, 28. Mai 2018 16:39
An: sumo-user@eclipse.org<mailto:sumo-user@eclipse.org>
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@eclipse.org<mailto:sumo-user@eclipse.org>

To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit

https://dev.eclipse.org/mailman/listinfo/sumo-user

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

Reply via email to