Cafu SVN compilation...

Get help with installing and running the Cafu Engine here. This forum is also for general questions and discussion of all aspects regarding the Cafu Engine.
Post Reply
jiapei100
Posts:3
Joined:2007-02-10, 20:17
Location:England
Contact:
Cafu SVN compilation...

Post by jiapei100 » 2010-01-29, 19:06

Hi:

I'm not quite sure whether scons is a good/popular tool, but it looks like CMake is a more convenient tool currently.

1) And, how can I specify my own packages using scons?

For example:
checking for --with-libtiff... no
In fact, I do have "libtiff4-dev" installed on my Ubuntu 9.10.

2) still some make errors on current SVN Cafu.

Code: Select all

jiapei@jiapei-laptop:~/Tools/Cafu-svn-20100129$ scons            
scons: Reading SConscript files ...                              

Mkdir("ExtLibs/wxWidgets/build-gtk_d")
os.chdir('ExtLibs/wxWidgets/build-gtk_d')
../configure --with-gtk --enable-debug --disable-shared --without-libtiff --disable-pnm --disable-pcx --disable-iff --with-opengl --with-regex=builtin --disable-compat26 --disable-compat28                                
checking build system type... i686-pc-linux-gnu                                                               
checking host system type... i686-pc-linux-gnu                                                                
checking for --disable-gui... no                                                                              
checking for --enable-monolithic... no                                                                        
checking for --enable-plugins... no                                                                           
checking for --without-subdirs... no                                                                          
checking for --enable-official_build... no                                                                    
checking for --disable-all-features... no                                                                     
checking for --enable-universal... no                                                                         
checking for --enable-nanox... no                                                                             
checking for --enable-gpe... no                                                                               
checking for toolkit... gtk                                                                                   
checking for --with-libpng... yes                                                                             
checking for --with-libjpeg... yes                                                                            
checking for --with-libtiff... no                                                                             
checking for --with-libxpm... yes                                                                             
checking for --with-libiconv... yes                                                                           
checking for --with-libmspack... no                                                                           
checking for --without-gtkprint... no                                                                         
checking for --without-gnomeprint... no                                                                       
checking for --with-gnomevfs... no                                                                            
checking for --with-hildon... no                                                                              
checking for --with-opengl... yes                                                                             
checking for --with-dmalloc... no                                                                             
checking for --with-sdl... no                                                                                 
checking for --with-regex... builtin version                                                                  
checking for --with-zlib... yes                                                                               
checking for --with-expat... yes                                                                              
checking for --with-macosx-sdk...                                                                             
checking for --with-macosx-version-min...                                                                     
checking for --disable-shared... yes                                                                          
checking for --enable-debug... yes                                                                            
checking for --enable-stl... no                                                                               
checking for --enable-std_iostreams... yes                                                                    
checking for --enable-std_string... yes                                                                       
checking for --disable-unicode... no                                                                          
checking for --enable-mslu... no                                                                              
checking for --enable-utf8... auto                                                                            
checking for --enable-utf8only... no                                                                          
checking for --enable-extended_rtti... no                                                                     
checking for --enable-debug_flag... yes                                                                       
checking for --enable-debug_info... yes                                                                       
checking for --disable-optimise... yes                                                                        
checking for --enable-debug_gdb... no                                                                         
checking for --enable-debug_cntxt... no                                                                       
checking for --enable-mem_tracing... no                                                                       
checking for --enable-profile... no                                                                           
checking for --enable-no_rtti... no                                                                           
checking for --enable-no_exceptions... no                                                                     
checking for --enable-permissive... no                                                                        
checking for --enable-no_deps... no                                                                           
checking for --disable-vararg_macros... no                                                                    
checking for --enable-universal_binary... no                                                                  
checking for --enable-compat26... no                                                                          
checking for --disable-compat28... yes                                                                        
checking for --disable-rpath... no                                                                            
checking for --enable-objc_uniquifying... no                                                                  
checking for --disable-visibility... no                                                                       
checking for --enable-intl... yes                                                                             
checking for --enable-xlocale... yes                                                                          
checking for --enable-config... yes                                                                           
checking for --enable-protocols... yes                                                                        
checking for --enable-ftp... yes                                                                              
checking for --enable-http... yes                                                                             
checking for --enable-fileproto... yes                                                                        
checking for --enable-sockets... yes                                                                          
checking for --enable-ipv6... no                                                                              
checking for --enable-ole... yes                                                                              
checking for --enable-dataobj... yes                                                                          
checking for --enable-ipc... yes                                                                              
checking for --enable-baseevtloop... yes                                                                      
checking for --enable-epollloop... yes                                                                        
checking for --enable-selectloop... yes                                                                       
checking for --enable-apple_ieee... yes                                                                       
checking for --enable-arcstream... yes                                                                        
checking for --enable-base64... yes                                                                           
checking for --enable-backtrace... yes                                                                        
checking for --enable-catch_segvs... yes                                                                      
checking for --enable-cmdline... yes                                                                          
checking for --enable-datetime... yes                                                                         
checking for --enable-debugreport... yes                                                                      
checking for --enable-dialupman... yes                                                                        
checking for --enable-dynlib... yes                                                                           
checking for --enable-dynamicloader... yes                                                                    
checking for --enable-exceptions... yes                                                                       
checking for --enable-ffile... yes                                                                            
checking for --enable-file... yes                                                                             
checking for --enable-filesystem... yes                                                                       
checking for --enable-fontenum... yes                                                                         
checking for --enable-fontmap... yes                                                                          
checking for --enable-fs_archive... yes                                                                       
checking for --enable-fs_inet... yes                                                                          
checking for --enable-fs_zip... yes                                                                           
checking for --enable-geometry... yes                                                                         
checking for --enable-log... yes                                                                              
checking for --enable-longlong... yes                                                                         
checking for --enable-mimetype... yes                                                                         
checking for --enable-printfposparam... yes                                                                   
checking for --enable-snglinst... yes                                                                         
checking for --enable-sound... yes                                                                            
checking for --enable-stdpaths... yes                                                                         
checking for --enable-stopwatch... yes                                                                        
checking for --enable-streams... yes                                                                          
checking for --enable-system_options... yes                                                                   
checking for --enable-tarstream... yes                                                                        
checking for --enable-textbuf... yes                                                                          
checking for --enable-textfile... yes                                                                         
checking for --enable-timer... yes                                                                            
checking for --enable-variant... yes                                                                          
checking for --enable-zipstream... yes                                                                        
checking for --enable-url... yes                                                                              
checking for --enable-protocol... yes                                                                         
checking for --enable-protocol_http... yes                                                                    
checking for --enable-protocol_ftp... yes                                                                     
checking for --enable-protocol_file... yes                                                                    
checking for --enable-threads... yes                                                                          
checking for --enable-iniconf... no                                                                           
checking for --enable-regkey... yes                                                                           
checking for --enable-docview... yes                                                                          
checking for --enable-help... yes                                                                             
checking for --enable-mshtmlhelp... yes                                                                       
checking for --enable-html... yes                                                                             
checking for --enable-htmlhelp... yes                                                                         
checking for --enable-xrc... yes                                                                              
checking for --enable-aui... yes                                                                              
checking for --enable-propgrid... yes                                                                         
checking for --enable-stc... yes                                                                              
checking for --enable-constraints... yes                                                                      
checking for --enable-loggui... yes                                                                           
checking for --enable-logwin... yes                                                                           
checking for --enable-logdialog... yes                                                                        
checking for --enable-mdi... yes                                                                              
checking for --enable-mdidoc... yes                                                                           
checking for --enable-mediactrl... auto                                                                       
checking for --enable-gstreamer8... no                                                                        
checking for --enable-webkit... yes                                                                           
checking for --enable-richtext... yes                                                                         
checking for --enable-graphics_ctx... no                                                                      
checking for --enable-postscript... yes                                                                       
checking for --enable-printarch... yes                                                                        
checking for --enable-svg... yes                                                                              
checking for --enable-clipboard... yes                                                                        
checking for --enable-dnd... yes                                                                              
checking for --enable-metafile... yes                                                                         
checking for --disable-controls... yes                                                                        
checking for --enable-accel... yes                                                                            
checking for --enable-animatectrl... yes                                                                      
checking for --enable-bmpbutton... yes                                                                        
checking for --enable-bmpcombobox... yes                                                                      
checking for --enable-button... yes                                                                           
checking for --enable-calendar... yes                                                                         
checking for --enable-caret... yes                                                                            
checking for --enable-checkbox... yes                                                                         
checking for --enable-checklst... yes                                                                         
checking for --enable-choice... yes                                                                           
checking for --enable-choicebook... yes                                                                       
checking for --enable-collpane... yes                                                                         
checking for --enable-colourpicker... yes                                                                     
checking for --enable-combobox... yes                                                                         
checking for --enable-comboctrl... yes                                                                        
checking for --enable-dataviewctrl... yes                                                                     
checking for --enable-datepick... yes                                                                         
checking for --enable-detect_sm... yes                                                                        
checking for --enable-dirpicker... yes                                                                        
checking for --enable-display... yes                                                                          
checking for --enable-editablebox... yes                                                                      
checking for --enable-filectrl... yes                                                                         
checking for --enable-filepicker... yes                                                                       
checking for --enable-fontpicker... yes                                                                       
checking for --enable-gauge... yes                                                                            
checking for --enable-grid... yes                                                                             
checking for --enable-headerctrl... yes                                                                       
checking for --enable-hyperlink... yes                                                                        
checking for --enable-imaglist... yes                                                                         
checking for --enable-listbook... yes                                                                         
checking for --enable-listbox... yes                                                                          
checking for --enable-listctrl... yes                                                                         
checking for --enable-notebook... yes                                                                         
checking for --enable-notifmsg... yes                                                                         
checking for --enable-odcombobox... yes                                                                       
checking for --enable-popupwin... yes                                                                         
checking for --enable-radiobox... yes                                                                         
checking for --enable-radiobtn... yes                                                                         
checking for --enable-rearrangectrl... yes                                                                    
checking for --enable-sash... yes                                                                             
checking for --enable-scrollbar... yes                                                                        
checking for --enable-searchctrl... yes                                                                       
checking for --enable-slider... yes                                                                           
checking for --enable-spinbtn... yes                                                                          
checking for --enable-spinctrl... yes                                                                         
checking for --enable-splitter... yes                                                                         
checking for --enable-statbmp... yes                                                                          
checking for --enable-statbox... yes                                                                          
checking for --enable-statline... yes                                                                         
checking for --enable-stattext... yes                                                                         
checking for --enable-statusbar... yes                                                                        
checking for --enable-taskbaricon... yes                                                                      
checking for --enable-tbarnative... yes                                                                       
checking for --enable-textctrl... yes                                                                         
checking for --enable-tipwindow... yes                                                                        
checking for --enable-togglebtn... yes                                                                        
checking for --enable-toolbar... yes                                                                          
checking for --enable-toolbook... yes                                                                         
checking for --enable-treebook... yes                                                                         
checking for --enable-treectrl... yes                                                                         
checking for --enable-commondlg... yes                                                                        
checking for --enable-aboutdlg... yes                                                                         
checking for --enable-choicedlg... yes                                                                        
checking for --enable-coldlg... yes                                                                           
checking for --enable-filedlg... yes                                                                          
checking for --enable-finddlg... yes                                                                          
checking for --enable-fontdlg... yes                                                                          
checking for --enable-dirdlg... yes                                                                           
checking for --enable-msgdlg... yes                                                                           
checking for --enable-numberdlg... yes                                                                        
checking for --enable-splash... yes                                                                           
checking for --enable-textdlg... yes                                                                          
checking for --enable-tipdlg... yes                                                                           
checking for --enable-progressdlg... yes                                                                      
checking for --enable-wizarddlg... yes                                                                        
checking for --enable-menus... yes                                                                            
checking for --enable-miniframe... yes                                                                        
checking for --enable-tooltips... yes                                                                         
checking for --enable-splines... yes                                                                          
checking for --enable-mousewheel... yes                                                                       
checking for --enable-validators... yes                                                                       
checking for --enable-busyinfo... yes                                                                         
checking for --enable-joystick... yes                                                                         
checking for --enable-metafile... yes                                                                         
checking for --enable-dragimage... yes                                                                        
checking for --enable-accessibility... no                                                                     
checking for --enable-palette... yes                                                                          
checking for --enable-image... yes                                                                            
checking for --enable-gif... yes                                                                              
checking for --enable-pcx... no                                                                               
checking for --enable-tga... yes                                                                              
checking for --enable-iff... no                                                                               
checking for --enable-pnm... no                                                                               
checking for --enable-xpm... yes                                                                              
checking for --enable-ico_cur... yes                                                                          
checking for --enable-dccache... yes                                                                          
checking for --enable-ps-in-msw... yes                                                                        
checking for --enable-ownerdrawn... yes                                                                       
checking for --enable-uxtheme... yes                                                                          
checking for --enable-wxdib... yes                                                                            
checking for --enable-autoidman... no                                                                         
checking for gcc... gcc                                                                                       
checking for C compiler default output file name... a.out                                                     
checking whether the C compiler works... yes                                                                  
checking whether we are cross compiling... no                                                                 
checking for suffix of executables...                                                                         
checking for suffix of object files... o                                                                      
checking whether we are using the GNU C compiler... yes                                                       
checking whether gcc accepts -g... yes                                                                        
checking for gcc option to accept ISO C89... none needed                                                      
checking whether we are using the Intel C compiler... no                                                      
checking how to run the C preprocessor... gcc -E                                                              
checking for grep that handles long lines and -e... /bin/grep                                                 
checking for egrep... /bin/grep -E                                                                            
checking whether gcc needs -traditional... no                                                                 
checking for g++... g++                                                                                       
checking whether we are using the GNU C++ compiler... yes                                                     
checking whether g++ accepts -g... yes                                                                        
checking whether we are using the Intel C++ compiler... no                                                    
checking whether we are using the Sun C++ compiler... no                                                      
checking for ar... ar                                                                                         
checking for strcasecmp() in string.h... yes                                                                  
checking for ANSI C header files... yes                                                                       
checking for sys/types.h... yes                                                                               
checking for sys/stat.h... yes                                                                                
checking for stdlib.h... yes                                                                                  
checking for string.h... yes                                                                                  
checking for memory.h... yes                                                                                  
checking for strings.h... yes                                                                                 
checking for inttypes.h... yes                                                                                
checking for stdint.h... yes                                                                                  
checking for unistd.h... yes                                                                                  
checking for langinfo.h... yes                                                                                
checking for wchar.h... yes                                                                                   
checking for sys/select.h... yes                                                                              
checking for an ANSI C-conforming const... yes                                                                
checking for inline... inline                                                                                 
checking for short... yes                                                                                     
checking size of short... 2                                                                                   
checking for void *... yes                                                                                    
checking size of void *... 4                                                                                  
checking for int... yes                                                                                       
checking size of int... 4                                                                                     
checking for long... yes                                                                                      
checking size of long... 4                                                                                    
checking for size_t... yes                                                                                    
checking size of size_t... 4                                                                                  
checking for long long... yes                                                                                 
checking size of long long... 8                                                                               
checking for wchar_t... yes                                                                                   
checking size of wchar_t... 4                                                                                 
checking for va_copy... yes                                                                                   
checking whether the compiler supports variadic macros... yes                                                 
checking for _FILE_OFFSET_BITS value needed for large files... 64                                             
checking if large file support is available... yes                                                            
checking for _LARGEFILE_SOURCE value needed for large files... no                                             
checking whether byte ordering is bigendian... no                                                             
checking for iostream... yes                                                                                  
checking if C++ compiler supports the explicit keyword... yes                                                 
checking for std::wstring in <string>... yes                                                                  
checking for std::istream... yes                                                                              
checking for std::ostream... yes                                                                              
checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... yes                                    
checking for libraries directory... lib                                                                       
checking for glibc 2.1 or later... yes                                                                        
checking for cos... no                                                                                        
checking for floor... no                                                                                      
checking if floating point functions link without -lm... no                                                   
checking for sin... yes                                                                                       
checking for ceil... yes                                                                                      
checking if floating point functions link with -lm... yes                                                     
checking for strtoull... yes                                                                                  
checking for zlib.h >= 1.1.4... yes                                                                           
checking for zlib.h... (cached) yes                                                                           
checking for deflate in -lz... yes                                                                            
checking for png.h > 0.90... yes                                                                              
checking for png.h... (cached) yes                                                                            
checking for png_check_sig in -lpng... yes                                                                    
checking for jpeglib.h... yes                                                                                 
checking for jpeg_read_header in -ljpeg... yes                                                                
checking for expat.h... yes                                                                                   
checking if expat.h is valid C++ header... yes                                                                
checking for XML_ParserCreate in -lexpat... yes                                                               
checking for GTK+ version...                                                                                  
checking for pkg-config... /usr/bin/pkg-config                                                                
checking for GTK+ - version >= 2.4.0... yes (version 2.18.3)                                                  
checking if GTK+ is version >= 2.10... yes                                                                    
checking for X11/Xlib.h... yes                                                                                
checking for X11/XKBlib.h... yes                                                                              
checking for Xinerama... yes                                                                                  
checking for Xxf86vm extension... yes                                                                         
checking for X11/extensions/xf86vmode.h... yes                                                                
checking for -lSM - X11 session management... yes                                                             
checking for OpenGL headers... found in /usr/include                                                          
checking for GL/gl.h... yes                                                                                   
checking for GL/glu.h... yes                                                                                  
checking for -lGL... found in /usr/lib                                                                        
checking for -lGLU... yes                                                                                     
checking for mode_t... yes                                                                                    
checking for off_t... yes                                                                                     
checking for pid_t... yes                                                                                     
checking for size_t... (cached) yes                                                                           
checking for ssize_t... yes                                                                                   
checking if size_t is unsigned int... yes                                                                     
checking if wchar_t is separate type... yes                                                                   
checking for pw_gecos in struct passwd... yes                                                                 
checking for wcslen... yes                                                                                    
checking for wcsdup... yes                                                                                    
checking for strnlen... yes                                                                                   
checking for wcsnlen... yes                                                                                   
checking for wcscasecmp... yes                                                                                
checking for wcsncasecmp... yes                                                                               
checking for mbstate_t... yes                                                                                 
checking for wcsrtombs... yes                                                                                 
checking for snprintf... yes                                                                                  
checking for vsnprintf... yes                                                                                 
checking for vsscanf... yes                                                                                   
checking for vsnprintf declaration... yes                                                                     
checking if vsnprintf declaration is broken... no                                                             
checking for snprintf declaration... yes                                                                      
checking if snprintf supports positional arguments... yes                                                     
checking for vsscanf declaration... yes                                                                       
checking for putws... no                                                                                      
checking for fputws... yes                                                                                    
checking for wprintf... yes                                                                                   
checking for vswprintf... yes                                                                                 
checking for vswscanf... yes                                                                                  
checking for _vsnwprintf... no                                                                                
checking for fsync... yes                                                                                     
checking for round... yes                                                                                     
checking for iconv... yes                                                                                     
checking if iconv needs const... no                                                                           
checking for sigaction... yes                                                                                 
checking for sa_handler type... int                                                                           
checking for backtrace() in <execinfo.h>... yes                                                               
checking for __cxa_demangle() in <cxxabi.h>... yes                                                            
checking for mkstemp... yes                                                                                   
checking for statfs... yes                                                                                    
checking for statfs declaration... yes                                                                        
checking for fcntl... yes                                                                                     
checking for setenv... yes                                                                                    
checking for unsetenv... yes                                                                                  
checking for nanosleep... yes                                                                                 
checking for uname... yes                                                                                     
checking for strtok_r... yes                                                                                  
checking for inet_addr... yes                                                                                 
checking for inet_aton... yes                                                                                 
checking for fdopen... yes                                                                                    
checking for sysconf... yes                                                                                   
checking for getpwuid_r... yes                                                                                
checking for getgrgid_r... yes                                                                                
checking whether pthreads work with -pthread... yes                                                           
checking if more special flags are required for pthreads... no                                                
checking for thr_setconcurrency... no                                                                         
checking for pthread_cleanup_push/pop... yes                                                                  
checking for sched.h... yes                                                                                   
checking for sched_yield... yes                                                                               
checking for pthread_attr_getschedpolicy... yes                                                               
checking for pthread_attr_setschedparam... yes                                                                
checking for sched_get_priority_max... yes                                                                    
checking for pthread_cancel... yes                                                                            
checking for pthread_mutex_timedlock... yes                                                                   
checking for pthread_attr_setstacksize... yes                                                                 
checking for pthread_mutexattr_t... yes                                                                       
checking for pthread_mutexattr_settype declaration... yes                                                     
checking for __thread keyword... yes                                                                          
checking if gcc accepts -dumpversion option... yes                                                            
checking gxx version... 4.4.1                                                                                 
checking whether __thread support in g++ is usable... yes, it works                                           
checking for localtime_r... yes                                                                               
checking for gmtime_r... yes                                                                                  
checking how many arguments gethostbyname_r() takes... six                                                    
checking how many arguments getservbyname_r() takes... six                                                    
checking for dlopen... no                                                                                     
checking for dlopen in -ldl... yes                                                                            
checking for dlerror... no                                                                                    
checking for dlerror in -ldl... yes                                                                           
checking for SNDCTL_DSP_SPEED in sys/soundcard.h... yes                                                       
checking pkg-config is at least version 0.9.0... yes                                                          
checking for GTKPRINT... yes                                                                                  
checking for LIBGNOMEPRINTUI... configure: WARNING: libgnomeprintui not found, library will use standard PostScript printing                                                                                                
checking for locale_t... yes                                                                                  
checking for sys/epoll.h... yes                                                                               
checking for gettimeofday... yes                                                                              
checking whether gettimeofday takes two arguments... yes                                                      
checking for timezone variable in <time.h>... timezone                                                        
checking for localtime... yes                                                                                 
checking for tm_gmtoff in struct tm... yes                                                                    
checking for socket... yes                                                                                    
checking what is the type of the third argument of getsockname... socklen_t                                   
checking what is the type of the fifth argument of getsockopt... socklen_t                                    
checking for linux/joystick.h... yes                                                                          
configure: WARNING: wxMetafile is not available on this system... disabled                                    
checking for python... /usr/bin/python                                                                        
checking for GST... yes                                                                                       
checking CXXWARNINGS for gcc -Woverloaded-virtual... -Woverloaded-virtual                                     
checking for gcc precompiled header bug... no                                                                 
checking for ranlib... ranlib                                                                                 
checking for a BSD-compatible install... /usr/bin/install -c                                                  
checking whether ln -s works... yes                                                                           
checking whether make sets $(MAKE)... yes                                                                     
checking for ar... (cached) ar                                                                                
checking for strip... strip                                                                                   
checking for nm... nm                                                                                         
checking for command to install directories... /usr/bin/install -c -d                                         
checking if make is GNU make... yes                                                                           
checking for dependency tracking method... gcc                                                                
checking if the compiler supports precompiled headers... yes                                                  
checking whether make sets $(MAKE)... (cached) yes                                                            
checking for cppunit-config... no                                                                             
checking for Cppunit - version >= 1.8.0... no                                                                 
configure: creating ./config.status                                                                           
config.status: creating lib/wx/config/gtk2-unicode-debug-static-2.9                                           
config.status: creating lib/wx/config/inplace-gtk2-unicode-debug-static-2.9                                   
config.status: creating utils/ifacecheck/rungccxml.sh                                                         
config.status: creating Makefile                                                                              
config.status: creating utils/wxrc/Makefile                                                                   
config.status: creating utils/screenshotgen/Makefile                                                          
config.status: creating utils/screenshotgen/src/Makefile                                                      
config.status: creating utils/helpview/Makefile                                                               
config.status: creating utils/helpview/src/Makefile                                                           
config.status: creating utils/ifacecheck/src/Makefile                                                         
config.status: creating utils/Makefile                                                                        
config.status: creating utils/emulator/Makefile                                                               
config.status: creating utils/emulator/src/Makefile                                                           
config.status: creating utils/hhp2cached/Makefile                                                             
config.status: creating lib/wx/include/gtk2-unicode-debug-static-2.9/wx/setup.h                               
config.status: executing wx-config commands                                                                   

Configured wxWidgets 2.9.0 for `i686-pc-linux-gnu'

  Which GUI toolkit should wxWidgets use?                 GTK+ 2 with support for GTK+ printing
  Should wxWidgets be compiled into single library?       no                                   
  Should wxWidgets be compiled in debug mode?             yes                                  
  Should wxWidgets be linked as a shared library?         no                                   
  Should wxWidgets support Unicode?                       yes (using UTF-8)                    
  What level of wxWidgets compatibility should be enabled?                                     
                                       wxWidgets 2.6      no                                   
                                       wxWidgets 2.8      no                                   
  Which libraries should wxWidgets use?                                                        
                                       STL                no                                   
                                       jpeg               sys                                  
                                       png                sys                                  
                                       regex              builtin                              
                                       tiff               no                                   
                                       zlib               sys                                  
                                       expat              sys                                  
                                       libmspack          no                                   
                                       sdl                no                                   

os.chdir('/home/jiapei/Tools/Cafu-svn-20100129')
os.chdir('ExtLibs/wxWidgets/build-gtk_d')       
make                                   
....
g++ -o Libs/build/linux2/g++/debug/MaterialSystem/RendererCgARB1/RendererImpl.os -c -g -funsigned-char -Wall -Werror -Wno-char-subscripts -fPIC -DDEBUG -DSCONS_BUILD_DIR=build/linux2/g++/debug -ILibs -IExtLibs -IExtLibs/Cg/include Libs/MaterialSystem/RendererCgARB1/RendererImpl.cpp
Libs/MaterialSystem/RendererCgARB1/RendererImpl.cpp: In member function 'virtual void RendererImplT::BeginFrame(double)':
Libs/MaterialSystem/RendererCgARB1/RendererImpl.cpp:456: error: 'printf' was not declared in this scope
scons: *** [Libs/build/linux2/g++/debug/MaterialSystem/RendererCgARB1/RendererImpl.os] Error 1
scons: building terminated because of errors.
jiapei@jiapei-laptop:~/Tools/Cafu-svn-20100129$


Best Regards
JIA Pei
Welcome to Vision Open
http://www.visionopen.com
User avatar
Carsten
Site Admin
Posts:2170
Joined:2004-08-19, 13:46
Location:Germany
Contact:

Re: Cafu SVN compilation...

Post by Carsten » 2010-01-29, 20:30

Dear jiapei100,
I'm not quite sure whether scons is a good/popular tool, but it looks like CMake is a more convenient tool currently.
SCons is very good, and I don't doubt that CMake is very good as well. Unfortunately, I don't know CMake enough to make an "objective" judgment.

But your problems are not related to SCons anyway: ;-)
1) And, how can I specify my own packages using scons?

For example:
checking for --with-libtiff... no
In fact, I do have "libtiff4-dev" installed on my Ubuntu 9.10.
The configure run that you have posted is for compilation of wxWidgets library only, and this run was configured to not use libtiff intentionally, see the very top of the output:

Code: Select all

../configure --with-gtk --enable-debug --disable-shared --without-libtiff --disable-pnm --disable-pcx --disable-iff --with-opengl --with-regex=builtin --disable-compat26 --disable-compat28   
You can remove the --without-libtiff in the SConstruct file if you want to, but note that CaWE, which uses wxWidgets, doesn't load tiff files anyway (this is why I disabled it in the first place).
2) still some make errors on current SVN Cafu.
[...]

Code: Select all

Libs/MaterialSystem/RendererCgARB1/RendererImpl.cpp:456: error: 'printf' was not declared in this scope
I have to admit that I'm somewhat surprised. This is g++ 4.4.1 on 32-bit Ubuntu 9.10, right?

I'll check as soon as I'm back at my own Ubuntu 9.10 system later today, and will let you know when I have the fix immediately.
Thanks for the report! :up:
Best regards,
Carsten
User avatar
Carsten
Site Admin
Posts:2170
Joined:2004-08-19, 13:46
Location:Germany
Contact:

Re: Cafu SVN compilation...

Post by Carsten » 2010-01-30, 12:09

Hi jiapei100,

can you please try the following patch:

Code: Select all

Index: Libs/MaterialSystem/RendererCgARB1/RendererImpl.cpp
===================================================================
--- Libs/MaterialSystem/RendererCgARB1/RendererImpl.cpp	(Revision 41)
+++ Libs/MaterialSystem/RendererCgARB1/RendererImpl.cpp	(Arbeitskopie)
@@ -35,6 +35,7 @@
 #endif
 
 #include <math.h>
+#include <stdio.h>
 #include <stdlib.h>
 #include <GL/gl.h>
 #include <GL/glu.h>
that is, insert #include <stdio.h> as shown above?

I've also opened a ticket for this, http://trac.cafu.de/ticket/5
Please let me know if it works! :up:
Best regards,
Carsten
User avatar
Stephen
Posts:75
Joined:2006-05-01, 06:34
Location:Australia
Contact:

Re: Cafu SVN compilation...

Post by Stephen » 2010-01-30, 12:25

I've used Cmake before, and I didn't like it... You have to jump through hoops to do things that should be simple like using pkg-config...
User avatar
Carsten
Site Admin
Posts:2170
Joined:2004-08-19, 13:46
Location:Germany
Contact:

Re: Cafu SVN compilation...

Post by Carsten » 2010-02-01, 13:46

Hi jiapei100,
I tested this on my own Ubuntu 9.10 system, and committed the above patch that fixes the issue, see http://trac.cafu.de/ticket/5 for details. Please svn update and let us know if it works. :up:

Hi Stephen,
thanks for the feedback! What worries me about CMake is that when something goes wrong, it might be difficult to debug both the CMake files as well as the generated output Makefiles - that one might not be familiar with at all. And when something is wrong with the installed environment (as described in this thread), neither SCons nor CMake can do much - it must be fixed manually in the OS. 8)
Best regards,
Carsten
Post Reply

Who is online

Users browsing this forum: No registered users and 27 guests