vsg-dev / vsgExamples

Example programs that test and illustrate how to use the VSG and optional add-on libraries
MIT License
148 stars 67 forks source link

MinGW 32 compile error #126

Closed rhabacker closed 2 years ago

rhabacker commented 2 years ago

With recent source I get the following compile errors:

/home/xxx/src/vsgFramework-mingw32-build/src/vsgExamples/examples/viewer/vsgwindows/vsgwindows.cpp: In function 'int main(int, char**)':
/home/xxx/src/vsgFramework-mingw32-build/src/vsgExamples/examples/viewer/vsgwindows/vsgwindows.cpp:124:21: error: 'class vsg::Trackball' has no member named 'addWindow'
  124 |     main_trackball->addWindow(window1);
      |                     ^~~~~~~~~
/home/xxx/src/vsgFramework-mingw32-build/src/vsgExamples/examples/viewer/vsgwindows/vsgwindows.cpp:128:26: error: 'class vsg::Trackball' has no member named 'addWindow'
  128 |     secondary_trackball->addWindow(window2);
      |                          ^~~~~~~~~
make[5]: *** [examples/viewer/vsgwindows/CMakeFiles/vsgwindows.dir/build.make:86: examples/viewer/vsgwindows/CMakeFiles/vsgwindows.dir/vsgwindows.cpp.obj] Fehler 1
rhabacker commented 2 years ago

It looks like this method was added to VulkanSceneGraph on 11/26/2021 (after the version was raised to 0.2.0), but vsgExamples still depends on 0.1.13, which does not have this method.

robertosfield commented 2 years ago

You'll need to update to VulkanSceneGraph master. I haven't yet bumped the version number for this API addition as there are more changes in the works.

robertosfield commented 2 years ago

Looks like we were commenting at the same time. The change to Trackball is actually after the 0.2.0 version bump, but updating vsgExamples make sense so have gone ahead and updated it.