Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 08/04/2006, à 20:12

alexises

problaime de compilation

je n'arrive pas a compiler un programme

je me place dans le dossier te je tape ./configure

et j'ai un message d'éreur

alexises@ubuntu:~/Desktop/ark-0.1.4$ ./configure --with-lua-inc=/usr/include/lua40.
loading cache ./config.cache
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
checking whether make sets ${MAKE}... no
checking for working aclocal-1.4... missing
checking for working autoconf... missing
checking for working automake-1.4... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking whether to enable maintainer-specific portions of Makefiles... no

Checking for programs...
-----------------------
checking for a BSD compatible install... /usr/bin/install -c
checking whether make sets ${MAKE}... (cached) no
checking for c++... c++
checking whether the C++ compiler (c++  ) works... yes
checking whether the C++ compiler (c++  ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for Cygwin environment... no
checking for mingw32 environment... no
checking how to run the C preprocessor... gcc -E
checking build system type... i686-pc-linux-gnu
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking for a sed that does not truncate output... /bin/sed
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking for object suffix... o
checking for executable suffix... no
checking command to parse /usr/bin/nm -B output... ok
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
checking whether -lc should be explicitly linked in... no
creating libtool
checking whether ln -s works... (cached) yes

Checking for  headers...
-----------------------
checking for ANSI C header files... yes
checking for signal.h... yes
checking for errno.h... yes
checking for unistd.h... yes
checking for sys/time.h... yes
checking for time.h... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for fcntl.h... yes
checking for dirent.h... yes
checking for zlib.h... yes
checking for png.h... yes
checking for jpeglib.h... yes
-g -O2 -I/usr/include/lua40.
checking for lua.h... no
configure: error: Please install the lua headers before trying to install Arkhart. If you're using a linux distribution install the liblua-devel package. Under Debian you have to call configure with --with-lua-inc=/usr/include/lua40.
alexises@ubuntu:~/Desktop/ark-0.1.4$

voila la sorti du terminal

a j'oublier le read me

=============================================================================

                     THE ARK DISTRIBUTION
                   " Ark Roleplaying Kernel "

          Copyright (C) 1999-2000 Contributors of the Ark project
      Please have look at the "AUTHORS" file for a list of contributors.

==============================================================================


------------------------------------------------------------------------------
1. License (or "Legal Stuff")
------------------------------------------------------------------------------

This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later
version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
A PARTICULAR PURPOSE.  See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with
this program; if not, write to:

	Free Software Foundation, Inc.
	59 Temple Place, Suite 330
	Boston, MA 02111-1307 USA

See file COPYING for license details.


------------------------------------------------------------------------------
2. Goals
------------------------------------------------------------------------------

	The first goal of the Ark libraries and associated
programs is to create a powerful and flexible framework to create
(networked/single player) role playing games, without having to write a
single line of C++.

	All the user has to do is to create game data (models, textures,
world), and define the behaviour NPCs, in Lua. The engine contains a full
outdoor 3D engine, with support for skeletal animation, and triangle-
accurate collision detection. It also contains tools to create world and
quests, and loaders for the most common low-polygon 3D formats. 

------------------------------------------------------------------------------
3. Playing !
------------------------------------------------------------------------------

The keybindings are : 

  [up, down, right, left]                     moves the player
  [mouse click]                               speaks, picks up an object, reads..
  [tab]                                       switches the camera to manual mode
  [moving the mouse to a screen side]         in manual mode, moves the camera 
  [mousewheel]                                zooms
  [Page Down / Page Up]	                      changes the camera height
  [F10 / F11]                                 changes the gamma 
  [F12]                                       screenshot (in ~/shotX.tga)
  [ESC]                                       come back to the game menu

Options : You can change the screen resolution in ~/.arkhart/arkrenderer.cfg ; 
to run the client fullscreen, just type ./Client/arkclient --fullscreen 

------------------------------------------------------------------------------
4. Troubleshooting
------------------------------------------------------------------------------

Be sure you have followed _all_ the instructions of the INSTALL ; especially
check that you have run both install.sh scripts (you might want to edit
~/arkhart/*.cfg to check).

------------------------------------------------------------------------------
5. Can I help ?
------------------------------------------------------------------------------

	Sure, you're welcome to give us any help you can. Take a look at the
NEWS file to know what is already implemented ; there is a TODO for the
project, but it isn't really up-to-date. Anyway, you should definitely
contact us at staff@nekeme.net

------------------------------------------------------------------------------

Dernière modification par alexises (Le 08/04/2006, à 20:15)


/!\ aveugle ne pas matraquer /!\
¨¨¨                                       ¨¨¨

il est ou le bouton poster ?

Hors ligne

#2 Le 09/04/2006, à 12:59

Noé

Re : problaime de compilation

sudo apt-get install liblua50-dev liblualib50-dev


dotdotno ou Phlogistique sur IRC
Jabber : noe.rubinstein CHEZ fritalk.com

Hors ligne

#3 Le 09/04/2006, à 16:21

alexises

Re : problaime de compilation

merci j'ai eu des problaime de place que j'ai résolu donc n reprend maintenent avec un problaime de opengl

Checking for libraries...
-----------------------
checking for X... no
checking for sdl-config... no
checking for SDL - version >= 1.2.0... no
*** The sdl-config script installed by SDL could not be found
*** If SDL was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the SDL_CONFIG environment variable to the
*** full path to sdl-config.

Checking for OpenGL library...
checking for GL/gl.h... yes
checking for glNewList in -lGL... no
libGL not found, checking for libMesaGL...
checking for glNewList in -lMesaGL... no
libMesaGL not found, checking for opengl32...
checking for main in -lopengl32... no
configure: error: GL library was not found
alexises@ubuntu:~/Desktop/ark-0.1.4$


/!\ aveugle ne pas matraquer /!\
¨¨¨                                       ¨¨¨

il est ou le bouton poster ?

Hors ligne

#4 Le 09/04/2006, à 18:27

alexises

Re : problaime de compilation

alexises@ubuntu:~/Desktop/ark-0.1.4$ make
make  all-recursive
make[1]: entrant dans le répertoire « /home/alexises/Desktop/ark-0.1.4 »
Making all in libltdl
make[2]: entrant dans le répertoire « /home/alexises/Desktop/ark-0.1.4/libltdl »/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -c ltdl.c
rm -f .libs/ltdl.lo
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c ltdl.c     -fPIC -DPIC -o .libs/ltdl.lo
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c ltdl.c -o ltdl.o >/dev/null 2>&1
mv -f .libs/ltdl.lo ltdl.lo
/bin/sh ./libtool --mode=link gcc  -g -O2  -o libltdlc.la   ltdl.lo -ldl
rm -fr .libs/libltdlc.la .libs/libltdlc.* .libs/libltdlc.*
ar cru .libs/libltdlc.al ltdl.lo
ranlib .libs/libltdlc.al
creating libltdlc.la
(cd .libs && rm -f libltdlc.la && ln -s ../libltdlc.la libltdlc.la)
make[2]: quittant le répertoire « /home/alexises/Desktop/ark-0.1.4/libltdl »
Making all in Ark
make[2]: entrant dans le répertoire « /home/alexises/Desktop/ark-0.1.4/Ark »
/bin/sh ../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I.. -I../libltdl    -g -O2 -Wall -fno-exceptions -g -O1 -c ArkCache.cpp
rm -f .libs/ArkCache.lo
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I../libltdl -g -O2 -Wall -fno-exceptions -g -O1 -c ArkCache.cpp    -fPIC -DPIC -o .libs/ArkCache.lo
../Ark/ArkObject.h:99: error: 'Cache' has not been declared
../Ark/ArkObject.h:107: error: 'Cache' has not been declared
../Ark/ArkSkeleton.h:131: error: ISO C++ forbids declaration of 'Cache' with no type
../Ark/ArkSkeleton.h:131: error: expected ';' before '*' token
../Ark/ArkSkeleton.h:134: error: 'Cache' has not been declared
../Ark/ArkModel.h:71: error: ISO C++ forbids declaration of 'ModelBuilder' with no type
../Ark/ArkModel.h:71: error: expected ';' before '*' token
../Ark/ArkModel.h:108: error: ISO C++ forbids declaration of 'ModelBuilder' with no type
../Ark/ArkModel.h:108: error: expected ';' before '*' token
../Ark/ArkLoader.h:37: warning: 'class Ark::Progress' has virtual functions but non-virtual destructor
ArkCache.cpp: In member function 'virtual Ark::Object* Ark::Cache::LoadObject(Ark::ObjectType, const Ark::String&)':
ArkCache.cpp:240: error: no matching function for call to 'Ark::Object::Load(Ark::Cache* const, const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)'
../Ark/ArkObject.h:99: note: candidates are: virtual bool Ark::Object::Load(int*, const Ark::String&)
ArkCache.cpp:256: error: no matching function for call to 'Ark::Object::PostLoad(Ark::Cache* const)'
../Ark/ArkObject.h:107: note: candidates are: virtual bool Ark::Object::PostLoad(int*)
make[2]: *** [ArkCache.lo] Erreur 1
make[2]: quittant le répertoire « /home/alexises/Desktop/ark-0.1.4/Ark »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /home/alexises/Desktop/ark-0.1.4 »
make: *** [all-recursive-am] Erreur 2
alexises@ubuntu:~/Desktop/ark-0.1.4$

j'ai résolu le problaime de ./configure donc on passe à make


/!\ aveugle ne pas matraquer /!\
¨¨¨                                       ¨¨¨

il est ou le bouton poster ?

Hors ligne

#5 Le 09/04/2006, à 18:39

Donk

Re : problaime de compilation

As tu fait ceci?

------------------------------------------------------------------------------
4. Troubleshooting
------------------------------------------------------------------------------

Be sure you have followed _all_ the instructions of the INSTALL ; especially
check that you have run both install.sh scripts (you might want to edit
~/arkhart/*.cfg to check).

Hors ligne

#6 Le 13/04/2006, à 17:58

zedtux

Re : problaime de compilation

Moi je croix que déjà faut résoudre ca :

checking whether make sets ${MAKE}... no
checking for working aclocal-1.4... missing
checking for working autoconf... missing
checking for working automake-1.4... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking whether to enable maintainer-specific portions of Makefiles... no

RECOLLER VOS FICHIERS XTM AVEC TUXTREMSPLIT !!
Adhérant April numéro 4985 [Rejoindre l'April moi aussi !].

Hors ligne

#7 Le 01/05/2006, à 15:37

alexises

Re : problaime de compilation

j'ai compris c ma version de gcc qui est trop récente j'utilise a 4.2
il faut que j'utilise la 3.4 mais comment ???
je l'ai installé mais sa na marche pas


/!\ aveugle ne pas matraquer /!\
¨¨¨                                       ¨¨¨

il est ou le bouton poster ?

Hors ligne

#8 Le 01/05/2006, à 16:13

benohite

Re : problaime de compilation

Ca ne marche pas le lien /usr/bin/gcc pointe vers la derniere version (ici 4.2).
Pour utiliser ponctuellement la version 3.4, tu peux passer par les variables d'environnement:

export CC=/usr/bin/gcc-3.4

Ceci sera valable tant que tu ne fermeras pas ton terminal.


You are legally entitled and encouraged to copy, share and redistribute this CD for yourself and your friends. Share the spirit of Ubuntu !

Hors ligne

#9 Le 01/05/2006, à 16:36

alexises

Re : problaime de compilation

et ensuite je compile normalement c ca ???


/!\ aveugle ne pas matraquer /!\
¨¨¨                                       ¨¨¨

il est ou le bouton poster ?

Hors ligne

#10 Le 16/11/2006, à 09:18

korbine

Re : problaime de compilation

alexises a écrit :

j'ai compris c ma version de gcc qui est trop récente j'utilise a 4.2

euh... tu pourrais nous dire où trouver cette version 4.2 de gcc ?

Je viens de trouver ce site : http://ftp.debian.org/debian/pool/main/g/gcc-4.2/ , je vais tester ça ce soir ...

Dernière modification par korbine (Le 16/11/2006, à 10:53)


Ubuntu 22.04 Mate. Je suis bien conscient que mes problèmes en informatique se trouvent le plus souvent entre le fauteuil et le clavier.

Hors ligne