# Compile cpp file in Linux

**URL:** <https://forums.imgtec.com/t/compile-cpp-file-in-linux/106>\
**Category:** PowerVR Insider\
**Created:** [July 21, 2008, 8:03pm UTC](https://forums.imgtec.com/t/compile-cpp-file-in-linux/106 "2008-07-21T20:03:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![cxzeng](https://avatars.discourse-cdn.com/v4/letter/c/f0a364/32.png) [@cxzeng](https://forums.imgtec.com/u/cxzeng)\
**Post date:** [July 21, 2008, 8:03pm UTC](https://forums.imgtec.com/t/compile-cpp-file-in-linux/106/1 "2008-07-21T20:03:12Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ptj](https://avatars.discourse-cdn.com/v4/letter/p/c2a13f/32.png) [@ptj](https://forums.imgtec.com/u/ptj)\
**Post date:** [July 22, 2008, 8:53am UTC](https://forums.imgtec.com/t/compile-cpp-file-in-linux/106/2 "2008-07-22T08:53:34Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![cxzeng](https://avatars.discourse-cdn.com/v4/letter/c/f0a364/32.png) [@cxzeng](https://forums.imgtec.com/u/cxzeng)\
**Post date:** [July 22, 2008, 3:27pm UTC](https://forums.imgtec.com/t/compile-cpp-file-in-linux/106/3 "2008-07-22T15:27:10Z")

</div>

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](http://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](http://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](http://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](http://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](http://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](http://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.

---

<div class="post-metadata">

**Author:** ![ptj](https://avatars.discourse-cdn.com/v4/letter/p/c2a13f/32.png) [@ptj](https://forums.imgtec.com/u/ptj)\
**Post date:** [July 23, 2008, 8:51am UTC](https://forums.imgtec.com/t/compile-cpp-file-in-linux/106/4 "2008-07-23T08:51:15Z")

</div>

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.&nbsp;

---

<div class="post-metadata">

**Author:** ![cxzeng](https://avatars.discourse-cdn.com/v4/letter/c/f0a364/32.png) [@cxzeng](https://forums.imgtec.com/u/cxzeng)\
**Post date:** [July 23, 2008, 3:43pm UTC](https://forums.imgtec.com/t/compile-cpp-file-in-linux/106/5 "2008-07-23T15:43:36Z")

</div>

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:&nbsp; BadMatch (invalid parameter attributes)  
  
&nbsp; Major opcode of failed request:&nbsp; 145 (GLX)  
&nbsp; Minor opcode of failed request:&nbsp; 5 (X\_GLXMakeCurrent)  
&nbsp; Serial number of failed request:&nbsp; 26  
&nbsp; Current serial number in output stream:&nbsp; 26  

* * *
  
  
Do you know the cause? Many thanks!

---

<div class="post-metadata">

**Author:** ![ptj](https://avatars.discourse-cdn.com/v4/letter/p/c2a13f/32.png) [@ptj](https://forums.imgtec.com/u/ptj)\
**Post date:** [July 24, 2008, 11:05am UTC](https://forums.imgtec.com/t/compile-cpp-file-in-linux/106/6 "2008-07-24T11:05:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![cxzeng](https://avatars.discourse-cdn.com/v4/letter/c/f0a364/32.png) [@cxzeng](https://forums.imgtec.com/u/cxzeng)\
**Post date:** [July 24, 2008, 1:51pm UTC](https://forums.imgtec.com/t/compile-cpp-file-in-linux/106/7 "2008-07-24T13:51:59Z")

</div>

thanks first.
