Hello, I compiled openchange client using the makefile provided with the trunk. Now my interest is to write a small application using libmapi only for that I don't want to use the extended makefile in the trunk to add up my application.
I was following the below wiki page http://wiki.openchange.org/index.php/ClientSideProgramming at the bottom of this page there is mentioned in the section "examples" that standalone applications are provided oc_fetchmail.c and oc_sendmail.c but I am not able to find it in the sources. and also above in the section "compilation with libmapi", it is mentioned that a simple makefile is provided with the these standalone applications. Anyhow i could not find the stand alone application as well the simple makefile. So what I tried to do is that I copy pasted code from this page http://apidocs.openchange.org/libmapi/mapi__sample1_8c-example.html for sample application and tried to write a really simple makefile for myself to compile this application. My small makefile looks like below: ////////////////////////////////////////////////////////////////////////////// CC = cc CFLAGS = `pkg-config libmapi --cflags --libs` all: $(CC) -o all $(CFLAGS) -lpopt mapi_sample.c clean: rm -f all //////////////////////////////////////////////////////////////////////////// It worked fine with me, now I wish to compile openchangeclient.c and mapiprofile.c using a similar makefile but i am unable to do so, I get errors. for openchange client i tried doing this. /* libraries i tried to add for openchange client.. -lpopt -L/usr/local/samba/lib -ldcerpc -lndr -ltalloc -lsamba-hostconfig -L/usr/local/samba/lib -lldb -ltalloc openchangeclient.c */ and i get the following error.. /* error openchangeclient.c:23:34: error: libmapi/defs_private.h: No such file or directory openchangeclient.c: In function ‘build_uniqueID’: openchangeclient.c:317: error: expected ‘)’ before ‘PRIX64’ openchangeclient.c:317: warning: spurious trailing ‘%’ in format openchangeclient.c: In function ‘get_child_folders’: ................................................................. */ I do have defs_private.h in libmapi folder. I will appreciate if someone helps me to write small makefile to compile "openchangeclient.c" and "mapiprofile.c", I am quite sure that I am missing some libraries in makefile but it would be nice if someone just extend the above small makefile of mine to compile openchangeclient.c and mapiprofile.c. Here I would like to mention that I am able to work with mapiprofile and openchangeclient,when i compile them as a bundle with all other with the Makefile provided in the trunk. thanks in advance, Kind regards, -- Muhammad Rameez Khan Cell -> 0046-73-7055073 Mail -> [email protected]
_______________________________________________ devel mailing list [email protected] http://mailman.openchange.org/listinfo/devel
