From: kidchaos en h. <kid...@ho...> - 2007-04-19 13:56:11
|
Hi, This a message for the devtiki mailing list, (to other people who received the same mail: hope you dont mind that i send personally) Im having troubles on compiling the tikisnake sample. Im working on a windows XP with visual studio express. I downloaded the current version of tiki from svn, and compiled the tiki library without problem, but now trying to compile the tikisnake sample im getting the following errors: ------ Build started: Project: tikisnake, Configuration: Debug Win32 ------ Compiling... snake.cpp Linking... msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined in tiki.lib(console.obj) msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(char const *)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) already defined in tiki.lib(console.obj) LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library C:\cygwin\usr\local\dc\kos\tiki\examples\console\TikiSnake\vcproject\Debug\tikisnake.exe : fatal error LNK1169: one or more multiply defined symbols found Build log was saved at "file://c:\cygwin\usr\local\dc\kos\tiki\examples\console\TikiSnake\Debug\BuildLog.htm" tikisnake - 3 error(s), 1 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== Two questions: 1) srand(Time::gettime()); is there any problem with this function??? 2) Searching on the code, i dont understand if the console class is a valid drawable object, it is declaring the ctor and the dtor of a string class??? Any help appreciate, Regards @B^)> |
From: Sam S. <sam...@gm...> - 2007-04-19 18:21:43
|
The TikiSnake demo may be out of date. I had a new version waiting to be checked in, but I lost the data on my hard drive last week. I'll update the example again tonight and get it checked in. In the meantime, DreamZZT uses the Console drawable (it includes a slightly modified version that's GPL licensed, not BSD licensed), so for a more complex demo of how to use it, check out http://dev.c99.org/DreamZZT/ I try to keep both versions of Console similar, but newer features / and faster but messier code will be in DreamZZT's version first. I'll go through them tonight and see if there's anything that needs to be updated for Tiki's included version. -Sam On 4/19/07, kidchaos en hotmail2 <kid...@ho...> wrote: > > Hi, > > This a message for the devtiki mailing list, (to other people who received > the same mail: hope you dont mind that i send personally) > > Im having troubles on compiling the tikisnake sample. Im working on a > windows XP with visual studio express. I downloaded the current version of > tiki from svn, and compiled the tiki library without problem, but now > trying > to compile the tikisnake sample im getting the following errors: > ------ Build started: Project: tikisnake, Configuration: Debug Win32 > ------ > > Compiling... > > snake.cpp > > Linking... > > msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall > std::basic_string<char,struct std::char_traits<char>,class > std::allocator<char> >::~basic_string<char,struct > std::char_traits<char>,class std::allocator<char> >(void)" > (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) > already defined in tiki.lib(console.obj) > > msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall > std::basic_string<char,struct std::char_traits<char>,class > std::allocator<char> >::basic_string<char,struct > std::char_traits<char>,class std::allocator<char> >(char const *)" > (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD > @Z) > already defined in tiki.lib(console.obj) > > LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other > libs; use /NODEFAULTLIB:library > > > C:\cygwin\usr\local\dc\kos\tiki\examples\console\TikiSnake\vcproject\Debug\tikisnake.exe > : fatal error LNK1169: one or more multiply defined symbols found > > Build log was saved at > " > file://c:\cygwin\usr\local\dc\kos\tiki\examples\console\TikiSnake\Debug\BuildLog.htm > " > > tikisnake - 3 error(s), 1 warning(s) > > ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped > ========== > > Two questions: > > 1) srand(Time::gettime()); is there any problem with this function??? > > 2) Searching on the code, i dont understand if the console class is a > valid > drawable object, it is declaring the ctor and the dtor of a string > class??? > > Any help appreciate, > > Regards > > @B^)> > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > cadcdev-tiki mailing list > cad...@li... > https://lists.sourceforge.net/lists/listinfo/cadcdev-tiki > |
From: Harley <los...@ya...> - 2007-04-19 18:44:10
|
It might be worth knowing that the current SVN of Tiki could build TikiSnake on sdl and dc. I don't have Windows to try the build there otherwise I would have given more help there. Also, TikiSnake's Makefile uses $(CXX) which needed to be added to the dreamcast's Makefile.rules for it to build the example. Otherwise it calls g++ and not kos-c++. Sam Steele <sam...@gm...> wrote: The TikiSnake demo may be out of date. I had a new version waiting to be checked in, but I lost the data on my hard drive last week. I'll update the example again tonight and get it checked in. In the meantime, DreamZZT uses the Console drawable (it includes a slightly modified version that's GPL licensed, not BSD licensed), so for a more complex demo of how to use it, check out http://dev.c99.org/DreamZZT/ I try to keep both versions of Console similar, but newer features / and faster but messier code will be in DreamZZT's version first. I'll go through them tonight and see if there's anything that needs to be updated for Tiki's included version. -Sam On 4/19/07, kidchaos en hotmail2 <kid...@ho...> wrote: Hi, This a message for the devtiki mailing list, (to other people who received the same mail: hope you dont mind that i send personally) Im having troubles on compiling the tikisnake sample. Im working on a windows XP with visual studio express. I downloaded the current version of tiki from svn, and compiled the tiki library without problem, but now trying to compile the tikisnake sample im getting the following errors: ------ Build started: Project: tikisnake, Configuration: Debug Win32 ------ Compiling... snake.cpp Linking... msvcprtd.lib (MSVCP80D.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined in tiki.lib(console.obj) msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(char const *)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ QAE@PBD@Z) already defined in tiki.lib(console.obj) LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library C:\cygwin\usr\local\dc\kos\tiki\examples\console\TikiSnake\vcproject\Debug\tikisnake.exe : fatal error LNK1169: one or more multiply defined symbols found Build log was saved at "file://c:\cygwin\usr\local\dc\kos\tiki\examples\console\TikiSnake\Debug\BuildLog.htm " tikisnake - 3 error(s), 1 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== Two questions: 1) srand(Time::gettime()); is there any problem with this function??? 2) Searching on the code, i dont understand if the console class is a valid drawable object, it is declaring the ctor and the dtor of a string class??? Any help appreciate, Regards @B^)> ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ cadcdev-tiki mailing list cad...@li... https://lists.sourceforge.net/lists/listinfo/cadcdev-tiki ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/_______________________________________________ cadcdev-tiki mailing list cad...@li... https://lists.sourceforge.net/lists/listinfo/cadcdev-tiki HL --------------------------------- Ahhh...imagining that irresistible "new car" smell? Check outnew cars at Yahoo! Autos. |
From: kidchaos en h. <kid...@ho...> - 2007-04-19 21:50:28
|
Thanks to everyone, Sam, I have checked your website and dowloaded some sources from your = projects (dcblap trunk...) , ill try to compile them also for testing... = Where do i download the sources from? Kos SVN or from your site = repository? Im i bit lazy and i would like to have a comfortable development = environment (windows+VSExpress) .... if its possible,... anyway im doing = my best to get used to the available tools... Regards, @B^)> ----- Original Message -----=20 From: Harley=20 To: General Discussion about the Tiki Toolkit=20 Sent: Thursday, April 19, 2007 8:44 PM Subject: Re: [cadcdev-tiki] [Tiki-win32] Unable to compile tikisnake It might be worth knowing that the current SVN of Tiki could build = TikiSnake on sdl and dc. I don't have Windows to try the build there = otherwise I would have given more help there. Also, TikiSnake's Makefile = uses $(CXX) which needed to be added to the dreamcast's Makefile.rules = for it to build the example. Otherwise it calls g++ and not kos-c++. Sam Steele <sam...@gm...> wrote: The TikiSnake demo may be out of date. I had a new version waiting = to be checked in, but I lost the data on my hard drive last week. I'll = update the example again tonight and get it checked in. In the meantime, DreamZZT uses the Console drawable (it includes a = slightly modified version that's GPL licensed, not BSD licensed), so for = a more complex demo of how to use it, check out = http://dev.c99.org/DreamZZT/ I try to keep both versions of Console similar, but newer features / = and faster but messier code will be in DreamZZT's version first. I'll = go through them tonight and see if there's anything that needs to be = updated for Tiki's included version.=20 -Sam =20 On 4/19/07, kidchaos en hotmail2 <kid...@ho...> wrote:=20 Hi, This a message for the devtiki mailing list, (to other people who = received the same mail: hope you dont mind that i send personally)=20 Im having troubles on compiling the tikisnake sample. Im working = on a windows XP with visual studio express. I downloaded the current = version of tiki from svn, and compiled the tiki library without problem, but = now trying=20 to compile the tikisnake sample im getting the following errors: ------ Build started: Project: tikisnake, Configuration: Debug = Win32 ------ Compiling... snake.cpp Linking... msvcprtd.lib (MSVCP80D.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)"=20 = (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined in tiki.lib(console.obj) msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class=20 std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(char const *)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ = QAE@PBD@Z) already defined in tiki.lib(console.obj) LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of = other libs; use /NODEFAULTLIB:library = C:\cygwin\usr\local\dc\kos\tiki\examples\console\TikiSnake\vcproject\Debu= g\tikisnake.exe=20 : fatal error LNK1169: one or more multiply defined symbols found Build log was saved at = "file://c:\cygwin\usr\local\dc\kos\tiki\examples\console\TikiSnake\Debug\= BuildLog.htm " tikisnake - 3 error(s), 1 warning(s) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Build: 0 succeeded, 1 failed, 0 = up-to-date, 0 skipped =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Two questions: 1) srand(Time::gettime()); is there any problem with this = function???=20 2) Searching on the code, i dont understand if the console class = is a valid drawable object, it is declaring the ctor and the dtor of a string = class??? Any help appreciate, Regards @B^)>=20 = -------------------------------------------------------------------------= This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.=20 http://sourceforge.net/powerbar/db2/ _______________________________________________ cadcdev-tiki mailing list cad...@li... https://lists.sourceforge.net/lists/listinfo/cadcdev-tiki = -------------------------------------------------------------------------= This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. = http://sourceforge.net/powerbar/db2/_____________________________________= __________ cadcdev-tiki mailing list cad...@li... https://lists.sourceforge.net/lists/listinfo/cadcdev-tiki HL -------------------------------------------------------------------------= ----- Ahhh...imagining that irresistible "new car" smell? Check out new cars at Yahoo! Autos.=20 -------------------------------------------------------------------------= ----- = -------------------------------------------------------------------------= This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ -------------------------------------------------------------------------= ----- _______________________________________________ cadcdev-tiki mailing list cad...@li... https://lists.sourceforge.net/lists/listinfo/cadcdev-tiki |
From: Sam S. <sam...@gm...> - 2007-04-19 23:13:38
|
Use Tiki / KOS from KOS's SVN repo, and check the source for my projects from my repo. However, be aware that DCBlap's code hasn't been touched in a year or so, so it probably wont build against the latest version of Tiki. My copy of Visual Studio C++ 2005 Express is asking to be registered, but Microsoft's activation server doesn't seem to be working, so I can't test the Windows build right now. I'm downloading the "manual installation" version of visual studio express that doesn't need activation, so hopefully later tonight I'll be able to test it. -Sam On Apr 19, 2007, at 5:50 PM, kidchaos en hotmail2 wrote: > > Thanks to everyone, > > Sam, I have checked your website and dowloaded some sources from > your projects (dcblap trunk...) , ill try to compile them also for > testing... Where do i download the sources from? Kos SVN or from > your site repository? > > Im i bit lazy and i would like to have a comfortable development > environment (windows+VSExpress) .... if its possible,... anyway im > doing my best to get used to the available tools... > > Regards, > > > @B^)> > > ----- Original Message ----- > From: Harley > To: General Discussion about the Tiki Toolkit > Sent: Thursday, April 19, 2007 8:44 PM > Subject: Re: [cadcdev-tiki] [Tiki-win32] Unable to compile tikisnake > > It might be worth knowing that the current SVN of Tiki could build > TikiSnake on sdl and dc. I don't have Windows to try the build > there otherwise I would have given more help there. Also, > TikiSnake's Makefile uses $(CXX) which needed to be added to the > dreamcast's Makefile.rules for it to build the example. Otherwise > it calls g++ and not kos-c++. > > Sam Steele <sam...@gm...> wrote: > The TikiSnake demo may be out of date. I had a new version waiting > to be checked in, but I lost the data on my hard drive last week. > I'll update the example again tonight and get it checked in. > > In the meantime, DreamZZT uses the Console drawable (it includes a > slightly modified version that's GPL licensed, not BSD licensed), > so for a more complex demo of how to use it, check out http:// > dev.c99.org/DreamZZT/ > > I try to keep both versions of Console similar, but newer > features / and faster but messier code will be in DreamZZT's > version first. I'll go through them tonight and see if there's > anything that needs to be updated for Tiki's included version. > > -Sam > > > On 4/19/07, kidchaos en hotmail2 <kid...@ho...> wrote: > Hi, > > This a message for the devtiki mailing list, (to other people who > received > the same mail: hope you dont mind that i send personally) > > Im having troubles on compiling the tikisnake sample. Im working on a > windows XP with visual studio express. I downloaded the current > version of > tiki from svn, and compiled the tiki library without problem, but > now trying > to compile the tikisnake sample im getting the following errors: > ------ Build started: Project: tikisnake, Configuration: Debug > Win32 ------ > > Compiling... > > snake.cpp > > Linking... > > msvcprtd.lib (MSVCP80D.dll) : error LNK2005: "public: __thiscall > std::basic_string<char,struct std::char_traits<char>,class > std::allocator<char> >::~basic_string<char,struct > std::char_traits<char>,class std::allocator<char> >(void)" > (??1?$basic_string@DU?$char_traits@D@std@@V? > $allocator@D@2@@std@@QAE@XZ) > already defined in tiki.lib(console.obj) > > msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall > std::basic_string<char,struct std::char_traits<char>,class > std::allocator<char> >::basic_string<char,struct > std::char_traits<char>,class std::allocator<char> >(char const *)" > (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ > QAE@PBD@Z) > already defined in tiki.lib(console.obj) > > LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of > other > libs; use /NODEFAULTLIB:library > > C:\cygwin\usr\local\dc\kos\tiki\examples\console\TikiSnake\vcproject > \Debug\tikisnake.exe > : fatal error LNK1169: one or more multiply defined symbols found > > Build log was saved at > "file://c:\cygwin\usr\local\dc\kos\tiki\examples\console\TikiSnake > \Debug\BuildLog.htm " > > tikisnake - 3 error(s), 1 warning(s) > > ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped > ========== > > Two questions: > > 1) srand(Time::gettime()); is there any problem with this function??? > > 2) Searching on the code, i dont understand if the console class is > a valid > drawable object, it is declaring the ctor and the dtor of a string > class??? > > Any help appreciate, > > Regards > > @B^)> > > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > cadcdev-tiki mailing list > cad...@li... > https://lists.sourceforge.net/lists/listinfo/cadcdev-tiki > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > cadcdev-tiki mailing list > cad...@li... > https://lists.sourceforge.net/lists/listinfo/cadcdev-tiki > > > > HL > > Ahhh...imagining that irresistible "new car" smell? > Check out new cars at Yahoo! Autos. > > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > > > _______________________________________________ > cadcdev-tiki mailing list > cad...@li... > https://lists.sourceforge.net/lists/listinfo/cadcdev-tiki > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > cadcdev-tiki mailing list > cad...@li... > https://lists.sourceforge.net/lists/listinfo/cadcdev-tiki |
From: Sam S. <sam...@gm...> - 2007-04-20 01:26:23
|
I checked in a Visual Studio 2005 project file for TikiSnake. The problem you were encountering was caused by setting the runtime library to "Multi-threaded DLL" (the default in Visual Studio 2005). Changing the runtime library to "Multi-threaded" fixes the linker problem. -Sam On Apr 19, 2007, at 9:56 AM, kidchaos en hotmail2 wrote: > Hi, > > This a message for the devtiki mailing list, (to other people who > received > the same mail: hope you dont mind that i send personally) > > Im having troubles on compiling the tikisnake sample. Im working on a > windows XP with visual studio express. I downloaded the current > version of > tiki from svn, and compiled the tiki library without problem, but > now trying > to compile the tikisnake sample im getting the following errors: > ------ Build started: Project: tikisnake, Configuration: Debug > Win32 ------ > > Compiling... > > snake.cpp > > Linking... > > msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall > std::basic_string<char,struct std::char_traits<char>,class > std::allocator<char> >::~basic_string<char,struct > std::char_traits<char>,class std::allocator<char> >(void)" > (??1?$basic_string@DU?$char_traits@D@std@@V? > $allocator@D@2@@std@@QAE@XZ) > already defined in tiki.lib(console.obj) > > msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall > std::basic_string<char,struct std::char_traits<char>,class > std::allocator<char> >::basic_string<char,struct > std::char_traits<char>,class std::allocator<char> >(char const *)" > (??0?$basic_string@DU?$char_traits@D@std@@V? > $allocator@D@2@@std@@QAE@PBD@Z) > already defined in tiki.lib(console.obj) > > LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of > other > libs; use /NODEFAULTLIB:library > > C:\cygwin\usr\local\dc\kos\tiki\examples\console\TikiSnake\vcproject > \Debug\tikisnake.exe > : fatal error LNK1169: one or more multiply defined symbols found > > Build log was saved at > "file://c:\cygwin\usr\local\dc\kos\tiki\examples\console\TikiSnake > \Debug\BuildLog.htm" > > tikisnake - 3 error(s), 1 warning(s) > > ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped > ========== > > Two questions: > > 1) srand(Time::gettime()); is there any problem with this function??? > > 2) Searching on the code, i dont understand if the console class is > a valid > drawable object, it is declaring the ctor and the dtor of a string > class??? > > Any help appreciate, > > Regards > > @B^)> > > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > cadcdev-tiki mailing list > cad...@li... > https://lists.sourceforge.net/lists/listinfo/cadcdev-tiki |
From: kidchaos en h. <kid...@ho...> - 2007-04-20 09:06:59
|
Hi again, The console snake sample now works great!! Thanks! Anyway, i found a small problem that im trying to resolve, my laptop is a bit old and it only has 700Mb RAM, so when VC triggers a breakpoint my windows doesnt react well. I have a little experience programming in windows, but i have read that the Windows Message dispatching must be accurate so it doenst eat all the machine resources.... I have tried a small change on platgl.cpp on the DoMain function, and i think it works better now. Here are my changes, tell me what you think, i think it respect the multithreading in windows better. - Changed: /*while(m_hThread != NULL && GetMessage(&msg, NULL, 0, 0)) { TranslateMessage(&msg); DispatchMessage(&msg); }*/ - To: while(m_hThread != NULL) { do { if (GetMessage(&msg, NULL, NULL, NULL)) { TranslateMessage(&msg); DispatchMessage(&msg); } } while (::PeekMessage(&msg, NULL, NULL, NULL, PM_REMOVE)); Sleep(2); } I have tested it and it works fine on breakpoint and exceptions... @B^)> ----- Original Message ----- From: "Sam Steele" <sam...@gm...> To: "General Discussion about the Tiki Toolkit" <cad...@li...> Sent: Friday, April 20, 2007 3:26 AM Subject: Re: [cadcdev-tiki] [Tiki-win32] Unable to compile tikisnake >I checked in a Visual Studio 2005 project file for TikiSnake. The > problem you were encountering was caused by setting the runtime > library to "Multi-threaded DLL" (the default in Visual Studio 2005). > Changing the runtime library to "Multi-threaded" fixes the linker > problem. > > -Sam > > On Apr 19, 2007, at 9:56 AM, kidchaos en hotmail2 wrote: > >> Hi, >> >> This a message for the devtiki mailing list, (to other people who >> received >> the same mail: hope you dont mind that i send personally) >> >> Im having troubles on compiling the tikisnake sample. Im working on a >> windows XP with visual studio express. I downloaded the current >> version of >> tiki from svn, and compiled the tiki library without problem, but >> now trying >> to compile the tikisnake sample im getting the following errors: >> ------ Build started: Project: tikisnake, Configuration: Debug >> Win32 ------ >> >> Compiling... >> >> snake.cpp >> >> Linking... >> >> msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall >> std::basic_string<char,struct std::char_traits<char>,class >> std::allocator<char> >::~basic_string<char,struct >> std::char_traits<char>,class std::allocator<char> >(void)" >> (??1?$basic_string@DU?$char_traits@D@std@@V? >> $allocator@D@2@@std@@QAE@XZ) >> already defined in tiki.lib(console.obj) >> >> msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall >> std::basic_string<char,struct std::char_traits<char>,class >> std::allocator<char> >::basic_string<char,struct >> std::char_traits<char>,class std::allocator<char> >(char const *)" >> (??0?$basic_string@DU?$char_traits@D@std@@V? >> $allocator@D@2@@std@@QAE@PBD@Z) >> already defined in tiki.lib(console.obj) >> >> LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of >> other >> libs; use /NODEFAULTLIB:library >> >> C:\cygwin\usr\local\dc\kos\tiki\examples\console\TikiSnake\vcproject >> \Debug\tikisnake.exe >> : fatal error LNK1169: one or more multiply defined symbols found >> >> Build log was saved at >> "file://c:\cygwin\usr\local\dc\kos\tiki\examples\console\TikiSnake >> \Debug\BuildLog.htm" >> >> tikisnake - 3 error(s), 1 warning(s) >> >> ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped >> ========== >> >> Two questions: >> >> 1) srand(Time::gettime()); is there any problem with this function??? >> >> 2) Searching on the code, i dont understand if the console class is >> a valid >> drawable object, it is declaring the ctor and the dtor of a string >> class??? >> >> Any help appreciate, >> >> Regards >> >> @B^)> >> >> >> ---------------------------------------------------------------------- >> --- >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> _______________________________________________ >> cadcdev-tiki mailing list >> cad...@li... >> https://lists.sourceforge.net/lists/listinfo/cadcdev-tiki > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > cadcdev-tiki mailing list > cad...@li... > https://lists.sourceforge.net/lists/listinfo/cadcdev-tiki > |
From: kidchaos en h. <kid...@ho...> - 2007-05-20 12:55:58
|
Hi again, Im going on with the development of my shmup project for Win32/DC under = Tiki, i made great advances about the engine with the help of the = environment: --- Im having a great problem, so if this letter is to large, please read = the last paragraph. Thanks --- First of all, im interested in backup my project under sourceforge = because everyday i fear to lose everything from my computer. Could = someone give some directions to do it, please? Regarding the project, as i said everyday im more impressed with the = whole implementation of the Tiki dev: Everything i have already done in = my engine, is better implemented so my engine is more like an equivalent = layer of the Tiki one, with things like object count references, hid = callbacks, HW timers, threading!! and such... I mixed with the use of = the minixml lib and I hope "everything" could be parametrizable from the = XML trees and files... I have already put an fps counter with a font = texture under OpenGL which works fine (60 fps on Windows and DC!!!)... = So now its time to start with the graph scene (i was doing my own, but i = will use the Tiki one again!!!). By the way, i did another change on the windows callback function: On = the switch(msg) part i added some breaks for the WM_KEY's which were = screwing my HID callback system!! I dont know if anyone else has been = affected with the problem... Ok, then about the graph scene system: After checking the DCBlap = sources and discovered the gs and the Generic Menu class i am developing = my level manager as a subclass of it redefining the ControlperFrame = functions, hope its ok...=20 And now im running with some troubles, the second one its my MAIN = problem right now: - About importing meshes, what can i do to improve speed, on my = project? On the old DirectX project I used an indexed vertex buffer, = can i use something alike under kgl? checking some Nehe tutorials i saw = display lists are supported, are they ok? In the KOS GL headers i saw = about opengl 1.2 arrays? What are they? Could some address me, please? - Finally, Ill explain my MAIN PROBLEM right now, i wont be able to go = on with the project if i cant resolve it.... It's about a camera system: My old project used only ONE camera, based on UVN rotations which = always followed the player, this meant that i never had to use = Yaw/pitch/Roll angle rotations (sadly, i dont know if i can reach again = the person who taugh me about it), but i realized that if i want to = debug the 3D scene of my game i need to develop some cameras (mainly a = FLYING-FPS and a TPH camera, and of course the game camera) and if its = possible, I WOULD LIKE TO DEVELOP THEM UNDER THE UVN system, so i think = it will be faster than with the angle system (before asking why, chech = this article http://www.gamedev.net/reference/articles/article1199.asp) = .. I realized that my knowledge about rotations, the matrix stack and = the math behind OpenGL/DirectX is zero!! I tested the Tiki::Matrix = rotation axis function but everything screwed up when i move the camera, = even the debug text!! =20 Please, every detailed tutorial, code sample or explanation about the = UVN math (matrix, vectors), the Opengl matrix stack, and matrix = conversions to OpenGL or anything about the subject will be welcomed!! Regards, @B^)> ----- Original Message -----=20 From: Sam Steele=20 To: kidchaos en hotmail2=20 Sent: Monday, April 30, 2007 5:34 PM Subject: Re: [cadcdev-tiki] [Tiki-win32] Unable to compile tikisnake I ran into the same problem with the debugger on win32 and tried your = patch, it seems to work pretty well. I'll test it a bit more and = probably apply it later tonight. Thanks, Sam Steele On 4/20/07, kidchaos en hotmail2 <kid...@ho...> wrote: Hi again, The console snake sample now works great!! Thanks! Anyway, i found a small problem that im trying to resolve, my laptop = is a bit old and it only has 700Mb RAM, so when VC triggers a breakpoint = my=20 windows doesnt react well. I have a little experience programming in windows, but i have read that the Windows Message dispatching must = be accurate so it doenst eat all the machine resources.... I have tried = a small=20 change on platgl.cpp on the DoMain function, and i think it works = better now. Here are my changes, tell me what you think, i think it respect = the multithreading in windows better. - Changed: /*while(m_hThread !=3D NULL && GetMessage(&msg, NULL, 0, 0))=20 { TranslateMessage(&msg); DispatchMessage(&msg); }*/ - To: while(m_hThread !=3D NULL) { do { if (GetMessage(&msg, NULL, NULL, NULL)) { TranslateMessage(&msg);=20 DispatchMessage(&msg); } } while (::PeekMessage(&msg, NULL, NULL, NULL, PM_REMOVE)); Sleep(2); } I have tested it and it works fine on breakpoint and exceptions... @B^)> ----- Original Message ----- From: "Sam Steele" <sam...@gm...> To: "General Discussion about the Tiki Toolkit" < cad...@li...> Sent: Friday, April 20, 2007 3:26 AM Subject: Re: [cadcdev-tiki] [Tiki-win32] Unable to compile tikisnake >I checked in a Visual Studio 2005 project file for TikiSnake. The=20 > problem you were encountering was caused by setting the runtime > library to "Multi-threaded DLL" (the default in Visual Studio = 2005). > Changing the runtime library to "Multi-threaded" fixes the linker=20 > problem. > > -Sam > > On Apr 19, 2007, at 9:56 AM, kidchaos en hotmail2 wrote: > >> Hi, >> >> This a message for the devtiki mailing list, (to other people = who=20 >> received >> the same mail: hope you dont mind that i send personally) >> >> Im having troubles on compiling the tikisnake sample. Im working = on a >> windows XP with visual studio express. I downloaded the current=20 >> version of >> tiki from svn, and compiled the tiki library without problem, but >> now trying >> to compile the tikisnake sample im getting the following errors: >> ------ Build started: Project: tikisnake, Configuration: Debug=20 >> Win32 ------ >> >> Compiling... >> >> snake.cpp >> >> Linking... >> >> msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall=20 >> std::basic_string<char,struct std::char_traits<char>,class >> std::allocator<char> >::~basic_string<char,struct >> std::char_traits<char>,class std::allocator<char> >(void)"=20 >> (??1?$basic_string@DU?$char_traits@D@std@@V? >> $allocator@D@2@@std@@QAE@XZ) >> already defined in tiki.lib(console.obj) >> >> msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall=20 >> std::basic_string<char,struct std::char_traits<char>,class >> std::allocator<char> >::basic_string<char,struct >> std::char_traits<char>,class std::allocator<char> >(char const = *)"=20 >> (??0?$basic_string@DU?$char_traits@D@std@@V? >> $allocator@D@2@@std@@QAE@PBD@Z) >> already defined in tiki.lib(console.obj) >> >> LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use = of=20 >> other >> libs; use /NODEFAULTLIB:library >> >> = C:\cygwin\usr\local\dc\kos\tiki\examples\console\TikiSnake\vcproject >> \Debug\tikisnake.exe >> : fatal error LNK1169: one or more multiply defined symbols found = >> >> Build log was saved at >> = "file://c:\cygwin\usr\local\dc\kos\tiki\examples\console\TikiSnake >> \Debug\BuildLog.htm"=20 >> >> tikisnake - 3 error(s), 1 warning(s) >> >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Build: 0 succeeded, 1 failed, 0 = up-to-date, 0 skipped >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> >> Two questions: >>=20 >> 1) srand(Time::gettime()); is there any problem with this = function??? >> >> 2) Searching on the code, i dont understand if the console class = is >> a valid >> drawable object, it is declaring the ctor and the dtor of a = string=20 >> class??? >> >> Any help appreciate, >> >> Regards >> >> @B^)> >> >> >> = ----------------------------------------------------------------------=20 >> --- >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now.=20 >> http://sourceforge.net/powerbar/db2/ >> _______________________________________________ >> cadcdev-tiki mailing list >> cad...@li... >> https://lists.sourceforge.net/lists/listinfo/cadcdev-tiki > > > = -------------------------------------------------------------------------= =20 > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > cadcdev-tiki mailing list > cad...@li...=20 > https://lists.sourceforge.net/lists/listinfo/cadcdev-tiki > |