NREL / SAM

System Advisor Model (SAM)
BSD 3-Clause "New" or "Revised" License
337 stars 140 forks source link

Unable to build SAM project #1814

Open shahid28 opened 2 months ago

shahid28 commented 2 months ago

Hi, I am trying to run the following command cmake -G "Visual Studio 17 2022" -DCMAKE_CONFIGURATION_TYPES="Debug;Release" -DSAM_SKIP_AUTOGEN=1 -DSAMAPI_EXPORT=0 -DSAMPRIVATE=0 -DCMAKE_SYSTEM_VERSION=10.0 ..

I am getting the following error

`CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: GTESTD_LIB linked by target "Test" in directory D:/Projects/solar/sam_dev/ssc/test GTEST_LIB linked by target "Test" in directory D:/Projects/solar/sam_dev/ssc/test

-- Generating done CMake Generate step failed. Build files cannot be regenerated correctly.`

image

I am using the same version mentioned in the Windows Build Instructions

brtietz commented 2 months ago

@shahid28 Your environment configuration looks correct based on the screenshots that you showed. Can you confirm gtest built correctly? Screenshots of googletest/build/lib would be helpful. The expected filenames can be found in the blocks below https://github.com/NREL/ssc/blob/599881565c45d08880902ccbea1de041d4ef24ac/test/CMakeLists.txt#L76

brtietz commented 1 week ago

@shahid28 Any luck with those suggestions? I'm inclined to close this if we don't hear back soon.