On Fri, Jan 9, 2009 at 11:46 AM, Timothy Bish <[email protected]> wrote:
> > > Am I perhaps missing some better way to have multiple versions installed? > I > > believe that if I installed several versions using the same PREFIX that I > > would end up with one version of the libraries but multiple copies of the > > includes. > > For the C++ client its a bit harder to install multiple versions since > almost all of our releases so far are binary incompatible with the > previous ones, unlike APR which can guarantee that anything written for > 1.2 for example will still with a 1.3 install. > > Something you might be able to do is install as you've done already so > your CPP code would live in: > > /nas/local/activemq-cpp-2.2.3 > > Then you can link to it like this > > /nas/local/activemq-cpp -> /nas/local/activemq-cpp-2.2.3 > > Then in your makefile you can take advantage of the script that is > installed in the bin dir of each install of ActiveMQ-CPP to find out the > build options. In the bin dir there is a script called > activemqcpp-config, you can run it to get info like this: > > [tab...@office bin]$ ./activemqcpp-config --libs > -L/opt/local/lib -lactivemq-cpp > [tab...@office bin]$ ./activemqcpp-config --cflags > -I/opt/local/include/activemq-cpp-3.0-SNAPSHOT > [tab...@office bin]$ ./activemqcpp-config --version > 3.0-SNAPSHOT > > You makefile could just reference: > > /nas/local/activemq-cpp/activemqcpp-config > > Would that solve the problem for you ? > It sounds like it would. If that it what you and everyone else who needs multiple versions available is already doing then I think it is reasonable to drop my request. I might take the lazy approach and continue using symlinks, but if the lazy approach burns me sometime I will convert to your supported method. Thanks, Jim
