ld не находит ссылки на библиотеку

Это русская секция форума wxWidjets. В этой секции вы можете обсуждать любые вопросы, связанные с wxWidgets на вашем родном языке.
SlyOstrich
Earned a small fee
Earned a small fee
Posts: 24
Joined: Thu Dec 24, 2015 7:21 am

ld не находит ссылки на библиотеку

Postby SlyOstrich » Wed Sep 07, 2016 7:54 am

Всем Доброе утро, wxWidgets была установлена на Debian GNU/Linux 8(jessie) 4.6.3, версия библиотеки 3.1.0.

Ошибка при компиляции скажу сразу перепробовал все методы описываемые в интернете, компилил для проверки правильно ли установился wx-config.

Ошибка:
g++ cli.cpp `wx-config --cxxflags --libs` -o main
/usr/bin/ld: cannot find -lwx_gtk3u_xrc-3.1
/usr/bin/ld: cannot find -lwx_gtk3u_html-3.1
/usr/bin/ld: cannot find -lwx_gtk3u_qa-3.1
/usr/bin/ld: cannot find -lwx_gtk3u_adv-3.1
/usr/bin/ld: cannot find -lwx_gtk3u_core-3.1
/usr/bin/ld: cannot find -lwx_baseu_xml-3.1
/usr/bin/ld: cannot find -lwx_baseu_net-3.1
/usr/bin/ld: cannot find -lwx_baseu-3.1
collect2: error: ld returned 1 exit status

Big_Lebowski
Knows some wx things
Knows some wx things
Posts: 43
Joined: Wed May 13, 2009 8:08 am

Re: ld не находит ссылки на библиотеку

Postby Big_Lebowski » Wed Sep 07, 2016 5:37 pm

После --libs нужно добавить html,adv,core,xml,base
OS: Xubuntu 14.04, wxWidgets-3.1.0

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 2046
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: ld не находит ссылки на библиотеку

Postby ONEEYEMAN » Wed Sep 07, 2016 6:39 pm

Dobrogo vremeni sutok,
Poprobujte tak:

Code: Select all

g++ cli.cpp `/path/to/wx-config/file/wx-config --cxxflags --libs` -o main


Skoree vsego wx-config ne viden dlja $PATH.

SlyOstrich
Earned a small fee
Earned a small fee
Posts: 24
Joined: Thu Dec 24, 2015 7:21 am

Re: ld не находит ссылки на библиотеку

Postby SlyOstrich » Thu Sep 08, 2016 7:47 am

Big_Lebowski wrote:После --libs нужно добавить html,adv,core,xml,base

Ваша идея мне помогла избавиться от 3 библиотек, но всё равно 5 из них не находит.

SlyOstrich
Earned a small fee
Earned a small fee
Posts: 24
Joined: Thu Dec 24, 2015 7:21 am

Re: ld не находит ссылки на библиотеку

Postby SlyOstrich » Thu Sep 08, 2016 7:59 am

ONEEYEMAN wrote:Dobrogo vremeni sutok,
Poprobujte tak:

Code: Select all

g++ cli.cpp `/path/to/wx-config/file/wx-config --cxxflags --libs` -o main


Skoree vsego wx-config ne viden dlja $PATH.


Если прописать просто в терминале wx-config то он его видит, можно предположить что $PATH его видит, если это не так, тогда как найти каталог в котором лежит wx-config, найти удалось только зависимость в которой лежал wx-config

Big_Lebowski
Knows some wx things
Knows some wx things
Posts: 43
Joined: Wed May 13, 2009 8:08 am

Re: ld не находит ссылки на библиотеку

Postby Big_Lebowski » Thu Sep 08, 2016 8:01 am

SlyOstrich wrote:
Big_Lebowski wrote:После --libs нужно добавить html,adv,core,xml,base

Ваша идея мне помогла избавиться от 3 библиотек, но всё равно 5 из них не находит.


Быть такого не может. Как у вас выглядит вся строка команды?
Должна быть такой:

Code: Select all

g++ cli.cpp `wx-config --cxxflags --libs html,adv,core,xml,base` -o main

Какие именно 5 библиотек не находит?
wxWidgets устанавливали из репозитариев Debian или компилировали сами?
OS: Xubuntu 14.04, wxWidgets-3.1.0

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 2046
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: ld не находит ссылки на библиотеку

Postby ONEEYEMAN » Thu Sep 08, 2016 1:18 pm

Dobrogo vremeni sutok,
Fajl wx-config nahoditsja v kataloge:

- esli biblioteka kompilirovalas samostojatelno - "/put'/k/wxWidgets/katalogu/buildGTK/wx-config"
- esli biblioteka ustanavlivalas is repositorija - /usr/lib/wx" ili chto-to vrode togo.

No esli prosto popytatysja zapustit "wx-config" i eta komanda vydaet podskazku kak ee ispolzovat - znachit vse v porjadke.

Esli zapustit takuju komandu:

wx-config --libs

kakoj otvet na vyhode?

Prosto sdelajte Copy/Paste iz terminala.

SlyOstrich
Earned a small fee
Earned a small fee
Posts: 24
Joined: Thu Dec 24, 2015 7:21 am

Re: ld не находит ссылки на библиотеку

Postby SlyOstrich » Fri Sep 09, 2016 10:48 am

ONEEYEMAN wrote:kakoj otvet na vyhode?


wx-config --libs
-L/usr/local/lib -pthread -lwx_gtk3u_xrc-3.1 -lwx_gtk3u_html-3.1 -lwx_gtk3u_qa-3.1 -lwx_gtk3u_adv-3.1 -lwx_gtk3u_core-3.1 -lwx_baseu_xml-3.1 -lwx_baseu_net-3.1 -lwx_baseu-3.1

Big_Lebowski
Knows some wx things
Knows some wx things
Posts: 43
Joined: Wed May 13, 2009 8:08 am

Re: ld не находит ссылки на библиотеку

Postby Big_Lebowski » Fri Sep 09, 2016 12:52 pm

Еще нужно добавить xrc тоже после --libs
OS: Xubuntu 14.04, wxWidgets-3.1.0

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 2046
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: ld не находит ссылки на библиотеку

Postby ONEEYEMAN » Fri Sep 09, 2016 1:23 pm

@Big_Lebowski,
Ne nugno. Ona uge linkuetsja. xrc - pervaja biblioteka na vyhode.

@SlyOstrich,
Zapostnite resultat

Code: Select all

ls -la /usr/local/lib/*wx*


Biblioteka kompilirovalas vruchnuju ili ustanavlivalas iz repozitorija?

SlyOstrich
Earned a small fee
Earned a small fee
Posts: 24
Joined: Thu Dec 24, 2015 7:21 am

Re: ld не находит ссылки на библиотеку

Postby SlyOstrich » Fri Sep 09, 2016 1:38 pm

Компилировал я её вручную:
    ../configure —host=arm-linux-gnueabihf —target=arm-linux-gnueabihf —build= arm-linux-gnueabihf —enable-unicode —enable-shared —disable-static —enable-debug
    sudo make install
    sudo ldconfig
Результат:
    Script started on Fri 09 Sep 2016 03:35:23 PM CEST
    ]0;cubie@cubieboard2: ~cubie@cubieboard2:~$ exitls -la /usr/local/lib/*wx*
    lrwxrwxrwx 1 root staff 20 Sep 6 17:07 /usr/local/lib/libwx_baseu-3.0-arm-linux-gnueabihf.so -> libwx_baseu-3.0.so.0
    lrwxrwxrwx 1 root staff 24 Sep 6 17:07 /usr/local/lib/libwx_baseu-3.0.so.0 -> libwx_baseu-3.0.so.0.2.0
    -rwxr-xr-x 1 root staff 2356648 Sep 6 17:07 /usr/local/lib/libwx_baseu-3.0.so.0.2.0
    lrwxrwxrwx 1 root staff 20 Sep 7 09:13 /usr/local/lib/libwx_baseu-3.1-arm-linux-gnueabihf.so -> libwx_baseu-3.1.so.0
    lrwxrwxrwx 1 root staff 24 Sep 7 09:13 /usr/local/lib/libwx_baseu-3.1.so.0 -> libwx_baseu-3.1.so.0.0.0
    -rwxr-xr-x 1 root staff 17122004 Sep 7 09:13 /usr/local/lib/libwx_baseu-3.1.so.0.0.0
    lrwxrwxrwx 1 root staff 24 Sep 6 17:09 /usr/local/lib/libwx_baseu_net-3.0-arm-linux-gnueabihf.so -> libwx_baseu_net-3.0.so.0
    lrwxrwxrwx 1 root staff 28 Sep 6 17:09 /usr/local/lib/libwx_baseu_net-3.0.so.0 -> libwx_baseu_net-3.0.so.0.2.0
    -rwxr-xr-x 1 root staff 280764 Sep 6 17:09 /usr/local/lib/libwx_baseu_net-3.0.so.0.2.0
    lrwxrwxrwx 1 root staff 24 Sep 7 09:13 /usr/local/lib/libwx_baseu_net-3.1-arm-linux-gnueabihf.so -> libwx_baseu_net-3.1.so.0
    lrwxrwxrwx 1 root staff 28 Sep 7 09:13 /usr/local/lib/libwx_baseu_net-3.1.so.0 -> libwx_baseu_net-3.1.so.0.0.0
    -rwxr-xr-x 1 root staff 1978468 Sep 7 09:13 /usr/local/lib/libwx_baseu_net-3.1.so.0.0.0
    lrwxrwxrwx 1 root staff 24 Sep 6 18:03 /usr/local/lib/libwx_baseu_xml-3.0-arm-linux-gnueabihf.so -> libwx_baseu_xml-3.0.so.0
    lrwxrwxrwx 1 root staff 28 Sep 6 18:03 /usr/local/lib/libwx_baseu_xml-3.0.so.0 -> libwx_baseu_xml-3.0.so.0.2.0
    -rwxr-xr-x 1 root staff 58064 Sep 6 18:03 /usr/local/lib/libwx_baseu_xml-3.0.so.0.2.0
    lrwxrwxrwx 1 root staff 24 Sep 7 09:14 /usr/local/lib/libwx_baseu_xml-3.1-arm-linux-gnueabihf.so -> libwx_baseu_xml-3.1.so.0
    lrwxrwxrwx 1 root staff 28 Sep 7 09:14 /usr/local/lib/libwx_baseu_xml-3.1.so.0 -> libwx_baseu_xml-3.1.so.0.0.0
    -rwxr-xr-x 1 root staff 455452 Sep 7 09:14 /usr/local/lib/libwx_baseu_xml-3.1.so.0.0.0
    lrwxrwxrwx 1 root staff 24 Sep 6 17:56 /usr/local/lib/libwx_gtk3u_adv-3.0-arm-linux-gnueabihf.so -> libwx_gtk3u_adv-3.0.so.0
    lrwxrwxrwx 1 root staff 28 Sep 6 17:56 /usr/local/lib/libwx_gtk3u_adv-3.0.so.0 -> libwx_gtk3u_adv-3.0.so.0.2.0
    -rwxr-xr-x 1 root staff 1766184 Sep 6 17:56 /usr/local/lib/libwx_gtk3u_adv-3.0.so.0.2.0
    lrwxrwxrwx 1 root staff 24 Sep 7 09:14 /usr/local/lib/libwx_gtk3u_adv-3.1-arm-linux-gnueabihf.so -> libwx_gtk3u_adv-3.1.so.0
    lrwxrwxrwx 1 root staff 28 Sep 7 09:14 /usr/local/lib/libwx_gtk3u_adv-3.1.so.0 -> libwx_gtk3u_adv-3.1.so.0.0.0
    -rwxr-xr-x 1 root staff 10940084 Sep 7 09:14 /usr/local/lib/libwx_gtk3u_adv-3.1.so.0.0.0
    lrwxrwxrwx 1 root staff 24 Sep 6 18:18 /usr/local/lib/libwx_gtk3u_aui-3.0-arm-linux-gnueabihf.so -> libwx_gtk3u_aui-3.0.so.0
    lrwxrwxrwx 1 root staff 28 Sep 6 18:18 /usr/local/lib/libwx_gtk3u_aui-3.0.so.0 -> libwx_gtk3u_aui-3.0.so.0.2.0
    -rwxr-xr-x 1 root staff 556648 Sep 6 18:18 /usr/local/lib/libwx_gtk3u_aui-3.0.so.0.2.0
    lrwxrwxrwx 1 root staff 24 Sep 7 09:14 /usr/local/lib/libwx_gtk3u_aui-3.1-arm-linux-gnueabihf.so -> libwx_gtk3u_aui-3.1.so.0
    lrwxrwxrwx 1 root staff 28 Sep 7 09:14 /usr/local/lib/libwx_gtk3u_aui-3.1.so.0 -> libwx_gtk3u_aui-3.1.so.0.0.0
    -rwxr-xr-x 1 root staff 2784268 Sep 7 09:14 /usr/local/lib/libwx_gtk3u_aui-3.1.so.0.0.0
    lrwxrwxrwx 1 root staff 25 Sep 6 17:47 /usr/local/lib/libwx_gtk3u_core-3.0-arm-linux-gnueabihf.so -> libwx_gtk3u_core-3.0.so.0
    lrwxrwxrwx 1 root staff 29 Sep 6 17:47 /usr/local/lib/libwx_gtk3u_core-3.0.so.0 -> libwx_gtk3u_core-3.0.so.0.2.0
    -rwxr-xr-x 1 root staff 5828752 Sep 6 17:47 /usr/local/lib/libwx_gtk3u_core-3.0.so.0.2.0
    lrwxrwxrwx 1 root staff 25 Sep 7 09:13 /usr/local/lib/libwx_gtk3u_core-3.1-arm-linux-gnueabihf.so -> libwx_gtk3u_core-3.1.so.0
    lrwxrwxrwx 1 root staff 29 Sep 7 09:13 /usr/local/lib/libwx_gtk3u_core-3.1.so.0 -> libwx_gtk3u_core-3.1.so.0.0.0
    -rwxr-xr-x 1 root staff 46484672 Sep 7 09:13 /usr/local/lib/libwx_gtk3u_core-3.1.so.0.0.0
    lrwxrwxrwx 1 root staff 25 Sep 6 18:02 /usr/local/lib/libwx_gtk3u_html-3.0-arm-linux-gnueabihf.so -> libwx_gtk3u_html-3.0.so.0
    lrwxrwxrwx 1 root staff 29 Sep 6 18:02 /usr/local/lib/libwx_gtk3u_html-3.0.so.0 -> libwx_gtk3u_html-3.0.so.0.2.0
    -rwxr-xr-x 1 root staff 811024 Sep 6 18:02 /usr/local/lib/libwx_gtk3u_html-3.0.so.0.2.0
    lrwxrwxrwx 1 root staff 25 Sep 7 09:14 /usr/local/lib/libwx_gtk3u_html-3.1-arm-linux-gnueabihf.so -> libwx_gtk3u_html-3.1.so.0
    lrwxrwxrwx 1 root staff 29 Sep 7 09:14 /usr/local/lib/libwx_gtk3u_html-3.1.so.0 -> libwx_gtk3u_html-3.1.so.0.0.0
    -rwxr-xr-x 1 root staff 5495852 Sep 7 09:14 /usr/local/lib/libwx_gtk3u_html-3.1.so.0.0.0
    lrwxrwxrwx 1 root staff 29 Sep 6 18:26 /usr/local/lib/libwx_gtk3u_propgrid-3.0-arm-linux-gnueabihf.so -> libwx_gtk3u_propgrid-3.0.so.0
    lrwxrwxrwx 1 root staff 33 Sep 6 18:26 /usr/local/lib/libwx_gtk3u_propgrid-3.0.so.0 -> libwx_gtk3u_propgrid-3.0.so.0.2.0
    -rwxr-xr-x 1 root staff 902844 Sep 6 18:26 /usr/local/lib/libwx_gtk3u_propgrid-3.0.so.0.2.0
    lrwxrwxrwx 1 root staff 29 Sep 7 09:14 /usr/local/lib/libwx_gtk3u_propgrid-3.1-arm-linux-gnueabihf.so -> libwx_gtk3u_propgrid-3.1.so.0
    lrwxrwxrwx 1 root staff 33 Sep 7 09:14 /usr/local/lib/libwx_gtk3u_propgrid-3.1.so.0 -> libwx_gtk3u_propgrid-3.1.so.0.0.0
    -rwxr-xr-x 1 root staff 3781852 Sep 7 09:14 /usr/local/lib/libwx_gtk3u_propgrid-3.1.so.0.0.0
    lrwxrwxrwx 1 root staff 23 Sep 6 18:03 /usr/local/lib/libwx_gtk3u_qa-3.0-arm-linux-gnueabihf.so -> libwx_gtk3u_qa-3.0.so.0
    lrwxrwxrwx 1 root staff 27 Sep 6 18:03 /usr/local/lib/libwx_gtk3u_qa-3.0.so.0 -> libwx_gtk3u_qa-3.0.so.0.2.0
    -rwxr-xr-x 1 root staff 186748 Sep 6 18:03 /usr/local/lib/libwx_gtk3u_qa-3.0.so.0.2.0
    lrwxrwxrwx 1 root staff 23 Sep 7 09:14 /usr/local/lib/libwx_gtk3u_qa-3.1-arm-linux-gnueabihf.so -> libwx_gtk3u_qa-3.1.so.0
    lrwxrwxrwx 1 root staff 27 Sep 7 09:14 /usr/local/lib/libwx_gtk3u_qa-3.1.so.0 -> libwx_gtk3u_qa-3.1.so.0.0.0
    -rwxr-xr-x 1 root staff 780144 Sep 7 09:14 /usr/local/lib/libwx_gtk3u_qa-3.1.so.0.0.0
    lrwxrwxrwx 1 root staff 27 Sep 6 18:22 /usr/local/lib/libwx_gtk3u_ribbon-3.0-arm-linux-gnueabihf.so -> libwx_gtk3u_ribbon-3.0.so.0
    lrwxrwxrwx 1 root staff 31 Sep 6 18:22 /usr/local/lib/libwx_gtk3u_ribbon-3.0.so.0 -> libwx_gtk3u_ribbon-3.0.so.0.2.0
    -rwxr-xr-x 1 root staff 496344 Sep 6 18:22 /usr/local/lib/libwx_gtk3u_ribbon-3.0.so.0.2.0
    lrwxrwxrwx 1 root staff 27 Sep 7 09:14 /usr/local/lib/libwx_gtk3u_ribbon-3.1-arm-linux-gnueabihf.so -> libwx_gtk3u_ribbon-3.1.so.0
    lrwxrwxrwx 1 root staff 31 Sep 7 09:14 /usr/local/lib/libwx_gtk3u_ribbon-3.1.so.0 -> libwx_gtk3u_ribbon-3.1.so.0.0.0
    -rwxr-xr-x 1 root staff 2521572 Sep 7 09:14 /usr/local/lib/libwx_gtk3u_ribbon-3.1.so.0.0.0
    lrwxrwxrwx 1 root staff 29 Sep 6 18:35 /usr/local/lib/libwx_gtk3u_richtext-3.0-arm-linux-gnueabihf.so -> libwx_gtk3u_richtext-3.0.so.0
    lrwxrwxrwx 1 root staff 33 Sep 6 18:35 /usr/local/lib/libwx_gtk3u_richtext-3.0.so.0 -> libwx_gtk3u_richtext-3.0.so.0.2.0
    -rwxr-xr-x 1 root staff 1527588 Sep 6 18:35 /usr/local/lib/libwx_gtk3u_richtext-3.0.so.0.2.0
    lrwxrwxrwx 1 root staff 29 Sep 7 09:14 /usr/local/lib/libwx_gtk3u_richtext-3.1-arm-linux-gnueabihf.so -> libwx_gtk3u_richtext-3.1.so.0
    lrwxrwxrwx 1 root staff 33 Sep 7 09:14 /usr/local/lib/libwx_gtk3u_richtext-3.1.so.0 -> libwx_gtk3u_richtext-3.1.so.0.0.0
    -rwxr-xr-x 1 root staff 5487344 Sep 7 09:14 /usr/local/lib/libwx_gtk3u_richtext-3.1.so.0.0.0
    lrwxrwxrwx 1 root staff 24 Sep 6 18:36 /usr/local/lib/libwx_gtk3u_stc-3.0-arm-linux-gnueabihf.so -> libwx_gtk3u_stc-3.0.so.0
    lrwxrwxrwx 1 root staff 28 Sep 6 18:36 /usr/local/lib/libwx_gtk3u_stc-3.0.so.0 -> libwx_gtk3u_stc-3.0.so.0.2.0
    -rwxr-xr-x 1 root staff 1777644 Sep 6 18:36 /usr/local/lib/libwx_gtk3u_stc-3.0.so.0.2.0
    lrwxrwxrwx 1 root staff 24 Sep 7 09:14 /usr/local/lib/libwx_gtk3u_stc-3.1-arm-linux-gnueabihf.so -> libwx_gtk3u_stc-3.1.so.0
    lrwxrwxrwx 1 root staff 28 Sep 7 09:14 /usr/local/lib/libwx_gtk3u_stc-3.1.so.0 -> libwx_gtk3u_stc-3.1.so.0.0.0
    -rwxr-xr-x 1 root staff 7643204 Sep 7 09:14 /usr/local/lib/libwx_gtk3u_stc-3.1.so.0.0.0
    lrwxrwxrwx 1 root staff 24 Sep 6 18:15 /usr/local/lib/libwx_gtk3u_xrc-3.0-arm-linux-gnueabihf.so -> libwx_gtk3u_xrc-3.0.so.0
    lrwxrwxrwx 1 root staff 28 Sep 6 18:15 /usr/local/lib/libwx_gtk3u_xrc-3.0.so.0 -> libwx_gtk3u_xrc-3.0.so.0.2.0
    -rwxr-xr-x 1 root staff 1275952 Sep 6 18:15 /usr/local/lib/libwx_gtk3u_xrc-3.0.so.0.2.0
    lrwxrwxrwx 1 root staff 24 Sep 7 09:14 /usr/local/lib/libwx_gtk3u_xrc-3.1-arm-linux-gnueabihf.so -> libwx_gtk3u_xrc-3.1.so.0
    lrwxrwxrwx 1 root staff 28 Sep 7 09:14 /usr/local/lib/libwx_gtk3u_xrc-3.1.so.0 -> libwx_gtk3u_xrc-3.1.so.0.0.0
    -rwxr-xr-x 1 root staff 10434764 Sep 7 09:14 /usr/local/lib/libwx_gtk3u_xrc-3.1.so.0.0.0

    /usr/local/lib/wx:
    total 16
    drwxr-sr-x 4 root staff 4096 Aug 25 10:27 .
    drwxrwsr-x 5 root staff 4096 Sep 7 09:14 ..
    drwxr-sr-x 2 root staff 4096 Sep 7 09:14 config
    drwxr-sr-x 4 root staff 4096 Sep 6 18:37 include
    ]0;cubie@cubieboard2: ~cubie@cubieboard2:~$ exit
    exit

    Script done on Fri 09 Sep 2016 03:35:28 PM CEST

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 2046
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: ld не находит ссылки на библиотеку

Postby ONEEYEMAN » Fri Sep 09, 2016 2:13 pm

Eto uge interesnej.
Biblioteka prokompiliroivalas bez oshibok? "make install" otrabotal toge bez problem?

Chto govorit:

Code: Select all

which wx-config


I kakaja sistema/gelezo na platforme? Pod kakoj processor kompilirovalas biblioteka?

SlyOstrich
Earned a small fee
Earned a small fee
Posts: 24
Joined: Thu Dec 24, 2015 7:21 am

Re: ld не находит ссылки на библиотеку

Postby SlyOstrich » Mon Sep 12, 2016 7:43 am

ONEEYEMAN wrote:Eto uge interesnej.
Biblioteka prokompiliroivalas bez oshibok? "make install" otrabotal toge bez problem?
I kakaja sistema/gelezo na platforme? Pod kakoj processor kompilirovalas biblioteka?

Скомпелировалась без ошибок, "make install" тоже без последствий, как я описывал выше wxWidgets была установлена на Debian GNU/Linux 8(jessie) 4.6.3,на одноплаточном компьютере Cubieboard 2, под процессор A20.

Code: Select all

cubie@cubieboard2:~/Desktop$ which wx-config
/usr/local/bin/wx-config

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 2046
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: ld не находит ссылки на библиотеку

Postby ONEEYEMAN » Mon Sep 12, 2016 2:45 pm

Dobrogo vremeni sutok,
Esli ya pravilno pomnju to u wx-config'a est opcija "--host=<>".

Chto govorit komanda:

Code: Select all

wx-config


?

SlyOstrich
Earned a small fee
Earned a small fee
Posts: 24
Joined: Thu Dec 24, 2015 7:21 am

Re: ld не находит ссылки на библиотеку

Postby SlyOstrich » Tue Sep 13, 2016 9:41 am

Доброго времени суток, да данная команда есть.
wx-config говорит:
    wx-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--release] [--version-full]
    [--list] [--selected-config] [--host=HOST] [--toolkit=TOOLKIT]
    [--universal[=yes|no]] [--unicode[=yes|no]] [--static[=yes|no]]
    [--debug[=yes|no]] [--version[=VERSION]] [--basename] [--cc] [--cxx]
    [--cppflags [base]] [--cxxflags [base]] [--cflags]
    [--rescomp] [--linkdeps] [--ld] [--utility=UTIL]
    [--libs [LIBS...]] [--optional-libs [LIBS...]]

    wx-config returns information about the wxWidgets libraries available on
    your system. It may be used to retrieve the information required to build
    applications using these libraries using --cppflags, --cxxflags, --cflags,
    and --libs options. And you may query the properties of this configuration
    using --query-{host,toolkit,widgetset,chartype,debugtype,version,linkage}.

    NOTE: Usage of --debug and --query-debugtype are only relevant if you
    have any versions prior to 2.9 installed and use the --version option to
    select an earlier version.

    If multiple builds of wxWidgets are available, you can use the options
    --prefix, --host, --toolkit, --unicode, --static, --universal or --version
    to select from them. The --selected-config option shows the name of the
    current configuration and --list shows available alternatives which match
    specified criteria. The --utility option returns the correct version of
    UTIL to use with the selected build. The --linkdeps option returns only
    static libraries for your makefile link rule dependencies.

    The LIBS arguments (comma or space separated) may be used to specify the
    wxWidgets libraries that you wish to use. The "std" label may be used to
    import all libraries that would be used by default if none were specified
    explicitly, e.g. wx-config --libs core,base. The "all" label may be used
    to import all libraries that have been compiled which are shown in the
    list below. The --optional-libs parameter should be followed by a list
    of libs that should be linked to, but only if they are available.

    Available libraries in this build are:
    xrc stc richtext ribbon propgrid aui html qa adv core xml net base


Return to “wxWidgets Development (Russian)”

Who is online

Users browsing this forum: No registered users and 1 guest