[sumo-user] There is an error in the building of sumo

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[sumo-user] There is an error in the building of sumo

bruce Wang
hello, everyone. I am trying to build the sumo based on visual studio 2019
following the steps in the document. But there is an error in the building.

The system is windows 10. The python is 3.5.2.

The tips in the documents are "Either repair your file associations or
undefine HAVE_VERSION_H in src/windows_config.h."
But I don't know how to repair the file associations and the file
"windows_config.h" is not found.


[33/928] cmd.exe /C "cd /D
D:\Users\Administrator\Source\Repos\sumo\out\build\x64-Debug && "D:\Program
Files (x86)\Microsoft Visual
Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe"
-E copy
D:/Users/Administrator/Source/Repos/sumo/../SUMOLibraries/runtimes/vcruntime140d.dll
D:/Users/Administrator/Source/Repos/sumo/bin/vcruntime140d.dll"
  [34/928] cmd.exe /C "cd /D
D:\Users\Administrator\Source\Repos\sumo\out\build\x64-Debug && "D:\Program
Files (x86)\Microsoft Visual
Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe"
-E copy_directory
D:/Users/Administrator/Source/Repos/sumo/../SUMOLibraries/proj-6.1.1/share/proj
D:/Users/Administrator/Source/Repos/sumo/data/proj"
  [35/928] cmd.exe /C "cd /D
D:\Users\Administrator\Source\Repos\sumo\out\build\x64-Debug\src &&
"C:\Program Files\Anaconda3\python.exe"
D:/Users/Administrator/Source/Repos/sumo/src/../tools/build/version.py
D:/Users/Administrator/Source/Repos/sumo/out/build/x64-Debug/src"
  FAILED: src/version.h
  cmd.exe /C "cd /D
D:\Users\Administrator\Source\Repos\sumo\out\build\x64-Debug\src &&
"C:\Program Files\Anaconda3\python.exe"
D:/Users/Administrator/Source/Repos/sumo/src/../tools/build/version.py
D:/Users/Administrator/Source/Repos/sumo/out/build/x64-Debug/src"
  Error creating
D:/Users/Administrator/Source/Repos/sumo/out/build/x64-Debug/src\version.h
module 'sumolib' has no attribute 'version'
  Traceback (most recent call last):
    File
"D:/Users/Administrator/Source/Repos/sumo/src/../tools/build/version.py",
line 85, in <module>
      main()
    File
"D:/Users/Administrator/Source/Repos/sumo/src/../tools/build/version.py",
line 81, in main
      create_version_file(versionFile, sumolib.version.UNKNOWN_REVISION,
"<None>")
  AttributeError: module 'sumolib' has no attribute 'version'
  [36/928] cmd.exe /C "cd /D
D:\Users\Administrator\Source\Repos\sumo\out\build\x64-Debug && "D:\Program
Files (x86)\Microsoft Visual
Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe"
-E copy_directory
D:/Users/Administrator/Source/Repos/sumo/../SUMOLibraries/OSG-3.6.3/bin
D:/Users/Administrator/Source/Repos/sumo/bin"
  [37/928] "D:\Program Files (x86)\Microsoft Visual
Studio\2019\Community\VC\Tools\MSVC\14.20.27508\bin\HostX64\x64\cl.exe"
/nologo /TP
-ID:\Users\Administrator\Source\Repos\SUMOLibraries\googletest-1.8.0\googletest
/external:I
D:\Users\Administrator\Source\Repos\SUMOLibraries\googletest-1.8.0\googletest\include
/DWIN32 /D_WINDOWS /W4 /GR /EHsc /MP /experimental:external /external:W2
/MDd /Zi /Ob0 /Od /RTC1 /JMC -D_DEBUG   /DWIN32 /D_WINDOWS /W4 /GR /EHsc /MP
/experimental:external /external:W2 -GS -W4 -WX -wd4251 -wd4275 -nologo -J
-Zi -wd4702 -D_UNICODE -DUNICODE -DWIN32 -D_WIN32 -DSTRICT
-DWIN32_LEAN_AND_MEAN -DGTEST_HAS_PTHREAD=0 -EHsc -D_HAS_EXCEPTIONS=1
/showIncludes
/Fogoogletest-build\CMakeFiles\gtest_main.dir\src\gtest_main.cc.obj
/Fdgoogletest-build\CMakeFiles\gtest_main.dir\gtest_main.pdb /FS -c
D:\Users\Administrator\Source\Repos\SUMOLibraries\googletest-1.8.0\googletest\src\gtest_main.cc
  [38/928] "D:\Program Files (x86)\Microsoft Visual
Studio\2019\Community\VC\Tools\MSVC\14.20.27508\bin\HostX64\x64\cl.exe"
/nologo /TP -DFLOAT_MATH_FUNCTIONS
-I..\..\..\..\SUMOLibraries\googletest-1.8.0\googletest\include -Isrc
-I..\..\..\src /external:I
D:\Users\Administrator\Source\Repos\SUMOLibraries\xerces-c-3.2.2\include
/external:I
D:\Users\Administrator\Source\Repos\SUMOLibraries\proj-6.1.1\include
/external:I
D:\Users\Administrator\Source\Repos\SUMOLibraries\fox-1.6.57\include
/external:I
D:\Users\Administrator\Source\Repos\SUMOLibraries\3rdPartyLibs\zlib-1.2.11\include
/external:I
D:\Users\Administrator\Source\Repos\SUMOLibraries\gdal-3.0.1\include
/external:I
D:\Users\Administrator\Source\Repos\SUMOLibraries\FFMPEG-4.2.0\include
/external:I
D:\Users\Administrator\Source\Repos\SUMOLibraries\OSG-3.6.3\include
/external:I
D:\Users\Administrator\Source\Repos\SUMOLibraries\gl2ps-1.4.0\include
/external:I D:\Users\Administrator\Source\Repos\SUMOLibraries\eigen /DWIN32
/D_WINDOWS /W4 /GR /EHsc /MP /experimental:external /external:W2 /MDd /Zi
/Ob0 /Od /RTC1 /JMC -D_DEBUG /showIncludes
/Fosrc\activitygen\activities\CMakeFiles\activitygen_activities.dir\AGActivity.cpp.obj
/Fdsrc\activitygen\activities\CMakeFiles\activitygen_activities.dir\activitygen_activities.pdb
/FS -c ..\..\..\src\activitygen\activities\AGActivity.cpp
  [39/928] "D:\Program Files (x86)\Microsoft Visual
Studio\2019\Community\VC\Tools\MSVC\14.20.27508\bin\HostX64\x64\cl.exe"
/nologo /TP -DFLOAT_MATH_FUNCTIONS
-I..\..\..\..\SUMOLibraries\googletest-1.8.0\googletest\include -Isrc
-I..\..\..\src /external:I
D:\Users\Administrator\Source\Repos\SUMOLibraries\xerces-c-3.2.2\include
/external:I
D:\Users\Administrator\Source\Repos\SUMOLibraries\proj-6.1.1\include
/external:I
D:\Users\Administrator\Source\Repos\SUMOLibraries\fox-1.6.57\include
/external:I
D:\Users\Administrator\Source\Repos\SUMOLibraries\3rdPartyLibs\zlib-1.2.11\include
/external:I
D:\Users\Administrator\Source\Repos\SUMOLibraries\gdal-3.0.1\include
/external:I
D:\Users\Administrator\Source\Repos\SUMOLibraries\FFMPEG-4.2.0\include
/external:I
D:\Users\Administrator\Source\Repos\SUMOLibraries\OSG-3.6.3\include
/external:I
D:\Users\Administrator\Source\Repos\SUMOLibraries\gl2ps-1.4.0\include
/external:I D:\Users\Administrator\Source\Repos\SUMOLibraries\eigen /DWIN32
/D_WINDOWS /W4 /GR /EHsc /MP /experimental:external /external:W2 /MDd /Zi
/Ob0 /Od /RTC1 /JMC -D_DEBUG /showIncludes
/Fosrc\activitygen\activities\CMakeFiles\activitygen_activities.dir\AGActivities.cpp.obj
/Fdsrc\activitygen\activities\CMakeFiles\activitygen_activities.dir\activitygen_activities.pdb
/FS -c ..\..\..\src\activitygen\activities\AGActivities.cpp
  [40/928] "D:\Program Files (x86)\Microsoft Visual
Studio\2019\Community\VC\Tools\MSVC\14.20.27508\bin\HostX64\x64\cl.exe"
/nologo /TP
-ID:\Users\Administrator\Source\Repos\SUMOLibraries\googletest-1.8.0\googletest\include
-ID:\Users\Administrator\Source\Repos\SUMOLibraries\googletest-1.8.0\googletest
/DWIN32 /D_WINDOWS /W4 /GR /EHsc /MP /experimental:external /external:W2
/MDd /Zi /Ob0 /Od /RTC1 /JMC -D_DEBUG   /DWIN32 /D_WINDOWS /W4 /GR /EHsc /MP
/experimental:external /external:W2 -GS -W4 -WX -wd4251 -wd4275 -nologo -J
-Zi -wd4702 -D_UNICODE -DUNICODE -DWIN32 -D_WIN32 -DSTRICT
-DWIN32_LEAN_AND_MEAN -DGTEST_HAS_PTHREAD=0 -EHsc -D_HAS_EXCEPTIONS=1
/showIncludes /Fogoogletest-build\CMakeFiles\gtest.dir\src\gtest-all.cc.obj
/Fdgoogletest-build\CMakeFiles\gtest.dir\gtest.pdb /FS -c
D:\Users\Administrator\Source\Repos\SUMOLibraries\googletest-1.8.0\googletest\src\gtest-all.cc
  ninja: build stopped: subcommand failed.



--
Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
_______________________________________________
sumo-user mailing list
[hidden email]
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
Reply | Threaded
Open this post in threaded view
|

Re: [sumo-user] There is an error in the building of sumo

behrisch
Administrator
Hi,
it looks like your python is picking up some old version of the sumolib.
Try to uninstall an old version of sumo and/or have a look at your
PYTHONPATH enironment variable whether it refers to some old installation.

Best regards,
Michael

Am 24.06.20 um 17:21 schrieb bruce Wang:

> hello, everyone. I am trying to build the sumo based on visual studio 2019
> following the steps in the document. But there is an error in the building.
>
> The system is windows 10. The python is 3.5.2.
>
> The tips in the documents are "Either repair your file associations or
> undefine HAVE_VERSION_H in src/windows_config.h."
> But I don't know how to repair the file associations and the file
> "windows_config.h" is not found.
>
>
> [33/928] cmd.exe /C "cd /D
> D:\Users\Administrator\Source\Repos\sumo\out\build\x64-Debug && "D:\Program
> Files (x86)\Microsoft Visual
> Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe"
> -E copy
> D:/Users/Administrator/Source/Repos/sumo/../SUMOLibraries/runtimes/vcruntime140d.dll
> D:/Users/Administrator/Source/Repos/sumo/bin/vcruntime140d.dll"
>   [34/928] cmd.exe /C "cd /D
> D:\Users\Administrator\Source\Repos\sumo\out\build\x64-Debug && "D:\Program
> Files (x86)\Microsoft Visual
> Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe"
> -E copy_directory
> D:/Users/Administrator/Source/Repos/sumo/../SUMOLibraries/proj-6.1.1/share/proj
> D:/Users/Administrator/Source/Repos/sumo/data/proj"
>   [35/928] cmd.exe /C "cd /D
> D:\Users\Administrator\Source\Repos\sumo\out\build\x64-Debug\src &&
> "C:\Program Files\Anaconda3\python.exe"
> D:/Users/Administrator/Source/Repos/sumo/src/../tools/build/version.py
> D:/Users/Administrator/Source/Repos/sumo/out/build/x64-Debug/src"
>   FAILED: src/version.h
>   cmd.exe /C "cd /D
> D:\Users\Administrator\Source\Repos\sumo\out\build\x64-Debug\src &&
> "C:\Program Files\Anaconda3\python.exe"
> D:/Users/Administrator/Source/Repos/sumo/src/../tools/build/version.py
> D:/Users/Administrator/Source/Repos/sumo/out/build/x64-Debug/src"
>   Error creating
> D:/Users/Administrator/Source/Repos/sumo/out/build/x64-Debug/src\version.h
> module 'sumolib' has no attribute 'version'
>   Traceback (most recent call last):
>     File
> "D:/Users/Administrator/Source/Repos/sumo/src/../tools/build/version.py",
> line 85, in <module>
>       main()
>     File
> "D:/Users/Administrator/Source/Repos/sumo/src/../tools/build/version.py",
> line 81, in main
>       create_version_file(versionFile, sumolib.version.UNKNOWN_REVISION,
> "<None>")
>   AttributeError: module 'sumolib' has no attribute 'version'
>   [36/928] cmd.exe /C "cd /D
> D:\Users\Administrator\Source\Repos\sumo\out\build\x64-Debug && "D:\Program
> Files (x86)\Microsoft Visual
> Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe"
> -E copy_directory
> D:/Users/Administrator/Source/Repos/sumo/../SUMOLibraries/OSG-3.6.3/bin
> D:/Users/Administrator/Source/Repos/sumo/bin"
>   [37/928] "D:\Program Files (x86)\Microsoft Visual
> Studio\2019\Community\VC\Tools\MSVC\14.20.27508\bin\HostX64\x64\cl.exe"
> /nologo /TP
> -ID:\Users\Administrator\Source\Repos\SUMOLibraries\googletest-1.8.0\googletest
> /external:I
> D:\Users\Administrator\Source\Repos\SUMOLibraries\googletest-1.8.0\googletest\include
> /DWIN32 /D_WINDOWS /W4 /GR /EHsc /MP /experimental:external /external:W2
> /MDd /Zi /Ob0 /Od /RTC1 /JMC -D_DEBUG   /DWIN32 /D_WINDOWS /W4 /GR /EHsc /MP
> /experimental:external /external:W2 -GS -W4 -WX -wd4251 -wd4275 -nologo -J
> -Zi -wd4702 -D_UNICODE -DUNICODE -DWIN32 -D_WIN32 -DSTRICT
> -DWIN32_LEAN_AND_MEAN -DGTEST_HAS_PTHREAD=0 -EHsc -D_HAS_EXCEPTIONS=1
> /showIncludes
> /Fogoogletest-build\CMakeFiles\gtest_main.dir\src\gtest_main.cc.obj
> /Fdgoogletest-build\CMakeFiles\gtest_main.dir\gtest_main.pdb /FS -c
> D:\Users\Administrator\Source\Repos\SUMOLibraries\googletest-1.8.0\googletest\src\gtest_main.cc
>   [38/928] "D:\Program Files (x86)\Microsoft Visual
> Studio\2019\Community\VC\Tools\MSVC\14.20.27508\bin\HostX64\x64\cl.exe"
> /nologo /TP -DFLOAT_MATH_FUNCTIONS
> -I..\..\..\..\SUMOLibraries\googletest-1.8.0\googletest\include -Isrc
> -I..\..\..\src /external:I
> D:\Users\Administrator\Source\Repos\SUMOLibraries\xerces-c-3.2.2\include
> /external:I
> D:\Users\Administrator\Source\Repos\SUMOLibraries\proj-6.1.1\include
> /external:I
> D:\Users\Administrator\Source\Repos\SUMOLibraries\fox-1.6.57\include
> /external:I
> D:\Users\Administrator\Source\Repos\SUMOLibraries\3rdPartyLibs\zlib-1.2.11\include
> /external:I
> D:\Users\Administrator\Source\Repos\SUMOLibraries\gdal-3.0.1\include
> /external:I
> D:\Users\Administrator\Source\Repos\SUMOLibraries\FFMPEG-4.2.0\include
> /external:I
> D:\Users\Administrator\Source\Repos\SUMOLibraries\OSG-3.6.3\include
> /external:I
> D:\Users\Administrator\Source\Repos\SUMOLibraries\gl2ps-1.4.0\include
> /external:I D:\Users\Administrator\Source\Repos\SUMOLibraries\eigen /DWIN32
> /D_WINDOWS /W4 /GR /EHsc /MP /experimental:external /external:W2 /MDd /Zi
> /Ob0 /Od /RTC1 /JMC -D_DEBUG /showIncludes
> /Fosrc\activitygen\activities\CMakeFiles\activitygen_activities.dir\AGActivity.cpp.obj
> /Fdsrc\activitygen\activities\CMakeFiles\activitygen_activities.dir\activitygen_activities.pdb
> /FS -c ..\..\..\src\activitygen\activities\AGActivity.cpp
>   [39/928] "D:\Program Files (x86)\Microsoft Visual
> Studio\2019\Community\VC\Tools\MSVC\14.20.27508\bin\HostX64\x64\cl.exe"
> /nologo /TP -DFLOAT_MATH_FUNCTIONS
> -I..\..\..\..\SUMOLibraries\googletest-1.8.0\googletest\include -Isrc
> -I..\..\..\src /external:I
> D:\Users\Administrator\Source\Repos\SUMOLibraries\xerces-c-3.2.2\include
> /external:I
> D:\Users\Administrator\Source\Repos\SUMOLibraries\proj-6.1.1\include
> /external:I
> D:\Users\Administrator\Source\Repos\SUMOLibraries\fox-1.6.57\include
> /external:I
> D:\Users\Administrator\Source\Repos\SUMOLibraries\3rdPartyLibs\zlib-1.2.11\include
> /external:I
> D:\Users\Administrator\Source\Repos\SUMOLibraries\gdal-3.0.1\include
> /external:I
> D:\Users\Administrator\Source\Repos\SUMOLibraries\FFMPEG-4.2.0\include
> /external:I
> D:\Users\Administrator\Source\Repos\SUMOLibraries\OSG-3.6.3\include
> /external:I
> D:\Users\Administrator\Source\Repos\SUMOLibraries\gl2ps-1.4.0\include
> /external:I D:\Users\Administrator\Source\Repos\SUMOLibraries\eigen /DWIN32
> /D_WINDOWS /W4 /GR /EHsc /MP /experimental:external /external:W2 /MDd /Zi
> /Ob0 /Od /RTC1 /JMC -D_DEBUG /showIncludes
> /Fosrc\activitygen\activities\CMakeFiles\activitygen_activities.dir\AGActivities.cpp.obj
> /Fdsrc\activitygen\activities\CMakeFiles\activitygen_activities.dir\activitygen_activities.pdb
> /FS -c ..\..\..\src\activitygen\activities\AGActivities.cpp
>   [40/928] "D:\Program Files (x86)\Microsoft Visual
> Studio\2019\Community\VC\Tools\MSVC\14.20.27508\bin\HostX64\x64\cl.exe"
> /nologo /TP
> -ID:\Users\Administrator\Source\Repos\SUMOLibraries\googletest-1.8.0\googletest\include
> -ID:\Users\Administrator\Source\Repos\SUMOLibraries\googletest-1.8.0\googletest
> /DWIN32 /D_WINDOWS /W4 /GR /EHsc /MP /experimental:external /external:W2
> /MDd /Zi /Ob0 /Od /RTC1 /JMC -D_DEBUG   /DWIN32 /D_WINDOWS /W4 /GR /EHsc /MP
> /experimental:external /external:W2 -GS -W4 -WX -wd4251 -wd4275 -nologo -J
> -Zi -wd4702 -D_UNICODE -DUNICODE -DWIN32 -D_WIN32 -DSTRICT
> -DWIN32_LEAN_AND_MEAN -DGTEST_HAS_PTHREAD=0 -EHsc -D_HAS_EXCEPTIONS=1
> /showIncludes /Fogoogletest-build\CMakeFiles\gtest.dir\src\gtest-all.cc.obj
> /Fdgoogletest-build\CMakeFiles\gtest.dir\gtest.pdb /FS -c
> D:\Users\Administrator\Source\Repos\SUMOLibraries\googletest-1.8.0\googletest\src\gtest-all.cc
>   ninja: build stopped: subcommand failed.
>
>
>
> --
> Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
> _______________________________________________
> sumo-user mailing list
> [hidden email]
> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
>


_______________________________________________
sumo-user mailing list
[hidden email]
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

signature.asc (201 bytes) Download Attachment