ZeromqProtocolBuffers

From Mikrodev Documentation
Jump to navigation Jump to search

ZeroMQ[edit | edit source]

ZeroMQ yu Qt Creator da MSVC ile Derleme[edit | edit source]

Derlemeyi yapabilmek için CMakeLists.txt icinde bulunan şu bolumu silmek gerekiyor:

 
if (MSVC)
    # default for all sources is to use precompiled headers
    foreach(source ${sources})
        set_source_files_properties(${source}
            PROPERTIES
            COMPILE_FLAGS "/Yuprecompiled.hpp"
            )
    endforeach()
    # create precompiled header
    set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/src/precompiled.cpp
        PROPERTIES
        COMPILE_FLAGS "/Ycprecompiled.hpp"
        )
    # C and C++ can not use the same precompiled header
    set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/src/tweetnacl.c
        PROPERTIES
        COMPILE_FLAGS "/Y-" )
endif ()
 


Derlemeden sonra bin klasorunun altında libzmq-mt-4_x.x isimli dll dosyası oluşacaktır.

NZMQT QT Bindingini derleme[edit | edit source]

ZeroMQ yu kullanabilmek için şunlar gerekior:

win32:LIBS += "E:\zeromq\zeromq-lib\libzmq-mt-4_2_2.lib"

LIBS += -L"..\pathto\zeromq-lib"