>1. Добавить -I/usr/include/wx-2.8/ в переменную окружения CPPFLAGS, очевидно. Или в --with-wx-includes, если такая опция предусмотрена в configure Изменение переменной CPPFLAGS не изменило ничего. 8-( Добавление --with.. -- аналогично.
У меня на configure говорит следующее:
---
checking for wx-config... /usr/bin/wx-config
checking for wxWidgets version >= 2.6.0 (--unicode=no)... yes (version 2.8.3)
Warning: No config found to match: /usr/bin/wx-config --unicode=no std,gl --libs
in /usr/lib/wx/config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config --list to see all configs available in
the default prefix.
Warning: No config found to match: /usr/bin/wx-config --unicode=no std,gl --cppflags
in /usr/lib/wx/config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config --list to see all configs available in
the default prefix.
Warning: No config found to match: /usr/bin/wx-config --unicode=no std,gl --cxxflags
in /usr/lib/wx/config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config --list to see all configs available in
the default prefix.
Warning: No config found to match: /usr/bin/wx-config --unicode=no std,gl --cflags
in /usr/lib/wx/config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config --list to see all configs available in
the default prefix.
---
>2. Смотреть config.log. Скорее всего, либо нет пути к либам (добавить -L/путь/к/либам/ruby
>в LDFLAGS или соотв-но в --with-ruby-libs), либо оно принцыпиально не так
>линкует (скажем без -pthread, когда они нужны) - тогда хачить configure.
Фрагмент из config.log:
---
configure:3669: checking for rb_funcall in -lruby1.8
configure:3704: gcc -o conftest -g -O2 conftest.c -lruby1.8 >&5
/usr/bin/ld: cannot find -lruby1.8
collect2: ld returned 1 exit status
configure:3710: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "fcca"
| #define PACKAGE_TARNAME "fcca"
| #define PACKAGE_VERSION "0.8.0"
| #define PACKAGE_STRING "fcca 0.8.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "fcca"
| #define VERSION "0.8.0"
| /* end confdefs.h. */
|
| /* Override any GCC internal prototype to avoid an error.
| Use char because int might match the return type of a GCC
| builtin and then its argument prototype would still apply. */
| #ifdef __cplusplus
| extern "C"
| #endif
| char rb_funcall ();
| int
| main ()
| {
| return rb_funcall ();
| ;
| return 0;
| }
configure:3728: result: no
configure:3740: error:
*** Unable to find ruby libraries. (http://www.ruby-lang.org/)
---
>Что касается SDL, часто встречается такая вещь:
>LIBS="-lSDL $LIBS"
>когда надо бы
>LIBS="`${SDL_CONFIG} --libs` $LIBS"