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

OgreLightVisual.cc error C2664 cannot convert from 'const char [19]' to 'const Ogre::MaterialPtr &' #226

Closed
sloretz opened this issue Feb 3, 2021 · 2 comments
Assignees

Comments

@sloretz
Copy link
Contributor

sloretz commented Feb 3, 2021

Ignition rendering nightly is failing to build on windows which appears to be caused by #202 (@ahcorde FYI)

https://build.osrfoundation.org/job/ign_rendering-ci-win/111/console

[453.891s] C:\Jenkins\workspace\ign_rendering-ci-win\ws\ign-rendering\ogre\src\OgreLightVisual.cc(78,58): error C2664: 'void Ogre::SimpleRenderable::setMaterial(const Ogre::MaterialPtr &)': cannot convert argument 1 from 'const char [19]' to 'const Ogre::MaterialPtr &' [C:\Jenkins\workspace\ign_rendering-ci-win\ws\build\ignition-rendering5\ogre\src\ignition-rendering5-ogre.vcxproj]
[453.891s] C:\Jenkins\workspace\ign_rendering-ci-win\ws\ign-rendering\ogre\src\OgreLightVisual.cc(78,58): message : Reason: cannot convert from 'const char [19]' to 'const Ogre::MaterialPtr' [C:\Jenkins\workspace\ign_rendering-ci-win\ws\build\ignition-rendering5\ogre\src\ignition-rendering5-ogre.vcxproj]
[453.891s] C:\Jenkins\workspace\ign_rendering-ci-win\ws\ign-rendering\ogre\src\OgreLightVisual.cc(78,58): message : Constructor for class 'Ogre::SharedPtr<Ogre::Material>' is declared 'explicit' [C:\Jenkins\workspace\ign_rendering-ci-win\ws\build\ignition-rendering5\ogre\src\ignition-rendering5-ogre.vcxproj]
[453.891s] C:\vcpkg\installed\x64-windows\include\OGRE\OgreSimpleRenderable.h(76,22): message : see declaration of 'Ogre::SimpleRenderable::setMaterial' (compiling source file C:\Jenkins\workspace\ign_rendering-ci-win\ws\ign-rendering\ogre\src\OgreLightVisual.cc) [C:\Jenkins\workspace\ign_rendering-ci-win\ws\build\ignition-rendering5\ogre\src\ignition-rendering5-ogre.vcxproj]
[453.891s] C:\Jenkins\workspace\ign_rendering-ci-win\ws\ign-rendering\ogre\src\OgreLightVisual.cc(114,48): error C2664: 'void Ogre::SimpleRenderable::setMaterial(const Ogre::MaterialPtr &)': cannot convert argument 1 from 'std::string' to 'const Ogre::MaterialPtr &' [C:\Jenkins\workspace\ign_rendering-ci-win\ws\build\ignition-rendering5\ogre\src\ignition-rendering5-ogre.vcxproj]
@sloretz
Copy link
Contributor Author

sloretz commented Feb 3, 2021

Opened PR to revert #202: #227

@ahcorde
Copy link
Contributor

ahcorde commented Feb 4, 2021

Opened a fix PR #228

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

3 participants