Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

building project "energyplusapi.vcxproj" -- FAILED

I'm trying to build EnergyPlus in visual studio. I've followed all the steps in Wiki but building project "energyplusapi.vcxproj" -- FAILED and I get this error :

Error   MSB3073 The command "setlocal
    "C:\Program Files (x86)\CMake\bin\cmake.exe" -DREPO_ROOT=C:/Users/elkhatts/Downloads/EnergyPlus-develop -DEXECUTABLE_PATH=C:/Users/elkhatts/Downloads/EnergyPlus-develop/build/Products/Release/energyplusapi.dll -DCMAKE_VERSION_MAJOR="9" -DCMAKE_VERSION_MINOR="4" -DCMAKE_VERSION_PATCH="0" -DCMAKE_VERSION_BUILD="Unknown" -DPYTHON_API_VERSION_MAJOR="0" -DPYTHON_API_VERSION_MINOR="2" -P C:/Users/elkhatts/Downloads/EnergyPlus-develop/cmake/PythonSetupAPIinBuild.cmake
    if %errorlevel% neq 0 goto :cmEnd
    :cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd
setlocal
"C:\Program Files (x86)\CMake\bin\cmake.exe" "-DRESOLVED_PYTHON_LIB=C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python37_64/libs/python37.lib" -DEXECUTABLE_PATH=C:/Users/elkhatts/Downloads/EnergyPlus-develop/build/Products/Release/energyplusapi.dll -P C:/Users/elkhatts/Downloads/EnergyPlus-develop/cmake/PythonGetLibAndLinkUp.cmake
if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd
setlocal
C:\Users\elkhatts\AppData\Local\Programs\Python\Python38-32\python.exe C:/Users/elkhatts/Downloads/EnergyPlus-develop/cmake/PythonCopyStandardLib.py C:/Users/elkhatts/Downloads/EnergyPlus-develop/build/Products/Release/energyplusapi.dll python_standard_lib
if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd
:VCEnd" `exited with code 3.`

Can you please help me to solve that issue ? Thank you

building project "energyplusapi.vcxproj" -- FAILED

I'm trying to build EnergyPlus in visual studio. I've followed all the steps in Wiki but building project "energyplusapi.vcxproj" -- FAILED and I get this error :

Error   MSB3073 The command "setlocal
    "C:\Program Files (x86)\CMake\bin\cmake.exe" -DREPO_ROOT=C:/Users/elkhatts/Downloads/EnergyPlus-develop -DEXECUTABLE_PATH=C:/Users/elkhatts/Downloads/EnergyPlus-develop/build/Products/Release/energyplusapi.dll -DCMAKE_VERSION_MAJOR="9" -DCMAKE_VERSION_MINOR="4" -DCMAKE_VERSION_PATCH="0" -DCMAKE_VERSION_BUILD="Unknown" -DPYTHON_API_VERSION_MAJOR="0" -DPYTHON_API_VERSION_MINOR="2" -P C:/Users/elkhatts/Downloads/EnergyPlus-develop/cmake/PythonSetupAPIinBuild.cmake
    if %errorlevel% neq 0 goto :cmEnd
    :cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd
setlocal
"C:\Program Files (x86)\CMake\bin\cmake.exe" "-DRESOLVED_PYTHON_LIB=C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python37_64/libs/python37.lib" -DEXECUTABLE_PATH=C:/Users/elkhatts/Downloads/EnergyPlus-develop/build/Products/Release/energyplusapi.dll -P C:/Users/elkhatts/Downloads/EnergyPlus-develop/cmake/PythonGetLibAndLinkUp.cmake
if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd
setlocal
C:\Users\elkhatts\AppData\Local\Programs\Python\Python38-32\python.exe C:/Users/elkhatts/Downloads/EnergyPlus-develop/cmake/PythonCopyStandardLib.py C:/Users/elkhatts/Downloads/EnergyPlus-develop/build/Products/Release/energyplusapi.dll python_standard_lib
if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd
:VCEnd" `exited with code 3.`

Can you please help me to solve that issue ? Thank you