I installed SDL 1.2 long time ago with my package manager and now I have just installed from source the new SDL version (2.0).
我很久以前使用我的软件包管理器安装了SDL 1.2,现在我刚从源代码安装了新的SDL版本(2.0)。
Do you think it is safe to keep both version on the same OS? I need the old versions for other applications so I would prefer to have both..
你认为将两个版本保存在同一个操作系统上是否安全?我需要旧版本用于其他应用程序,所以我更愿意同时拥有它们。
PS I am on Linux.
PS我在Linux上。
Cheers!
2 个解决方案
#1
2
I think it should be fine, I've already tried it for the same reason (I needed to use the older version, but I wanted to try the newer one) and it worked for me, just be sure to keep them in separate places and use one version at a time.
我认为它应该没问题,我已经尝试了同样的原因(我需要使用旧版本,但我想尝试新版本)并且它对我有用,只是一定要把它们放在不同的地方并一次使用一个版本。
#2
2
You can let the SDL 1.2 and use the SDL 2.0 by loading in the execution (with LD_LIBRARY_PATH). Also, when compiling, you have to specify the include (-I)/library(-L) path of SDL 2.0
您可以通过在执行中加载SDL 1.2并使用SDL 2.0(使用LD_LIBRARY_PATH)。此外,在编译时,您必须指定SDL 2.0的include(-I)/ library(-L)路径
#1
2
I think it should be fine, I've already tried it for the same reason (I needed to use the older version, but I wanted to try the newer one) and it worked for me, just be sure to keep them in separate places and use one version at a time.
我认为它应该没问题,我已经尝试了同样的原因(我需要使用旧版本,但我想尝试新版本)并且它对我有用,只是一定要把它们放在不同的地方并一次使用一个版本。
#2
2
You can let the SDL 1.2 and use the SDL 2.0 by loading in the execution (with LD_LIBRARY_PATH). Also, when compiling, you have to specify the include (-I)/library(-L) path of SDL 2.0
您可以通过在执行中加载SDL 1.2并使用SDL 2.0(使用LD_LIBRARY_PATH)。此外,在编译时,您必须指定SDL 2.0的include(-I)/ library(-L)路径