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

Build errors while building dali-toolkit #15

Open
JakeSays opened this issue Apr 2, 2023 · 1 comment
Open

Build errors while building dali-toolkit #15

JakeSays opened this issue Apr 2, 2023 · 1 comment

Comments

@JakeSays
Copy link

JakeSays commented Apr 2, 2023

I am getting the build errors described below. dali-core and dali-adapters built fine.

Any thoughts?

Errors:

/p/tizen/dali-toolkit/dali-toolkit/internal/visuals/image/image-visual.cpp: In member function ‘void Dali::Toolkit::Internal::ImageVisual::InitializeRenderer()’:
/p/tizen/dali-toolkit/dali-toolkit/internal/visuals/image/image-visual.cpp:694:34: error: ‘class Dali::Texture’ has no member named ‘GetPixelFormat’
  694 |       if(mTextures.GetTexture(0).GetPixelFormat() == Pixel::L8 && mTextures.GetTexture(1).GetPixelFormat() == Pixel::CHROMINANCE_U && mTextures.GetTexture(2).GetPixelFormat() == Pixel::CHROMINANCE_V)
      |                                  ^~~~~~~~~~~~~~
/p/tizen/dali-toolkit/dali-toolkit/internal/visuals/image/image-visual.cpp:694:91: error: ‘class Dali::Texture’ has no member named ‘GetPixelFormat’
  694 |       if(mTextures.GetTexture(0).GetPixelFormat() == Pixel::L8 && mTextures.GetTexture(1).GetPixelFormat() == Pixel::CHROMINANCE_U && mTextures.GetTexture(2).GetPixelFormat() == Pixel::CHROMINANCE_V)
      |                                                                                           ^~~~~~~~~~~~~~
/p/tizen/dali-toolkit/dali-toolkit/internal/visuals/image/image-visual.cpp:694:118: error: ‘CHROMINANCE_U’ is not a member of ‘Dali::Pixel’
  694 |       if(mTextures.GetTexture(0).GetPixelFormat() == Pixel::L8 && mTextures.GetTexture(1).GetPixelFormat() == Pixel::CHROMINANCE_U && mTextures.GetTexture(2).GetPixelFormat() == Pixel::CHROMINANCE_V)
      |                                                                                                                      ^~~~~~~~~~~~~
/p/tizen/dali-toolkit/dali-toolkit/internal/visuals/image/image-visual.cpp:694:159: error: ‘class Dali::Texture’ has no member named ‘GetPixelFormat’
  694 |       if(mTextures.GetTexture(0).GetPixelFormat() == Pixel::L8 && mTextures.GetTexture(1).GetPixelFormat() == Pixel::CHROMINANCE_U && mTextures.GetTexture(2).GetPixelFormat() == Pixel::CHROMINANCE_V)
      |                                                                                                                                                               ^~~~~~~~~~~~~~
/p/tizen/dali-toolkit/dali-toolkit/internal/visuals/image/image-visual.cpp:694:186: error: ‘CHROMINANCE_V’ is not a member of ‘Dali::Pixel’
  694 |       if(mTextures.GetTexture(0).GetPixelFormat() == Pixel::L8 && mTextures.GetTexture(1).GetPixelFormat() == Pixel::CHROMINANCE_U && mTextures.GetTexture(2).GetPixelFormat() == Pixel::CHROMINANCE_V)
      |                                                                                                                                                                                          ^~~~~~~~~~~~~
/p/tizen/dali-toolkit/dali-toolkit/internal/visuals/image/image-visual.cpp: In member function ‘virtual void Dali::Toolkit::Internal::ImageVisual::LoadComplete(bool, Dali::Toolkit::TextureUploadObserver::TextureInformation)’:
/p/tizen/dali-toolkit/dali-toolkit/internal/visuals/image/image-visual.cpp:931:56: error: ‘class Dali::Texture’ has no member named ‘GetPixelFormat’
  931 |         if(textureInformation.textureSet.GetTexture(0).GetPixelFormat() == Pixel::L8 && textureInformation.textureSet.GetTexture(1).GetPixelFormat() == Pixel::CHROMINANCE_U && textureInformation.textureSet.GetTexture(2).GetPixelFormat() == Pixel::CHROMINANCE_V)
      |                                                        ^~~~~~~~~~~~~~
/p/tizen/dali-toolkit/dali-toolkit/internal/visuals/image/image-visual.cpp:931:133: error: ‘class Dali::Texture’ has no member named ‘GetPixelFormat’
  931 |         if(textureInformation.textureSet.GetTexture(0).GetPixelFormat() == Pixel::L8 && textureInformation.textureSet.GetTexture(1).GetPixelFormat() == Pixel::CHROMINANCE_U && textureInformation.textureSet.GetTexture(2).GetPixelFormat() == Pixel::CHROMINANCE_V)
      |                                                                                                                                     ^~~~~~~~~~~~~~
/p/tizen/dali-toolkit/dali-toolkit/internal/visuals/image/image-visual.cpp:931:160: error: ‘CHROMINANCE_U’ is not a member of ‘Dali::Pixel’
  931 |         if(textureInformation.textureSet.GetTexture(0).GetPixelFormat() == Pixel::L8 && textureInformation.textureSet.GetTexture(1).GetPixelFormat() == Pixel::CHROMINANCE_U && textureInformation.textureSet.GetTexture(2).GetPixelFormat() == Pixel::CHROMINANCE_V)
      |                                                                                                                                                                ^~~~~~~~~~~~~
/p/tizen/dali-toolkit/dali-toolkit/internal/visuals/image/image-visual.cpp:931:221: error: ‘class Dali::Texture’ has no member named ‘GetPixelFormat’
  931 |         if(textureInformation.textureSet.GetTexture(0).GetPixelFormat() == Pixel::L8 && textureInformation.textureSet.GetTexture(1).GetPixelFormat() == Pixel::CHROMINANCE_U && textureInformation.textureSet.GetTexture(2).GetPixelFormat() == Pixel::CHROMINANCE_V)
      |                                                                                                                                                                                                                             ^~~~~~~~~~~~~~
/p/tizen/dali-toolkit/dali-toolkit/internal/visuals/image/image-visual.cpp:931:248: error: ‘CHROMINANCE_V’ is not a member of ‘Dali::Pixel’
  931 |         if(textureInformation.textureSet.GetTexture(0).GetPixelFormat() == Pixel::L8 && textureInformation.textureSet.GetTexture(1).GetPixelFormat() == Pixel::CHROMINANCE_U && textureInformation.textureSet.GetTexture(2).GetPixelFormat() == Pixel::CHROMINANCE_V)
      |                                                                                                                                                                                                                                                        ^~~~~~~~~~~~~
make[2]: *** [CMakeFiles/dali2-toolkit.dir/build.make:528: CMakeFiles/dali2-toolkit.dir/p/tizen/dali-toolkit/dali-toolkit/internal/visuals/image/image-visual.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/p/tizen/dali-toolkit/dali-toolkit/internal/visuals/text/text-visual.cpp: In member function ‘void Dali::Toolkit::Internal::TextVisual::AddTilingTexture(Dali::TextureSet&, Dali::Toolkit::Internal::TextVisual::TilingInfo&, Dali::PixelData&, Dali::Sampler&, unsigned int)’:
/p/tizen/dali-toolkit/dali-toolkit/internal/visuals/text/text-visual.cpp:604:17: error: ‘UploadSubPixelData’ is not a member of ‘Dali::DevelTexture’
  604 |   DevelTexture::UploadSubPixelData(texture, data, 0u, tilingInfo.offsetHeight, tilingInfo.width, tilingInfo.height);
      |                 ^~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/dali2-toolkit.dir/build.make:654: CMakeFiles/dali2-toolkit.dir/p/tizen/dali-toolkit/dali-toolkit/internal/visuals/text/text-visual.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:131: CMakeFiles/dali2-toolkit.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

@hinohie
Copy link

hinohie commented Nov 3, 2023

Could you please check the version of dali? (You can check it at public-api/dali-toolkit-version.cpp)

For ensure it works well, we recommend to match the version of dali-core/dali-adaptor/dali-toolkit.

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

2 participants