# Compiling demos

**URL:** <https://forums.imgtec.com/t/compiling-demos/219>\
**Category:** PowerVR Insider\
**Created:** [January 6, 2009, 7:14am UTC](https://forums.imgtec.com/t/compiling-demos/219 "2009-01-06T07:14:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yagabey](https://avatars.discourse-cdn.com/v4/letter/y/ed655f/32.png) [@yagabey](https://forums.imgtec.com/u/yagabey)\
**Post date:** [January 6, 2009, 7:14am UTC](https://forums.imgtec.com/t/compiling-demos/219/1 "2009-01-06T07:14:53Z")

</div>

Hello,   
I am new to graphics development. I have a board with mpc5121e processor(with mbx core). I want to compile demos in the sdk for my card(embedded linux). I followed the instructions for linux. I copied the necessary so files into OGLESlinuxPPCLib ; and run " make PLATFORM=LinuxPPC". It compiles most of the object files but at some point it gives the following errors:  
  
…/LinuxPPC/ReleaseX11Lite/PVRShellOS.o: In function `PVRShellInit::OsReleaseOS()':<br>PVRShellOS.cpp:(.text+0x11c): undefined reference to`XCloseDisplay’  
…/LinuxPPC/ReleaseX11Lite/PVRShellOS.o: In function `PVRShellInit::OsRenderComplete()':<br>PVRShellOS.cpp:(.text+0x17c): undefined reference to`XPending’  
PVRShellOS.cpp:(.text+0x1d0): undefined reference to `XNextEvent'<br>PVRShellOS.cpp:(.text+0x1f0): undefined reference to`XGetAtomName’  
…/LinuxPPC/ReleaseX11Lite/PVRShellOS.o: In function `PVRShellInit::OsPixmapCopy()':<br>PVRShellOS.cpp:(.text+0x2ec): undefined reference to`XCopyArea’  
…/LinuxPPC/ReleaseX11Lite/PVRShellOS.o: In function `PVRShellInitOS::OpenX11Window(PVRShell const&amp;)':<br>PVRShellOS.cpp:(.text+0x57c): undefined reference to`XMatchVisualInfo’  
PVRShellOS.cpp:(.text+0x5b4): undefined reference to `XCreateColormap'<br>PVRShellOS.cpp:(.text+0x628): undefined reference to`XCreateWindow’  
PVRShellOS.cpp:(.text+0x66c): undefined reference to `XSetStandardProperties'<br>PVRShellOS.cpp:(.text+0x678): undefined reference to`XMapWindow’  
PVRShellOS.cpp:(.text+0x690): undefined reference to `XIfEvent'<br>PVRShellOS.cpp:(.text+0x6a4): undefined reference to`XInternAtom’  
PVRShellOS.cpp:(.text+0x6bc): undefined reference to `XSetWMProtocols'<br>PVRShellOS.cpp:(.text+0x6d0): undefined reference to`XSetWMColormapWindows’  
PVRShellOS.cpp:(.text+0x6d8): undefined reference to `XFlush'<br>../LinuxPPC/ReleaseX11Lite/PVRShellOS.o: In function`PVRShellInit::OsInitOS()’:  
PVRShellOS.cpp:(.text+0x764): undefined reference to `XOpenDisplay'<br>PVRShellOS.cpp:(.text+0x774): undefined reference to`XDefaultScreen’  
PVRShellOS.cpp:(.text+0x7fc): undefined reference to `XCreatePixmap'<br>PVRShellOS.cpp:(.text+0x814): undefined reference to`XCreateGC’  
PVRShellOS.cpp:(.text+0x868): undefined reference to `XDisplayWidth'<br>PVRShellOS.cpp:(.text+0x880): undefined reference to`XDisplayHeight’  
…/LinuxPPC/ReleaseX11Lite/PVRShellOS.o: In function `PVRShellInitOS::CloseX11Window()':<br>PVRShellOS.cpp:(.text+0x95c): undefined reference to`XDestroyWindow’  
PVRShellOS.cpp:(.text+0x968): undefined reference to `XFreeColormap'<br>PVRShellOS.cpp:(.text+0x978): undefined reference to`XFree’  
…/LinuxPPC/ReleaseX11Lite/PVRShellOS.o: In function `PVRShellInit::OsDoReleaseAPI()':<br>PVRShellOS.cpp:(.text+0x9c4): undefined reference to`XFreePixmap’  
PVRShellOS.cpp:(.text+0x9d0): undefined reference to `XFreeGC'<br>/usr/local/SDKPackage/Builds/OGLES/LinuxPPC/Lib/libGLES_CM.so: undefined reference to`sprintf@GLIBC\_2.4’  
/usr/local/SDKPackage/Builds/OGLES/LinuxPPC/Lib/libGLES\_CM.so: undefined reference to `printf@GLIBC\_2.4’  
collect2: ld returned 1 exit status  
make: \*\*\* […/LinuxPPC/ReleaseX11Lite/OGLESChameleonMan] Error 1  
  
  
I think it cannot find the X11 libraries although i defined X11ROOT = /usr/include/X11 in the .mak file. Actually , the question is that why does it ask for X11 libraries? There is no X11 in my embedded board. What should i do to fix that problem?  
  
Thanks in advance…

---

<div class="post-metadata">

**Author:** ![Scott](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/scott/32/256_2.png) [@Scott](https://forums.imgtec.com/u/Scott)\
**Post date:** [January 30, 2009, 11:27am UTC](https://forums.imgtec.com/t/compiling-demos/219/2 "2009-01-30T11:27:40Z")

</div>

Hi,

&nbsp;
  

Firstly, sorry it has taken so long to respond. 
  

&nbsp;
  

I know when we&nbsp;provided the SDK to freescale the platform for the SDK&nbsp;was&nbsp;defined to be 'LinuxMPC512' (not LinuxPPC) so it is possible you're using the wrong platform but it is also possible that&nbsp;it has been changed by freescale.
  

&nbsp;
  

Assuming the platform is correct as far as I can tell it should only build for X11 if X11BUILD is defined. Is it possible this has been defined?
  

&nbsp;
  

Thanks,
  

&nbsp;
  

Scott
