Re: [AD] 5.0 and 5.2 on the same system

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


All you have to do is install 5.0 and 5.2 to different prefixes and set the pkg-config path, and make sure to use the --cflags option when building your program.

Peter

Pavel Sountsov <slabode@xxxxxxx> wrote:

>On 10/12/12 15:45, Jon Rafkind wrote:
>> Right now 'pkg-config allegro-5.0 --libs' returns -lallegro.
>
>Not quite, it also returns -L/usr/local/lib, which is determined by 
>CMAKE_INSTALL_PREFIX. To what extent just using the prefix will 
>alleviate these troubles? --cflags switch can be used for the purposes 
>of the finding headers.
>
>Thinking about this... one issue is that the pkg-config files are also 
>placed in the prefix, which would actually break pkg-config support. 
>Additionally, shared libraries should probably be placed in the same 
>spot as well (they are already versioned). Thus... what would perhaps be 
>better is to install headers into <prefix>/include/allegro5.2/allegro5 
>(note the order of the directories), static libraries and the link to 
>the shared libraries in <prefix>/lib into <prefix>/lib/allegro5.2/. This 
>way the user code will not be affected (as it'll all be magically taken 
>care of by pkg-config --cflags and --libs) and since the actual (already 
>versioned) shared libraries will go into <prefix>/lib you won't need to 
>alter where the system looks for shared libaries.
>
>-SL
>
>
>------------------------------------------------------------------------------
>LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
>Remotely access PCs and mobile devices and provide instant support
>Improve your efficiency, and focus on delivering more value-add services
>Discover what IT Professionals Know. Rescue delivers
>http://p.sf.net/sfu/logmein_12329d2d
>-- 
>https://lists.sourceforge.net/lists/listinfo/alleg-developers


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/