Page 1 of 2

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

Posted: Wed Sep 07, 2016 7:54 am
by SlyOstrich
Всем Доброе утро, 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

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

Posted: Wed Sep 07, 2016 5:37 pm
by Big_Lebowski
После --libs нужно добавить html,adv,core,xml,base

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

Posted: Wed Sep 07, 2016 6:39 pm
by ONEEYEMAN
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.

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

Posted: Thu Sep 08, 2016 7:47 am
by SlyOstrich
Big_Lebowski wrote:После --libs нужно добавить html,adv,core,xml,base
Ваша идея мне помогла избавиться от 3 библиотек, но всё равно 5 из них не находит.

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

Posted: Thu Sep 08, 2016 7:59 am
by SlyOstrich
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

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

Posted: Thu Sep 08, 2016 8:01 am
by Big_Lebowski
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 или компилировали сами?

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

Posted: Thu Sep 08, 2016 1:18 pm
by ONEEYEMAN
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.

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

Posted: Fri Sep 09, 2016 10:48 am
by SlyOstrich
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

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

Posted: Fri Sep 09, 2016 12:52 pm
by Big_Lebowski
Еще нужно добавить xrc тоже после --libs

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

Posted: Fri Sep 09, 2016 1:23 pm
by ONEEYEMAN
@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?

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

Posted: Fri Sep 09, 2016 1:38 pm
by SlyOstrich
Компилировал я её вручную:
  • ../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;[email protected]: [email protected]:~$ exitls -la /usr/local/lib/*wx*
    lrwxrwxrwx 1 root staff 20 Sep 6 17:07 [0m[01;36m/usr/local/lib/libwx_baseu-3.0-arm-linux-gnueabihf.so[0m -> [01;32mlibwx_baseu-3.0.so.0[0m[K
    lrwxrwxrwx 1 root staff 24 Sep 6 17:07 [01;36m/usr/local/lib/libwx_baseu-3.0.so.0[0m -> [01;32mlibwx_baseu-3.0.so.0.2.0[0m[K
    -rwxr-xr-x 1 root staff 2356648 Sep 6 17:07 [01;32m/usr/local/lib/libwx_baseu-3.0.so.0.2.0[0m
    lrwxrwxrwx 1 root staff 20 Sep 7 09:13 [01;36m/usr/local/lib/libwx_baseu-3.1-arm-linux-gnueabihf.so[0m -> [01;32mlibwx_baseu-3.1.so.0[0m[K
    lrwxrwxrwx 1 root staff 24 Sep 7 09:13 [01;36m/usr/local/lib/libwx_baseu-3.1.so.0[0m -> [01;32mlibwx_baseu-3.1.so.0.0.0[0m[K
    -rwxr-xr-x 1 root staff 17122004 Sep 7 09:13 [01;32m/usr/local/lib/libwx_baseu-3.1.so.0.0.0[0m
    lrwxrwxrwx 1 root staff 24 Sep 6 17:09 [01;36m/usr/local/lib/libwx_baseu_net-3.0-arm-linux-gnueabihf.so[0m -> [01;32mlibwx_baseu_net-3.0.so.0[0m
    lrwxrwxrwx 1 root staff 28 Sep 6 17:09 [01;36m/usr/local/lib/libwx_baseu_net-3.0.so.0[0m -> [01;32mlibwx_baseu_net-3.0.so.0.2.0[0m[K
    -rwxr-xr-x 1 root staff 280764 Sep 6 17:09 [01;32m/usr/local/lib/libwx_baseu_net-3.0.so.0.2.0[0m
    lrwxrwxrwx 1 root staff 24 Sep 7 09:13 [01;36m/usr/local/lib/libwx_baseu_net-3.1-arm-linux-gnueabihf.so[0m -> [01;32mlibwx_baseu_net-3.1.so.0[0m
    lrwxrwxrwx 1 root staff 28 Sep 7 09:13 [01;36m/usr/local/lib/libwx_baseu_net-3.1.so.0[0m -> [01;32mlibwx_baseu_net-3.1.so.0.0.0[0m[K
    -rwxr-xr-x 1 root staff 1978468 Sep 7 09:13 [01;32m/usr/local/lib/libwx_baseu_net-3.1.so.0.0.0[0m
    lrwxrwxrwx 1 root staff 24 Sep 6 18:03 [01;36m/usr/local/lib/libwx_baseu_xml-3.0-arm-linux-gnueabihf.so[0m -> [01;32mlibwx_baseu_xml-3.0.so.0[0m
    lrwxrwxrwx 1 root staff 28 Sep 6 18:03 [01;36m/usr/local/lib/libwx_baseu_xml-3.0.so.0[0m -> [01;32mlibwx_baseu_xml-3.0.so.0.2.0[0m[K
    -rwxr-xr-x 1 root staff 58064 Sep 6 18:03 [01;32m/usr/local/lib/libwx_baseu_xml-3.0.so.0.2.0[0m
    lrwxrwxrwx 1 root staff 24 Sep 7 09:14 [01;36m/usr/local/lib/libwx_baseu_xml-3.1-arm-linux-gnueabihf.so[0m -> [01;32mlibwx_baseu_xml-3.1.so.0[0m
    lrwxrwxrwx 1 root staff 28 Sep 7 09:14 [01;36m/usr/local/lib/libwx_baseu_xml-3.1.so.0[0m -> [01;32mlibwx_baseu_xml-3.1.so.0.0.0[0m[K
    -rwxr-xr-x 1 root staff 455452 Sep 7 09:14 [01;32m/usr/local/lib/libwx_baseu_xml-3.1.so.0.0.0[0m
    lrwxrwxrwx 1 root staff 24 Sep 6 17:56 [01;36m/usr/local/lib/libwx_gtk3u_adv-3.0-arm-linux-gnueabihf.so[0m -> [01;32mlibwx_gtk3u_adv-3.0.so.0[0m
    lrwxrwxrwx 1 root staff 28 Sep 6 17:56 [01;36m/usr/local/lib/libwx_gtk3u_adv-3.0.so.0[0m -> [01;32mlibwx_gtk3u_adv-3.0.so.0.2.0[0m[K
    -rwxr-xr-x 1 root staff 1766184 Sep 6 17:56 [01;32m/usr/local/lib/libwx_gtk3u_adv-3.0.so.0.2.0[0m
    lrwxrwxrwx 1 root staff 24 Sep 7 09:14 [01;36m/usr/local/lib/libwx_gtk3u_adv-3.1-arm-linux-gnueabihf.so[0m -> [01;32mlibwx_gtk3u_adv-3.1.so.0[0m
    lrwxrwxrwx 1 root staff 28 Sep 7 09:14 [01;36m/usr/local/lib/libwx_gtk3u_adv-3.1.so.0[0m -> [01;32mlibwx_gtk3u_adv-3.1.so.0.0.0[0m[K
    -rwxr-xr-x 1 root staff 10940084 Sep 7 09:14 [01;32m/usr/local/lib/libwx_gtk3u_adv-3.1.so.0.0.0[0m
    lrwxrwxrwx 1 root staff 24 Sep 6 18:18 [01;36m/usr/local/lib/libwx_gtk3u_aui-3.0-arm-linux-gnueabihf.so[0m -> [01;32mlibwx_gtk3u_aui-3.0.so.0[0m
    lrwxrwxrwx 1 root staff 28 Sep 6 18:18 [01;36m/usr/local/lib/libwx_gtk3u_aui-3.0.so.0[0m -> [01;32mlibwx_gtk3u_aui-3.0.so.0.2.0[0m[K
    -rwxr-xr-x 1 root staff 556648 Sep 6 18:18 [01;32m/usr/local/lib/libwx_gtk3u_aui-3.0.so.0.2.0[0m
    lrwxrwxrwx 1 root staff 24 Sep 7 09:14 [01;36m/usr/local/lib/libwx_gtk3u_aui-3.1-arm-linux-gnueabihf.so[0m -> [01;32mlibwx_gtk3u_aui-3.1.so.0[0m
    lrwxrwxrwx 1 root staff 28 Sep 7 09:14 [01;36m/usr/local/lib/libwx_gtk3u_aui-3.1.so.0[0m -> [01;32mlibwx_gtk3u_aui-3.1.so.0.0.0[0m[K
    -rwxr-xr-x 1 root staff 2784268 Sep 7 09:14 [01;32m/usr/local/lib/libwx_gtk3u_aui-3.1.so.0.0.0[0m
    lrwxrwxrwx 1 root staff 25 Sep 6 17:47 [01;36m/usr/local/lib/libwx_gtk3u_core-3.0-arm-linux-gnueabihf.so[0m -> [01;32mlibwx_gtk3u_core-3.0.so.0[0m
    lrwxrwxrwx 1 root staff 29 Sep 6 17:47 [01;36m/usr/local/lib/libwx_gtk3u_core-3.0.so.0[0m -> [01;32mlibwx_gtk3u_core-3.0.so.0.2.0[0m[K
    -rwxr-xr-x 1 root staff 5828752 Sep 6 17:47 [01;32m/usr/local/lib/libwx_gtk3u_core-3.0.so.0.2.0[0m
    lrwxrwxrwx 1 root staff 25 Sep 7 09:13 [01;36m/usr/local/lib/libwx_gtk3u_core-3.1-arm-linux-gnueabihf.so[0m -> [01;32mlibwx_gtk3u_core-3.1.so.0[0m
    lrwxrwxrwx 1 root staff 29 Sep 7 09:13 [01;36m/usr/local/lib/libwx_gtk3u_core-3.1.so.0[0m -> [01;32mlibwx_gtk3u_core-3.1.so.0.0.0[0m[K
    -rwxr-xr-x 1 root staff 46484672 Sep 7 09:13 [01;32m/usr/local/lib/libwx_gtk3u_core-3.1.so.0.0.0[0m
    lrwxrwxrwx 1 root staff 25 Sep 6 18:02 [01;36m/usr/local/lib/libwx_gtk3u_html-3.0-arm-linux-gnueabihf.so[0m -> [01;32mlibwx_gtk3u_html-3.0.so.0[0m
    lrwxrwxrwx 1 root staff 29 Sep 6 18:02 [01;36m/usr/local/lib/libwx_gtk3u_html-3.0.so.0[0m -> [01;32mlibwx_gtk3u_html-3.0.so.0.2.0[0m[K
    -rwxr-xr-x 1 root staff 811024 Sep 6 18:02 [01;32m/usr/local/lib/libwx_gtk3u_html-3.0.so.0.2.0[0m
    lrwxrwxrwx 1 root staff 25 Sep 7 09:14 [01;36m/usr/local/lib/libwx_gtk3u_html-3.1-arm-linux-gnueabihf.so[0m -> [01;32mlibwx_gtk3u_html-3.1.so.0[0m
    lrwxrwxrwx 1 root staff 29 Sep 7 09:14 [01;36m/usr/local/lib/libwx_gtk3u_html-3.1.so.0[0m -> [01;32mlibwx_gtk3u_html-3.1.so.0.0.0[0m[K
    -rwxr-xr-x 1 root staff 5495852 Sep 7 09:14 [01;32m/usr/local/lib/libwx_gtk3u_html-3.1.so.0.0.0[0m
    lrwxrwxrwx 1 root staff 29 Sep 6 18:26 [01;36m/usr/local/lib/libwx_gtk3u_propgrid-3.0-arm-linux-gnueabihf.so[0m[K -> [01;32mlibwx_gtk3u_propgrid-3.0.so.0[0m
    lrwxrwxrwx 1 root staff 33 Sep 6 18:26 [01;36m/usr/local/lib/libwx_gtk3u_propgrid-3.0.so.0[0m -> [01;32mlibwx_gtk3u_propgrid-3.0.so.0.2.0[0m[K
    -rwxr-xr-x 1 root staff 902844 Sep 6 18:26 [01;32m/usr/local/lib/libwx_gtk3u_propgrid-3.0.so.0.2.0[0m
    lrwxrwxrwx 1 root staff 29 Sep 7 09:14 [01;36m/usr/local/lib/libwx_gtk3u_propgrid-3.1-arm-linux-gnueabihf.so[0m[K -> [01;32mlibwx_gtk3u_propgrid-3.1.so.0[0m
    lrwxrwxrwx 1 root staff 33 Sep 7 09:14 [01;36m/usr/local/lib/libwx_gtk3u_propgrid-3.1.so.0[0m -> [01;32mlibwx_gtk3u_propgrid-3.1.so.0.0.0[0m[K
    -rwxr-xr-x 1 root staff 3781852 Sep 7 09:14 [01;32m/usr/local/lib/libwx_gtk3u_propgrid-3.1.so.0.0.0[0m
    lrwxrwxrwx 1 root staff 23 Sep 6 18:03 [01;36m/usr/local/lib/libwx_gtk3u_qa-3.0-arm-linux-gnueabihf.so[0m -> [01;32mlibwx_gtk3u_qa-3.0.so.0[0m
    lrwxrwxrwx 1 root staff 27 Sep 6 18:03 [01;36m/usr/local/lib/libwx_gtk3u_qa-3.0.so.0[0m -> [01;32mlibwx_gtk3u_qa-3.0.so.0.2.0[0m[K
    -rwxr-xr-x 1 root staff 186748 Sep 6 18:03 [01;32m/usr/local/lib/libwx_gtk3u_qa-3.0.so.0.2.0[0m
    lrwxrwxrwx 1 root staff 23 Sep 7 09:14 [01;36m/usr/local/lib/libwx_gtk3u_qa-3.1-arm-linux-gnueabihf.so[0m -> [01;32mlibwx_gtk3u_qa-3.1.so.0[0m
    lrwxrwxrwx 1 root staff 27 Sep 7 09:14 [01;36m/usr/local/lib/libwx_gtk3u_qa-3.1.so.0[0m -> [01;32mlibwx_gtk3u_qa-3.1.so.0.0.0[0m[K
    -rwxr-xr-x 1 root staff 780144 Sep 7 09:14 [01;32m/usr/local/lib/libwx_gtk3u_qa-3.1.so.0.0.0[0m
    lrwxrwxrwx 1 root staff 27 Sep 6 18:22 [01;36m/usr/local/lib/libwx_gtk3u_ribbon-3.0-arm-linux-gnueabihf.so[0m[K -> [01;32mlibwx_gtk3u_ribbon-3.0.so.0[0m
    lrwxrwxrwx 1 root staff 31 Sep 6 18:22 [01;36m/usr/local/lib/libwx_gtk3u_ribbon-3.0.so.0[0m -> [01;32mlibwx_gtk3u_ribbon-3.0.so.0.2.0[0m[K
    -rwxr-xr-x 1 root staff 496344 Sep 6 18:22 [01;32m/usr/local/lib/libwx_gtk3u_ribbon-3.0.so.0.2.0[0m
    lrwxrwxrwx 1 root staff 27 Sep 7 09:14 [01;36m/usr/local/lib/libwx_gtk3u_ribbon-3.1-arm-linux-gnueabihf.so[0m[K -> [01;32mlibwx_gtk3u_ribbon-3.1.so.0[0m
    lrwxrwxrwx 1 root staff 31 Sep 7 09:14 [01;36m/usr/local/lib/libwx_gtk3u_ribbon-3.1.so.0[0m -> [01;32mlibwx_gtk3u_ribbon-3.1.so.0.0.0[0m[K
    -rwxr-xr-x 1 root staff 2521572 Sep 7 09:14 [01;32m/usr/local/lib/libwx_gtk3u_ribbon-3.1.so.0.0.0[0m
    lrwxrwxrwx 1 root staff 29 Sep 6 18:35 [01;36m/usr/local/lib/libwx_gtk3u_richtext-3.0-arm-linux-gnueabihf.so[0m[K -> [01;32mlibwx_gtk3u_richtext-3.0.so.0[0m
    lrwxrwxrwx 1 root staff 33 Sep 6 18:35 [01;36m/usr/local/lib/libwx_gtk3u_richtext-3.0.so.0[0m -> [01;32mlibwx_gtk3u_richtext-3.0.so.0.2.0[0m[K
    -rwxr-xr-x 1 root staff 1527588 Sep 6 18:35 [01;32m/usr/local/lib/libwx_gtk3u_richtext-3.0.so.0.2.0[0m
    lrwxrwxrwx 1 root staff 29 Sep 7 09:14 [01;36m/usr/local/lib/libwx_gtk3u_richtext-3.1-arm-linux-gnueabihf.so[0m[K -> [01;32mlibwx_gtk3u_richtext-3.1.so.0[0m
    lrwxrwxrwx 1 root staff 33 Sep 7 09:14 [01;36m/usr/local/lib/libwx_gtk3u_richtext-3.1.so.0[0m -> [01;32mlibwx_gtk3u_richtext-3.1.so.0.0.0[0m[K
    -rwxr-xr-x 1 root staff 5487344 Sep 7 09:14 [01;32m/usr/local/lib/libwx_gtk3u_richtext-3.1.so.0.0.0[0m
    lrwxrwxrwx 1 root staff 24 Sep 6 18:36 [01;36m/usr/local/lib/libwx_gtk3u_stc-3.0-arm-linux-gnueabihf.so[0m -> [01;32mlibwx_gtk3u_stc-3.0.so.0[0m
    lrwxrwxrwx 1 root staff 28 Sep 6 18:36 [01;36m/usr/local/lib/libwx_gtk3u_stc-3.0.so.0[0m -> [01;32mlibwx_gtk3u_stc-3.0.so.0.2.0[0m[K
    -rwxr-xr-x 1 root staff 1777644 Sep 6 18:36 [01;32m/usr/local/lib/libwx_gtk3u_stc-3.0.so.0.2.0[0m
    lrwxrwxrwx 1 root staff 24 Sep 7 09:14 [01;36m/usr/local/lib/libwx_gtk3u_stc-3.1-arm-linux-gnueabihf.so[0m -> [01;32mlibwx_gtk3u_stc-3.1.so.0[0m
    lrwxrwxrwx 1 root staff 28 Sep 7 09:14 [01;36m/usr/local/lib/libwx_gtk3u_stc-3.1.so.0[0m -> [01;32mlibwx_gtk3u_stc-3.1.so.0.0.0[0m[K
    -rwxr-xr-x 1 root staff 7643204 Sep 7 09:14 [01;32m/usr/local/lib/libwx_gtk3u_stc-3.1.so.0.0.0[0m
    lrwxrwxrwx 1 root staff 24 Sep 6 18:15 [01;36m/usr/local/lib/libwx_gtk3u_xrc-3.0-arm-linux-gnueabihf.so[0m -> [01;32mlibwx_gtk3u_xrc-3.0.so.0[0m
    lrwxrwxrwx 1 root staff 28 Sep 6 18:15 [01;36m/usr/local/lib/libwx_gtk3u_xrc-3.0.so.0[0m -> [01;32mlibwx_gtk3u_xrc-3.0.so.0.2.0[0m[K
    -rwxr-xr-x 1 root staff 1275952 Sep 6 18:15 [01;32m/usr/local/lib/libwx_gtk3u_xrc-3.0.so.0.2.0[0m
    lrwxrwxrwx 1 root staff 24 Sep 7 09:14 [01;36m/usr/local/lib/libwx_gtk3u_xrc-3.1-arm-linux-gnueabihf.so[0m -> [01;32mlibwx_gtk3u_xrc-3.1.so.0[0m
    lrwxrwxrwx 1 root staff 28 Sep 7 09:14 [01;36m/usr/local/lib/libwx_gtk3u_xrc-3.1.so.0[0m -> [01;32mlibwx_gtk3u_xrc-3.1.so.0.0.0[0m[K
    -rwxr-xr-x 1 root staff 10434764 Sep 7 09:14 [01;32m/usr/local/lib/libwx_gtk3u_xrc-3.1.so.0.0.0[0m

    /usr/local/lib/wx:
    total 16
    drwxr-sr-x 4 root staff 4096 Aug 25 10:27 [01;34m.[0m
    drwxrwsr-x 5 root staff 4096 Sep 7 09:14 [01;34m..[0m
    drwxr-sr-x 2 root staff 4096 Sep 7 09:14 [01;34mconfig[0m
    drwxr-sr-x 4 root staff 4096 Sep 6 18:37 [01;34minclude[0m
    ]0;[email protected]: [email protected]:~$ exit
    exit

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

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

Posted: Fri Sep 09, 2016 2:13 pm
by ONEEYEMAN
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?

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

Posted: Mon Sep 12, 2016 7:43 am
by SlyOstrich
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

[email protected]:~/Desktop$ which wx-config
/usr/local/bin/wx-config

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

Posted: Mon Sep 12, 2016 2:45 pm
by ONEEYEMAN
Dobrogo vremeni sutok,
Esli ya pravilno pomnju to u wx-config'a est opcija "--host=<>".

Chto govorit komanda:

Code: Select all

wx-config
?

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

Posted: Tue Sep 13, 2016 9:41 am
by SlyOstrich
Доброго времени суток, да данная команда есть.
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