You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by stephenju <st...@ju-ju.com> on 2012/03/29 16:53:26 UTC
Building ActiveMQ-CPP with VC++ 2010 Express and Windows SDK 7.1
I am trying to build ActiveMQ-CPP with with VC++ 2010 Express and Windows SDK
7.1. VC++ Express has all the tools in normal VS sans the IDE. But I am not
sure where to start. I've built APR and friends. How do I set up so they can
be found by ActiveMQ-CPP build process?
--
View this message in context: http://activemq.2283324.n4.nabble.com/Building-ActiveMQ-CPP-with-VC-2010-Express-and-Windows-SDK-7-1-tp4515676p4515676.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Building ActiveMQ-CPP with VC++ 2010 Express and Windows SDK
7.1
Posted by stephenju <st...@ju-ju.com>.
Thanks. I figured it out now. Here are the steps in case someone needs it. I
am building it with only VC++ 2010 Express and Windows SDK 7.1 installed.
The steps are for building ActiveMQ-CPP 3.4.1:
1. Build APR and friends. This is another hassle. The issue is the latest
apr-util (1.4.6) doesn't build in my setup AT ALL. I needed to download
1.3.12 and change all references to apr_app to aprapp in Makefile.win.
2. Unzip the archive to your drive. I put it at
C:\activemq-cpp-library-3.4.1\
3. Open activemq-cpp.sln in vs2008-build with VC+ 2010 Express and let it
convert the projects. VS 2010 doesn't build vcproj files any more. The
conversion wizard will convert them to the new vcxproj files.
4. Open Makefile.win in a text editor. Replace all 'vs2005-activemq-cpp'
with 'activemq-cpp'. Then replace all 'vs2005-activemq' with 'activemq-cpp'.
And lastly, replace all 'vs2005' with 'vs2008'. The order of the
replacements matters. Save the file.
5. Open a Windows SDK command prompt. Set APR_DIST to the path or your built
apr. Mine is c:\apr\apr-dist
6. In the command prompt, cd to your unzipped activemq-cpp dir in step 2.
Enter the command:
nmake /f Makerfile.win ARCH="Win32" CONFIG="Release" build install clean
I skipped the test target. And you can check the makefile for other ARCH and
CONFIG options. You can also skip building of unit tests by commenting out
its msbuild lines in the makefile.
Hope this helps.
--
View this message in context: http://activemq.2283324.n4.nabble.com/Building-ActiveMQ-CPP-with-VC-2010-Express-and-Windows-SDK-7-1-tp4515676p4516531.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Building ActiveMQ-CPP with VC++ 2010 Express and Windows SDK 7.1
Posted by Timothy Bish <ta...@gmail.com>.
On Thu, 2012-03-29 at 07:53 -0700, stephenju wrote:
> I am trying to build ActiveMQ-CPP with with VC++ 2010 Express and Windows SDK
> 7.1. VC++ Express has all the tools in normal VS sans the IDE. But I am not
> sure where to start. I've built APR and friends. How do I set up so they can
> be found by ActiveMQ-CPP build process?
If you check the project settings in Visual Studio for ActiveMQ-CPP you
will find some Env variables that you need to set to point to where the
APR and CPPUnit libs and includes are located.
--
Tim Bish
Sr Software Engineer | FuseSource Corp
tim.bish@fusesource.com | www.fusesource.com
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/
Re: Building ActiveMQ-CPP with VC++ 2010 Express and Windows SDK
7.1
Posted by stephenju <st...@ju-ju.com>.
I took a peek into Makefile.win and find it references vs2005-build directory
while the package contains vs2008-build. I will go ahead and rename the
directory and see if that works.
--
View this message in context: http://activemq.2283324.n4.nabble.com/Building-ActiveMQ-CPP-with-VC-2010-Express-and-Windows-SDK-7-1-tp4515676p4515806.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.