Results 1 to 14 of 14

Thread: How to compile xmlrpc++ libraries from a makefile

  1. #1
    Join Date
    May 2011
    Location
    Italy
    Posts
    16
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Question How to compile xmlrpc++ libraries from a makefile

    Hello guys, as you can imagine from the title I am quite newbie in programming in C + +.
    Basically so far I have written a GUI in C + + using the Qt4 libraries and now, for a thesis project, I should integrate support for XML-RPC protocol to allow the software to make calls to methods implemented on a remote server.

    Since it is the first time that I do these things (think that less than a month ago I was in "Hello World " c ++...) I am asking your help. Basically I downloaded the source code from http://xmlrpcpp.sourceforge.net/ site and into the zip I found a makefile ... now I read on the site that I should use the command "make " to build my version of the libraries from makefile but I also read that first I have to edit this makefile depending on my needs, on my compiler options etc..
    Some of you would be kind enough to download the source code (less than 1 Megabyte) and explain me how I should change the makefile and how to use the make command?
    I'm using the GNU compiler MinGW 4.4, O.S. Vista 32 bit.
    Thanks for any replies
    In QT I believe

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to compile xmlrpc++ libraries from a makefile

    Have you tried just calling "make"? What was the output you got?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    May 2011
    Location
    Italy
    Posts
    16
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to compile xmlrpc++ libraries from a makefile

    Hello, If I just type "make" nothing happens...If I use "mingw32-make" this is the output:

    D:\Downloads\xmlrpc++0.7\xmlrpc++0.7>mingw32-make
    g++ -g -Wall -Wstrict-prototypes -O2 -I./src -c -o src/XmlRpcClient.o src/XmlR
    pcClient.cpp
    cc1plus.exe: warning: command line option "-Wstrict-prototypes" is valid for Ada
    /C/ObjC but not for C++
    src/XmlRpcClient.cpp: In member function 'virtual bool XmlRpc::XmlRpcClient::rea
    dHeader()':
    src/XmlRpcClient.cpp:312: error: 'strncasecmp' was not declared in this scope
    src/XmlRpcClient.cpp:314: error: 'strncmp' was not declared in this scope
    src/XmlRpcClient.cpp: In member function 'virtual bool XmlRpc::XmlRpcClient::par
    seResponse(XmlRpc::XmlRpcValue&)':
    src/XmlRpcClient.cpp:397: warning: suggest parentheses around '&&' within '||'
    mingw32-make: *** [src/XmlRpcClient.o] Error 1
    In QT I believe

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to compile xmlrpc++ libraries from a makefile

    The code is broken, it won't build without manual tweaking. The project hasn't been maintained for 8 years.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    May 2011
    Location
    Italy
    Posts
    16
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to compile xmlrpc++ libraries from a makefile

    And what about this project for xml-rpc?
    http://wiedi.frubar.net/blog/2008/03...-rpc-with-qt4/
    In QT I believe

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to compile xmlrpc++ libraries from a makefile

    It's also quite old.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  7. #7
    Join Date
    May 2011
    Location
    Italy
    Posts
    16
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to compile xmlrpc++ libraries from a makefile

    And so what I should use to implement xml-rpc?
    In QT I believe

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to compile xmlrpc++ libraries from a makefile

    xml-rpc is a broad definition. Are you after "xml-rpc" (first generation of rpc protocols) specifically or after xml based rpc in general?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  9. #9
    Join Date
    May 2011
    Location
    Italy
    Posts
    16
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to compile xmlrpc++ libraries from a makefile

    I'll explain...For my thesis I have to send commands, from a software I wrote in QT, to a building automation system in order to perform certain actions (e.g. open a door) . From the specs I know I can communicate with the server using Xml-Rpc. According to the PDF that was given to me, the system XML-RPC is a method of procedure calling using HTTP as the transport and XML as the enconding. On this PDF there is also written that "Johnson controls" (the producer of the system) recommends, for C++ application, the XmlRpc++ implementation by Chris Morley (that is the library I was trying to build). I am a biomedical engineering student not a computer science or telecommunications one so I feel a little lost with this...please help me
    In QT I believe

  10. #10
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to compile xmlrpc++ libraries from a makefile

    So I guess you need xml-rpc and nothing else. Maybe you have more luck with this one: http://xmlrpc-c.sourceforge.net/
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  11. #11
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: How to compile xmlrpc++ libraries from a makefile

    I don't think the package you're trying to use is broken. I think you're not using it correctly.

    As it says, you have to edit the makefile to accomodate the compiler you're using, and probably to take the system you're running on into account. Read the instructions that come with the package for what you have to change specifically and how to change it.

  12. #12
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to compile xmlrpc++ libraries from a makefile

    I was trying to build it on my box. The code needs editing, for example there are missing includes there.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  13. #13
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: How to compile xmlrpc++ libraries from a makefile

    Quote Originally Posted by wysota View Post
    I was trying to build it on my box. The code needs editing, for example there are missing includes there.
    Depends on what compiler you're using. It seems to have been built a long time ago, when strings.h, string.h and stdlib.h were included by default by a lot of compilers. Those include statements have to be added to the appropriate files for use with modern compilers.

    It took about five minutes to work through these issues. Whatever function the compiler is griping about, just pull a man page on it to see what header file it lives in, and include that header in the file. The three listed seem to be commonly missing.

    Or, you could revert to gcc 2.95. It would probably compile out of the box with that.

    There are some C++ issues with some of the test programs, but given that most of them compile and link I'm guessing the library itself built correctly.

    To the OP: it's surprising that someone working on a thesis would need this sort of help.
    Last edited by SixDegrees; 20th May 2011 at 07:49.

  14. #14
    Join Date
    May 2011
    Location
    Italy
    Posts
    16
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to compile xmlrpc++ libraries from a makefile

    I said it before...I just had a 3 months very basic (we didnt discuss about pointers nor OOP) course on c++ on my first year of university...then nothing else about C++. All the other times we needed to program on a computer we used MATLAB, so I am far more experienced on it.
    And for my thesis they asked me to do this in C++...for me being able to create a whole GUI using QT just using code (not designer) and integrating it with OpenCV to make it display processed video is a big result
    Now I just need, from my software, to send commands to this server and receive feedbacks from it...I dont need to program a server (well, maybe only for simulation purposes, but a real server with implemented methods is already running in the building and I just need to interface with it).

    That's why I said I need something as easy as possible to use and well documented.

    Other question: do you suggest to study a little XML before diving into XML-RPC?

    Thanks
    In QT I believe

Similar Threads

  1. Replies: 1
    Last Post: 31st March 2011, 18:38
  2. Cannot get Qt's Makefile to compile outside of Qt Creator
    By thenybbler in forum Qt Programming
    Replies: 3
    Last Post: 28th February 2011, 22:57
  3. Replies: 0
    Last Post: 12th October 2010, 04:14
  4. Compile and install only the libraries
    By SteM in forum Installation and Deployment
    Replies: 3
    Last Post: 6th August 2007, 20:39
  5. XMLRPC for Qt?
    By Mike in forum Qt Programming
    Replies: 5
    Last Post: 23rd October 2006, 16:45

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.