即使我已经安装了应用程序,也无法检测到C ++ poco

问题描述 投票:0回答:1

我希望能够在我的计算机上制作和运行this特定的库。目前正在浏览INSTALL文件。我目前正处于这一点:

After extracting the Poco (Complete Edition) source archive, the configure
script should be called with the following parameters:

    ./configure --omit=Crypto,Net,NetSSL_OpenSSL,Data/ODBC,Data/MySQL \
                --no-tests --no-samples

This line avoids building the parts of Poco which are dependent on third-party
libraries, and are not required for openBliSSART.

You can also specify a prefix where Poco should be installed, but in most cases
you should leave the default /usr/local.

我似乎无法运行选项,所以我只是运行./configure,这似乎已经工作到我遇到的地方:

checking for fftw_plan_dft_r2c_1d in -lfftw3... yes
checking for Poco (Enterprise)... no
configure: error: Need Poco Enterprise v1.3.6+!

但事实是,我已经通过Poco在系统上安装了brew install poco,并从他们的source website下载了库并将其编译完毕。回头看INSTALL

Depending on where you have installed Poco, you may have to set the
LD_LIBRARY_PATH environment variable to contain the Poco "lib" directory, 
or run the ldconfig tool. The following lines work with Ubuntu and openSUSE
($ indicates the shell prompt):

$ sudo sh -c 'echo <prefix>/lib > /etc/ld.so.conf.d/poco.conf'
$ sudo ldconfig

where <prefix> is the Poco install prefix (by default /usr/local).

现在当我做一个简单的sudo find / -name poco时,我得到:

/usr/local/var/homebrew/linked/poco
/usr/local/opt/poco
/usr/local/Cellar/poco
find: /private/var/db/ConfigurationProfiles/Store: Operation not permitted
find: /private/var/folders/pq/xchc5hxj02d754txf8nml5f00000gn/0/SafariFamily: Operation not permitted
find: /private/var/folders/pq/xchc5hxj02d754txf8nml5f00000gn/0/com.apple.LaunchServices.dv: Operation not permitted
find: /private/var/folders/pq/xchc5hxj02d754txf8nml5f00000gn/0/com.apple.nsurlsessiond: Operation not permitted
find: /private/var/folders/pq/xchc5hxj02d754txf8nml5f00000gn/0/com.apple.routined: Operation not permitted
find: /private/var/folders/zz/zyxvpxvq6csfxvn_n00000y800007k/0/com.apple.nsurlsessiond: Operation not permitted
find: /private/var/folders/zz/zyxvpxvq6csfxvn_n00000s4000069/0/com.apple.nsurlsessiond: Operation not permitted
find: /private/var/folders/zz/zyxvpxvq6csfxvn_n00000s4000069/0/com.apple.routined: Operation not permitted
/Users/sharanduggirala/Library/Logs/Homebrew/poco
/Users/sharanduggirala/Documents/of_v0.9.8_osx_release/libs/poco
/Users/sharanduggirala/Documents/of_v0.9.8_osx_release/scripts/apothecary/formulas/poco
find: /dev/fd/3: Not a directory
find: /dev/fd/4: Not a directory

而且,看起来像建造poco时,我做了一个./configure --static。这会影响我的编辑吗?如何链接这个库?

我已经使用了命令./configure --with-poco-prefix=/usr/local/opt/poco,它并没有真正改变任何东西。


有关S.M.答案的说明

我试过这个,但得到了错误:

 brew install poco --with-static                                                                                                                                                                                      ⏎
==> Downloading https://pocoproject.org/releases/poco-1.9.0/poco-1.9.0-all.tar.gz
######################################################################## 100.0%
Error: SHA256 mismatch
Expected: 028de410fc78d5f9b1ff400e93ec3d59b9e55a0cbbf0d8fec04636882b72ea45
Actual: 0387bf0f9d313e2311742e1ad0b64e07f2f3e76039eed20e3b9aa9951b88e187
Archive: /Users/sharanduggirala/Library/Caches/Homebrew/poco-1.9.0.tar.gz
To retry an incomplete download, remove the file above. 

我也尝试过:

./configure --static                                                                                                                                                                                                 ⏎
configure: error: unrecognized option: `--static'
Try `./configure --help' for more information
c++ macos poco-libraries buildconfiguration
1个回答
0
投票

不要从源安装poco。使用brew install poco。如果你想像./configure --static一样使用brew install poco --with-static

© www.soinside.com 2019 - 2024. All rights reserved.