Liquid XML Data Binder 2020
Liquid XML Data Binder (C++, Java, VB6) / Reference / C++ / Key Concepts / Building Projects / C++ Building XML projects (Linux)
In This Topic
    C++ Building XML projects (Linux)
    In This Topic

    Setup
    First, generate your library from your XML Schema (Note: this must be done on a Windows platform as the Wizard is for Windows only), this create a file called Makefile_Linux which will compile and link your library. Next, copy the project file and all .cpp and .h files over to your Linux system. You can then create a new project on Linux for your application.

    Altering the Makefile
    You may need to alter the Makefile_Linux file to set up paths appropriate to your system. The default values are as follows:

    # compiler include dirs
    CPP_INCLUDES=-I../bin/redist18/cpp/include

    # external libs path
    RELEASE_LIB_PATH=-L../bin/redist18/cpp/linux/bin
    DEBUG_LIB_PATH=-L../bin/redist18/cpp/linux/bin

    These paths must point to the redistributable files provided as part of the Liquid XML Data Binding Wizard install.

    Running make
    Providing you have this available on your path, you can simply type 'make -fMakefile_Linux' from the command line in the appropriate directory and both debug and release builds of you library will be built.

    Other targets included in the Makefile are:
    release - release build only
    debug - debug build only
    clean - deletes any object and library files previously created
    release_clean - deletes release files only
    debug_clean - deletes debug files only

    Linking to your Library
    In order to link against your library you must include both the path to the Liquid Technologies runtime header and library files and the generated header and library files in your applications makefile. In order to run your application you will also require all libraries to be on the library path. You can do this by adding the directories to the LD_LIBRARY_PATH.