The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
32 / 64 bit development in linux mint 17.1
arthurtonypark


Joined: 19 Jan 2015
Posts: 2
Hi

I am struggling with building both 32 and 64 bit versions of a program based on SDL2 on linux mint (eclipse, CDT).

The problem is that the 32 and 64 bit dev versions of the SDL2 library packages in the mint repository delete each other. So I need to go and switch the installation each time I want to build.

I have got round the problem by installing SDL2 i386 libs, copying /usr/libs/i386-linux-gnu, installing SDL 64 bit libs, and then reinstating the copied /usr/libs/i386-linux-gnu so I get back all the 32 bit libs that the 64 bit package removed.

I can now build both 32 bit and 64 bit targets from eclipse. However, I am a bit nervous about tampering with the system like this and I wonder if you guys know a better solution to the problem, or a reason why the 32 bit and 64 bit SDL2 dev libraries should not be simultaneously installed.

Thanks,
Tony
32 / 64 bit development in linux mint 17.1
Rainer Deyke
Guest

On 20.01.2015 07:13, arthurtonypark wrote:
Quote:
Hi

I am struggling with building both 32 and 64 bit versions of a
program based on SDL2 on linux mint (eclipse, CDT).

The problem is that the 32 and 64 bit dev versions of the SDL2
library packages in the mint repository delete each other. So I need
to go and switch the installation each time I want to build.

I have got round the problem by installing SDL2 i386 libs, copying
/usr/libs/i386-linux-gnu, installing SDL 64 bit libs, and then
reinstating the copied /usr/libs/i386-linux-gnu so I get back all the
32 bit libs that the 64 bit package removed.

I can now build both 32 bit and 64 bit targets from eclipse. However,
I am a bit nervous about tampering with the system like this and I
wonder if you guys know a better solution to the problem, or a reason
why the 32 bit and 64 bit SDL2 dev libraries should not be
simultaneously installed.

I wouldn't rely on the development libraries provided by the package
manager, as they tend to be out of date. Compile from source, using one
--prefix for 32 bit and another for 64 bit.


--
Rainer Deyke

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
32 / 64 bit development in linux mint 17.1
Daniel Gibson
Guest

Hi,

yeah, this doesn't seem to work with the mint 17.1 packages - the actual
conflict seems to be in libavahi-client-dev:i386 which seems to
uninstall libavahi-client-dev:amd64 (and everything that depends on it).
libsdl2-dev depends on libpulse-dev depends on libavahi-client-dev

The "sane" thing to do, IMHO, is to either
* unpack libSDL2.so from the i386 dev package - like you did, but you
don't have to put it into /usr/libs/i386-linux-gnu, you can just put it
anywhere and tell the compiler to use that path to find libs
(-L/your/path) for i386
* compile libSDL2 for i386 yourself and tell the compiler to use that
version to link against (again with -L/your/path) for i386

Cheers,
Daniel

On 01/20/2015 07:13 AM, arthurtonypark wrote:
Quote:
Hi

I am struggling with building both 32 and 64 bit versions of a program
based on SDL2 on linux mint (eclipse, CDT).

The problem is that the 32 and 64 bit dev versions of the SDL2 library
packages in the mint repository delete each other. So I need to go and
switch the installation each time I want to build.

I have got round the problem by installing SDL2 i386 libs, copying
/usr/libs/i386-linux-gnu, installing SDL 64 bit libs, and then
reinstating the copied /usr/libs/i386-linux-gnu so I get back all the 32
bit libs that the 64 bit package removed.

I can now build both 32 bit and 64 bit targets from eclipse. However, I
am a bit nervous about tampering with the system like this and I wonder
if you guys know a better solution to the problem, or a reason why the
32 bit and 64 bit SDL2 dev libraries should not be simultaneously installed.

Thanks,
Tony


_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
arthurtonypark


Joined: 19 Jan 2015
Posts: 2
Thanks for the replies. I'll look at building from source.
Magnet


Joined: 14 May 2014
Posts: 20
arthurtonypark wrote:
Thanks for the replies. I'll look at building from source.


An old trick I used to use was when running a 64 bit OS, is to create a 32 bit chroot system inside your current system.

You can then mount it anytime and run / compile 32 bit programs when needed using the default package manager/compiler.

It takes up some space but is a lot better then dual booting or messing with libraries and and other stuff.

Otherwise VMware is a good options as well to install 64 and 32 bit systems to compile and test stuff on.