# PVRTexTool Linux\_x86\_64 libPVRTexLib.so gcc linker error

**URL:** https://forums.imgtec.com/t/pvrtextool-linux-x86-64-libpvrtexlib-so-gcc-linker-error/2885
**Category:** Uncategorized
**Tags:** pvrtextool
**Created:** [February 25, 2019, 8:56am UTC](https://forums.imgtec.com/t/pvrtextool-linux-x86-64-libpvrtexlib-so-gcc-linker-error/2885 "2019-02-25T08:56:44Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![pixelblender](https://avatars.discourse-cdn.com/v4/letter/p/ba9def/32.png) [@pixelblender](https://forums.imgtec.com/u/pixelblender)
#### Post date: [February 25, 2019, 8:56am UTC](https://forums.imgtec.com/t/pvrtextool-linux-x86-64-libpvrtexlib-so-gcc-linker-error/2885/1 "2019-02-25T08:56:44Z")

</div>

Hi,

Seems like `libPVRTexLib.so` was built with old gcc pre 4.9. I can’t link it with my project:

`Linux_x86_64/libPVRTexLib.so: undefined reference to '__cxa_throw_bad_array_new_length@CXXABI_1.3.8'`

I’'m running CentOS 7.6. `gcc --version` says: `gcc (GCC) 8.2.1 20180905 (Red Hat 8.2.1-3)`

Is it possible to have new .so built with more recent gcc?

Thank you for your time.

---

<div class="post-metadata">

### Author: ![CarlosSarria](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/carlossarria/32/263_2.png) [@CarlosSarria](https://forums.imgtec.com/u/CarlosSarria)
#### Post date: [February 26, 2019, 2:16pm UTC](https://forums.imgtec.com/t/pvrtextool-linux-x86-64-libpvrtexlib-so-gcc-linker-error/2885/2 "2019-02-26T14:16:06Z")

</div>

Hi,

Yes, this is a known problem and we are planning to use a more recent GCC version to build our libraries shortly. We also are planing to change the library interface from C++ to C to ease these incompatibility problems. Do you need a version build with GCC 8 now or could you wait until our 19.1 release which should happen in March?

Thanks.

Carlos.

---

<div class="post-metadata">

### Author: ![pixelblender](https://avatars.discourse-cdn.com/v4/letter/p/ba9def/32.png) [@pixelblender](https://forums.imgtec.com/u/pixelblender)
#### Post date: [February 27, 2019, 9:47am UTC](https://forums.imgtec.com/t/pvrtextool-linux-x86-64-libpvrtexlib-so-gcc-linker-error/2885/3 "2019-02-27T09:47:01Z")

</div>

Hi Carlos,

Thank you for getting back.

At the moment we boot to Windows simply to have our texture encoded and back to Linux for development and test. I would really appreciate it and would be great if I could get access to the new build. If not then that’s fine I’ll wait until March 🙂

Many thanks for your help.

---

<div class="post-metadata">

### Author: ![CarlosSarria](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/carlossarria/32/263_2.png) [@CarlosSarria](https://forums.imgtec.com/u/CarlosSarria)
#### Post date: [February 28, 2019, 10:09am UTC](https://forums.imgtec.com/t/pvrtextool-linux-x86-64-libpvrtexlib-so-gcc-linker-error/2885/4 "2019-02-28T10:09:47Z")

</div>

Hi,

Yes, that is not a problem. As soon as we have a new build, I will make available to you so you can do some testing for us 🙂

Regards

Carlos.

---

<div class="post-metadata">

### Author: ![pixelblender](https://avatars.discourse-cdn.com/v4/letter/p/ba9def/32.png) [@pixelblender](https://forums.imgtec.com/u/pixelblender)
#### Post date: [February 28, 2019, 11:31am UTC](https://forums.imgtec.com/t/pvrtextool-linux-x86-64-libpvrtexlib-so-gcc-linker-error/2885/5 "2019-02-28T11:31:06Z")

</div>

Hi Carlos,

Sure, would love to. Looking forward to it :).

Regards,

Pietra.

---

<div class="post-metadata">

### Author: ![Samuel](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@Samuel](https://forums.imgtec.com/u/Samuel)
#### Post date: [October 16, 2021, 3:17am UTC](https://forums.imgtec.com/t/pvrtextool-linux-x86-64-libpvrtexlib-so-gcc-linker-error/2885/7 "2021-10-16T03:17:20Z")

</div>

Hi pixelblender, how to execute libPVRTexLib.so from java with commandline options? such transcoding image to ETC?  
Thanks

---

<div class="post-metadata">

### Author: ![Samuel](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@Samuel](https://forums.imgtec.com/u/Samuel)
#### Post date: [October 16, 2021, 3:18am UTC](https://forums.imgtec.com/t/pvrtextool-linux-x86-64-libpvrtexlib-so-gcc-linker-error/2885/8 "2021-10-16T03:18:06Z")

</div>

Hi Carlos, how to execute libPVRTexLib.so from java with commandline options? such transcoding image to ETC?  
Thanks

---

<div class="post-metadata">

### Author: ![CarlosSarria](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/carlossarria/32/263_2.png) [@CarlosSarria](https://forums.imgtec.com/u/CarlosSarria)
#### Post date: [October 18, 2021, 7:59am UTC](https://forums.imgtec.com/t/pvrtextool-linux-x86-64-libpvrtexlib-so-gcc-linker-error/2885/9 "2021-10-18T07:59:07Z")

</div>

Hi, Samuel.

What do you mean with “to execute from Java”? If you want to use native C++ libraries in Java you will need to use JNI which will allow you to open the dynamic library and interact with the native code from your Java application.

Regards.

Carlos.
