# Cannot start GenICamBrowser - libpng missing

**URL:** https://forum.commonvisionblox.com/t/cannot-start-genicambrowser-libpng-missing/523
**Category:** General Questions
**Tags:** genicam
**Created:** [August 16, 2018, 2:55pm UTC](https://forum.commonvisionblox.com/t/cannot-start-genicambrowser-libpng-missing/523 "2018-08-16T14:55:35Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![ss\_silkke](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/ss_silkke/32/382_2.png) [@ss\_silkke](https://forum.commonvisionblox.com/u/ss_silkke)
#### Post date: [August 16, 2018, 2:55pm UTC](https://forum.commonvisionblox.com/t/cannot-start-genicambrowser-libpng-missing/523/1 "2018-08-16T14:55:35Z")

</div>

Hello,

I am under Debian Stretch 9.4 and I am getting this error when I want to run GenICamBrowser:

`/opt/cvb/bin/GenICamBrowser: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory`

I searched for it on internet but libpng12-0 is only available in debian ≤ 8

What can I do ?  
Thanks

---

<div class="post-metadata">

### Author: ![c.hartmann](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/c.hartmann/32/247_2.png) [@c.hartmann](https://forum.commonvisionblox.com/u/c.hartmann)
#### Post date: [August 17, 2018, 6:50am UTC](https://forum.commonvisionblox.com/t/cannot-start-genicambrowser-libpng-missing/523/2 "2018-08-17T06:50:26Z")

</div>

Hi @ss_silkke,

this is an easily solved issue.

1. Go to: [https://packages.debian.org/wheezy/libpng12-0](https://packages.debian.org/wheezy/libpng12-0) . This is the libpng package for wheezy.
2. Download the version for your architecture.
3. Install it via “dpkg -i \<package-name\>”.

This should resolve your issues. However we don’t test with debian directly. I can’t tell you which new missing dependencies will appear (on Ubuntu this solves the issue).

Please leave a note whether this resolved the dependencies.

Have a nice day,

Christopher

---

<div class="post-metadata">

### Author: ![c.hartmann](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/c.hartmann/32/247_2.png) [@c.hartmann](https://forum.commonvisionblox.com/u/c.hartmann)
#### Post date: [August 17, 2018, 6:51am UTC](https://forum.commonvisionblox.com/t/cannot-start-genicambrowser-libpng-missing/523/3 "2018-08-17T06:51:46Z")

</div>

The list of architectures are at the bottom of the page.

---

<div class="post-metadata">

### Author: ![ss\_silkke](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/ss_silkke/32/382_2.png) [@ss\_silkke](https://forum.commonvisionblox.com/u/ss_silkke)
#### Post date: [August 17, 2018, 7:13am UTC](https://forum.commonvisionblox.com/t/cannot-start-genicambrowser-libpng-missing/523/4 "2018-08-17T07:13:20Z")

</div>

Hi,

Thanks for your answer, I did not know that it would have worked.

I wish it was that easy 🙂

The new error when launching `/opt/cvb/bin/GenICamBrowser`

`terminate called after throwing an instance of 'std::runtime_error' what(): locale::facet::_S_create_c_locale name not valid`

I’m running the program with the basic user logged in the X session.

---

<div class="post-metadata">

### Author: ![c.hartmann](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/c.hartmann/32/247_2.png) [@c.hartmann](https://forum.commonvisionblox.com/u/c.hartmann)
#### Post date: [August 17, 2018, 7:36am UTC](https://forum.commonvisionblox.com/t/cannot-start-genicambrowser-libpng-missing/523/5 "2018-08-17T07:36:13Z")

</div>

Ok … this is slightly weirder.

Whats wrong here is the locale (the language) of the application.  
The locale of Genicambrowser does not fit the available locales of the debian system.

Could you give me a printout of “locale” (the current settings) and “locale -a” (available settings).

---

<div class="post-metadata">

### Author: ![ss\_silkke](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/ss_silkke/32/382_2.png) [@ss\_silkke](https://forum.commonvisionblox.com/u/ss_silkke)
#### Post date: [August 17, 2018, 7:40am UTC](https://forum.commonvisionblox.com/t/cannot-start-genicambrowser-libpng-missing/523/6 "2018-08-17T07:40:30Z")

</div>

Here they are :

```auto
$ locale
LANG=fr_FR.UTF-8
LANGUAGE=
LC_CTYPE="fr_FR.UTF-8"
LC_NUMERIC="fr_FR.UTF-8"
LC_TIME="fr_FR.UTF-8"
LC_COLLATE="fr_FR.UTF-8"
LC_MONETARY="fr_FR.UTF-8"
LC_MESSAGES="fr_FR.UTF-8"
LC_PAPER="fr_FR.UTF-8"
LC_NAME="fr_FR.UTF-8"
LC_ADDRESS="fr_FR.UTF-8"
LC_TELEPHONE="fr_FR.UTF-8"
LC_MEASUREMENT="fr_FR.UTF-8"
LC_IDENTIFICATION="fr_FR.UTF-8"
LC_ALL=

```

```auto
$ locale -a
C
C.UTF-8
fr_FR.utf8
POSIX

```

Maybe I should put the EN language in my locales ?

---

<div class="post-metadata">

### Author: ![c.hartmann](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/c.hartmann/32/247_2.png) [@c.hartmann](https://forum.commonvisionblox.com/u/c.hartmann)
#### Post date: [August 17, 2018, 7:54am UTC](https://forum.commonvisionblox.com/t/cannot-start-genicambrowser-libpng-missing/523/7 "2018-08-17T07:54:40Z")

</div>

Well yes. But wait a second.

Open a console. Try “export LC\_ALL=C”. This will override your language settings (for the current console) to the “C” language. Then start the Genicambrowser.

---

<div class="post-metadata">

### Author: ![ss\_silkke](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/ss_silkke/32/382_2.png) [@ss\_silkke](https://forum.commonvisionblox.com/u/ss_silkke)
#### Post date: [August 17, 2018, 7:56am UTC](https://forum.commonvisionblox.com/t/cannot-start-genicambrowser-libpng-missing/523/8 "2018-08-17T07:56:10Z")

</div>

> [@c.hartmann](#):
>
> export LC\_ALL=C

Thanks, it worked 🙂

---

<div class="post-metadata">

### Author: ![c.hartmann](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/c.hartmann/32/247_2.png) [@c.hartmann](https://forum.commonvisionblox.com/u/c.hartmann)
#### Post date: [August 17, 2018, 7:57am UTC](https://forum.commonvisionblox.com/t/cannot-start-genicambrowser-libpng-missing/523/9 "2018-08-17T07:57:38Z")

</div>

Ah the Qt libs we deliver do not like the french locale. Odd.

---

<div class="post-metadata">

### Author: ![ss\_silkke](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/ss_silkke/32/382_2.png) [@ss\_silkke](https://forum.commonvisionblox.com/u/ss_silkke)
#### Post date: [August 17, 2018, 8:01am UTC](https://forum.commonvisionblox.com/t/cannot-start-genicambrowser-libpng-missing/523/10 "2018-08-17T08:01:01Z")

</div>

Thats my fault. Even if i’m french, I should never have installed the OS with the french language. 😄

When I’m trying to launch something (about genicam ofc) from the GUI it does not work, I think I need to set the env variable for the X session too.

Do you know how to do that ?

---

<div class="post-metadata">

### Author: ![c.hartmann](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/c.hartmann/32/247_2.png) [@c.hartmann](https://forum.commonvisionblox.com/u/c.hartmann)
#### Post date: [August 17, 2018, 8:24am UTC](https://forum.commonvisionblox.com/t/cannot-start-genicambrowser-libpng-missing/523/11 "2018-08-17T08:24:09Z")

</div>

For the session (i.e. not local and not global). No i don’t actually know.

However i would first setup “fallback” locales.

sudo locale-gen de\_DE (this is german)  
sudo locale-gen de\_DE.UTF-8 (this is german in UTF8)  
sudo locale-gen en\_GB  
sudo locale-gen en\_GB.UTF-8

Then try again starting the genicambrowser from the UI. (This might take some time)

---

<div class="post-metadata">

### Author: ![c.hartmann](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/c.hartmann/32/247_2.png) [@c.hartmann](https://forum.commonvisionblox.com/u/c.hartmann)
#### Post date: [August 17, 2018, 8:39am UTC](https://forum.commonvisionblox.com/t/cannot-start-genicambrowser-libpng-missing/523/12 "2018-08-17T08:39:35Z")

</div>

You could however just put the “export LC…” into the .profile or the .xsessionrc. This should do it. I don’t think this is a good idea thou.

---

<div class="post-metadata">

### Author: ![ss\_silkke](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/ss_silkke/32/382_2.png) [@ss\_silkke](https://forum.commonvisionblox.com/u/ss_silkke)
#### Post date: [August 17, 2018, 8:41am UTC](https://forum.commonvisionblox.com/t/cannot-start-genicambrowser-libpng-missing/523/13 "2018-08-17T08:41:28Z")

</div>

By doing what you told just above I can run the executables through the GUI.

Now it’s discovering devices since 15 min… How much time does it take ?  
When I discover through a CPP program it takes less than 5 seconds.

---

<div class="post-metadata">

### Author: ![c.hartmann](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/c.hartmann/32/247_2.png) [@c.hartmann](https://forum.commonvisionblox.com/u/c.hartmann)
#### Post date: [August 17, 2018, 8:56am UTC](https://forum.commonvisionblox.com/t/cannot-start-genicambrowser-libpng-missing/523/14 "2018-08-17T08:56:28Z")

</div>

Same as the CPP Programm really.

---

<div class="post-metadata">

### Author: ![ss\_silkke](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/ss_silkke/32/382_2.png) [@ss\_silkke](https://forum.commonvisionblox.com/u/ss_silkke)
#### Post date: [August 17, 2018, 9:00am UTC](https://forum.commonvisionblox.com/t/cannot-start-genicambrowser-libpng-missing/523/15 "2018-08-17T09:00:01Z")

</div>

There’s something about misinstallation of CVB .  
But I can open camera and take pictures with the library in CPP, this is mindblowing…

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/commonvisionblox/original/1X/771bf2326e7ad4a16493637afca5a961e0fe3d1b.png)

---

<div class="post-metadata">

### Author: ![ss\_silkke](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/ss_silkke/32/382_2.png) [@ss\_silkke](https://forum.commonvisionblox.com/u/ss_silkke)
#### Post date: [August 20, 2018, 8:50am UTC](https://forum.commonvisionblox.com/t/cannot-start-genicambrowser-libpng-missing/523/16 "2018-08-20T08:50:08Z")

</div>

I fixed this by adding :

```auto
export CVB=/opt/cvb

```

in ~/.xsessionrc

---

<div class="post-metadata">

### Author: ![c.hartmann](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/c.hartmann/32/247_2.png) [@c.hartmann](https://forum.commonvisionblox.com/u/c.hartmann)
#### Post date: [August 21, 2018, 7:02am UTC](https://forum.commonvisionblox.com/t/cannot-start-genicambrowser-libpng-missing/523/17 "2018-08-21T07:02:44Z")

</div>

Hello I’m terribly sorry for not answering. I should have gotten a notification, but i didn’t.

The enviromental vars you need:  
CVB=/opt/cvb  
GENICAM\_GENTL64\_PATH=/opt/cvb/drivers/genicam  
CVGENICAM\_REGISTRY=/var/opt/cvb/Registry  
GENICAM\_CACHE\_V3\_0=/var/opt/cvb/genicam  
CVBDATA=/var/opt/cvb  
CVBCONFIG=/etc/opt/cvb

GENTL64 becomes GENTL32 on 32 bit systems / configs.

---

<div class="post-metadata">

### Author: ![ss\_silkke](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/ss_silkke/32/382_2.png) [@ss\_silkke](https://forum.commonvisionblox.com/u/ss_silkke)
#### Post date: [August 21, 2018, 7:13am UTC](https://forum.commonvisionblox.com/t/cannot-start-genicambrowser-libpng-missing/523/18 "2018-08-21T07:13:47Z")

</div>

Hello, and don’t worry, it’s fine.

Yes I did add those env vars in the .xsessionrc file and this fixed everything (after a reboot). Now I get the list of connected cameras.

Thank you very much !

---

<div class="post-metadata">

### Author: ![c.hartmann](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/c.hartmann/32/247_2.png) [@c.hartmann](https://forum.commonvisionblox.com/u/c.hartmann)
#### Post date: [August 21, 2018, 7:50am UTC](https://forum.commonvisionblox.com/t/cannot-start-genicambrowser-libpng-missing/523/19 "2018-08-21T07:50:49Z")

</div>

Ok then you were missing the Gentl64 path. Which is supposed to hold all transportlayers (GenTL Standard).
