Imagination PowerVR SDK Blog

Compile cpp file in Linux


#1

How to compile cpp file in Linux? It shows many error messages.

Thanks.


#2

Hi cxzeng,

Do you mean “how to compile the PowerVR SDK”? If yes then you should only need to call

make PLATFORM=LinuxPC

if you are compiling one of the OGLES 2.0 training courses in the SDK for desktop PC’s.

and

make PLATFORM=LinuxPC Common=1

if you are compiling one of the OGLES 1.X training courses in the SDK for desktop PC’s.
If you still get errors please post the error output here so that we know what’s the problem.

If you are asking about how to compile any C++ files on Linux in general I am afraid that this is out of the scope of this forum, there are plenty of good tutorial on the web which can help you.



#3

Hi, I want to run OGLES2.0 demos in Linux followed by the instructions. Here is the error message:



PVRShell: EGL 1.3 initialized
PVR: WARNING: The value of 0x36348/0x35659 is 0 on your graphics card but is 8 on the requested platform
PVR: WARNING: The value of 0x36347/0x35658 is 0 on your graphics card but is 128 on the requested platform

PVR: WARNING: The value of 0x35661/0x35661 is 0 on your graphics card but is 8 on the requested platform
PVR: WARNING: The value of 0x36349/0x35657 is 0 on your graphics card but is 64 on the requested platform
PVR: WARNING: The value of 0x34024/0x34024 is 0 on your graphics card but is 2048 on the requested platform

PVR: WARNING: The value of 0x34076/0x34076 is 1024 on your graphics card but is 2048 on the requested platform
Mesa 7.0.1 implementation error: User called no-op dispatch function (an unsupported extension function?)

Please report at bugzilla.freedesktop.org
Mesa 7.0.1 implementation error: User called no-op dispatch function (an unsupported extension function?)
Please report at bugzilla.freedesktop.org

Mesa 7.0.1 implementation error: User called no-op dispatch function (an unsupported extension function?)
Please report at bugzilla.freedesktop.org
Mesa 7.0.1 implementation error: User called no-op dispatch function (an unsupported extension function?)

Please report at bugzilla.freedesktop.org
Mesa 7.0.1 implementation error: User called no-op dispatch function (an unsupported extension function?)
Please report at bugzilla.freedesktop.org

Mesa 7.0.1 implementation error: User called no-op dispatch function (an unsupported extension function?)
Please report at bugzilla.freedesktop.org
Mesa 7.0.1 implementation error: User called no-op dispatch function (an unsupported extension function?)
......



Is it hardware problem? Many thanks.


#4

Indeed, you are using the Mesa driver which doesn’t have a support for shaders. The emulator work such that it passes GL calls to your real (we refer to it as a host driver) driver. What graphics card are you using? If you have a nvidia or an ATI card that supports OpenGL 2.0 then there is probably a problem with you driver installation or X11 setup. 


#5

Thanks a lot! But I tried my latest desktop, there is still another error message:



PVR: Can not find a pcviewer.cfg config file, attempting to create a default one... success
PVR: Loading profile "SGX530"
PVRShell: EGL 1.3 initialized
X Error of failed request:  BadMatch (invalid parameter attributes)

  Major opcode of failed request:  145 (GLX)
  Minor opcode of failed request:  5 (X_GLXMakeCurrent)
  Serial number of failed request:  26
  Current serial number in output stream:  26



Do you know the cause? Many thanks!


#6

This looks like a bug in the emulator libraries, we can help you with this if you contact us on devtech@imgtec.com.


#7

thanks first.