First time here? Check our help page!
3

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

sekaina's avatar
81
sekaina
asked 2020-12-10 02:30:16 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2020-12-14 14:24:56 -0500
edit flag offensive 0 remove flag close merge delete

Comments

1

Apparently an issue has been opened as well on https://github.com/NREL/EnergyPlus/is.... so I will move the convo over there.

Julien Marrec's avatar Julien Marrec (2020-12-10 06:12:31 -0500) edit
add a comment see more comments

1 Answer

2

This was an issue we had for a bit on develop when building with LINK_WITH_PYTHON=OFF. It should have been fixed by https://github.com/NREL/EnergyPlus/pu... at the beginning of december 2020.

Julien Marrec's avatar
29.7k
Julien Marrec
answered 2020-12-11 09:17:06 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments