Problem pri kompajliranju

Diskusije usko vezane uz Ubuntu i srodne distribucije (Kubuntu, Xubuntu, Lubuntu, LinuxMint...)

Moderator/ica: Moderatori/ce

Odgovori
DragonSoul
Postovi: 69
Pridružen/a: 02 vel 2008, 19:45
OS: Win7/Ubuntu 9.10
Lokacija: /dev /null

Problem pri kompajliranju

Post Postao/la DragonSoul »

Kad pokušam kompajlirati ViusalBoy Advance javi mi grešku "configure: error: *** Cannot compile without libpng." Nigdje ne mogu naći taj zlib. Gdje mogu to downloadati?
Avatar
Sokac
Site Admin
Postovi: 1120
Pridružen/a: 11 pro 2007, 23:33
Spol: M
OS: Archlinux
Lokacija: San Francisco
Kontakt:

Re: Problem pri kompajliranju

Post Postao/la Sokac »

probaj skiniti ovo:

Kod: Označi sve

sudo apt-get install libpng12-dev
pa probaj opet... i kopiraj sve što dobiješ u terminalu od provjere libpng pa do kraja
DragonSoul
Postovi: 69
Pridružen/a: 02 vel 2008, 19:45
OS: Win7/Ubuntu 9.10
Lokacija: /dev /null

Re: Problem pri kompajliranju

Post Postao/la DragonSoul »

Kod: Označi sve

chmod: changing permissions of `conf11581.sh': Operation not permitted
chmod: changing permissions of `conf11581.sh': Operation not permitted
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/bin/bash: /media/sda6/Linux/Novi: No such file or directory
configure: WARNING: `missing' script is too old or missing
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
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 ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for bison... no
checking for byacc... no
checking for flex... no
checking for lex... no
checking for yywrap in -lfl... no
checking for yywrap in -ll... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for ranlib... ranlib
checking for nasm... no
checking for gzopen in -lz... yes
checking for png_create_write_struct in -lpng... no
configure: error: *** Cannot compile without libpng.
denis@denis-desktop:/media/sda6/Linux/Novi paketi za linux/VisualBoyAdvance-1.7.2$ ./configure
chmod: changing permissions of `conf12565.sh': Operation not permitted
chmod: changing permissions of `conf12565.sh': Operation not permitted
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/bin/bash: /media/sda6/Linux/Novi: No such file or directory
configure: WARNING: `missing' script is too old or missing
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
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 ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for bison... no
checking for byacc... no
checking for flex... no
checking for lex... no
checking for yywrap in -lfl... no
checking for yywrap in -ll... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for ranlib... ranlib
checking for nasm... no
checking for gzopen in -lz... yes
checking for png_create_write_struct in -lpng... yes
checking for pthread_yield in -lpthread... yes
checking how to run the C preprocessor... gcc -E
checking for X... no
checking for egrep... grep -E
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 malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for strings.h... (cached) yes
checking for unistd.h... (cached) yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking zutil.h usability... no
checking zutil.h presence... no
checking for zutil.h... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for socklen_t... yes
checking whether byte ordering is bigendian... no
configure: error: *** Couldn't find nasm program.
Evo, sad mi kaže za configure: error: *** Couldn't find SDL library (version >= 1.2.2)..
Avatar
Grof
Site Admin
Postovi: 9954
Pridružen/a: 04 pro 2007, 08:00
Lokacija: Zagreb

Re: Problem pri kompajliranju

Post Postao/la Grof »

Da, pokušaj pronaći negdje u readme datoteci ili negdje drugdje, možda na stranici od kuda si to skinuo, koje su ovisnosti (depndencies), tako da od jednom sve poskidaš što ti treba.. ;)
Avatar
Sokac
Site Admin
Postovi: 1120
Pridružen/a: 11 pro 2007, 23:33
Spol: M
OS: Archlinux
Lokacija: San Francisco
Kontakt:

Re: Problem pri kompajliranju

Post Postao/la Sokac »

sudo apt-get install nasm libsdl1.2-dev
ovo iznad sigurno, možda će te još tražiti nešto od dolje navedenog. baš sam danas instalirao sestri super mario clone - trebao mi je SDL :)
libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ocaml-dev libsdl-pango-dev libsdl-sge-dev libsdl-sound1.2-dev libsdl-stretch-dev libsdl-ttf2.0-dev

Ukoliko bude error, a ne skužiš što trebaš skiniti - poskidaj sve il postaj opet na forumu ;)
Odgovori