Starting development in C++
Not having a single line of code in this project in C++, and having successfully compiled the C++ projects, makes me an ideal commentor for “How to Start Development in C++”.
These are the stages you will have to follow.
- First, take a look at this previous post. .
- Obtain the code from the repository.
- Install a Visual C++ 2008 compiler. If you cannot pay the license, you can download the “Visual C++ 2008 Express” edition. It is free and it has everything you may need to start working.
- Install “log4cxx” and compile it. It is the equivalent of log4j in c++. You may be a hero, and correct the several bug this version has (unconceivable, but it is so). Or you may trust others heros who did it. The resulting log4cxx.dll file should be available in the PATH. Don´t forget making available the .lib files to the linker.
- Install “codexynthesis XSD“. It generates C++ wrappers from XSD schemas, much like JAXB does. It includes Xerces for C++, whose .lib should be available for the MXM projects. The XSD executable, should be available in the PATH also.
- Open the MXM projects from Visual Studio and compile. If you adore black screens, you can also install ant (or even worse, maven). But before, you should make Visual Studio binaries in the path, running VCVARS32.bat (available in the bin folder of Visual Studio).
- If you use Visual Studio, you will have to update all the directories (folders for includes, etc.) to your computer´s configuration.
- Voila! It should compile.
- To test the metadata engine, there is a .EXE application which needs three parameters to be run (log4cxx.properties, MXMConfiguration.xml properties and metadata.xml itself)…. You should create an adequate log4cxx.properties file, and you should change the parameters in the MXMConfiguration.xml to your choice (for example, change the folders etc.)
- Good luck!