project-navigation
Personal tools

Author Topic: can't install on new comp  (Read 3620 times)

Offline dangermouse

  • Rookie
  • ***
  • Posts: 17
    • View Profile
can't install on new comp
« on: February 22, 2010, 11:32:04 am »
just got a new comp, and moved my ufoai folder over to it. then...

svn up and installed all of the developer crap, ./configure, make, make lang and make maps.

make has the following error:

Code: [Select]
In file included from src/client/renderer/r_image.c:28:
src/client/renderer/../../shared/images.h:32:23: error: SDL_image.h: No such file or directory
make: *** [debug-linux-gnu-i386/client/client/renderer/r_image.o] Error 1

and make maps:

Code: [Select]
luke@luke-desktop:~/ufoai3/trunk$ time make maps -j4
 * [MAP] src/tools/ufo2map/patches.c
 * [MAP] src/shared/images.c
 * [MAP] src/shared/entitiesdef.c
 * [MAP] src/common/files.c
In file included from src/shared/images.c:27:
src/shared/images.h:32:23: error: SDL_image.h: No such file or directory
In file included from src/shared/images.c:27:
src/shared/images.h:34: error: expected declaration specifiers or ‘...’ before ‘SDL_Surface’
src/shared/images.c:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘format’
src/shared/images.c:291: error: expected declaration specifiers or ‘...’ before ‘SDL_Surface’
src/shared/images.c: In function ‘Img_LoadTypedImage’:
src/shared/images.c:296: error: ‘SDL_RWops’ undeclared (first use in this function)
src/shared/images.c:296: error: (Each undeclared identifier is reported only once
src/shared/images.c:296: error: for each function it appears in.)
src/shared/images.c:296: error: ‘rw’ undeclared (first use in this function)
src/shared/images.c:297: error: ‘SDL_Surface’ undeclared (first use in this function)
src/shared/images.c:297: error: ‘s’ undeclared (first use in this function)
src/shared/images.c:304: warning: implicit declaration of function ‘SDL_RWFromMem’
src/shared/images.c:309: error: ‘surf’ undeclared (first use in this function)
src/shared/images.c:309: warning: implicit declaration of function ‘IMG_LoadTyped_RW’
src/shared/images.c:310: warning: implicit declaration of function ‘SDL_FreeRW’
src/shared/images.c:318: warning: implicit declaration of function ‘SDL_ConvertSurface’
src/shared/images.c:318: error: ‘format’ undeclared (first use in this function)
src/shared/images.c:319: warning: implicit declaration of function ‘SDL_FreeSurface’
src/shared/images.c: At top level:
src/shared/images.c:336: error: expected declaration specifiers or ‘...’ before ‘SDL_Surface’
src/shared/images.c: In function ‘Img_LoadImage’:
src/shared/images.c:342: error: ‘surf’ undeclared (first use in this function)
src/shared/images.c:342: error: too many arguments to function ‘Img_LoadTypedImage’
make: *** [debug-linux-gnu-i386/tools/ufo2map/shared/images.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from src/tools/ufo2map/patches.c:27:
src/tools/ufo2map/../../shared/images.h:32:23: error: SDL_image.h: No such file or directory
In file included from src/tools/ufo2map/patches.c:27:
src/tools/ufo2map/../../shared/images.h:34: error: expected declaration specifiers or ‘...’ before ‘SDL_Surface’
src/tools/ufo2map/patches.c: In function ‘CalcTextureReflectivity’:
src/tools/ufo2map/patches.c:43: error: ‘SDL_Surface’ undeclared (first use in this function)
src/tools/ufo2map/patches.c:43: error: (Each undeclared identifier is reported only once
src/tools/ufo2map/patches.c:43: error: for each function it appears in.)
src/tools/ufo2map/patches.c:43: error: ‘surf’ undeclared (first use in this function)
src/tools/ufo2map/patches.c:63: error: too many arguments to function ‘Img_LoadImage’
src/tools/ufo2map/patches.c:82: warning: implicit declaration of function ‘SDL_FreeSurface’
make: *** [debug-linux-gnu-i386/tools/ufo2map/tools/ufo2map/patches.o] Error 1

real 0m0.850s
user 0m0.890s
sys 0m0.170s

i'm running amd64, 3core




Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: can't install on new comp
« Reply #1 on: February 22, 2010, 01:21:10 pm »
SDL_image.h: No such file or directory

i suppose you should install it ;)

Offline dangermouse

  • Rookie
  • ***
  • Posts: 17
    • View Profile
Re: can't install on new comp
« Reply #2 on: February 22, 2010, 03:48:30 pm »
Code: [Select]
luke@luke-desktop:~$ sudo apt-get install libsdl-dev
[sudo] password for luke:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
注意,选取 libsdl1.2-dev 而非 libsdl-dev
libsdl1.2-dev 已经是最新的版本了。
共升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件未被升级。

this is the one you mean isn't it? it says that i've already got it

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: can't install on new comp
« Reply #3 on: February 22, 2010, 04:38:34 pm »
libsdl-image1.2-dev on Debians and Ubuntus.

-geever

Offline dangermouse

  • Rookie
  • ***
  • Posts: 17
    • View Profile
Re: can't install on new comp
« Reply #4 on: February 22, 2010, 04:46:10 pm »
just found it at exactly the same time, just did a search for it on the compile wiki page and it didn't come up, which would be why i was so confused.

thanks a lot everyone