Building libmaia with msvc2015



  • I'm trying to use libmaia for RPC.I successfully built the lib with mingw, but I cannot build it using Qt 5.9.1 msvc2015 x64.I run make and I get the following errors:

    make -f Makefile.Release
    make[1]: Entering directory `C:/QtProejct/libmaia'
    Makefile.Release:88: *** missing separator.  Stop.
    make[1]: Leaving directory `C:/QtProejct/libmaia'
    make: *** [release] Error 2
    

    this is my makefile: Makefile


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    What does your .pro file look like ?



  • This is libmaia.pro file

    ######################################################################
    # Automatically generated by qmake (3.1) Sat Aug 26 15:38:50 2017
    ######################################################################
    
    TEMPLATE = app
    TARGET = libmaia
    INCLUDEPATH += .
    
    # The following define makes your compiler warn you if you use any
    # feature of Qt which has been marked as deprecated (the exact warnings
    # depend on your compiler). Please consult the documentation of the
    # deprecated API in order to know how to port your code away from it.
    DEFINES += QT_DEPRECATED_WARNINGS
    
    # You can also make your code fail to compile if you use deprecated APIs.
    # In order to do so, uncomment the following line.
    # You can also select to disable deprecated APIs only up to a certain version of Qt.
    #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
    
    # Input
    HEADERS += maiaFault.h \
               maiaObject.h \
               maiaXmlRpcClient.h \
               maiaXmlRpcServer.h \
               maiaXmlRpcServerConnection.h \
               examples/client/client.h \
               examples/server/server.h
    SOURCES += maiaFault.cpp \
               maiaObject.cpp \
               maiaXmlRpcClient.cpp \
               maiaXmlRpcServer.cpp \
               maiaXmlRpcServerConnection.cpp \
               examples/client/client.cpp \
               examples/client/client_main.cpp \
               examples/server/server.cpp \
               examples/server/server_main.cpp
    
    

    and this maia.pro file

    ######################################################################
    # Automatically generated by qmake (2.01a) Fr Mai 25 19:04:58 2007
    ######################################################################
    
    include("maia.pri")
    
    TEMPLATE = lib #app
    TARGET = maia
    CONFIG += staticlib
    
    DEPENDPATH += .
    INCLUDEPATH += .
    QT -= gui
    CONFIG += qt silent #debug
    
    target.path = $$PREFIX/lib
    
    headers.files = \
        maiaObject.h \
        maiaXmlRpcClient.h \
        maiaXmlRpcServer.h \
    
    headers.path = $$PREFIX/include/maia
    
    INSTALLS += \
        target \
        headers \
    
    # Input
    
    
    

  • Lifetime Qt Champion

    First thing, why are you compiling the example as part of your library ?

    The why is libmaia an app and maia a library ?

    What is inside maia.pri ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.