From: Matthew C. <mat...@gm...> - 2011-08-09 14:53:36
|
Hi Steven, We bundle a somewhat customized version of Boost.Build with pwiz, especially for MSVC since we need a good bit of special functionality for C++/CLI support. So you'll need to use that to build. Quickbuild.bat will handle bootstrapping and building automatically. You should also use the boost we bundle (1.43, not 1.34), although I hope to upgrade to 1.47 soon. Another issue might be VC2005. We only officially support and test with VC2008 now (including Express edition, but it's not easy to get that since 2010 came out :( ). If you're just interested in mzML, all you care about is MSData.hpp (the mzML data model) and MSDataFile.hpp (handles reading/writing an MSData from/to file). You can either use SpectrumListSimple to store your spectra in memory or write a subclass of SpectrumList to override its virtual functions with your own. Because of the modularity of our libraries, it's not very convenient to link to our binaries directly. If your dependent project is using Boost.Build as well, it's much easier to build from source like this example demonstrates for Linux (but it's very similar for Windows, just make *.bat scripts instead of *.sh: https://sites.google.com/site/pwizdocumentation/home/building-with-proteowizard If you do need to link to our libs from a Visual C++ build system, then you'll have to aim at each .lib (either import or static) manually. If you use import libs, define PWIZ_DYN_LINK so that the _declspec(import) keywords are used when you include the header files. Hope this helps, -Matt On 8/8/2011 9:45 AM, Robles, Steve wrote: > Hi, > > I would like to export mzML from a Visual C++ program and was hoping to delegate the task to > ProteoWizard. However it’s not obvious how to do so from glancing over the source code, > documentation and web site (http://proteowizard.sourceforge.net). > > The first problem is I haven’t been able to build ProteoWizard from the code checked out from SVN. I > have the most recent version of boost (1.47) and there are some problems involving boost built. I’m > not that familiar with Boost build but we use it for another project and I thought our configuration > might have been a problem so I tried checking boost out to a new directory, initializing it, and > specifying the executable path to VS 2005 for ProteoWizard. Boost build runs but I’m getting errors > because it doesn’t have a value for the globe rule. Maybe I should try using the boost version that > was originally referenced (1.34). > > The second problem is I can’t tell how to link to the binaries to take advantage of the export > methods. I’m assuming we need to call a DLL but which? Are there header files or lib files? What > describes the interface? I’ve been looking over the source code and found some of the low level code > involved but didn’t find the higher level methods yet. > > If I can’t build ProteoWizard, I will need x64 DLLs. > > Thanks, > > Steven Robles |