Skip to content

Conversation

ytl0623
Copy link

@ytl0623 ytl0623 commented Oct 3, 2025

fix #10

The file XPodium.h relies on conditional compilation to select the correct header and implementation:

#ifdef ENABLE_FBDEV
#include "XLinuxTarget.h"
#endif

#ifdef ENABLE_X11
#include "XLinuxPodium.h"
#endif

If neither ENABLE_FBDEV nor ENABLE_X11 is defined during compilation, the XPodium::getHandler() function will not have the required platform-specific implementation available.

So, we should set the appropriate CXXFLAGS definition at run_exports.sh:
For Framebuffer (FBDEV) builds: export CXXFLAGS=-DENABLE_FBDEV
For X Window System (X11) builds: export CXXFLAGS=-DENABLE_X11

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

Successfully merging this pull request may close these issues.

Segmentation Fault When Running YUV2RGBSample on KV260 (Ubuntu 20.04.6 LTS)
1 participant