compiling problem

This topic contains 2 replies, has 2 voices, and was last updated by  aicha11 3 years, 6 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #31721

    aicha11
    Member

    hi,

    when I run the examples of powervr sdk on ubuntu 12.04 I got this error

    ../Linux_x86_32/ReleaseNullWS/PVRShellOS.o: In function `PVRShellInit::OsRenderComplete()’:
    PVRShellOS.cpp:(.text+0x64): undefined reference to `XPending’
    PVRShellOS.cpp:(.text+0x83): undefined reference to `XNextEvent’
    PVRShellOS.cpp:(.text+0xaf): undefined reference to `XGetAtomName’
    PVRShellOS.cpp:(.text+0xc0): undefined reference to `XFree’
    ../Linux_x86_32/ReleaseNullWS/PVRShellOS.o: In function `PVRShellInit::OsPixmapCopy()’:
    PVRShellOS.cpp:(.text+0x3d7): undefined reference to `XCopyArea’
    ../Linux_x86_32/ReleaseNullWS/PVRShellOS.o: In function `PVRShellInit::OsInit()’:
    PVRShellOS.cpp:(.text+0x5a4): undefined reference to `XInitThreads’
    ../Linux_x86_32/ReleaseNullWS/PVRShellOS.o: In function `PVRShellInitOS::OpenX11Window(PVRShell const&)’:
    PVRShellOS.cpp:(.text+0x7a7): undefined reference to `XMatchVisualInfo’
    PVRShellOS.cpp:(.text+0x7e0): undefined reference to `XCreateColormap’
    PVRShellOS.cpp:(.text+0x7f4): undefined reference to `XDisplayWidth’
    PVRShellOS.cpp:(.text+0x807): undefined reference to `XDisplayHeight’
    PVRShellOS.cpp:(.text+0x8eb): undefined reference to `XCreateWindow’
    PVRShellOS.cpp:(.text+0x93f): undefined reference to `XSetStandardProperties’
    PVRShellOS.cpp:(.text+0x950): undefined reference to `XMapWindow’
    PVRShellOS.cpp:(.text+0x974): undefined reference to `XIfEvent’
    PVRShellOS.cpp:(.text+0x997): undefined reference to `XInternAtom’
    PVRShellOS.cpp:(.text+0x9c2): undefined reference to `XSetWMProtocols’
    PVRShellOS.cpp:(.text+0x9e2): undefined reference to `XSetWMColormapWindows’
    PVRShellOS.cpp:(.text+0x9ec): undefined reference to `XFlush’
    PVRShellOS.cpp:(.text+0xa16): undefined reference to `XInternAtom’
    PVRShellOS.cpp:(.text+0xa32): undefined reference to `XInternAtom’
    PVRShellOS.cpp:(.text+0xab3): undefined reference to `XSendEvent’
    ../Linux_x86_32/ReleaseNullWS/PVRShellOS.o: In function `PVRShellInit::OsInitOS()’:
    PVRShellOS.cpp:(.text+0xaff): undefined reference to `XOpenDisplay’
    PVRShellOS.cpp:(.text+0xb12): undefined reference to `XDefaultScreen’
    PVRShellOS.cpp:(.text+0xb24): undefined reference to `XDisplayWidth’
    PVRShellOS.cpp:(.text+0xb38): undefined reference to `XDisplayHeight’
    PVRShellOS.cpp:(.text+0xbd0): undefined reference to `XCreatePixmap’
    PVRShellOS.cpp:(.text+0xbf5): undefined reference to `XCreateGC’
    ../Linux_x86_32/ReleaseNullWS/PVRShellOS.o: In function `PVRShellInitOS::CloseX11Window()’:
    PVRShellOS.cpp:(.text+0xcc5): undefined reference to `XDestroyWindow’
    PVRShellOS.cpp:(.text+0xcd6): undefined reference to `XFreeColormap’
    ../Linux_x86_32/ReleaseNullWS/PVRShellOS.o: In function `PVRShellInit::OsDoReleaseAPI()’:
    PVRShellOS.cpp:(.text+0xd2a): undefined reference to `XFreePixmap’
    PVRShellOS.cpp:(.text+0xd3c): undefined reference to `XFreeGC’
    ../Linux_x86_32/ReleaseNullWS/PVRShellOS.o: In function `PVRShellInit::OsReleaseOS()’:
    PVRShellOS.cpp:(.text+0x2c): undefined reference to `XCloseDisplay’
    collect2: ld returned 1 exit status
    make: *** [../Linux_x86_32/ReleaseNullWS/OGLESIntroducingPVRShell] Error 1

    #38771

    chris
    Moderator

    Hi aicha

    To build and run an SDK example on desktop Linux, you need to explictly tell the makefiles to compile the app using X11 as the window system, for example:

    make PLATFORM=Linux_x86_32 X11BUILD=1 X11ROOT=/usr

    #38772

    aicha11
    Member

    thanks a lot the examples are well running 😀

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