Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/c/58.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在MacOs中编译ed25519 donna时出现问题_C_Qt_Makefile_Qt Creator - Fatal编程技术网

在MacOs中编译ed25519 donna时出现问题

在MacOs中编译ed25519 donna时出现问题,c,qt,makefile,qt-creator,C,Qt,Makefile,Qt Creator,我正在使用QT和lib来验证我的签名 Linux我正在使用这个lib=>libssl dev MacOs我正在使用这个lib=>openssl 因此,当我尝试用Linux编译它的工作时,但当我在MacOs中尝试时,donna libs给出了一个错误: openssl/rand.h is not found 我的Makefile中有一行: LIBS = $(SUBLIBS) -L/home/laion/Desktop/lethean-gui/lethean/lib -lwalle

我正在使用QT和lib来验证我的签名

Linux我正在使用这个lib=>libssl dev

MacOs我正在使用这个lib=>openssl

因此,当我尝试用Linux编译它的工作时,但当我在MacOs中尝试时,donna libs给出了一个错误:

    openssl/rand.h is not found
我的Makefile中有一行:

    LIBS = $(SUBLIBS) -L/home/laion/Desktop/lethean-gui/lethean/lib -lwallet_merged -lepee -lunbound -leasylogging -lboost_serialization -lboost_thread -lboost_system -lboost_date_time -lboost_filesystem -lboost_regex -lboost_chrono -lboost_program_options -lssl -lcrypto -Wl,-Bdynamic -Wl,-Bdynamic -lunwind -ldl -lQt5Quick -lQt5Widgets -lQt5Gui -lQt5Qml -lQt5Network -lQt5Core -lGL -lpthread 
当您查看donna libs时,您可以看到一个ed25519.c文件,在该文件的内部调用了ed25519 randombytes.h,该文件的内部包含openssl/rand.h include

在.pro文件中,我使用以下内容:

    macx {
        # mixing static and shared libs are not supported on mac
        # CONFIG(static) {
        #     message("using static libraries")
        #     LIBS+= -Wl,-Bstatic
        # }
        LIBS+= \
            -L/usr/local/lib \
            -L/usr/local/opt/openssl/lib \
            -L/usr/local/opt/boost/lib \
            -lboost_serialization \
            -lboost_thread-mt \
            -lboost_system \
            -lboost_system-mt \
            -lboost_date_time \
            -lboost_filesystem \
            -lboost_regex \
            -lboost_chrono \
            -lboost_chrono-mt \
            -lboost_program_options \
            -lssl \
            -lcrypto \
            -ldl

        INCLUDEPATH += /usr/local/opt/boost/include/

    }
因此,如果我在INCLUDEPATH中添加此路径:

    /usr/local/opt/openssl/include \
    /usr/local/opt/openssl/lib
我得到一个不同的错误:

    The program has unexpectedly finished.

    // every donna file get this message
    was built for newer osx version (10.13) than being linked (10.12)
现在我得到了这份推荐信,我回来告诉你是否有效

固定的