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

building project "energyplusapi.vcxproj" -- FAILED

asked 2020-12-10 02:30:16 -0600

sekaina's avatar

updated 2020-12-14 14:24:56 -0600

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

edit retag flag offensive 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 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2020-12-11 09:17:06 -0600

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 2020-12-10 02:30:16 -0600

Seen: 508 times

Last updated: Dec 11 '20