-
Notifications
You must be signed in to change notification settings - Fork 24
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
Unit tests don't link on Windows w/ MSVC2017 CMake build #1
Comments
Update: On retrying the Windows build of the unit tests, I wound up upgrading CMake to 3.9.0... Somehow I got a message about PythonInterp not being installed. That was odd since I don't recall seeing Python come up before as a pre-req. In any case, after installing from python.org I realized that its default install wasn't findable by CMake. Selecting the custom install option for python and selecting the install-for-all-users option, got me past the python error. Selected only the static CMake options, I get an error about |
I'm also getting this linker error with VS 2017 (build generated with CMake 3.9.0, re-installed today). Just to clarify were getting the same thing, I have:
I haven't seen any messages about I also noticed that the 4 other unit tests do not compile in the release configuration (submitting those issues next). Perhaps there is a chance this will disappear if we solve those first? |
@NauticalMile64 Do you know anything about the status of this issue by chance? I was imagining (happily/keenly) that you'd been interested in moving this issue forward. Is this an issue you've fixed or are interested in working on? |
Incidentally, I've also been thinking of adding CMake builds to the AppVeyor build matrix. Not sure where that fits in but seems related to me at this moment to this issue. |
@louis-langholtz As best as I can tell it's an issue with google/googletest, and not PlayRho. I tried looking into it a little, but it seems way over my head. :( The issue to watch is google/googletest#292. I'll try commenting and calling out some maintainers by name to draw attention to it. The linker error appears whether the project is built with CMake or from the provided VS solution. |
There are a few other linker errors which I'll submit issues for and resolve in the next day or two, but this is the showstopping issue right now for testing with VS. |
I saw this issue referenced in google/googletest#292, and decided to try to help.
|
@emptyVoid Thank you for helping out with this! Of the two ways you got UnitTests to build, is there one that you'd suggest over the other? One that works better in terms of changing a I'm gonna look into getting things working using either of your suggestions but I'd be psyched to get your input on these questions! |
I've been able to build and run the unit tests using the second method by invoking cmake in a git bash shell as:
Unfortunately in the debug build I made, the tests assert early on in the |
Debug mode builds and runs now to completion. 20 of the tests fail. All but 3 of the failed tests are byte size tests. The non size related tests that fail are: Fixed32.GetTypeName, Math.LengthFasterThanHypot, and World.TilesComesToRest. None of these failures are significant. Release mode builds and runs now to completion also. 7 of the release build unit tests fail. 6 of these are byte size tests. The other is the World.TilesComesToRest test. None of these failures are significant either. I'm gonna look into changing the CMake configuration so that it automatically enables |
Attempts to implement suggestions from GitHub user emptyVoid. For details, see: #1 (comment)
…-windows-unittests For issue #1.
…e-building-unittests For issue #1.
At this point AppVeyor is building the library, the HelloWorld application, and the UnitTests application all via cmake for static builds. Getting shared library builds working for Windows is something I'd also like to have but I'm gonna call this issue closed as is now and open a new one for cmake building for windows using shared library. |
Migrated here from my Box2D fork issue #24.
The text was updated successfully, but these errors were encountered: