Crystal Space
Welcome, Guest. Please login or register.
October 02, 2014, 12:10:27 pm

Login with username, password and session length
Search:     Advanced search
9020 Posts in 2053 Topics by 8580 Members
Latest Member: Erwenis
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  ubuntu 11.10 install missing wxwidget configure
« previous next »
Pages: [1] Print
Author Topic: ubuntu 11.10 install missing wxwidget configure  (Read 3382 times)
Inconnu259
Newbie
*
Posts: 6


View Profile Email
« on: February 19, 2012, 01:43:15 am »

Hi,

I work on ubuntu 11.10 and when I run ./configure, I have this :

Missing
  assimp               (models)
  jackasyn             (audio)
  java                 (bindings)
  mng                  (image)
  perl                 (bindings)
  vgvm                 (image)
  wxwidgets            (gui)


I think, just wxwidgets is very important, and others is not really important.
but, when I look why wxwidgets is missing (in reality I have wxwidgets), the congif.log has this error :

/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_finish_decompress@LIBJPEG_6.2'
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_set_defaults@LIBJPEG_6.2'
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_destroy_compress@LIBJPEG_6.2'
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_CreateDecompress@LIBJPEG_6.2'
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_CreateCompress@LIBJPEG_6.2'
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_resync_to_restart@LIBJPEG_6.2'
/usr/lib/x86_64-linux-gnu/libtiff.so.4: undefined reference to `jpeg_destroy@LIBJPEG_6.2'
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_std_error@LIBJPEG_6.2'
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_read_scanlines@LIBJPEG_6.2'
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_read_header@LIBJPEG_6.2'
/usr/lib/x86_64-linux-gnu/libtiff.so.4: undefined reference to `jpeg_write_tables@LIBJPEG_6.2'
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_finish_compress@LIBJPEG_6.2'
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_write_scanlines@LIBJPEG_6.2'
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_start_compress@LIBJPEG_6.2'
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_start_decompress@LIBJPEG_6.2'
/usr/lib/x86_64-linux-gnu/libtiff.so.4: undefined reference to `jpeg_write_raw_data@LIBJPEG_6.2'
/usr/lib/x86_64-linux-gnu/libtiff.so.4: undefined reference to `jpeg_set_colorspace@LIBJPEG_6.2'
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_set_quality@LIBJPEG_6.2'
/usr/lib/x86_64-linux-gnu/libtiff.so.4: undefined reference to `jpeg_abort@LIBJPEG_6.2'
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_destroy_decompress@LIBJPEG_6.2'
/usr/lib/x86_64-linux-gnu/libtiff.so.4: undefined reference to `jpeg_suppress_tables@LIBJPEG_6.2'
/usr/lib/x86_64-linux-gnu/libtiff.so.4: undefined reference to `jpeg_read_raw_data@LIBJPEG_6.2'


I don't know how I can fix it.
One day, I had a similar error, but it was when I compile a program with a makefile. The solution was to add -ljpeg but, I don't know how I can add this in the configuration file.

Can you help me ?
Thanks
Logged
res
Develazyoper
CS Developer
Full Member
*****
Posts: 206


View Profile Email
« Reply #1 on: February 19, 2012, 11:33:25 pm »

One day, I had a similar error, but it was when I compile a program with a makefile. The solution was to add -ljpeg but, I don't know how I can add this in the configuration file.

Open up “Jamconfig”, search for “wx”. You'll find multiple lines containing the linker options that are used for linking against wxWidgets. You can try and add -ljpeg there.
Logged
Inconnu259
Newbie
*
Posts: 6


View Profile Email
« Reply #2 on: February 20, 2012, 05:33:56 am »

Jamconfig is generated by ./configuration
But when I start ./configuration, he thinks wxwidget is not present because there are mistake with libjpeg62.
And in Jamconfig there are no wx*** because is not generated by configuration.
Logged
res
Develazyoper
CS Developer
Full Member
*****
Posts: 206


View Profile Email
« Reply #3 on: February 20, 2012, 08:11:59 am »

Hm. Could you post some more of config.log?... Specifically, I wonder which linker flags (libs + other options) are used in the WX configure tests.
Logged
Inconnu259
Newbie
*
Posts: 6


View Profile Email
« Reply #4 on: February 20, 2012, 05:49:37 pm »

It's my config.log

Code:
configure:61085: checking if pkg-config recognizes wx
configure:61097: result: no
configure:61173: checking for wx-config
configure:61191: found /usr/bin/wx-config
configure:61203: result: /usr/bin/wx-config
configure:61241: /usr/bin/wx-config --cflags
configure:61244: 0 = 0
configure:61247: /usr/bin/wx-config --libs
configure:61250: 0 = 0
configure:61543: checking for libwx
configure:61648: g++ -o conftest -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread    -I/usr/local/include    -L/usr/local/lib conftest.cpp -pthread -Wl,-Bsymbolic-functions -L/usr/lib/x86_64-linux-gnu -lwx_gtk2u_richtext-2.8 -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8 -lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu_xml-2.8 -lwx_baseu_net-2.8 -lwx_baseu-2.8  -lnsl -lc  >&5
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_finish_decompress@LIBJPEG_6.2'
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_set_defaults@LIBJPEG_6.2'
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_destroy_compress@LIBJPEG_6.2'
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_CreateDecompress@LIBJPEG_6.2'
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_CreateCompress@LIBJPEG_6.2'
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_resync_to_restart@LIBJPEG_6.2'
/usr/lib/x86_64-linux-gnu/libtiff.so.4: undefined reference to `jpeg_destroy@LIBJPEG_6.2'
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_std_error@LIBJPEG_6.2'
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_read_scanlines@LIBJPEG_6.2'
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_read_header@LIBJPEG_6.2'
/usr/lib/x86_64-linux-gnu/libtiff.so.4: undefined reference to `jpeg_write_tables@LIBJPEG_6.2'
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_finish_compress@LIBJPEG_6.2'
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_write_scanlines@LIBJPEG_6.2'
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_start_compress@LIBJPEG_6.2'
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_start_decompress@LIBJPEG_6.2'
/usr/lib/x86_64-linux-gnu/libtiff.so.4: undefined reference to `jpeg_write_raw_data@LIBJPEG_6.2'
/usr/lib/x86_64-linux-gnu/libtiff.so.4: undefined reference to `jpeg_set_colorspace@LIBJPEG_6.2'
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_set_quality@LIBJPEG_6.2'
/usr/lib/x86_64-linux-gnu/libtiff.so.4: undefined reference to `jpeg_abort@LIBJPEG_6.2'
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_destroy_decompress@LIBJPEG_6.2'
/usr/lib/x86_64-linux-gnu/libtiff.so.4: undefined reference to `jpeg_suppress_tables@LIBJPEG_6.2'
/usr/lib/x86_64-linux-gnu/libtiff.so.4: undefined reference to `jpeg_read_raw_data@LIBJPEG_6.2'
collect2: ld returned 1 exit status
configure:61655: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "crystalspace"
| #define PACKAGE_TARNAME "crystalspace"
| #define PACKAGE_VERSION "1.4.1"
| #define PACKAGE_STRING "crystalspace 1.4.1"
| #define PACKAGE_BUGREPORT "crystal-main@lists.sourceforge.net"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_CMATH 1
| #define HAVE_MATH_H 1
| #define HAVE_LIBC 1
| #define HAVE_LIBNSL 1
| #define CS_PLATFORM_UNIX /**/
| /* end confdefs.h.  */
| #include "wx/wxprec.h"
| #ifdef __BORLANDC__
| #pragma hdrstop
| #endif
| #ifndef WX_PRECOMP
| #include "wx/wx.h"
| #endif
|
| int
| main ()
| {
| wxWindow* p = 0; int w,h; p->GetClientSize(&w,&h);
|   ;
|   return 0;
| }
configure:61648: g++ -o conftest     -I/usr/local/include    -L/usr/local/lib conftest.cpp -framework wx  -lnsl -lc  >&5
g++: error: wx: No such file or directory
configure:61655: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "crystalspace"
| #define PACKAGE_TARNAME "crystalspace"
| #define PACKAGE_VERSION "1.4.1"
| #define PACKAGE_STRING "crystalspace 1.4.1"
| #define PACKAGE_BUGREPORT "crystal-main@lists.sourceforge.net"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_CMATH 1
| #define HAVE_MATH_H 1
| #define HAVE_LIBC 1
| #define HAVE_LIBNSL 1
| #define CS_PLATFORM_UNIX /**/
| /* end confdefs.h.  */
| #include "wx/wxprec.h"
| #ifdef __BORLANDC__
| #pragma hdrstop
| #endif
| #ifndef WX_PRECOMP
| #include "wx/wx.h"
| #endif
|
| int
| main ()
| {
| wxWindow* p = 0; int w,h; p->GetClientSize(&w,&h);
|   ;
|   return 0;
| }
configure:61648: g++ -o conftest     -I/usr/local/include    -L/usr/local/lib conftest.cpp -lwx  -lnsl -lc  >&5
conftest.cpp:23:23: fatal error: wx/wxprec.h: No such file or directory
compilation terminated.
configure:61655: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "crystalspace"
| #define PACKAGE_TARNAME "crystalspace"
| #define PACKAGE_VERSION "1.4.1"
| #define PACKAGE_STRING "crystalspace 1.4.1"
| #define PACKAGE_BUGREPORT "crystal-main@lists.sourceforge.net"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_CMATH 1
| #define HAVE_MATH_H 1
| #define HAVE_LIBC 1
| #define HAVE_LIBNSL 1
| #define CS_PLATFORM_UNIX /**/
| /* end confdefs.h.  */
| #include "wx/wxprec.h"
| #ifdef __BORLANDC__
| #pragma hdrstop
| #endif
| #ifndef WX_PRECOMP
| #include "wx/wx.h"
| #endif
|
| int
| main ()
| {
| wxWindow* p = 0; int w,h; p->GetClientSize(&w,&h);
|   ;
|   return 0;
| }
configure:61648: g++ -o conftest -I/usr/local/include    -I/usr/local/include -L/usr/local/lib   -L/usr/local/lib conftest.cpp -framework wx  -lnsl -lc  >&5
g++: error: wx: No such file or directory
configure:61655: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "crystalspace"
| #define PACKAGE_TARNAME "crystalspace"
| #define PACKAGE_VERSION "1.4.1"
| #define PACKAGE_STRING "crystalspace 1.4.1"
| #define PACKAGE_BUGREPORT "crystal-main@lists.sourceforge.net"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_CMATH 1
| #define HAVE_MATH_H 1
| #define HAVE_LIBC 1
| #define HAVE_LIBNSL 1
| #define CS_PLATFORM_UNIX /**/
| /* end confdefs.h.  */
| #include "wx/wxprec.h"
| #ifdef __BORLANDC__
| #pragma hdrstop
| #endif
| #ifndef WX_PRECOMP
| #include "wx/wx.h"
| #endif
|
| int
| main ()
| {
| wxWindow* p = 0; int w,h; p->GetClientSize(&w,&h);
|   ;
|   return 0;
| }
configure:61648: g++ -o conftest -I/usr/local/include    -I/usr/local/include -L/usr/local/lib   -L/usr/local/lib conftest.cpp -lwx  -lnsl -lc  >&5
conftest.cpp:23:23: fatal error: wx/wxprec.h: No such file or directory
compilation terminated.
configure:61655: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "crystalspace"
| #define PACKAGE_TARNAME "crystalspace"
| #define PACKAGE_VERSION "1.4.1"
| #define PACKAGE_STRING "crystalspace 1.4.1"
| #define PACKAGE_BUGREPORT "crystal-main@lists.sourceforge.net"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_CMATH 1
| #define HAVE_MATH_H 1
| #define HAVE_LIBC 1
| #define HAVE_LIBNSL 1
| #define CS_PLATFORM_UNIX /**/
| /* end confdefs.h.  */
| #include "wx/wxprec.h"
| #ifdef __BORLANDC__
| #pragma hdrstop
| #endif
| #ifndef WX_PRECOMP
| #include "wx/wx.h"
| #endif
|
| int
| main ()
| {
| wxWindow* p = 0; int w,h; p->GetClientSize(&w,&h);
|   ;
|   return 0;
| }
configure:61648: g++ -o conftest -I/sw/include    -I/usr/local/include -L/sw/lib   -L/usr/local/lib conftest.cpp -framework wx  -lnsl -lc  >&5
g++: error: wx: No such file or directory
configure:61655: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "crystalspace"
| #define PACKAGE_TARNAME "crystalspace"
| #define PACKAGE_VERSION "1.4.1"
| #define PACKAGE_STRING "crystalspace 1.4.1"
| #define PACKAGE_BUGREPORT "crystal-main@lists.sourceforge.net"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_CMATH 1
| #define HAVE_MATH_H 1
| #define HAVE_LIBC 1
| #define HAVE_LIBNSL 1
| #define CS_PLATFORM_UNIX /**/
| /* end confdefs.h.  */
| #include "wx/wxprec.h"
| #ifdef __BORLANDC__
| #pragma hdrstop
| #endif
| #ifndef WX_PRECOMP
| #include "wx/wx.h"
| #endif
|
| int
| main ()
| {
| wxWindow* p = 0; int w,h; p->GetClientSize(&w,&h);
|   ;
|   return 0;
| }
configure:61648: g++ -o conftest -I/sw/include    -I/usr/local/include -L/sw/lib   -L/usr/local/lib conftest.cpp -lwx  -lnsl -lc  >&5
conftest.cpp:23:23: fatal error: wx/wxprec.h: No such file or directory
compilation terminated.
configure:61655: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "crystalspace"
| #define PACKAGE_TARNAME "crystalspace"
| #define PACKAGE_VERSION "1.4.1"
| #define PACKAGE_STRING "crystalspace 1.4.1"
| #define PACKAGE_BUGREPORT "crystal-main@lists.sourceforge.net"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_CMATH 1
| #define HAVE_MATH_H 1
| #define HAVE_LIBC 1
| #define HAVE_LIBNSL 1
| #define CS_PLATFORM_UNIX /**/
| /* end confdefs.h.  */
| #include "wx/wxprec.h"
| #ifdef __BORLANDC__
| #pragma hdrstop
| #endif
| #ifndef WX_PRECOMP
| #include "wx/wx.h"
| #endif
|
| int
| main ()
| {
| wxWindow* p = 0; int w,h; p->GetClientSize(&w,&h);
|   ;
|   return 0;
| }
configure:61648: g++ -o conftest -I/opt/local/include    -I/usr/local/include -L/opt/local/lib   -L/usr/local/lib conftest.cpp -framework wx  -lnsl -lc  >&5
g++: error: wx: No such file or directory
configure:61655: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "crystalspace"
| #define PACKAGE_TARNAME "crystalspace"
| #define PACKAGE_VERSION "1.4.1"
| #define PACKAGE_STRING "crystalspace 1.4.1"
| #define PACKAGE_BUGREPORT "crystal-main@lists.sourceforge.net"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_CMATH 1
| #define HAVE_MATH_H 1
| #define HAVE_LIBC 1
| #define HAVE_LIBNSL 1
| #define CS_PLATFORM_UNIX /**/
| /* end confdefs.h.  */
| #include "wx/wxprec.h"
| #ifdef __BORLANDC__
| #pragma hdrstop
| #endif
| #ifndef WX_PRECOMP
| #include "wx/wx.h"
| #endif
|
| int
| main ()
| {
| wxWindow* p = 0; int w,h; p->GetClientSize(&w,&h);
|   ;
|   return 0;
| }
configure:61648: g++ -o conftest -I/opt/local/include    -I/usr/local/include -L/opt/local/lib   -L/usr/local/lib conftest.cpp -lwx  -lnsl -lc  >&5
conftest.cpp:23:23: fatal error: wx/wxprec.h: No such file or directory
compilation terminated.
configure:61655: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "crystalspace"
| #define PACKAGE_TARNAME "crystalspace"
| #define PACKAGE_VERSION "1.4.1"
| #define PACKAGE_STRING "crystalspace 1.4.1"
| #define PACKAGE_BUGREPORT "crystal-main@lists.sourceforge.net"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_CMATH 1
| #define HAVE_MATH_H 1
| #define HAVE_LIBC 1
| #define HAVE_LIBNSL 1
| #define CS_PLATFORM_UNIX /**/
| /* end confdefs.h.  */
| #include "wx/wxprec.h"
| #ifdef __BORLANDC__
| #pragma hdrstop
| #endif
| #ifndef WX_PRECOMP
| #include "wx/wx.h"
| #endif
|
| int
| main ()
| {
| wxWindow* p = 0; int w,h; p->GetClientSize(&w,&h);
|   ;
|   return 0;
| }
configure:61648: g++ -o conftest -I/opt/include    -I/usr/local/include -L/opt/lib   -L/usr/local/lib conftest.cpp -framework wx  -lnsl -lc  >&5
g++: error: wx: No such file or directory
configure:61655: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "crystalspace"
| #define PACKAGE_TARNAME "crystalspace"
| #define PACKAGE_VERSION "1.4.1"
| #define PACKAGE_STRING "crystalspace 1.4.1"
| #define PACKAGE_BUGREPORT "crystal-main@lists.sourceforge.net"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_CMATH 1
| #define HAVE_MATH_H 1
| #define HAVE_LIBC 1
| #define HAVE_LIBNSL 1
| #define CS_PLATFORM_UNIX /**/
| /* end confdefs.h.  */
| #include "wx/wxprec.h"
| #ifdef __BORLANDC__
| #pragma hdrstop
| #endif
| #ifndef WX_PRECOMP
| #include "wx/wx.h"
| #endif
|
| int
| main ()
| {
| wxWindow* p = 0; int w,h; p->GetClientSize(&w,&h);
|   ;
|   return 0;
| }
configure:61648: g++ -o conftest -I/opt/include    -I/usr/local/include -L/opt/lib   -L/usr/local/lib conftest.cpp -lwx  -lnsl -lc  >&5
conftest.cpp:23:23: fatal error: wx/wxprec.h: No such file or directory
compilation terminated.
configure:61655: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "crystalspace"
| #define PACKAGE_TARNAME "crystalspace"
| #define PACKAGE_VERSION "1.4.1"
| #define PACKAGE_STRING "crystalspace 1.4.1"
| #define PACKAGE_BUGREPORT "crystal-main@lists.sourceforge.net"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_CMATH 1
| #define HAVE_MATH_H 1
| #define HAVE_LIBC 1
| #define HAVE_LIBNSL 1
| #define CS_PLATFORM_UNIX /**/
| /* end confdefs.h.  */
| #include "wx/wxprec.h"
| #ifdef __BORLANDC__
| #pragma hdrstop
| #endif
| #ifndef WX_PRECOMP
| #include "wx/wx.h"
| #endif
|
| int
| main ()
| {
| wxWindow* p = 0; int w,h; p->GetClientSize(&w,&h);
|   ;
|   return 0;
| }
configure:61703: result: no
Logged
res
Develazyoper
CS Developer
Full Member
*****
Posts: 206


View Profile Email
« Reply #5 on: February 20, 2012, 07:35:29 pm »

FWIW, I believe this is actually an issue in the wxWidgets build of this Ubuntu version – some WX and tiff apparently require libjpeg yet don't actually depend on it the shared library! The configure commands certainly appear sensible...
Perhaps consider to report this issue on the Ubuntu bug tracker. (OTOH, googling for “ubuntu LIBJPEG_6.2” suggests that other people have had this issue, too. However, I didn't look around enough to find a fix.)

As a workaround, try this patch:
Code:
diff --git a/configure.ac b/configure.ac
index 2498928..c6d8870 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1651,7 +1651,8 @@ CS_CHECK_LIB_WITH([wx],
        #endif
        ]],
        [[wxWindow* p = 0; int w,h; p->GetClientSize(&w,&h);]])],
-    [], [C++])
+    [], [C++], [], [],
+    [], [$cs_cv_libjpeg_lflags], [$cs_cv_libjpeg_libs])
     
 AS_IF([test $cs_cv_libwx = yes],
     [AS_IF([test $cs_host_family = windows],
...it simply puts libjpeg on the linker command line when looking for WX. (Don't forget to run bin/autogen.sh to regenerate configure.)
Logged
Inconnu259
Newbie
*
Posts: 6


View Profile Email
« Reply #6 on: February 21, 2012, 05:05:57 am »

Thanks for your reply.
Where am I supposed to put this patch ?
Logged
res
Develazyoper
CS Developer
Full Member
*****
Posts: 206


View Profile Email
« Reply #7 on: February 21, 2012, 07:53:09 am »

You're supposed to apply it with the “patch” utility.
Logged
Inconnu259
Newbie
*
Posts: 6


View Profile Email
« Reply #8 on: February 21, 2012, 09:15:42 am »

Good job !!!

Thank you !

But I thought it would solve my first problem.
After compilation, I have always the following error when I run a demo :
Code:
xwin.so: undefined symbol: libgtk_x11_2_0_is_present
SCF_WARNING: factory returned a null instance for crystalspace.window.x
if error messages are not self explanatory, recompile CS with CS_DEBUG
WARNING: could not load plugin ‘crystalspace.window.x’

[............]

rystalspace.pluginmgr.loadplugin:
  could not load plugin ‘crystalspace.window.x’

crystalspace.canvas.glx2d:
  Could not create an instance of crystalspace.window.x!

crystalspace.pluginmgr.loadplugin:
  failed to initialize plugin ‘crystalspace.graphics2d.glx’
crystalspace.graphics3d.opengl:  Error loading Graphics2D plugin.

[....]

So if you (or other) have any idea....
Logged
res
Develazyoper
CS Developer
Full Member
*****
Posts: 206


View Profile Email
« Reply #9 on: February 22, 2012, 12:44:46 am »

It's probably some issue with relaytool (a script we use to dynamically link against some dependencies), but I don't really have an idea what exactly it could be.

Anyway, you can disable that particular feature by passing ‘--disable-relaytool’ to configure. (You may need to perform a clean rebuild of the “xwin” plugin after that... you can force that by looking for the “xwindow” directory under “out/” and deleting it.)
Logged
Inconnu259
Newbie
*
Posts: 6


View Profile Email
« Reply #10 on: February 22, 2012, 04:12:07 am »

Thanks, I can compile and run demo !
now, fun begin !!! Smiley
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 6.225 seconds with 16 queries.