Hi Tim,

Thanks for your help on this, finally managed to build it against activeMQ-CPP 
3.2.2, will start testing now.

Can you tell me how the Java ActiveMQ / ActiveMQ-CPP version numbers correlate, 
i.e. is activeMQ-CPP 3.2.2 the same as activeMQ (Java) 5.4.0 or 5.3.2 etc. ?

The reason that I ask is that I'm using 5.3.2 now but in a system that's 
written mainly in Python and want to replace the Java components with Python to 
simplify the release procedure etc..  I also want to make use of the scheduled 
/ delayed retries feature that's in 5.4.0.

I may build a .deb for ubuntu unless someone out there has already written one, 
it would help us deploy our system and I'm sure other Ubuntu users would prefer 
to apt-get :-)

Many thanks again for your help.

Neil

-----Original Message-----
From: Timothy Bish [mailto:tabish...@gmail.com] 
Sent: 03 September 2010 14:47
To: users@activemq.apache.org
Subject: RE: ActiveMQ C++ build errors

On Fri, 2010-09-03 at 14:28 +0100, Neil Pritchard wrote:
> 
> -----Original Message-----
> From: Timothy Bish [mailto:tabish...@gmail.com] 
> Sent: 03 September 2010 14:05
> To: users@activemq.apache.org
> Subject: RE: ActiveMQ C++ build errors
> 
> On Fri, 2010-09-03 at 08:50 +0100, Neil Pritchard wrote:
> > 
> > -----Original Message-----
> > From: Timothy Bish [mailto:tabish...@gmail.com] 
> > Sent: 02 September 2010 18:46
> > To: users@activemq.apache.org
> > Subject: Re: ActiveMQ C++ build errors
> > 
> > On Thu, 2010-09-02 at 16:58 +0100, Neil Pritchard wrote:
> > > Hi All,
> > > 
> > > I'm trying to build activeMQ-CPP as part of pyactivemq on ubuntu 10.4, 
> > > using the instructions kindly provided by
> > > 
> > > http://code.google.com/p/pyactivemq/wiki/Building
> > > 
> > > and
> > > 
> > > http://www.nighttale.net/activemq/pyactivemq-on-ubuntu.html
> > > 
> > > I get as far as "./autogen.sh && ./configure --prefix=/opt/activemq-cpp 
> > > && make && make install" and get the response :-
> > > 
> > > "
> > > aclocal: couldn't open directory 'config': No such file or directory
> > > autoreconf: aclocal failed with exit status: 1
> > > "
> > > 
> > > So in an attempt to get more debug info I created an empty directory 
> > > called  'config' an ran it again, this is the response that I got:-
> > > 
> > > "
> > > .ibtoolize: AC_CONFIG_MACRO_DIR({m4}) conflicts with ACLOCAL_AMFLAGS=-I m4
> > > autoreconf: aclocal failed with exit status: 1
> > > "
> > > 
> > > Does any one have an idea what the problem could be or where I should look
> > > 
> > > Many thanks,
> > > 
> > > Neil
> > 
> > First question, if you run those commands separately, which one is
> > actually failing.
> > 
> > Second, since you are doing a make install into /opt/ does the user
> > account have access to that folder?  
> > 
> > Regards
> > 
> 
> The fact that you don't have a config dir is an error, as the CPP
> distribution ships with an already configured config directory.  You
> shouldn't even need to run the autogen.sh on most systems if you are
> using AMQCPP releases in the 3.x series.  I'd try grabbing a copy of the
> latest 3.2.2 release and going from there.
> 
> Regards
> 
> 
> -- 
> Tim Bish
> 
> Open Source Integration: http://fusesource.com
> ActiveMQ in Action: http://www.manning.com/snyder/
> 
> Follow me on Twitter: http://twitter.com/tabish121
> My Blog: http://timbish.blogspot.com/
> 
> 
> 
> 
> 
> Hi Tim,
> 
> I checked out the package from:
> 
> https://svn.apache.org/repos/asf/activemq/activemq-cpp/trunk/activemq-cpp
> 
> and 
> 
> http://pyactivemq.googlecode.com/svn/trunk
> 
> The config directory looks to be missing from the repository somehow ?!??

No, this directory is created at release time and shouldn't be included
in the svn repo.  

> 
> I've since found a complete package in a tarball on:
> 
> http://mirrors.ukfast.co.uk/sites/ftp.apache.org//activemq/activemq-cpp/source/activemq-cpp-library-3.2.2-src.tar.gz
> 
> The above package compiled fine, but I ran into problems when running:
> "
> python setup.py build 
> "
> 
> In a neighboring directory containing the uncompressed package checked-out 
> from  http://pyactivemq.googlecode.com/svn/trunk
> The report I had read 
> 
> python setup.py build
> running build
> running build_ext
> building 'pyactivemq' extension
> gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
> -Wstrict-prototypes -fPIC -DBOOST_PYTHON_NO_PY_SIGNATURES=1 
> -DPYACTIVEMQ_ENABLE_DOCSTRINGS=0 
> -I/opt/activemq-cpp-3.0.1/include/activemq-cpp-3.0.1 -I/usr/include/python2.6 
> -c src/main/ActiveMQConnectionFactory.cpp -o 
> build/temp.linux-x86_64-2.6/src/main/ActiveMQConnectionFactory.o
> cc1plus: warning: command line option "-Wstrict-prototypes" is valid for 
> Ada/C/ObjC but not for C++
> src/main/ActiveMQConnectionFactory.cpp:20:53: error: 
> activemq/core/ActiveMQConnectionFactory.h: No such file or directory
> src/main/ActiveMQConnectionFactory.cpp:24: error: 'activemq' has not been 
> declared
> src/main/ActiveMQConnectionFactory.cpp:25: error: 'cms' has not been declared
> src/main/ActiveMQConnectionFactory.cpp: In function 'void 
> export_ActiveMQConnectionFactory()':
> src/main/ActiveMQConnectionFactory.cpp:38: error: 'ActiveMQConnectionFactory' 
> was not declared in this scope
> src/main/ActiveMQConnectionFactory.cpp:38: error: 'ConnectionFactory' was not 
> declared in this scope
> src/main/ActiveMQConnectionFactory.cpp:38: error: template argument 1 is 
> invalid
> src/main/ActiveMQConnectionFactory.cpp:38: error: template argument 1 is 
> invalid
> src/main/ActiveMQConnectionFactory.cpp:38: error: template argument 2 is 
> invalid
> src/main/ActiveMQConnectionFactory.cpp:41: error: 'ActiveMQConnectionFactory' 
> is not a class or namespace
> src/main/ActiveMQConnectionFactory.cpp:43: error: 'ActiveMQConnectionFactory' 
> is not a class or namespace
> src/main/ActiveMQConnectionFactory.cpp:46: error: 'ActiveMQConnectionFactory' 
> is not a class or namespace
> src/main/ActiveMQConnectionFactory.cpp:48: error: 'ActiveMQConnectionFactory' 
> is not a class or namespace
> src/main/ActiveMQConnectionFactory.cpp:51: error: 'ActiveMQConnectionFactory' 
> is not a class or namespace
> src/main/ActiveMQConnectionFactory.cpp:53: error: 'ActiveMQConnectionFactory' 
> is not a class or namespace
> error: command 'gcc' failed with exit status 1
> 
> 
> Sooo.....  I realized that pyactivemq has been written to work with 
> activeMQ-cpp 3.1.x, and downloaded the tar package 3.1.3, compiled it, and 
> tried the setup script for pyactivemq again, but got the same errors.... :-(
> 
> 
> http://apache.mirror.anlx.net//activemq/activemq-cpp/source/activemq-cpp-library-3.1.3-src.tar.gz
> 

You should be able to build against 3.2.2, I've done it at least once.
You have to make some changes in the setup.py script by hand if I recall
correctly though.  Some of the paths are hard-coded.

Regards


-- 
Tim Bish

Open Source Integration: http://fusesource.com
ActiveMQ in Action: http://www.manning.com/snyder/

Follow me on Twitter: http://twitter.com/tabish121
My Blog: http://timbish.blogspot.com/

Reply via email to