berkbavas / 3DGlobeRenderer

3D globe renderer written in C++ using Qt and OpenGL
18 stars 7 forks source link

SegFault when running #2

Closed begleysm closed 1 year ago

begleysm commented 1 year ago

I've cloned your repo and cloned qtimgui w/ recurse-submodules. I've got it building in under Qt 6.4 in Qt Creator 8.0.2 (though I'm currently compiling with MinGW 11.2.0 64-bit instead of MSVC2019 (I've downloaded MSVC2019 but haven't yet figured out how to get Qt Creator to recognize it). I've also copied the Resources folder to where the EXE resides. However, I'm getting a SegFault at ModelData.cpp:36 when mVAO.bind() is called. Any thoughts?

image

berkbavas commented 1 year ago

Could you please set the folder where exe resides as the working directory?

For example mine is C:\Users\berkb\Desktop\build-Earth-Desktop_Qt_6_3_0_MSVC2019_64bit-Release\release

berkbavas commented 1 year ago

Or you can use post build script. Just add a custom build step. Settings are as follows: image

begleysm commented 1 year ago

That fixed it thank you!