#251 Link glew 32-bit on a 64-bit ubuntu system

1.11.0
closed
Nigel Stewart
None
4
2014-09-18
2014-08-28
Anonymous
No

Hi all, I am compiling glew1.10.0 on my 64bit ubuntu 12.04. The generated libraries are 32bit.
/usr/lib64/libGLEW.a
/usr/lib64/libGLEW.so.1.10.0

I use
$ file /usr/lib64/libGLEW.so.1.10.0
/usr/lib64/libGLEW.so.1.10.0: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, BuildID[sha1]=0x310929e24b391cd3b9d917773058ed09012f0dcf, not stripped

I dont understand why glew put a 32-bit library into the /lib64 folder. When I tries to link this library to my own code, I got the following errors:
/usr/bin/ld: skipping incompatible /usr/lib64/libGLEW.so when searching for -lGLEW
/usr/bin/ld: skipping incompatible /usr/lib64/libGLEW.a when searching for -lGLEW
/usr/bin/ld: cannot find -lGLEW

Any solutions for this? Thank you.

Discussion


  • Anonymous
    2014-08-28

    sorry guys, the problem solved but I dont know how to close this post.

     
  • Nigel Stewart
    Nigel Stewart
    2014-08-28

    Fixed in 1.11.0?

     

    • Anonymous
      2014-08-30

      Yes, with 1.11.0 the correct libs are compiled. Thanks Nigel

       
  • Nigel Stewart
    Nigel Stewart
    2014-09-18

    • status: open --> closed
    • assigned_to: Nigel Stewart
    • Group: 1.10.0 --> 1.11.0
    • Priority: 1 --> 4
     


Anonymous


Cancel   Add attachments