You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by eotero <eo...@cediant.es> on 2010/09/01 12:31:46 UTC

cannot build activemq-cpp-producer&unittests

Hello everyone:
I've been stuck for a couple of days on this:
I've got latest releases of activemq-cpp and its dependencies (cppunit and
apr). The thing is that I can build activemq-cpp but not the other projects
included in the activemq-cpp.sln of vs2008. 
VS says it cannot open certain files or libraries that were fine when
building activemq-cpp project....like:

libapr.lib
cppunit/TestFixture.h

As I said it went well for the building of activemq-cpp.

Any idea on this?

Thanks in advance!


-- 
View this message in context: http://activemq.2283324.n4.nabble.com/cannot-build-activemq-cpp-producer-unittests-tp2402919p2402919.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.

Re: cannot build activemq-cpp-producer&unittests

Posted by eotero <eo...@cediant.es>.
problem solved. I forgot to link the .lib files to the project after building
it. Now it works!!


Thank you!
-- 
View this message in context: http://activemq.2283324.n4.nabble.com/cannot-build-activemq-cpp-producer-unittests-tp2402919p2488103.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.

Re: cannot build activemq-cpp-producer&unittests

Posted by eotero <eo...@cediant.es>.
you're right, I mistyped. It's the libapr-1.dll the one that is not found. I
thought that if you include the libraries as static, they would become part
of your exe and it wouldn't need to look for the external dll.

Elena.
-- 
View this message in context: http://activemq.2283324.n4.nabble.com/cannot-build-activemq-cpp-producer-unittests-tp2402919p2487699.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.

Re: cannot build activemq-cpp-producer&unittests

Posted by Timothy Bish <ta...@gmail.com>.
On Wed, 2010-09-01 at 07:30 -0700, eotero wrote:
> Thanks Tim for your quick reply.
> 
> I did as you told and defined those environmental variables so that they
> pointed exactly where the .lib dependency files are. I built the project but
> when I wanted to run it, it said that the libapr-1.lib file wasn't found and
> that the reinstallation of the program may fix the problem. 
> How's it possible that the library was found for compilation and not for
> execution? 
> 
> Thanks again!
> 

Are you sure it was looking for the lib and not the DLL, you need to
have the location of the APR Dlls on you PATH or install them into
system32.

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/


Re: cannot build activemq-cpp-producer&unittests

Posted by eotero <eo...@cediant.es>.
Thanks Tim for your quick reply.

I did as you told and defined those environmental variables so that they
pointed exactly where the .lib dependency files are. I built the project but
when I wanted to run it, it said that the libapr-1.lib file wasn't found and
that the reinstallation of the program may fix the problem. 
How's it possible that the library was found for compilation and not for
execution? 

Thanks again!

-- 
View this message in context: http://activemq.2283324.n4.nabble.com/cannot-build-activemq-cpp-producer-unittests-tp2402919p2403268.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.

Re: cannot build activemq-cpp-producer&unittests

Posted by Timothy Bish <ta...@gmail.com>.
On Wed, 2010-09-01 at 03:31 -0700, eotero wrote:
> Hello everyone:
> I've been stuck for a couple of days on this:
> I've got latest releases of activemq-cpp and its dependencies (cppunit and
> apr). The thing is that I can build activemq-cpp but not the other projects
> included in the activemq-cpp.sln of vs2008. 
> VS says it cannot open certain files or libraries that were fine when
> building activemq-cpp project....like:
> 
> libapr.lib
> cppunit/TestFixture.h
> 
> As I said it went well for the building of activemq-cpp.
> 
> Any idea on this?
> 
> Thanks in advance!
> 
> 

You need to set the APR_DIST and CPPUNIT_DIST environment variables as
the projects are configured to look in these location for the includes.

$(APR_DIST)\include
$(CPPUNIT_DIST)\include

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/