Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Linking GLES2 programs...: (4 Items)
   
Linking GLES2 programs...  
I have some projects that use GLES2 and I keep getting 

"unknown symbol: _gles1_cm_fntbl"
"unknown symbol: _gles1_fntbl"
"unknown symbol: _gles2_fntbl"

which I guess are all defined in libEGL.so.. 

but 'ldd ../lib/libbag.video.puregl.so' doesn't complain....

Hmm... maybe it's because I'm using RTLD_LOCAL ? hmm no

Any hints would be appreciated.
Attachment: Image lddsuccess.png 145.01 KB
Re: Linking GLES2 programs...  
It is not clear from your post what is your code doing. I am assuming it 
is dlopening libbag.video.pureg.so.

If so, it is sufficient that you pass '0' as RTLD flags (unless you have 
specific goals).

To make sure everything resolves correctly: when running ldd (or your 
program), specify LD_BIND_NOW=1

e.g.:

# LD_BIND_NOW=1 ldd ../lib/libbag.video.puregl.so


---
Aleksandar



On 13-07-26 12:32 PM, Mr ee wrote:
> I have some projects that use GLES2 and I keep getting
>
> "unknown symbol: _gles1_cm_fntbl"
> "unknown symbol: _gles1_fntbl"
> "unknown symbol: _gles2_fntbl"
>
> which I guess are all defined in libEGL.so..
>
> but 'ldd ../lib/libbag.video.puregl.so' doesn't complain....
>
> Hmm... maybe it's because I'm using RTLD_LOCAL ? hmm no
>
> Any hints would be appreciated.
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post103657
> To cancel your subscription to this discussion, please e-mail general-community-unsubscribe@community.qnx.com
>

Re: Linking GLES2 programs...  
> It is not clear from your post what is your code doing. I am assuming it 
> is dlopening libbag.video.pureg.so.
> 
> If so, it is sufficient that you pass '0' as RTLD flags (unless you have 
> specific goals).
> 
> To make sure everything resolves correctly: when running ldd (or your 
> program), specify LD_BIND_NOW=1
> 

I did this, the output is the same as without the LD_BIND_NOW=1

> e.g.:
> 
> # LD_BIND_NOW=1 ldd ../lib/libbag.video.puregl.so
> 
> 
> ---
> Aleksandar
> 
> 
> 
> On 13-07-26 12:32 PM, Mr ee wrote:
> > I have some projects that use GLES2 and I keep getting
> >
> > "unknown symbol: _gles1_cm_fntbl"
> > "unknown symbol: _gles1_fntbl"
> > "unknown symbol: _gles2_fntbl"
> >
> > which I guess are all defined in libEGL.so..
> >
> > but 'ldd ../lib/libbag.video.puregl.so' doesn't complain....
> >
> > Hmm... maybe it's because I'm using RTLD_LOCAL ? hmm no
> >
> > Any hints would be appreciated.
> >
> >
> >
> >
> > _______________________________________________
> >
> > General
> > http://community.qnx.com/sf/go/post103657
> > To cancel your subscription to this discussion, please e-mail general-
> community-unsubscribe@community.qnx.com
> >
> 


Re: Linking GLES2 programs...  
got around manually loading libEGL.so before loading the libraries that link to GLES. (manual meaning I used dlopen)