Author Topic: New 3.0 Build 5/09/07  (Read 11506 times)

Jekteir

  • Not-a-newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
Re: New 3.0 Build 5/09/07
« Reply #15 on: June 08, 2007, 11:37:53 PM »
Hi, downloaded the 3.0 beta and opened RakNet.cbp in Code::Blocks, which I'm running on Windows with MinGW GCC++. When I tried to compile the project, at first I got a bunch of errors, but I copied WS2_32.lib from my VC++ install and stuck that inside ./Lib/ . Then when I tried to build again, I got:

Quote
-------------- Build: debug in RakNet ---------------
WARNING: Can't read file's timestamp: D:\Games\CodeBlocks\RakNew\Source\InternalPacketPool.cpp
WARNING: Can't read file's timestamp: D:\Games\CodeBlocks\RakNew\Source\NetworkIDGenerator.cpp
Linking dynamic library: .\Lib\dll\debug\RakNetd.dll
mingw32-g++.exe: .\build\debug\.objs\Source\InternalPacketPool.o: No such file or directory
mingw32-g++.exe: .\build\debug\.objs\Source\NetworkIDGenerator.o: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

I notice these two files are absent from this release, but present in 2.x. I tried getting them from the repository and adding them, which then meant I had to add another networking library which one of those was dependent on, at which point a bunch of OTHER errors came up.

What I want is to be able to put all of RakNet's source and dependencies in a directory inside my project directory, have it compilable within my project, and distribute my .exe with its functionality integrated. Also: if I want that, will I need to bundle any other files alongside my .exe? e.g. winsock DLL, or other things like that?

Could you let me know what I'm missing, please? Thanks a lot.

Jek

Jekteir

  • Not-a-newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
Re: New 3.0 Build 5/09/07
« Reply #16 on: June 08, 2007, 11:43:26 PM »
Oh, and this is just in case any of these warnings are of interest to you in a build on my setup, here's the full build log of a full debug rebuild:

Quote
-------------- Build: debug in RakNet ---------------
Compiling: Source\AsynchronousFileIO.cpp
Compiling: Source\BitStream.cpp
Compiling: Source\BitStream_NoTemplate.cpp
Compiling: Source\CheckSum.cpp
Compiling: Source\CommandParserInterface.cpp
Compiling: Source\ConnectionGraph.cpp
Compiling: Source\ConsoleServer.cpp
Compiling: Source\DS_ByteQueue.cpp
Compiling: Source\DS_HuffmanEncodingTree.cpp
Compiling: Source\DS_Table.cpp
Compiling: Source\DataBlockEncryptor.cpp
Compiling: Source\DataCompressor.cpp
Compiling: Source\DirectoryDeltaTransfer.cpp
Compiling: Source\EmailSender.cpp
Compiling: Source\EncodeClassName.cpp
Compiling: Source\ExtendedOverlappedPool.cpp
Compiling: Source\FileList.cpp
Compiling: Source\FileListTransfer.cpp
Compiling: Source\FileOperations.cpp
Compiling: Source\FullyConnectedMesh.cpp
Compiling: Source\GetTime.cpp
WARNING: Can't read file's timestamp: D:\Games\CodeBlocks\RakNew\Source\InternalPacketPool.cpp
Compiling: Source\LightweightDatabaseClient.cpp
Compiling: Source\LightweightDatabaseCommon.cpp
Compiling: Source\LightweightDatabaseServer.cpp
D:\Games\CodeBlocks\RakNew\Source\LightweightDatabaseServer.cpp: In member function `virtual void LightweightDatabaseServer::Update(RakPeerInterface*)':
D:\Games\CodeBlocks\RakNew\Source\LightweightDatabaseServer.cpp:204: warning: comparison between signed and unsigned integer expressions
Compiling: Source\LinuxStrings.cpp
Compiling: Source\LogCommandParser.cpp
Compiling: Source\MessageFilter.cpp
Compiling: Source\NatPunchthrough.cpp
WARNING: Can't read file's timestamp: D:\Games\CodeBlocks\RakNew\Source\NetworkIDGenerator.cpp
Compiling: Source\PacketConsoleLogger.cpp
Compiling: Source\PacketFileLogger.cpp
Compiling: Source\PacketLogger.cpp
Compiling: Source\PluginInterface.cpp
Compiling: Source\RPCMap.cpp
Compiling: Source\RakNetCommandParser.cpp
Compiling: Source\RakNetStatistics.cpp
Compiling: Source\RakNetTransport.cpp
Compiling: Source\RakNetTypes.cpp
Compiling: Source\RakNetworkFactory.cpp
Compiling: Source\RakPeer.cpp
D:\Games\CodeBlocks\RakNew\Source\RakPeer.cpp: In function `void ProcessNetworkPacket(unsigned int, short unsigned int, const char*, int, RakPeer*, unsigned int)':
D:\Games\CodeBlocks\RakNew\Source\RakPeer.cpp:3678: warning: comparison between signed and unsigned integer expressions
D:\Games\CodeBlocks\RakNew\Source\RakPeer.cpp:3779: warning: comparison between signed and unsigned integer expressions
D:\Games\CodeBlocks\RakNew\Source\RakPeer.cpp:3872: warning: unused variable 'i'
D:\Games\CodeBlocks\RakNew\Source\RakPeer.cpp:3895: warning: comparison between signed and unsigned integer expressions
D:\Games\CodeBlocks\RakNew\Source\RakPeer.cpp:3955: warning: comparison between signed and unsigned integer expressions
D:\Games\CodeBlocks\RakNew\Source\RakPeer.cpp:3955: warning: comparison between signed and unsigned integer expressions
D:\Games\CodeBlocks\RakNew\Source\RakPeer.cpp: In function `unsigned int UpdateNetworkLoop(void*)':
D:\Games\CodeBlocks\RakNew\Source\RakPeer.cpp:4715: warning: ignoring #pragma message
Compiling: Source\RakSleep.cpp
Compiling: Source\Rand.cpp
Compiling: Source\ReliabilityLayer.cpp
Compiling: Source\ReplicaManager.cpp
Compiling: Source\Router.cpp
Compiling: Source\SHA1.cpp
Compiling: Source\SimpleMutex.cpp
Compiling: Source\SocketLayer.cpp
Compiling: Source\StringCompressor.cpp
Compiling: Source\StringTable.cpp
Compiling: Source\SystemAddressList.cpp
Compiling: Source\TCPInterface.cpp
D:\Games\CodeBlocks\RakNew\Source\TCPInterface.cpp: In member function `bool TCPInterface::Start(short unsigned int, short unsigned int)':
D:\Games\CodeBlocks\RakNew\Source\TCPInterface.cpp:91: warning: comparison between signed and unsigned integer expressions
Compiling: Source\TableSerializer.cpp
Compiling: Source\TelnetTransport.cpp
Compiling: Source\ThreadsafePacketLogger.cpp
Compiling: Source\_findfirst.cpp
Compiling: Source\rijndael.cpp
Linking dynamic library: .\Lib\dll\debug\RakNetd.dll
mingw32-g++.exe: .\build\debug\.objs\Source\InternalPacketPool.o: No such file or directory
mingw32-g++.exe: .\build\debug\.objs\Source\NetworkIDGenerator.o: No such file or directory
Process terminated with status 1 (0 minutes, 11 seconds)
0 errors, 9 warnings

Simon

  • Not-a-newbie
  • *
  • Posts: 24
  • Karma: 0
    • View Profile
Re: New 3.0 Build 5/09/07
« Reply #17 on: June 11, 2007, 12:25:52 PM »
For PostgreRepository.cpp you have to replace this sentence on line 577 and 617:

Code: [Select]
if (stricmp(hardDriveFilename, queryFilename)==0)
with

Code: [Select]
#ifdef _WIN32

if (stricmp(hardDriveFilename, queryFilename)==0)

#else

if (strcmp(hardDriveFilename, queryFilename)==0)

#endif
Sorry, but this is wrong :(
stricmp performs a lower-case comparison, while strcmp() is case-sensitive!

A better patch would be:
Code: [Select]
#ifndef _MSC_VER
#define stricmp strcasecmp
#endif
or
Code: [Select]
#ifndef _MSC_VER
int stricmp(const char *s1, const char *s2)
{
  return strcasecmp(s1, s2);
}
#endif
at some global position :)

deja_vu

  • Not-a-newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Re: New 3.0 Build 5/09/07
« Reply #18 on: June 12, 2007, 04:03:48 PM »
Same problem as Jekteir.. two files missing :|

Quote
-------------- Build: debug in RakNet ---------------
Compiling: Source\AsynchronousFileIO.cpp
Compiling: Source\BitStream.cpp
Compiling: Source\BitStream_NoTemplate.cpp
Compiling: Source\CheckSum.cpp
Compiling: Source\CommandParserInterface.cpp
Compiling: Source\ConnectionGraph.cpp
Compiling: Source\ConsoleServer.cpp
Compiling: Source\DS_ByteQueue.cpp
Compiling: Source\DS_HuffmanEncodingTree.cpp
Compiling: Source\DS_Table.cpp
Compiling: Source\DataBlockEncryptor.cpp
Compiling: Source\DataCompressor.cpp
Compiling: Source\DirectoryDeltaTransfer.cpp
Compiling: Source\EmailSender.cpp
Compiling: Source\EncodeClassName.cpp
Compiling: Source\ExtendedOverlappedPool.cpp
Compiling: Source\FileList.cpp
Compiling: Source\FileListTransfer.cpp
Compiling: Source\FileOperations.cpp
Compiling: Source\FullyConnectedMesh.cpp
Compiling: Source\GetTime.cpp
WARNING: Can't read file's timestamp: c:\RakNet\Source\InternalPacketPool.cpp
Compiling: Source\LightweightDatabaseClient.cpp
Compiling: Source\LightweightDatabaseCommon.cpp
Compiling: Source\LightweightDatabaseServer.cpp
c:\RakNet\Source\LightweightDatabaseServer.cpp: In member function `virtual void LightweightDatabaseServer::Update(RakPeerInterface*)':
c:\RakNet\Source\LightweightDatabaseServer.cpp:204: warning: comparison between signed and unsigned integer expressions
Compiling: Source\LinuxStrings.cpp
Compiling: Source\LogCommandParser.cpp
Compiling: Source\MessageFilter.cpp
Compiling: Source\NatPunchthrough.cpp
WARNING: Can't read file's timestamp: c:\RakNet\Source\NetworkIDGenerator.cpp
Compiling: Source\PacketConsoleLogger.cpp
Compiling: Source\PacketFileLogger.cpp
Compiling: Source\PacketLogger.cpp
Compiling: Source\PluginInterface.cpp
Compiling: Source\RPCMap.cpp
Compiling: Source\RakNetCommandParser.cpp
Compiling: Source\RakNetStatistics.cpp
Compiling: Source\RakNetTransport.cpp
Compiling: Source\RakNetTypes.cpp
Compiling: Source\RakNetworkFactory.cpp
Compiling: Source\RakPeer.cpp
c:\RakNet\Source\RakPeer.cpp: In function `void ProcessNetworkPacket(unsigned int, short unsigned int, const char*, int, RakPeer*, unsigned int)':
c:\RakNet\Source\RakPeer.cpp:3678: warning: comparison between signed and unsigned integer expressions
c:\RakNet\Source\RakPeer.cpp:3779: warning: comparison between signed and unsigned integer expressions
c:\RakNet\Source\RakPeer.cpp:3872: warning: unused variable 'i'
c:\RakNet\Source\RakPeer.cpp:3895: warning: comparison between signed and unsigned integer expressions
c:\RakNet\Source\RakPeer.cpp:3955: warning: comparison between signed and unsigned integer expressions
c:\RakNet\Source\RakPeer.cpp:3955: warning: comparison between signed and unsigned integer expressions
c:\RakNet\Source\RakPeer.cpp: In function `unsigned int UpdateNetworkLoop(void*)':
c:\RakNet\Source\RakPeer.cpp:4715: warning: ignoring #pragma message
Compiling: Source\RakSleep.cpp
Compiling: Source\Rand.cpp
Compiling: Source\ReliabilityLayer.cpp
Compiling: Source\ReplicaManager.cpp
Compiling: Source\Router.cpp
Compiling: Source\SHA1.cpp
Compiling: Source\SimpleMutex.cpp
Compiling: Source\SocketLayer.cpp
Compiling: Source\StringCompressor.cpp
Compiling: Source\StringTable.cpp
Compiling: Source\SystemAddressList.cpp
Compiling: Source\TCPInterface.cpp
c:\RakNet\Source\TCPInterface.cpp: In member function `bool TCPInterface::Start(short unsigned int, short unsigned int)':
c:\RakNet\Source\TCPInterface.cpp:91: warning: comparison between signed and unsigned integer expressions
Compiling: Source\TableSerializer.cpp
Compiling: Source\TelnetTransport.cpp
Compiling: Source\ThreadsafePacketLogger.cpp
Compiling: Source\_findfirst.cpp
Compiling: Source\rijndael.cpp
Linking dynamic library: .\Lib\dll\debug\RakNetd.dll
mingw32-g++.exe: .\build\debug\.objs\Source\InternalPacketPool.o: No such file or directory
mingw32-g++.exe: .\build\debug\.objs\Source\NetworkIDGenerator.o: No such file or directory
Process terminated with status 1 (1 minutes, 34 seconds)
0 errors, 9 warnings

Jekteir

  • Not-a-newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
Re: New 3.0 Build 5/09/07
« Reply #19 on: June 14, 2007, 12:16:01 PM »
Hey, I'm not sure exactly what configuration I was in when I had the earlier problems, but I think I may have been trying to get the SendEmail sample running. I've since abandoned that, and I've managed to get RakNet building everything and usable by sticking all the source and header files into my own project's source and includes directories, linking to WS2_32, and therefore not needing to worry about RakNet DLLs at all.

Skinney

  • Jr. Member
  • **
  • Posts: 86
  • Karma: 0
    • View Profile
Re: New 3.0 Build 5/09/07
« Reply #20 on: June 22, 2007, 02:28:43 PM »
No one has yet been able to get the autopatcher server/client and postgresql repository to be cross-plattform?

Skinney

  • Jr. Member
  • **
  • Posts: 86
  • Karma: 0
    • View Profile
Re: New 3.0 Build 5/09/07
« Reply #21 on: June 28, 2007, 10:06:30 AM »
can anyone at least confirm the bug?

ArmedGeek

  • Not-a-newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: New 3.0 Build 5/09/07
« Reply #22 on: July 27, 2007, 12:43:59 AM »
Skinny:  Yep, I'm getting the same thing.