I am trying to compile the source on Linux but it doesn't work so well...
I actually just wanted to use the UmdExtract Tool, so I tried to to compile only that first:
g++ Main.cpp -o umdextract
But I got a bunch of errors saying stuff like:
UnGnuG.h:20:3: error: #error Unsupported platform.
#error Unsupported platform.
In file included from Core.h:29:0,
from Main.cpp:1:
UnGnuG.h:254:15: warning: missing terminating " character [enabled by default]
asm volatile("
^
/usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h:212:23: error: ‘size_t’ has a previous declaration as ‘typedef long unsigned int size_t’
typedef __SIZE_TYPE__ size_t;
^
UnTemplate.h: In member function ‘void TMapBase<TK, TI>::Rehash()’:
UnTemplate.h:1390:46: error: ‘HashCount’ was not declared in this scope
INT* NewHash = new(TEXT("HashMapHash"))INT[HashCount];
Since I could not get that to work I tried compiling Umodel but that didnt work either...
make -f makefile-linux
Then I got this:
gcc -pipe -c -msse -std=c++0x -fno-strict-aliasing -fno-stack-protector -Wno-invalid-offsetof -Os -I . -I ./Core -I ./Unreal -I ./libs/include -I ./libs/nvtt -I ./libs/PowerVR -I UmodelTool -I UI -o ./obj/umodel-unix/Exporters.o Exporters/Exporters.cpp
Exporters/Exporters.cpp: In member function ‘int ExportedObjectEntry::GetHash() const’:
Exporters/Exporters.cpp:64:18: error: cast from ‘const UnPackage*’ to ‘int’ loses precision [-fpermissive]
return ( ((int)Package >> 3) ^ ExportIndex ^ (ExportIndex << 4) ) & (EXPORTED_LIST_HASH_SIZE - 1);
^
make: *** [obj/umodel-unix/Exporters.o] Error 1
Finally I tried just running the executable directly in Linux...
./umodel
./umodel: error while loading shared libraries: libSDL2-2.0.so.0: cannot open shared object file: No such file or directory
After giving up on getting it to work in Linux, I installed VirtualBox and Windows XP and tried to run the application there.
But when I select my umd file and try to export it I get this error message:
Fatal Error
Wrong tag in package: 16F5489A
I don't think there is anything else I can try to do to get Umodel to work for me, but could someone please help me to extract the content of my umd file if I send it to you?