更改qmake的OpenSSL包含路径 [英] Changing OpenSSL include path for qmake

查看:457
本文介绍了更改qmake的OpenSSL包含路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用qmake构建狗狗币.它不适用于Fedora的OpenSSL,因为其OpenSSL不包含椭圆曲线加密.因此,我有自己的OpenSSL,但我不知道如何更改dogecoin-qt.pro文件,使其包含来自其他位置的OpenSSL.

I want to build Dogecoin with qmake. It doesn't work with Fedora's OpenSSL because its OpenSSL doesn't have elliptic curve cryptography included. So I've got my own OpenSSL but I can't figure out how to change the dogecoin-qt.pro file to include an OpenSSL from a different location.

通常使用make我会这样做:

Normally with make I would do this:

$ export OPENSSL_INCLUDE_PATH="/usr/local/ssl/include"
$ export OPENSSL_LIB_PATH="/usr/local/ssl/lib"

qmake似乎有所不同,我需要更改的文件在这里: https ://github.com/dogecoin/dogecoin/blob/master/dogecoin-qt.pro

qmake seems different, the file I need to change is here: https://github.com/dogecoin/dogecoin/blob/master/dogecoin-qt.pro

如何更改它,或者我可以给qmake带来什么参数,所以我不必这样做?

How do I change it, or what arguments can I give to qmake so I don't have to?

我已经编辑了它生成的Makefile,但是知道答案仍然很高兴,因为它将为其他人提供更好的构建说明.

I've edited the Makefile it generates but it would still be nice to know an answer because it will make nicer build instructions for other people.

推荐答案

您将不得不更改为OpenSSL库定义的变量

You will have to change variables defined for OpenSSL library

OPENSSL_INCLUDE_PATH=/usr/local/ssl/include
OPENSSL_LIB_PATH=/usr/local/ssl/lib

不幸的是,您还必须修复Boost,BerkleyDB和miniUPNPc的值,因为它们链接到特定于开发人员计算机的位置. 在类似Unix的系统上,最好使用pkg-config获取库依赖项:

Unfortunately, you will also have to fix values for Boost, BerkleyDB and miniUPNPc as they link to a location specific for developer's machine. On Unix-like system it's better to use pkg-config to get library dependencies:

unix {
    CONFIG += link_pkgconfig
    PKGCONFIG += boost 
}

而且看起来至少miniupnpc和Berkley DB没有任何pkg-config配置.

Also it looks like at least miniupnpc and Berkley DB don't have any pkg-config configuration.

这篇关于更改qmake的OpenSSL包含路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆