In this case, is better don't change the code and keep the 32bit variables.
By using the 64bit vars without check the struct alignment and sizes can causes your version doesn't load the games generated with other compilations.
gcc -c Source/ConnectionGraph.cpp -o ../output/RakNet/ConnectionGraph.o -I"." -D__linux -Dlinux -D__linux__ -DLINUX_I386 -D_LIB -DLITTLE_ENDIAN -s -Os
In file included from Source/DS_WeightedGraph.h:22,
from Source/ConnectionGraph.h:26,
from Source/ConnectionGraph.cpp:17:
Source/DS_Map.h:89: error: template argument 3 is invalid
Source/DS_Map.h: In member function ‘data_type& DataStructures::Map<key_type, data_type, key_comparison_func>::Get(const key_type&)’:
Source/DS_Map.h:134: error: invalid types ‘int[unsigned int]’ for array subscript
Source/DS_Map.h:138: error: request for member ‘GetIndexFromKey’ in ‘((DataStructures::Map<key_type, data_type, key_comparison_func>*)this)->DataStructures::Map<key_type, data_type, key_comparison_func>::mapNodeList’, which is of non-class type ‘int’
Source/DS_Map.h:141: error: invalid types ‘int[unsigned int]’ for array subscript
Source/DS_Map.h: In member function ‘unsigned int DataStructures::Map<key_type, data_type, key_comparison_func>::GetIndexAtKey(const key_type&)’:
Source/DS_Map.h:152: error: request for member ‘GetIndexFromKey’ in ‘((DataStructures::Map<key_type, data_type, key_comparison_func>*)this)->DataStructures::Map<key_type, data_type, key_comparison_func>::mapNodeList’, which is of non-class type ‘int’
Source/DS_Map.h: In member function ‘void DataStructures::Map<key_type, data_type, key_comparison_func>::RemoveAtIndex(unsigned int)’:
Source/DS_Map.h:164: error: request for member ‘RemoveAtIndex’ in ‘((DataStructures::Map<key_type, data_type, key_comparison_func>*)this)->DataStructures::Map<key_type, data_type, key_comparison_func>::mapNodeList’, which is of non-class type ‘int’
Source/DS_Map.h: In member function ‘data_type DataStructures::Map<key_type, data_type, key_comparison_func>::Pop(const key_type&)’:
Source/DS_Map.h:177: error: request for member ‘GetIndexFromKey’ in ‘((DataStructures::Map<key_type, data_type, key_comparison_func>*)this)->DataStructures::Map<key_type, data_type, key_comparison_func>::mapNodeList’, which is of non-class type ‘int’
Source/DS_Map.h:180: error: invalid types ‘int[unsigned int]’ for array subscript
Source/DS_Map.h:181: error: request for member ‘RemoveAtIndex’ in ‘((DataStructures::Map<key_type, data_type, key_comparison_func>*)this)->DataStructures::Map<key_type, data_type, key_comparison_func>::mapNodeList’, which is of non-class type ‘int’
Source/DS_Map.h: In member function ‘void DataStructures::Map<key_type, data_type, key_comparison_func>::Set(const key_type&, const data_type&)’:
Source/DS_Map.h:194: error: invalid types ‘int[unsigned int]’ for array subscript
Source/DS_Map.h:198: error: request for member ‘GetIndexFromKey’ in ‘((DataStructures::Map<key_type, data_type, key_comparison_func>*)this)->DataStructures::Map<key_type, data_type, key_comparison_func>::mapNodeList’, which is of non-class type ‘int’
Source/DS_Map.h:203: error: invalid types ‘int[unsigned int]’ for array subscript
Source/DS_Map.h:207: error: request for member ‘Insert’ in ‘((DataStructures::Map<key_type, data_type, key_comparison_func>*)this)->DataStructures::Map<key_type, data_type, key_comparison_func>::mapNodeList’, which is of non-class type ‘int’
Source/DS_Map.h: In member function ‘void DataStructures::Map<key_type, data_type, key_comparison_func>::SetExisting(const key_type&, const data_type&)’:
Source/DS_Map.h:223: error: request for member ‘GetIndexFromKey’ in ‘((DataStructures::Map<key_type, data_type, key_comparison_func>*)this)->DataStructures::Map<key_type, data_type, key_comparison_func>::mapNodeList’, which is of non-class type ‘int’
Source/DS_Map.h:228: error: invalid types ‘int[unsigned int]’ for array subscript
Source/DS_Map.h: In member function ‘void DataStructures::Map<key_type, data_type, key_comparison_func>::SetNew(const key_type&, const data_type&)’:
Source/DS_Map.h:240: error: request for member ‘Insert’ in ‘((DataStructures::Map<key_type, data_type, key_comparison_func>*)this)->DataStructures::Map<key_type, data_type, key_comparison_func>::mapNodeList’, which is of non-class type ‘int’
Source/DS_Map.h: In member function ‘bool DataStructures::Map<key_type, data_type, key_comparison_func>::Has(const key_type&)’:
Source/DS_Map.h:251: error: request for member ‘GetIndexFromKey’ in ‘((DataStructures::Map<key_type, data_type, key_comparison_func>*)this)->DataStructures::Map<key_type, data_type, key_comparison_func>::mapNodeList’, which is of non-class type ‘int’
Source/DS_Map.h: In member function ‘bool DataStructures::Map<key_type, data_type, key_comparison_func>::Delete(const key_type&)’:
Source/DS_Map.h:263: error: request for member ‘RemoveAtIndex’ in ‘((DataStructures::Map<key_type, data_type, key_comparison_func>*)this)->DataStructures::Map<key_type, data_type, key_comparison_func>::mapNodeList’, which is of non-class type ‘int’
Source/DS_Map.h:269: error: request for member ‘GetIndexFromKey’ in ‘((DataStructures::Map<key_type, data_type, key_comparison_func>*)this)->DataStructures::Map<key_type, data_type, key_comparison_func>::mapNodeList’, which is of non-class type ‘int’
Source/DS_Map.h:273: error: request for member ‘RemoveAtIndex’ in ‘((DataStructures::Map<key_type, data_type, key_comparison_func>*)this)->DataStructures::Map<key_type, data_type, key_comparison_func>::mapNodeList’, which is of non-class type ‘int’
Source/DS_Map.h: In member function ‘void DataStructures::Map<key_type, data_type, key_comparison_func>::Clear()’:
Source/DS_Map.h:284: error: request for member ‘Clear’ in ‘((DataStructures::Map<key_type, data_type, key_comparison_func>*)this)->DataStructures::Map<key_type, data_type, key_comparison_func>::mapNodeList’, which is of non-class type ‘int’
Source/DS_Map.h: In member function ‘data_type& DataStructures::Map<key_type, data_type, key_comparison_func>::operator[](unsigned int) const’:
Source/DS_Map.h:290: error: invalid types ‘const int[const unsigned int]’ for array subscript
Source/DS_Map.h: In member function ‘key_type DataStructures::Map<key_type, data_type, key_comparison_func>::GetKeyAtIndex(unsigned int) const’:
Source/DS_Map.h:296: error: invalid types ‘const int[const unsigned int]’ for array subscript
Source/DS_Map.h: In member function ‘unsigned int DataStructures::Map<key_type, data_type, key_comparison_func>::Size() const’:
Source/DS_Map.h:302: error: request for member ‘Size’ in ‘((const DataStructures::Map<key_type, data_type, key_comparison_func>*)this)->DataStructures::Map<key_type, data_type, key_comparison_func>::mapNodeList’, which is of non-class type ‘const int’
make[1]: *** [../output/RakNet/ConnectionGraph.o] Error 1
make[1]: Leaving directory `/home/hacker07/gameditoscr/RakNet'
make: *** [all] Error 2
If you have all the necessary tools and libraries installed(including downloading Raknet into the premade folder) and latest svn, all you should have to do is move the file "trunk/SDL/SDL_mixer/native_midi_gpl/awe_voice.h to a folder you have to make called "linux" in that same folder. Then, if it gives you an error about "extra qualification", find the part in the code it mentions and remove that part up to and including the "::". That should be it. I just verified this for you by trying to get a fresh copy, so I hope it all works for you.
The files it needs are in the base /usr/lib folder, you just need to link them with this command in the /usr/X11R6 directory:
sudo ln -s /usr/lib lib
eyecreate wrote:I can send you the version I have I've been playing with. It is not a clean copy. It was made in a Ubuntu 8.10 32 bit virtual machine.
http://www.box.net/shared/kgivy88vhg
eyecreate wrote:I can send you the version I have I've been playing with. It is not a clean copy. It was made in a Ubuntu 8.10 32 bit virtual machine.
http://www.box.net/shared/kgivy88vhg
Users browsing this forum: No registered users and 1 guest