Skip to content
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

Debug Build doesn't seem to work in Windows x64 #143

Open
morphogencc opened this issue Oct 26, 2017 · 0 comments
Open

Debug Build doesn't seem to work in Windows x64 #143

morphogencc opened this issue Oct 26, 2017 · 0 comments

Comments

@morphogencc
Copy link

I'm back to trying to get the GRT to work with Windows and Cinder...

I was able to compile a 64-bit version of the .dll and .lib files on Windows by downloading CMake and running the following command in the PowerShell:

cmake -G "Visual Studio 14 2015 Win64" -DBUILD_TESTS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TOOLS=OFF ..

I used TinderBox to create a Cinder project for Visual Studio 2015, and in Visual Studio I added:

  • the path to the GRT.h header in "Additional Include Directories"
  • the path to grt.lib in "Additional Library Directories"
  • grt.lib to the "Additional Dependencies" box.
  • grt.dll to the same folder as the Cinder executable.

After doing this, I can include GRT.h into a Cinder project, so I assume that the files are linked properly.

I added the "Getting Started" tutorial code to the setup() function of Cinder, as shown:

https://gist.github.com/morphogencc/5a79631f8e1d343ca024fc870729c99f

The original code is from https://github.com/nickgillian/grt/blob/master/examples/Tutorials/GettingStarted/GettingStarted.cpp

When I run this, the code runs into 2 breakpoints, and then crashes with:

Debug Assertion failed!

Progarm: [ ... ]
file: minkernel\crts\ucrt\src\appcrt\heap\debug_heap.cpp
Line: 980

Expression: __acrt_first_block == header

This only seems to happen in the Debug build; if I switch over to the Release dll and lib files, everything works fine.

Has anyone else had a similar issue?

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

No branches or pull requests

1 participant