Results 1 to 14 of 14

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

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 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.


  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

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

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 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.


  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

    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

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 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.


  7. #7
    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.

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 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.


  9. #9
    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.

  10. #10
    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
  •  
Qt is a trademark of The Qt Company.