eulerto / pgquarrel

pgquarrel compares PostgreSQL database schemas (DDL)
BSD 3-Clause "New" or "Revised" License
388 stars 42 forks source link

Installing Pgquarrel in Windows - VS 2017 Error #36

Closed mrsagile closed 5 years ago

mrsagile commented 6 years ago

Hi

I have cloned the project from github, and tried to run cmake. In my machine I have Visual Studio 2017 Professional Edition is installed as well as PostGresSql 10.2 version is installed.

I have clicked on Configuration button on CMake after selecting the source directory. It said as screenshot says below.

I am not quite sure what to do next, would you be able to help ? Thanks

image

eulerto commented 6 years ago

@burceviks Could you share the contents of the file show at the screenshot footer?

eulerto commented 6 years ago

Looking at your screenshot again it seems you forgot to Add Entry CMAKE_PREFIX_PATH (if your postgres installation is not in your PATH) and also CMAKE_INSTALL_PREFIX.

mrsagile commented 6 years ago

Hi

Error at the buttom of the screen is at the buttom of the screen.

I had added the path to my environment variables. [image: Satır içi resim 1]

Also I had tried to add native compiler as below too, but didn't make any change. [image: Satır içi resim 2]

I have msbuild.exe in that directory.

Thanks

Selecting Windows SDK version to target Windows 10.0.10586.

CMake Error at CMakeLists.txt:3 (project): Failed to run MSBuild command:

MSBuild.exe

to get the value of VCTargetsPath:

The system cannot find the file specified

Configuring incomplete, errors occurred!

See also "C:/Users/burcu/work/pgquarrel/pgquarrel/src/CMakeFiles/CMakeFiles/ CMakeOutput.log".

2018-02-16 14:28 GMT-08:00 Euler Taveira de Oliveira < notifications@github.com>:

@burceviks https://github.com/burceviks Could you share the contents of the file show at the screenshot footer?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/eulerto/pgquarrel/issues/36#issuecomment-366377076, or mute the thread https://github.com/notifications/unsubscribe-auth/AEhsK-XaGRTj9exveOFMRmedWkIJJc55ks5tVgEqgaJpZM4SI7lU .

eulerto commented 6 years ago

@burceviks it seems it is a problem in your setup. I tried CMake 3.10.2 and succeeded. I couldn't check your screenshots because they weren't attached.

Are you sure MSBuild.exe is in your path? Did you test it in cmd or PowerShell?