Compiling demos

This topic contains 1 reply, has 2 voices, and was last updated by  Scott 8 years, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #29666

    yagabey
    Member

    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()’:
    PVRShellOS.cpp:(.text+0x11c): undefined reference to `XCloseDisplay’
    ../LinuxPPC/ReleaseX11Lite/PVRShellOS.o: In function `PVRShellInit::OsRenderComplete()’:
    PVRShellOS.cpp:(.text+0x17c): undefined reference to `XPending’
    PVRShellOS.cpp:(.text+0x1d0): undefined reference to `XNextEvent’
    PVRShellOS.cpp:(.text+0x1f0): undefined reference to `XGetAtomName’
    ../LinuxPPC/ReleaseX11Lite/PVRShellOS.o: In function `PVRShellInit::OsPixmapCopy()’:
    PVRShellOS.cpp:(.text+0x2ec): undefined reference to `XCopyArea’
    ../LinuxPPC/ReleaseX11Lite/PVRShellOS.o: In function `PVRShellInitOS::OpenX11Window(PVRShell const&)’:
    PVRShellOS.cpp:(.text+0x57c): undefined reference to `XMatchVisualInfo’
    PVRShellOS.cpp:(.text+0x5b4): undefined reference to `XCreateColormap’
    PVRShellOS.cpp:(.text+0x628): undefined reference to `XCreateWindow’
    PVRShellOS.cpp:(.text+0x66c): undefined reference to `XSetStandardProperties’
    PVRShellOS.cpp:(.text+0x678): undefined reference to `XMapWindow’
    PVRShellOS.cpp:(.text+0x690): undefined reference to `XIfEvent’
    PVRShellOS.cpp:(.text+0x6a4): undefined reference to `XInternAtom’
    PVRShellOS.cpp:(.text+0x6bc): undefined reference to `XSetWMProtocols’
    PVRShellOS.cpp:(.text+0x6d0): undefined reference to `XSetWMColormapWindows’
    PVRShellOS.cpp:(.text+0x6d8): undefined reference to `XFlush’
    ../LinuxPPC/ReleaseX11Lite/PVRShellOS.o: In function `PVRShellInit::OsInitOS()’:
    PVRShellOS.cpp:(.text+0x764): undefined reference to `XOpenDisplay’
    PVRShellOS.cpp:(.text+0x774): undefined reference to `XDefaultScreen’
    PVRShellOS.cpp:(.text+0x7fc): undefined reference to `XCreatePixmap’
    PVRShellOS.cpp:(.text+0x814): undefined reference to `XCreateGC’
    PVRShellOS.cpp:(.text+0x868): undefined reference to `XDisplayWidth’
    PVRShellOS.cpp:(.text+0x880): undefined reference to `XDisplayHeight’
    ../LinuxPPC/ReleaseX11Lite/PVRShellOS.o: In function `PVRShellInitOS::CloseX11Window()’:
    PVRShellOS.cpp:(.text+0x95c): undefined reference to `XDestroyWindow’
    PVRShellOS.cpp:(.text+0x968): undefined reference to `XFreeColormap’
    PVRShellOS.cpp:(.text+0x978): undefined reference to `XFree’
    ../LinuxPPC/ReleaseX11Lite/PVRShellOS.o: In function `PVRShellInit::OsDoReleaseAPI()’:
    PVRShellOS.cpp:(.text+0x9c4): undefined reference to `XFreePixmap’
    PVRShellOS.cpp:(.text+0x9d0): undefined reference to `XFreeGC’
    /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…

    #32577

    Scott
    Moderator

    Hi,

     

    Firstly, sorry it has taken so long to respond.

     

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

     

    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?

     

    Thanks,

     

    Scott
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.