Compile notes for linux user
by Tsuyoshi Abe · in Torque Game Engine · 08/27/2004 (8:50 am) · 3 replies
Just now, it seems that CVS tree(lastest) has TNL scope problems.
I modified the following sentences.
I doubt these are the best, but I could compile :)
o added config.o
master/Makefile:
OBJECTS_MASTER=\
main.o\
masterInterface.o\
config.o
o added TNL scope
tnl/tnlMethodDispatch.h:
- #define SAVE_PARAMS TNL_gBasePtr = (void *) ((TNL::U8 *) __builtin_frame_address(0) + 8);
test/client.c:
- class DedicatedServerLogConsumer : public TNL::LogConsumer{
- TNL::S32 port = 28999;
- TestGame* theGame = new TestGame(false, TNL::Address(TNL::IPProtocol, TNL::Address::Any, port),TNL::Address(localBroadcastAddress));
I modified the following sentences.
I doubt these are the best, but I could compile :)
o added config.o
master/Makefile:
OBJECTS_MASTER=\
main.o\
masterInterface.o\
config.o
o added TNL scope
tnl/tnlMethodDispatch.h:
- #define SAVE_PARAMS TNL_gBasePtr = (void *) ((TNL::U8 *) __builtin_frame_address(0) + 8);
test/client.c:
- class DedicatedServerLogConsumer : public TNL::LogConsumer{
- TNL::S32 port = 28999;
- TestGame* theGame = new TestGame(false, TNL::Address(TNL::IPProtocol, TNL::Address::Any, port),TNL::Address(localBroadcastAddress));
#2
Additionally, I want to add another note with "Hellow World" tutorial.
** in main() **
newConnection->connect(theNetInterface, cmdAddress);
+ while(1) {
+ theNetInterface->checkIncomingPackets();
+ theNetInterface->processConnections();
+ if(newConnection->isEstablished())
+ break;
+ }
newConnection->rpcMessageClientToServer("Hello??");
*****************
On my linux system, these were needed.
08/28/2004 (1:04 pm)
All right.Additionally, I want to add another note with "Hellow World" tutorial.
** in main() **
newConnection->connect(theNetInterface, cmdAddress);
+ while(1) {
+ theNetInterface->checkIncomingPackets();
+ theNetInterface->processConnections();
+ if(newConnection->isEstablished())
+ break;
+ }
newConnection->rpcMessageClientToServer("Hello??");
*****************
On my linux system, these were needed.
#3
09/13/2004 (8:54 am)
Perfect now my problems solved too, thank you for pointing that out
Associate Kyle Carter