Skip to content

Build on Windows? #45

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mkramar opened this issue Apr 9, 2018 · 3 comments
Open

Build on Windows? #45

mkramar opened this issue Apr 9, 2018 · 3 comments
Labels

Comments

@mkramar
Copy link

mkramar commented Apr 9, 2018

It may be just my ignorance, but even after installing the whole QT (which takes longer than Visual Studio!) I still cannot build it on my Windows machine. Anyone who publishes Windows build instructions and/or makes it more user friendly will have my blessing!

@BreakBB
Copy link

BreakBB commented Feb 19, 2019

Hey there,

I ran into the same situation like you and was confronted with missing information how to build svn2git on windows. However I found a solution on stackoverflow.

Basically you should install cygwin. The last step of the setup is the place where you can add the packages/dependencies you want to have installed.

I installed the following cygwin-packages:

  • gcc-g++ (v7.4.0-1)
  • libQt5Core-devel (v5.9.4-2)
  • libapr1 (v1.6.5-1)
  • libapr1-devel (v1.6.5-1)
  • make (v4.2.1-2)
  • subversion (v1.11.1-1)
  • subversion-devel (v1.11.1-1)

With this setup I cloned the svn2git repo in cygwin and could simply run qmake-qt5 && make to build the project.

@andry81
Copy link

andry81 commented Jun 17, 2019

With this setup I cloned the svn2git repo in cygwin and could simply run qmake-qt5 && make to build the project.

I have had installed Visual Studio 2015, but not the cygwin. I downloaded the latest cygwin setup executable and installed the packages above.

And have hitted another issue:
Project ERROR: msvc-version.conf loaded but QMAKE_MSC_VER isn't set

I don't know why, but one of these commands have just fixed it:
qmake-qt5 "QMAKE_MSC_VER = 1900"
qmake-qt5 -r "QMAKE_MSC_VER = 1900"

After that i couldn't repro the issue. So this case might be helpful for any other with the same issue.

@fedorbirjukov
Copy link

Building on windows no longer works in cygwin:

$ qmake-qt5 && make
Info: creating stash file /cygdrive/e/svn2git/.qmake.stash
cd src/ && ( test -e Makefile || /usr/bin/qmake-qt5 -o Makefile /cygdrive/e/svn2git/src/src.pro ) && make -f Makefile
/cygdrive/e/svn2git/src/src.pro:34: 'versionAtLeast' is not a recognized test function.
Project ERROR: Qt 5.9.4 found but Qt >=5.14.0 required, cannot continue.
make: *** [Makefile:45: sub-src-make_first] Error 3

There is no cygwin package for qt newer than 5.9.4...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants