Results 1 to 3 of 3

Thread: Problems compiling ClanLib 2.0.3 on Ubuntu 9.04

  1. #1

    Default Problems compiling ClanLib 2.0.3 on Ubuntu 9.04

    Hey there. First time poster here. I've become kinda frustrated trying to get ClanLib to install on my Ubuntu machine here. After making sure I had all the necessary dependencies, I am able to run autogen and configure perfectly. The problem arises when I run make, and I get this error right at the end:

    Code:
    libtool: compile:  g++ -DPACKAGE_NAME=\"ClanLib\" -DPACKAGE_TARNAME=\"clanlib\" -DPACKAGE_VERSION=\"2.0.3\" "-DPACKAGE_STRING=\"ClanLib 2.0.3\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"clanlib\" -DVERSION=\"2.0.3\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DSTDC_HEADERS=1 -DHAVE_STDBOOL_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_KD_H=1 -DHAVE_SYS_VT_H=1 -DHAVE_SYS_SYSCTL_H=1 -DUSE_I386_ASSEMBLER=1 -DHAVE_FSTAB_H=1 -DEXTERN___PROGNAME=1 -DHAVE_WCSCASECMP=1 -DHAVE_TLS=1 -DHAVE_LIBZ=1 -DHAVE_LINUX_JOYSTICK_H=1 -DHAVE_LINUX_INPUT_H=1 -DHAVE_ALSA_ASOUNDLIB_H=1 -DHAVE_X11_EXTENSIONS_XF86VMODE_H=1 -DHAVE_GLX_GETPROCADDRESSARB=1 -DHAVE_GLX_GETPROCADDRESSARB=1 -DHAVE_SYS_SOUNDCARD_H=1 -DHAVE_ALSA_ASOUNDLIB_H=1 -DUSE_GETADDR=1 -I. -g -O2 -I/usr/include/freetype2 -I../../Sources -MT sdl_graphic_context_provider.lo -MD -MP -MF .deps/sdl_graphic_context_provider.Tpo -c sdl_graphic_context_provider.cpp  -fPIC -DPIC -o .libs/sdl_graphic_context_provider.o                                                                                                                                                
    In file included from sdl_graphic_context_provider.cpp:45:                                                                                                       
    /usr/local/include/SDL/SDL_gfxPrimitives.h:17:17: error: SDL.h: No such file or directory                                                                        
    make[2]: *** [sdl_graphic_context_provider.lo] Error 1                                                                                                           
    make[2]: Leaving directory `/home/scott/Desktop/ClanLib-2.0.3/Sources/SDL'                                                                                       
    make[1]: *** [all-recursive] Error 1                                                                                                                             
    make[1]: Leaving directory `/home/scott/Desktop/ClanLib-2.0.3/Sources'                                                                                           
    make: *** [all-recursive] Error 1
    In addition, I tried running sudo make install just to see what would happen and I got a similar error message right at the end:

    Code:
    libtool: compile:  g++ -DPACKAGE_NAME=\"ClanLib\" -DPACKAGE_TARNAME=\"clanlib\" -DPACKAGE_VERSION=\"2.0.3\" "-DPACKAGE_STRING=\"ClanLib 2.0.3\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"clanlib\" -DVERSION=\"2.0.3\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DSTDC_HEADERS=1 -DHAVE_STDBOOL_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_KD_H=1 -DHAVE_SYS_VT_H=1 -DHAVE_SYS_SYSCTL_H=1 -DUSE_I386_ASSEMBLER=1 -DHAVE_FSTAB_H=1 -DEXTERN___PROGNAME=1 -DHAVE_WCSCASECMP=1 -DHAVE_TLS=1 -DHAVE_LIBZ=1 -DHAVE_LINUX_JOYSTICK_H=1 -DHAVE_LINUX_INPUT_H=1 -DHAVE_ALSA_ASOUNDLIB_H=1 -DHAVE_X11_EXTENSIONS_XF86VMODE_H=1 -DHAVE_GLX_GETPROCADDRESSARB=1 -DHAVE_GLX_GETPROCADDRESSARB=1 -DHAVE_SYS_SOUNDCARD_H=1 -DHAVE_ALSA_ASOUNDLIB_H=1 -DUSE_GETADDR=1 -I. -g -O2 -I/usr/include/freetype2 -I../../Sources -MT sdl_graphic_context_provider.lo -MD -MP -MF .deps/sdl_graphic_context_provider.Tpo -c sdl_graphic_context_provider.cpp  -fPIC -DPIC -o .libs/sdl_graphic_context_provider.o                                                                                                                                                
    In file included from sdl_graphic_context_provider.cpp:45:                                                                                                       
    /usr/local/include/SDL/SDL_gfxPrimitives.h:17:17: error: SDL.h: No such file or directory                                                                        
    make[2]: *** [sdl_graphic_context_provider.lo] Error 1                                                                                                           
    make[2]: Leaving directory `/home/scott/Desktop/ClanLib-2.0.3/Sources/SDL'                                                                                       
    make[1]: *** [install-recursive] Error 1                                                                                                                         
    make[1]: Leaving directory `/home/scott/Desktop/ClanLib-2.0.3/Sources'                                                                                           
    make: *** [install-recursive] Error 1
    Then, after all that I tried running the Basic2D make and it wouldn't compile at all. It spat this out:

    Code:
    scott@scott-laptop:~/Desktop/ClanLib-2.0.3/Examples/Basic2D$ make                                                                                           
    g++ `pkg-config --cflags clanApp-2.0 clanDisplay-2.0 clanCore-2.0 clanGL-2.0` -pthread -c basic2d.cpp -o basic2d.o                                          
    Package clanApp-2.0 was not found in the pkg-config search path.                                                                                            
    Perhaps you should add the directory containing `clanApp-2.0.pc'                                                                                            
    to the PKG_CONFIG_PATH environment variable                                                                                                                 
    No package 'clanApp-2.0' found                                                                                                                              
    Package clanDisplay-2.0 was not found in the pkg-config search path.                                                                                        
    Perhaps you should add the directory containing `clanDisplay-2.0.pc'                                                                                        
    to the PKG_CONFIG_PATH environment variable                                                                                                                 
    No package 'clanDisplay-2.0' found                                                                                                                          
    Package clanCore-2.0 was not found in the pkg-config search path.                                                                                           
    Perhaps you should add the directory containing `clanCore-2.0.pc'                                                                                           
    to the PKG_CONFIG_PATH environment variable                                                                                                                 
    No package 'clanCore-2.0' found                                                                                                                             
    Package clanGL-2.0 was not found in the pkg-config search path.                                                                                             
    Perhaps you should add the directory containing `clanGL-2.0.pc'                                                                                             
    to the PKG_CONFIG_PATH environment variable                                                                                                                 
    No package 'clanGL-2.0' found                                                                                                                               
    basic2d.cpp:1:26: error: ClanLib/core.h: No such file or directory                                                                                          
    basic2d.cpp:2:33: error: ClanLib/application.h: No such file or directory                                                                                   
    basic2d.cpp:3:29: error: ClanLib/display.h: No such file or directory                                                                                       
    basic2d.cpp:13:24: error: ClanLib/gl.h: No such file or directory                                                                                           
    basic2d.cpp:21: error: expected unqualified-id before ‘<’ token                                                                                             
    basic2d.cpp:21: error: expected ‘,’ or ‘...’ before ‘<’ token                                                                                               
    basic2d.cpp:24: error: expected ‘,’ or ‘...’ before ‘&’ token                                                                                               
    basic2d.cpp:24: error: ISO C++ forbids declaration of ‘CL_InputEvent’ with no type                                                                          
    basic2d.cpp:35: error: expected unqualified-id before ‘<’ token                                                                                             
    basic2d.cpp:35: error: expected ‘,’ or ‘...’ before ‘<’ token                                                                                               
    basic2d.cpp: In static member function ‘static int Program::main()’:                                                                                        
    basic2d.cpp:38: error: ‘CL_SetupCore’ was not declared in this scope                                                                                        
    basic2d.cpp:38: error: expected `;' before ‘setup_core’                                                                                                     
    basic2d.cpp:41: error: ‘CL_SetupDisplay’ was not declared in this scope                                                                                     
    basic2d.cpp:41: error: expected `;' before ‘setup_display’                                                                                                  
    basic2d.cpp:52: error: ‘CL_SetupGL’ was not declared in this scope                                                                                          
    basic2d.cpp:52: error: expected `;' before ‘setup_gl’                                                                                                       
    basic2d.cpp:57: error: ‘args’ was not declared in this scope                                                                                                
    basic2d.cpp: At global scope:                                                                                                                               
    basic2d.cpp:63: error: ‘CL_ClanApplication’ does not name a type                                                                                            
    basic2d.cpp:66: error: expected unqualified-id before ‘<’ token                                                                                             
    basic2d.cpp:66: error: expected ‘,’ or ‘...’ before ‘<’ token                                                                                               
    basic2d.cpp: In member function ‘int App::start()’:                                                                                                         
    basic2d.cpp:71: error: ‘CL_ConsoleWindow’ was not declared in this scope                                                                                    
    basic2d.cpp:71: error: expected `;' before ‘console’                                                                                                        
    basic2d.cpp:81: error: ‘CL_DisplayWindow’ was not declared in this scope                                                                                    
    basic2d.cpp:81: error: expected `;' before ‘window’                                                                                                         
    basic2d.cpp:84: error: ‘CL_Slot’ was not declared in this scope                                                                                             
    basic2d.cpp:84: error: expected `;' before ‘slot_quit’                                                                                                      
    basic2d.cpp:87: error: expected `;' before ‘slot_input_up’                                                                                                  
    basic2d.cpp:90: error: ‘CL_GraphicContext’ was not declared in this scope                                                                                   
    basic2d.cpp:90: error: expected `;' before ‘gc’                                                                                                             
    basic2d.cpp:93: error: ‘CL_Sprite’ was not declared in this scope                                                                                           
    basic2d.cpp:93: error: expected `;' before ‘spr_logo’                                                                                                       
    basic2d.cpp:104: error: ‘gc’ was not declared in this scope                                                                                                 
    basic2d.cpp:104: error: ‘CL_Colorf’ was not declared in this scope                                                                                          
    basic2d.cpp:112: error: ‘CL_Draw’ has not been declared                                                                                                     
    basic2d.cpp:113: error: ‘CL_Draw’ has not been declared                                                                                                     
    basic2d.cpp:118: error: ‘spr_logo’ was not declared in this scope                                                                                           
    basic2d.cpp:122: error: ‘CL_Rect’ was not declared in this scope
    basic2d.cpp:127: error: ‘CL_Draw’ has not been declared
    basic2d.cpp:127: error: ‘CL_Rectf’ was not declared in this scope
    basic2d.cpp:130: error: ‘CL_Draw’ has not been declared
    basic2d.cpp:131: error: ‘CL_Draw’ has not been declared
    basic2d.cpp:132: error: ‘CL_Draw’ has not been declared
    basic2d.cpp:133: error: ‘CL_Draw’ has not been declared
    basic2d.cpp:139: error: ‘CL_Draw’ has not been declared
    basic2d.cpp:139: error: ‘CL_Sizef’ was not declared in this scope
    basic2d.cpp:142: error: ‘CL_Draw’ has not been declared
    basic2d.cpp:148: error: ‘window’ was not declared in this scope
    basic2d.cpp:151: error: ‘CL_DisplayMessageQueue’ has not been declared
    basic2d.cpp:154: error: expected type-specifier before ‘CL_Exception’
    basic2d.cpp:154: error: expected `)' before ‘&’ token
    basic2d.cpp:154: error: expected `{' before ‘&’ token
    basic2d.cpp:154: error: ‘exception’ was not declared in this scope
    basic2d.cpp:154: error: expected `;' before ‘)’ token
    basic2d.cpp:191: error: expected `}' at end of input
    make: *** [basic2d.o] Error 1
    All in all, I've found this issue particularly frustrating, but I would like to resolve it since I'd like to take a crack at Novashell. Can anyone help out?

  2. #2
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    Disable SDL

    ./configure --enable-debug --disable-clanSDL

    For some reason, the SDL development package is not installed on your machine as expected

    SDL target should only be used for pc's without OpenGL and without a processor capable of SSE2 instructions.

    However... as far as I know, Novashell uses ClanLib 1.0, not ClanLib 2.0

  3. #3

    Default

    Ok thanks, I'll try that.

    The reason I'm using 2.0.3 is because that's the latest version offered at the link provided from the Novashell site, so i figured that's the one I was supposed to use.

    *EDIT* Ok my bad... I didn't realize it says to use ClanLib 1.0 - so is it basically the same process to install 1.0 as 2.0.3?

Similar Threads

  1. compiling docs on Ubuntu 8.10
    By alpharesearch in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 01-23-2009, 10:16 PM
  2. compiling clanlib error on ubuntu
    By macdoogle in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 01-08-2009, 01:27 PM
  3. Compiling Novashell from SVN checkout Ubuntu 8.10
    By rgrwkmn in forum Novashell Game Creation System
    Replies: 0
    Last Post: 12-21-2008, 08:18 AM
  4. Make problems on Linux (Ubuntu)
    By happybrowndog in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 12-11-2008, 08:12 AM
  5. Problems in Ubuntu Gutsy Gibon
    By Starclopsofish in forum Novashell Game Creation System
    Replies: 4
    Last Post: 02-16-2008, 06:52 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •