par Meka » 05 nov. 2017, 12:49
Bonjour,
je tente de compiler le jeu depuis Ubuntu 17.10, et les sources 1.9.0
Je pense avoir un peu avancé sur cela, bien qu'étant très novice, mais il me manque encore un petit quelque chose que je ne parviens pas à identifier.
J'ai installé les lib recommandées, avec quelques doutes autour de la libpng12 qu'il fallait changer
La compilation me renvoie le texte suivant, et je ne m'en sors pas:
CXX item_lists.o
In file included from eye_candy_wrapper.h:23:0,
from text.h:12,
from item_lists.cpp:28:
eye_candy/eye_candy.h
9: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
std::auto_ptr<el::HardwareBuffer> index_buffer;
^~~~~~~~
In file included from /usr/include/c++/7/memory:80:0,
from eye_candy/eye_candy.h:131,
from eye_candy_wrapper.h:23,
from text.h:12,
from item_lists.cpp:28:
/usr/include/c++/7/bits/unique_ptr.h:51:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
item_lists.cpp: In member function ‘void ItemLists::List_Container::check_and_timed_save(bool)’:
item_lists.cpp:791:68: error: call of overloaded ‘abs(Uint32)’ is ambiguous
if (force || (last_mod_time && abs(last_mod_time - SDL_GetTicks()) > 5000))
^
In file included from /usr/include/c++/7/cstdlib:75:0,
from /usr/include/c++/7/ext/string_conversions.h:41,
from /usr/include/c++/7/bits/basic_string.h:6349,
from /usr/include/c++/7/string:52,
from item_lists.cpp:20:
/usr/include/stdlib.h:722:12: note: candidate: int abs(int)
extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
^~~
In file included from /usr/include/c++/7/cstdlib:77:0,
from /usr/include/c++/7/ext/string_conversions.h:41,
from /usr/include/c++/7/bits/basic_string.h:6349,
from /usr/include/c++/7/string:52,
from item_lists.cpp:20:
/usr/include/c++/7/bits/std_abs.h:56:3: note: candidate: long int std::abs(long int)
abs(long __i) { return __builtin_labs(__i); }
^~~
/usr/include/c++/7/bits/std_abs.h:61:3: note: candidate: long long int std::abs(long long int)
abs(long long __x) { return __builtin_llabs (__x); }
^~~
/usr/include/c++/7/bits/std_abs.h:70:3: note: candidate: constexpr double std::abs(double)
abs(double __x)
^~~
/usr/include/c++/7/bits/std_abs.h:74:3: note: candidate: constexpr float std::abs(float)
abs(float __x)
^~~
/usr/include/c++/7/bits/std_abs.h:78:3: note: candidate: constexpr long double std::abs(long double)
abs(long double __x)
^~~
/usr/include/c++/7/bits/std_abs.h:84:3: note: candidate: constexpr __int128 std::abs(__int128)
abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
^~~
/usr/include/c++/7/bits/std_abs.h:102:3: note: candidate: constexpr __float128 std::abs(__float128)
abs(__float128 __x)
^~~
Makefile.linux:147 : la recette pour la cible « item_lists.o » a échouée
make: *** [item_lists.o] Erreur 1
Puis-je me permettre de solliciter votre aide ?
Merci !
Bonjour,
je tente de compiler le jeu depuis Ubuntu 17.10, et les sources 1.9.0
Je pense avoir un peu avancé sur cela, bien qu'étant très novice, mais il me manque encore un petit quelque chose que je ne parviens pas à identifier.
J'ai installé les lib recommandées, avec quelques doutes autour de la libpng12 qu'il fallait changer
La compilation me renvoie le texte suivant, et je ne m'en sors pas:
[size=85] CXX item_lists.o
In file included from eye_candy_wrapper.h:23:0,
from text.h:12,
from item_lists.cpp:28:
eye_candy/eye_candy.h:2208:9: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
std::auto_ptr<el::HardwareBuffer> index_buffer;
^~~~~~~~
In file included from /usr/include/c++/7/memory:80:0,
from eye_candy/eye_candy.h:131,
from eye_candy_wrapper.h:23,
from text.h:12,
from item_lists.cpp:28:
/usr/include/c++/7/bits/unique_ptr.h:51:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
item_lists.cpp: In member function ‘void ItemLists::List_Container::check_and_timed_save(bool)’:
item_lists.cpp:791:68: error: call of overloaded ‘abs(Uint32)’ is ambiguous
if (force || (last_mod_time && abs(last_mod_time - SDL_GetTicks()) > 5000))
^
In file included from /usr/include/c++/7/cstdlib:75:0,
from /usr/include/c++/7/ext/string_conversions.h:41,
from /usr/include/c++/7/bits/basic_string.h:6349,
from /usr/include/c++/7/string:52,
from item_lists.cpp:20:
/usr/include/stdlib.h:722:12: note: candidate: int abs(int)
extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
^~~
In file included from /usr/include/c++/7/cstdlib:77:0,
from /usr/include/c++/7/ext/string_conversions.h:41,
from /usr/include/c++/7/bits/basic_string.h:6349,
from /usr/include/c++/7/string:52,
from item_lists.cpp:20:
/usr/include/c++/7/bits/std_abs.h:56:3: note: candidate: long int std::abs(long int)
abs(long __i) { return __builtin_labs(__i); }
^~~
/usr/include/c++/7/bits/std_abs.h:61:3: note: candidate: long long int std::abs(long long int)
abs(long long __x) { return __builtin_llabs (__x); }
^~~
/usr/include/c++/7/bits/std_abs.h:70:3: note: candidate: constexpr double std::abs(double)
abs(double __x)
^~~
/usr/include/c++/7/bits/std_abs.h:74:3: note: candidate: constexpr float std::abs(float)
abs(float __x)
^~~
/usr/include/c++/7/bits/std_abs.h:78:3: note: candidate: constexpr long double std::abs(long double)
abs(long double __x)
^~~
/usr/include/c++/7/bits/std_abs.h:84:3: note: candidate: constexpr __int128 std::abs(__int128)
abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
^~~
/usr/include/c++/7/bits/std_abs.h:102:3: note: candidate: constexpr __float128 std::abs(__float128)
abs(__float128 __x)
^~~
Makefile.linux:147 : la recette pour la cible « item_lists.o » a échouée
make: *** [item_lists.o] Erreur 1[/size]
[color=#0040FF]Puis-je me permettre de solliciter votre aide ?
Merci ![/color]