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

    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,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

    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,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

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


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


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


  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.

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.