Iris2.de

Iris2-Forum
It is currently Thu Mar 28, 2024 11:59 am

All times are UTC




Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Wed Jul 30, 2008 1:00 am 
Offline
Power User
User avatar

Joined: Thu Jun 10, 2004 4:01 pm
Posts: 152
Location: Brasil
I am using OpenSuSE 11 and trying to compile trunk version of iris2.
When building caelumlib I get warning at every file. The warning is:
Code:
/usr/include/c++/4.3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.

And at end I get an error. Look:
Code:
lugre/src/lugre_spritelist.cpp: In member function ‘virtual void Lugre::cRobRenderable2D::Render(Lugre::cRenderManager2D&, const Ogre::Vector3&)’:
lugre/src/lugre_spritelist.cpp:330: error: cast from ‘Ogre::IndexData*’ to ‘int’ loses precision

_________________
Please, they answer to my questions in Portuguese or the formal English, therefore I use google to translate them.

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 30, 2008 3:02 am 
Offline
iris2-developer
User avatar

Joined: Tue Apr 18, 2006 10:28 pm
Posts: 823
Location: Munich, Bavaria, Germany
i changed the line, please update and try again
(update the lugre folder as well, it's included via svn:external)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 30, 2008 3:42 am 
Offline
Power User
User avatar

Joined: Thu Jun 10, 2004 4:01 pm
Posts: 152
Location: Brasil
The warnings continues. And now I get another error. Look:
Code:
lugre_listener.cpp
lugre/src/lugre_listener.cpp: In destructor ‘virtual Lugre::cListenable::~cListenable()’:
lugre/src/lugre_listener.cpp:12: error: ‘printf’ was not declared in this scope
lugre/src/lugre_listener.cpp:13: error: ‘exit’ was not declared in this scope
lugre/src/lugre_listener.cpp: In member function ‘void Lugre::cListenable::NotifyAllListeners(size_t, void*)’:
lugre/src/lugre_listener.cpp:22: error: ‘printf’ was not declared in this scope
lugre/src/lugre_listener.cpp:22: error: ‘exit’ was not declared in this scope
lugre/src/lugre_listener.cpp: In member function ‘void Lugre::cListenable::UnRegisterListener(Lugre::cListener*, void*)’:
lugre/src/lugre_listener.cpp:65: error: ‘printf’ was not declared in this scope
lugre/src/lugre_listener.cpp:65: error: ‘exit’ was not declared in this scope

Thanks.

_________________
Please, they answer to my questions in Portuguese or the formal English, therefore I use google to translate them.

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 30, 2008 5:37 pm 
Offline
iris2-developer
User avatar

Joined: Mon Aug 09, 2004 12:20 pm
Posts: 1431
i moved this topic to coding.

_________________
http://crankgaming.blogspot.com/ | https://twitter.com/#!/crank_gaming


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 01, 2008 10:21 pm 
Offline
iris2-developer
User avatar

Joined: Tue Apr 18, 2006 10:28 pm
Posts: 823
Location: Munich, Bavaria, Germany
i added include directives for those (strange that the compiler didn't complain for us), please try again =)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 04, 2008 12:50 am 
Offline
Power User
User avatar

Joined: Thu Jun 10, 2004 4:01 pm
Posts: 152
Location: Brasil
I am using gcc-4.3.1 to compile it. And now a get another error heh and the warnings continues. Look the error:
Code:
lugre_shell.cpp
lugre/src/lugre_shell.cpp: In member function ‘void Lugre::cShell::Init(int, char**)’:
lugre/src/lugre_shell.cpp:96: error: ‘srand’ was not declared in this scope

Thanks ;)

_________________
Please, they answer to my questions in Portuguese or the formal English, therefore I use google to translate them.

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 04, 2008 6:52 pm 
Offline
iris2-developer
User avatar

Joined: Tue Apr 18, 2006 10:28 pm
Posts: 823
Location: Munich, Bavaria, Germany
ok, please update and try again


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 08, 2008 12:30 am 
Offline
Power User
User avatar

Joined: Thu Jun 10, 2004 4:01 pm
Posts: 152
Location: Brasil
New error!! :D
Code:
lugre_sound.cpp
lugre/src/lugre_sound.cpp: In function ‘Lugre::cSoundSystem* Lugre::CreateSoundSystem(const char*, int)’:
lugre/src/lugre_sound.cpp:26: error: ‘strcmp’ was not declared in this scope

_________________
Please, they answer to my questions in Portuguese or the formal English, therefore I use google to translate them.

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 08, 2008 7:21 am 
Offline
iris2-developer
User avatar

Joined: Tue Apr 18, 2006 10:28 pm
Posts: 823
Location: Munich, Bavaria, Germany
new code, pleae update again =)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 11, 2008 11:13 pm 
Offline
Power User
User avatar

Joined: Thu Jun 10, 2004 4:01 pm
Posts: 152
Location: Brasil
I will send complete message from last error. I think that problem persists.
Code:
iuri@linux-ueaf:~/Download/iris2svn> ./premakelinux.sh
disabled asserts (NDEBUG)
Generating GNU makefiles:
...lugrelua
...md5lib
...caelumlib
...lugrelib
...iris
==== Building lugrelua ====
make[1]: `liblugrelua.a' está atualizado.
==== Building md5lib ====
make[1]: `libmd5lib.a' está atualizado.
==== Building caelumlib ====
make[1]: `libcaelumlib.a' está atualizado.
==== Building lugrelib ====
lugre_sound.cpp
lugre/src/lugre_sound.cpp: In function ‘Lugre::cSoundSystem* Lugre::CreateSoundSystem(const char*, int)’:
lugre/src/lugre_sound.cpp:26: error: ‘strcmp’ was not declared in this scope
make[1]: ** [obj/Release/lugre_sound.o] Erro 1
make: ** [lugrelib] Erro 2

_________________
Please, they answer to my questions in Portuguese or the formal English, therefore I use google to translate them.

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 13, 2008 9:09 am 
Offline
iris2-developer
User avatar

Joined: Tue Apr 18, 2006 10:28 pm
Posts: 823
Location: Munich, Bavaria, Germany
your system is strange, it doesn't know strcmp even if <cstring> is included.

please do a
cd /usr/include

and then

grep -inr cstring .

and post the complete output


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 13, 2008 11:59 pm 
Offline
Power User
User avatar

Joined: Thu Jun 10, 2004 4:01 pm
Posts: 152
Location: Brasil
Here is:
Code:
./c++/4.3/gcj/cni.h:40:JvAllocString (jsize sz)
./c++/4.3/gcj/cni.h:42:  return _Jv_AllocString (sz);
./c++/4.3/gcj/javaprims.h:872:extern "C" jstring _Jv_AllocString(jsize) __attribute__((__malloc__));
./c++/4.3/java/lang/String.h:31:jstring _Jv_AllocString (jsize);
./c++/4.3/java/lang/String.h:144:  friend jstring (::_Jv_AllocString) (jsize);
./c++/4.3/java/lang/reflect/Method.h:43:  ::java::lang::String * toGenericString();
./c++/4.3/java/lang/reflect/Field.h:35:  ::java::lang::String * toGenericString();
./c++/4.3/java/lang/reflect/Constructor.h:37:  ::java::lang::String * toGenericString();
./c++/4.3/x86_64-suse-linux/bits/stdc++.h:51:#include <cstring>
grep: aviso: ./c++/4.3/x86_64-suse-linux/32: loop de diretório recursivo

./c++/4.3/cstring:31:/** @file cstring
./c++/4.3/cstring:51:#ifndef _GLIBCXX_CSTRING
./c++/4.3/cstring:52:#define _GLIBCXX_CSTRING 1
./ssl/asn1.h:118:#define V_ASN1_NUMERICSTRING           18      /**/
./ssl/asn1.h:126:#define V_ASN1_GRAPHICSTRING           25      /**/
./ssl/asn1.h:134:#define B_ASN1_NUMERICSTRING   0x0001
./ssl/asn1.h:140:#define B_ASN1_GRAPHICSTRING   0x0020
./openssl/asn1.h:118:#define V_ASN1_NUMERICSTRING               18      /**/
./openssl/asn1.h:126:#define V_ASN1_GRAPHICSTRING               25      /**/
./openssl/asn1.h:134:#define B_ASN1_NUMERICSTRING       0x0001
./openssl/asn1.h:140:#define B_ASN1_GRAPHICSTRING       0x0020
./X11/StringDefs.h:202:#define XtCString "String"
./X11/StringDefs.h:736:#ifndef XtCString
./X11/StringDefs.h:737:#define XtCString ((char*)&XtStrings[1416])
./glib-2.0/gobject/gparamspecs.h:80:#define G_PARAM_SPEC_STRING(pspec)         (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_STRING, GParamSpecString))
./glib-2.0/gobject/gparamspecs.h:119:typedef struct _GParamSpecString     GParamSpecString;
./glib-2.0/gobject/gparamspecs.h:236:struct _GParamSpecString
./gmpxx.h:37:#include <cstring>  /* for strlen */
./gmpxx.h:1294:struct __gmp_alloc_cstring
./gmpxx.h:1297:  __gmp_alloc_cstring(char *s) { str = s; }
./gmpxx.h:1298:  ~__gmp_alloc_cstring()
./gmpxx.h:1586:    __gmp_alloc_cstring temp(mpz_get_str(0, base, mp));
./gmpxx.h:1767:    __gmp_alloc_cstring temp(mpq_get_str(0, base, mp));
./gmpxx.h:1969:    __gmp_alloc_cstring temp(mpf_get_str(0, &expo, base, size, mp));
./OGRE/OgreUTFString.h:2290:            mutable size_t m_bufferSize; // size of the CString buffer
./OGRE/OgreStdHeaders.h:22:#include <cstring>

Cya

_________________
Please, they answer to my questions in Portuguese or the formal English, therefore I use google to translate them.

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 14, 2008 7:26 am 
Offline
iris2-developer
User avatar

Joined: Tue Apr 18, 2006 10:28 pm
Posts: 823
Location: Munich, Bavaria, Germany
oops, sorry, i meant

grep -inr strcmp .

rather than

grep -inr cstring .


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 14, 2008 10:28 pm 
Offline
Power User
User avatar

Joined: Thu Jun 10, 2004 4:01 pm
Posts: 152
Location: Brasil
All right. Here is:
Code:
./SDL/SDL_stdinc.h:520:#ifdef HAVE_STRCMP
./SDL/SDL_stdinc.h:521:#define SDL_strcmp      strcmp
./SDL/SDL_stdinc.h:523:extern DECLSPEC int SDLCALL SDL_strcmp(const char *str1, const char *str2);
./SDL/SDL_config.h:124:#define HAVE_STRCMP 1
./c++/4.3/bits/locale_facets_nonio.h:1323:      if (__builtin_strcmp(__s, "C") != 0
./c++/4.3/bits/locale_facets_nonio.h:1324:          && __builtin_strcmp(__s, "POSIX") != 0)
./c++/4.3/bits/locale_facets.h:1927:    if (__builtin_strcmp(__s, "C") != 0
./c++/4.3/bits/locale_facets.h:1928:        && __builtin_strcmp(__s, "POSIX") != 0)
./c++/4.3/bits/locale_classes.h:537:      __ret = __builtin_strcmp(_M_names[__i], _M_names[__i + 1]) == 0;
./c++/4.3/bits/locale_classes.h:798:    if (__builtin_strcmp(__s, "C") != 0
./c++/4.3/bits/locale_classes.h:799:        && __builtin_strcmp(__s, "POSIX") != 0)
./c++/4.3/bits/codecvt.h:460:   if (__builtin_strcmp(__s, "C") != 0
./c++/4.3/bits/codecvt.h:461:       && __builtin_strcmp(__s, "POSIX") != 0)
./c++/4.3/x86_64-suse-linux/bits/messages_members.h:58:       if (__builtin_strcmp(__s, _S_get_c_name()) != 0)
./c++/4.3/x86_64-suse-linux/bits/messages_members.h:114:           if (__builtin_strcmp(__s, locale::facet::_S_get_c_name()) != 0)
./c++/4.3/x86_64-suse-linux/bits/messages_members.h:125:       if (__builtin_strcmp(__s, "C") != 0
./c++/4.3/x86_64-suse-linux/bits/messages_members.h:126:           && __builtin_strcmp(__s, "POSIX") != 0)
./c++/4.3/x86_64-suse-linux/bits/time_members.h:63:      if (__builtin_strcmp(__s, _S_get_c_name()) != 0)
./c++/4.3/x86_64-suse-linux/bits/ctype_noninline.h:54:    if (__builtin_strcmp(__old, "C"))
./c++/4.3/x86_64-suse-linux/bits/ctype_noninline.h:96:    if (__builtin_strcmp(__old, "C"))
./c++/4.3/x86_64-suse-linux/bits/ctype_noninline.h:141:    if (__builtin_strcmp(__old, "C"))
./c++/4.3/x86_64-suse-linux/bits/c++locale.h:81:    if (__builtin_strcmp(__old, "C"))
grep: aviso: ./c++/4.3/x86_64-suse-linux/32: loop de diretório recursivo

./c++/4.3/cstring:62:#undef strcmp
./c++/4.3/cstring:86:  using ::strcmp;
./c++/4.3/typeinfo:55:// out-of-line strcmp if not.  Out-of-line pointer comparison is used
./c++/4.3/typeinfo:60:// out-of-line comparison.  Inline strcmp is not currently supported.  The
./zzip/memdisk.h:126:                  zzip_strcmp_fn_t compare);
./zzip/fseeko.h:35:typedef int (*zzip_strcmp_fn_t)(char*, char*);
./zzip/fseeko.h:70:                zzip_strcmp_fn_t compare);
./zzip/mmapped.h:50:typedef int (*zzip_strcmp_fn_t)(char*, char*);
./zzip/mmapped.h:92:               zzip_strcmp_fn_t compare);
./freetype2/freetype/config/ftstdlib.h:89:#define ft_strcmp   strcmp
./gtk-2.0/gtk/gtkfilesystem.h:434:#define gtk_file_path_compare(path1,path2) strcmp (gtk_file_path_get_string (path1), \
./bits/string2.h:798:#ifndef _HAVE_STRING_ARCH_strcmp
./bits/string2.h:800:#  define strcmp(s1, s2) \
./bits/string2.h:807:      ? __builtin_strcmp (s1, s2)                               \
./bits/string2.h:811:       ? __builtin_strcmp (s1, s2)                              \
./bits/string2.h:812:       : __strcmp_cg (s1, s2, __s1_len))                        \
./bits/string2.h:816:          ? __builtin_strcmp (s1, s2)                           \
./bits/string2.h:817:          : __strcmp_gc (s1, s2, __s2_len))                     \
./bits/string2.h:818:       : __builtin_strcmp (s1, s2)))); })
./bits/string2.h:820:#  define strcmp(s1, s2) \
./bits/string2.h:832:       ? __strcmp_cc (s1, s2, __s1_len)                         \
./bits/string2.h:833:       : __strcmp_cg (s1, s2, __s1_len))                        \
./bits/string2.h:837:          ? __strcmp_cc (s1, s2, __s2_len)                      \
./bits/string2.h:838:          : __strcmp_gc (s1, s2, __s2_len))                     \
./bits/string2.h:839:       : strcmp (s1, s2)))); })
./bits/string2.h:842:# define __strcmp_cc(s1, s2, l) \
./bits/string2.h:869:# define __strcmp_cg(s1, s2, l1) \
./bits/string2.h:891:# define __strcmp_gc(s1, s2, l2) \
./bits/string2.h:926:             ? strcmp (s1, s2) : strncmp (s1, s2, n)))
./string.h:99:extern int strcmp (__const char *__s1, __const char *__s2)
./fontconfig/fontconfig.h:833:FcStrCmpIgnoreCase (const FcChar8 *s1, const FcChar8 *s2);
./fontconfig/fontconfig.h:836:FcStrCmp (const FcChar8 *s1, const FcChar8 *s2);
./dyn-string.h:38:/* Compare DS1 to DS2 with strcmp.  */
./dyn-string.h:40:  (strcmp ((DS1)->s, (DS2)->s))
./X11/Xtrans/Xtranssock.c:319:        if (!strcmp (family, Sockettrans2devtab[i].transname))
./X11/Xtrans/Xtranssock.c:1542:     if (strcmp(host,addrlist->host) || strcmp(port,addrlist->port)) {
./X11/Xtrans/Xtranssock.c:1605:             if (strcmp(Sockettrans2devtab[ciptr->index].transname,
./X11/Xtrans/Xtranssock.c:1646:             if (strcmp(Sockettrans2devtab[ciptr->index].transname,
./X11/Xtrans/Xtranssock.c:1899:    if (strcmp (hostnamebuf, host) == 0)
./X11/Xtrans/Xtranssock.c:1903:    else if(xauthlocalname && strcmp (xauthlocalname, host) == 0)
./X11/Xtrans/Xtranssock.c:2057:    if (host && *host && host[0]!='/' && strcmp (host, "unix") != 0 && !UnixHostReallyLocal (host))
./X11/Xtrans/Xtranslcl.c:2038:    if( strcmp(protocol,"local") && strcmp(protocol,"LOCAL") )
./X11/Xtrans/Xtranslcl.c:2088:       * This is equivalent to a case insensitive strcmp(),
./X11/Xtrans/Xtranslcl.c:2097:      if(!strcmp(LOCALtrans2devtab[i].transname,typebuf))
./X11/Xtrans/Xtranslcl.c:2130:    if (uname (&name) >= 0 && strcmp (host, name.nodename) == 0)
./X11/Xtrans/Xtranslcl.c:2138:    if (strcmp (host, buf) == 0)
./X11/Xtrans/Xtranslcl.c:2163:    if (strcmp (host, "unix") != 0 && !HostReallyLocal (host))
./X11/Xtrans/Xtranslcl.c:2268:  if( strcmp(protocol,LOCALtrans2devtab[i].transname) != 0 )
./X11/Xtrans/Xtranslcl.c:2396:  if (!strcmp(thistrans->TransName, typebuf))
./X11/Xtrans/Xtranslcl.c:2456:  if( strcmp(thistrans->TransName,
./X11/Xtrans/Xtranslcl.c:2480:  if( strcmp(thistrans->TransName,
./X11/Xtrans/Xtransos2.c:72:    if (strcmp(protocol,"os2") && strcmp(protocol,"local")) {
./X11/Xtrans/Xtrans.c:188:      if (!strcmp (protobuf, Xtransports[i].transport->TransName))
./X11/Xtrans/Xtrans.c:304:      ((_protocol != NULL) && (strcmp(_protocol, "dnet") == 0)) )
./X11/Xtrans/Xtrans.c:323:      ((strcmp(_protocol, "tcp") == 0) || (strcmp(_protocol, "inet6") == 0))
./X11/Xtrans/Xtranstli.c:130:   if( !strcmp(family,TLItrans2devtab[i].transname) )
./X11/Xtrans/Xtranstli.c:395:   if( strcmp(netconfigp->nc_protofmly,
./X11/Xaw/ToggleP.h:48:#define streq(a, b)      (strcmp((a), (b)) == 0)
./X11/fonts/bdfint.h:36:#define bdfStrEqual(s1,s2)      (!strcmp(s1,s2))
./X11/Xresource.h:110:#define XrmStringsEqual(a1, a2) (strcmp(a1, a2) == 0)
./osipparser2/osip_message.h:255:                             0==strcmp((msg)->sip_method,"INVITE"))
./osipparser2/osip_message.h:261:                             0==strcmp((msg)->sip_method,"ACK"))
./osipparser2/osip_message.h:267:                             0==strcmp((msg)->sip_method,"REGISTER"))
./osipparser2/osip_message.h:273:                             0==strcmp((msg)->sip_method,"BYE"))
./osipparser2/osip_message.h:279:                             0==strcmp((msg)->sip_method,"OPTIONS"))
./osipparser2/osip_message.h:285:                             0==strcmp((msg)->sip_method,"INFO"))
./osipparser2/osip_message.h:291:                             0==strcmp((msg)->sip_method,"CANCEL"))
./osipparser2/osip_message.h:297:                             0==strcmp((msg)->sip_method,"REFER"))
./osipparser2/osip_message.h:303:                             0==strcmp((msg)->sip_method,"NOTIFY"))
./osipparser2/osip_message.h:310:                             0==strcmp((msg)->sip_method,"SUBSCRIBE"))
./osipparser2/osip_message.h:316:                             0==strcmp((msg)->sip_method,"MESSAGE"))
./osipparser2/osip_message.h:322:                             0==strcmp((msg)->sip_method,"PRACK"))
./osipparser2/osip_message.h:330:                             0==strcmp((msg)->sip_method,"UPDATE"))
./osipparser2/osip_message.h:337:                             0==strcmp((msg)->sip_method,"PUBLISH"))
./osipparser2/osip_message.h:389:                                0==strcmp((msg)->cseq->method,(requestname)))
./glib-2.0/glib/gtestutils.h:32:                                             if (g_strcmp0 (__s1, __s2) cmp 0) ; else \
./glib-2.0/glib/gtestutils.h:61:int     g_strcmp0                       (const char     *str1,

_________________
Please, they answer to my questions in Portuguese or the formal English, therefore I use google to translate them.

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 15, 2008 2:08 pm 
Offline
iris2-developer
User avatar

Joined: Tue Apr 18, 2006 10:28 pm
Posts: 823
Location: Munich, Bavaria, Germany
ok, thanks, please update and try again =)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group