macos — приложения не могут обнаружить C ++ poco, даже если я его установил

Я хочу быть в состоянии сделать и запустить этот определенная библиотека на моем компьютере. В настоящее время проходит через 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 и загрузил библиотеку из их исходный сайт и скомпилировал его оглядываясь на 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 который на самом деле ничего не меняет.


Примечания к ответу С.М.

Я попробовал это, но получил ошибку:

 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

0

Решение

Не устанавливайте poco из источников. использование brew install poco, Если хочешь такой же как ./configure --static использование brew install poco --with-static,

0

Другие решения

Других решений пока нет …

По вопросам рекламы ammmcru@yandex.ru
Adblock
detector