4

I want to develop both 32 and 64bit lib, which depends on OpenGL(mesa) on Ubuntu (64-bit).

However it seems to be impossible to install both 32 and 64bit version of libgl1-mesa-dev. When I sudo apt-get install libgl1-mesa-dev, it install the 64-bit version. After that I sudo apt-get install libgl1-mesa-dev:i386, it will install 32-bit version but will uninstall the 64-bit one.

Is it possible to let 32 and 64bit version of libgl1-mesa-dev co-exist? Or any alternative method I can try?

Andy Li
  • 5,894
  • 6
  • 37
  • 47
  • I am not sure, but is it possbile that the 64-bit version got installed also the 32-bit binaries of OpenGL? – Rolice Apr 07 '13 at 08:45
  • No, I cannot build my app in 32-bit (failed in linking stage) when the 64-bit version of mesa is installed. – Andy Li Apr 07 '13 at 10:02
  • This is a bug, as described [here](https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/949606) – camillobruni Sep 30 '13 at 12:32

1 Answers1

0

Download and compile Mesa from the source code if your package manager gives you problems.

By the way you can always use whetever OpenGL you want according to your hardware configuration or OS platform.

user2244984
  • 449
  • 4
  • 11