wghost / UPKUtils

Set of utilities to work with UPK files
GNU General Public License v2.0
58 stars 29 forks source link

Unable to compile #9

Closed lgdolman closed 4 years ago

lgdolman commented 4 years ago

ldolman@DESKTOP-F1CUBLR:~/Workbench/UPKUtils/build$ make /usr/local/bin/cmake -S/home/ldolman/Workbench/UPKUtils/build -B/home/ldolman/Workbench/UPKUtils/build --check-build-system CMakeFiles/Makefile.cmake 0 /usr/local/bin/cmake -E cmake_progress_start /home/ldolman/Workbench/UPKUtils/build/CMakeFiles /home/ldolman/Workbench/UPKUtils/build//CMakeFiles/progress.marks make -s -f CMakeFiles/Makefile2 all Scanning dependencies of target UToken [ 2%] Building CXX object CMakeFiles/UToken.dir/home/ldolman/Workbench/UPKUtils/UToken.cpp.o [ 5%] Linking CXX static library libUToken.a [ 5%] Built target UToken Scanning dependencies of target UObject [ 8%] Building CXX object CMakeFiles/UObject.dir/home/ldolman/Workbench/UPKUtils/UObject.cpp.o /home/ldolman/Workbench/UPKUtils/UObject.cpp: In member function ‘virtual std::__cxx11::string UTexture2D::Deserialize(std::istream&, UPKInfo&)’: /home/ldolman/Workbench/UPKUtils/UObject.cpp:1386:28: warning: comparison of integer expressions of different signedness: ‘std::streamoff’ {aka ‘long int’} and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] if (stream.tellg() > maxOffset)


/home/ldolman/Workbench/UPKUtils/UObject.cpp:1402:24: warning: comparison of integer expressions of different signedness: ‘std::streamoff’ {aka ‘long int’} and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
     if (stream.tellg() < maxOffset)
         ~~~~~~~~~~~~~~~^~~~~~~~~~~
[ 11%] Linking CXX static library libUObject.a
[ 11%] Built target UObject
Scanning dependencies of target UObjectFactory
[ 13%] Building CXX object CMakeFiles/UObjectFactory.dir/home/ldolman/Workbench/UPKUtils/UObjectFactory.cpp.o
[ 16%] Linking CXX static library libUObjectFactory.a
[ 16%] Built target UObjectFactory
Scanning dependencies of target UTokenFactory
[ 19%] Building CXX object CMakeFiles/UTokenFactory.dir/home/ldolman/Workbench/UPKUtils/UTokenFactory.cpp.o
[ 22%] Linking CXX static library libUTokenFactory.a
[ 22%] Built target UTokenFactory
Scanning dependencies of target UPKInfo
[ 25%] Building CXX object CMakeFiles/UPKInfo.dir/home/ldolman/Workbench/UPKUtils/UPKInfo.cpp.o
/home/ldolman/Workbench/UPKUtils/UPKInfo.cpp: In member function ‘bool UPKInfo::Read(std::istream&)’:
/home/ldolman/Workbench/UPKUtils/UPKInfo.cpp:154:180: warning: comparison of integer expressions of different signedness: ‘std::streamoff’ {aka ‘long int’} and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
 g() > 0 && Summary.CompressedChunks[0].CompressedOffset - stream.tellg() <= headerEndOffset)

/home/ldolman/Workbench/UPKUtils/UPKInfo.cpp: In member function ‘std::__cxx11::string UPKInfo::FormatExport(uint32_t, bool)’:
/home/ldolman/Workbench/UPKUtils/UPKInfo.cpp:632:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
         if (Summary.Version == VER_BATMAN_CITY)
         ^~
/home/ldolman/Workbench/UPKUtils/UPKInfo.cpp:634:12: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
            ss << "\tObjectFlagsH: " << FormatHEX(Entry.ObjectFlagsH) << std::endl
            ^~
[ 27%] Linking CXX static library libUPKInfo.a
[ 27%] Built target UPKInfo
Scanning dependencies of target UPKUtils
[ 30%] Building CXX object CMakeFiles/UPKUtils.dir/home/ldolman/Workbench/UPKUtils/UPKUtils.cpp.o
[ 33%] Linking CXX static library libUPKUtils.a
[ 33%] Built target UPKUtils
Scanning dependencies of target HexToPseudoCode
[ 36%] Building CXX object CMakeFiles/HexToPseudoCode.dir/home/ldolman/Workbench/UPKUtils/HexToPseudoCode.cpp.o
[ 38%] Linking CXX executable HexToPseudoCode
/usr/bin/ld: CMakeFiles/HexToPseudoCode.dir/home/ldolman/Workbench/UPKUtils/HexToPseudoCode.cpp.o: in function `main':
HexToPseudoCode.cpp:(.text.startup+0x469): undefined reference to `FormatCompressionFlags[abi:cxx11](unsigned int)'
/usr/bin/ld: libUPKInfo.a(UPKInfo.cpp.o): in function `UPKInfo::FormatCompressedHeader[abi:cxx11]()':
UPKInfo.cpp:(.text+0xec9): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: libUPKInfo.a(UPKInfo.cpp.o): in function `UPKInfo::FormatName[abi:cxx11](unsigned int, bool)':
UPKInfo.cpp:(.text+0x1964): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UPKInfo.cpp:(.text+0x19c7): undefined reference to `FormatHEX[abi:cxx11](char*, unsigned long)'
/usr/bin/ld: UPKInfo.cpp:(.text+0x1a8f): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UPKInfo.cpp:(.text+0x1aff): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: libUPKInfo.a(UPKInfo.cpp.o): in function `UPKInfo::FormatSummary[abi:cxx11]()':
UPKInfo.cpp:(.text+0x241b): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UPKInfo.cpp:(.text+0x256f): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UPKInfo.cpp:(.text+0x2668): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UPKInfo.cpp:(.text+0x26d4): undefined reference to `FormatPackageFlags[abi:cxx11](unsigned int)'
/usr/bin/ld: UPKInfo.cpp:(.text+0x2776): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UPKInfo.cpp:(.text+0x2851): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UPKInfo.cpp:(.text+0x292c): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UPKInfo.cpp:(.text+0x29ac): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UPKInfo.cpp:(.text+0x2a27): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: libUPKInfo.a(UPKInfo.cpp.o):UPKInfo.cpp:(.text+0x2aa2): more undefined references to `FormatHEX[abi:cxx11](unsigned int)' follow
/usr/bin/ld: libUPKInfo.a(UPKInfo.cpp.o): in function `UPKInfo::FormatSummary[abi:cxx11]()':
UPKInfo.cpp:(.text+0x321a): undefined reference to `FormatCompressionFlags[abi:cxx11](unsigned int)'
/usr/bin/ld: UPKInfo.cpp:(.text+0x3330): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UPKInfo.cpp:(.text+0x3454): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UPKInfo.cpp:(.text+0x381d): undefined reference to `FormatHEX[abi:cxx11](std::vector<char, std::allocator<char> >)'
/usr/bin/ld: libUPKInfo.a(UPKInfo.cpp.o): in function `UPKInfo::FormatImport[abi:cxx11](unsigned int, bool)':
UPKInfo.cpp:(.text+0x6e92): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UPKInfo.cpp:(.text+0x6eff): undefined reference to `FormatHEX[abi:cxx11](char*, unsigned long)'
/usr/bin/ld: UPKInfo.cpp:(.text+0x729d): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: libUPKInfo.a(UPKInfo.cpp.o): in function `UPKInfo::FormatExport[abi:cxx11](unsigned int, bool)':
UPKInfo.cpp:(.text+0x7fb7): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UPKInfo.cpp:(.text+0x8023): undefined reference to `FormatHEX[abi:cxx11](char*, unsigned long)'
/usr/bin/ld: UPKInfo.cpp:(.text+0x8151): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UPKInfo.cpp:(.text+0x821f): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UPKInfo.cpp:(.text+0x82f3): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UPKInfo.cpp:(.text+0x84ea): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UPKInfo.cpp:(.text+0x86b1): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UPKInfo.cpp:(.text+0x8710): undefined reference to `FormatObjectFlagsH[abi:cxx11](unsigned int)'
/usr/bin/ld: UPKInfo.cpp:(.text+0x8750): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UPKInfo.cpp:(.text+0x87b5): undefined reference to `FormatObjectFlagsL[abi:cxx11](unsigned int)'
/usr/bin/ld: UPKInfo.cpp:(.text+0x87f5): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UPKInfo.cpp:(.text+0x88ab): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UPKInfo.cpp:(.text+0x8922): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UPKInfo.cpp:(.text+0x8987): undefined reference to `FormatExportFlags[abi:cxx11](unsigned int)'
/usr/bin/ld: UPKInfo.cpp:(.text+0x8aa6): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UPKInfo.cpp:(.text+0x8cbc): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UPKInfo.cpp:(.text+0x920f): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: libUPKUtils.a(UPKUtils.cpp.o): in function `UPKUtils::DecompressPackage(char const*)':
UPKUtils.cpp:(.text+0x5e4a): undefined reference to `DecompressLzoCompressedDataFromStream(std::istream&, std::vector<char, std::allocator<char> >&)'
/usr/bin/ld: libUObject.a(UObject.cpp.o): in function `UBulkDataMirror::ExportToExternalFile(CustomTFC&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
UObject.cpp:(.text+0x249): undefined reference to `CustomTFC::WriteData(TFCInventoryEntry&, std::vector<char, std::allocator<char> >)'
/usr/bin/ld: libUObject.a(UObject.cpp.o): in function `UBulkDataMirror::TryLzoCompression()':
UObject.cpp:(.text+0xfc4): undefined reference to `LzoCompress(std::vector<char, std::allocator<char> >&, std::vector<char, std::allocator<char> >&)'
/usr/bin/ld: libUObject.a(UObject.cpp.o): in function `UBulkDataMirror::Deserialize[abi:cxx11](std::istream&, UPKInfo&, int)':
UObject.cpp:(.text+0x1d54): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0x1d8c): undefined reference to `FormatBulkDataFlags[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0x1de2): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0x1e79): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0x1f10): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0x20df): undefined reference to `DecompressLzoCompressedRawData(std::vector<char, std::allocator<char> >&, std::vector<char, std::allocator<char> >&)'
/usr/bin/ld: libUObject.a(UObject.cpp.o): in function `UTexture2DMipMap::Deserialize[abi:cxx11](std::istream&, UPKInfo&, int)':
UObject.cpp:(.text+0x2400): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0x2496): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: libUObject.a(UObject.cpp.o): in function `UDefaultProperty::DeserializeValue[abi:cxx11](std::istream&, UPKInfo&)':
UObject.cpp:(.text+0x325a): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0x3340): undefined reference to `FormatHEX[abi:cxx11](float)'
/usr/bin/ld: UObject.cpp:(.text+0x33f6): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0x366f): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0x3785): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0x3b44): undefined reference to `FormatHEX[abi:cxx11](float)'
/usr/bin/ld: UObject.cpp:(.text+0x3b8f): undefined reference to `FormatHEX[abi:cxx11](float)'
/usr/bin/ld: UObject.cpp:(.text+0x3bda): undefined reference to `FormatHEX[abi:cxx11](float)'
/usr/bin/ld: UObject.cpp:(.text+0x3d68): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0x3db1): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0x3dfa): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0x3f7d): undefined reference to `FormatHEX[abi:cxx11](float)'
/usr/bin/ld: UObject.cpp:(.text+0x3fc8): undefined reference to `FormatHEX[abi:cxx11](float)'
/usr/bin/ld: UObject.cpp:(.text+0x427e): undefined reference to `FormatHEX[abi:cxx11](unsigned char)'
/usr/bin/ld: UObject.cpp:(.text+0x42c8): undefined reference to `FormatHEX[abi:cxx11](unsigned char)'
/usr/bin/ld: UObject.cpp:(.text+0x4312): undefined reference to `FormatHEX[abi:cxx11](unsigned char)'
/usr/bin/ld: UObject.cpp:(.text+0x435c): undefined reference to `FormatHEX[abi:cxx11](unsigned char)'
/usr/bin/ld: UObject.cpp:(.text+0x4525): undefined reference to `FormatHEX[abi:cxx11](float)'
/usr/bin/ld: UObject.cpp:(.text+0x4570): undefined reference to `FormatHEX[abi:cxx11](float)'
/usr/bin/ld: UObject.cpp:(.text+0x45bb): undefined reference to `FormatHEX[abi:cxx11](float)'
/usr/bin/ld: UObject.cpp:(.text+0x4606): undefined reference to `FormatHEX[abi:cxx11](float)'
/usr/bin/ld: UObject.cpp:(.text+0x4829): undefined reference to `FormatHEX[abi:cxx11](std::vector<char, std::allocator<char> >)'
/usr/bin/ld: UObject.cpp:(.text+0x4911): undefined reference to `FormatHEX[abi:cxx11](float)'
/usr/bin/ld: UObject.cpp:(.text+0x495c): undefined reference to `FormatHEX[abi:cxx11](float)'
/usr/bin/ld: UObject.cpp:(.text+0x49a7): undefined reference to `FormatHEX[abi:cxx11](float)'
/usr/bin/ld: UObject.cpp:(.text+0x4b11): undefined reference to `FormatHEX[abi:cxx11](float)'
/usr/bin/ld: UObject.cpp:(.text+0x4b52): undefined reference to `FormatHEX[abi:cxx11](float)'
/usr/bin/ld: libUObject.a(UObject.cpp.o):UObject.cpp:(.text+0x4b96): more undefined references to `FormatHEX[abi:cxx11](float)' follow
/usr/bin/ld: libUObject.a(UObject.cpp.o): in function `UDefaultProperty::DeserializeValue[abi:cxx11](std::istream&, UPKInfo&)':
UObject.cpp:(.text+0x4cde): undefined reference to `FormatHEX[abi:cxx11](unsigned char)'
/usr/bin/ld: UObject.cpp:(.text+0x4d91): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0x4dff): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: libUObject.a(UObject.cpp.o): in function `UDefaultProperty::Deserialize[abi:cxx11](std::istream&, UPKInfo&, int, bool, bool)':
UObject.cpp:(.text+0x5483): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0x54fb): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0x55b6): undefined reference to `FormatHEX[abi:cxx11](unsigned char)'
/usr/bin/ld: libUObject.a(UObject.cpp.o): in function `UObject::Deserialize[abi:cxx11](std::istream&, UPKInfo&)':
UObject.cpp:(.text+0x60cd): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0x627b): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0x62e6): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: libUObject.a(UObject.cpp.o): in function `UField::Deserialize[abi:cxx11](std::istream&, UPKInfo&)':
UObject.cpp:(.text+0x653b): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0x65fd): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: libUObject.a(UObject.cpp.o):UObject.cpp:(.text+0x67e7): more undefined references to `FormatHEX[abi:cxx11](unsigned int)' follow
/usr/bin/ld: libUObject.a(UObject.cpp.o): in function `UFunction::Deserialize[abi:cxx11](std::istream&, UPKInfo&)':
UObject.cpp:(.text+0x6d85): undefined reference to `FormatHEX[abi:cxx11](unsigned short)'
/usr/bin/ld: UObject.cpp:(.text+0x6dea): undefined reference to `FormatHEX[abi:cxx11](unsigned char)'
/usr/bin/ld: UObject.cpp:(.text+0x6e5a): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0x6e96): undefined reference to `FormatFunctionFlags[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0x6efc): undefined reference to `FormatHEX[abi:cxx11](unsigned short)'
/usr/bin/ld: libUObject.a(UObject.cpp.o): in function `UState::Deserialize[abi:cxx11](std::istream&, UPKInfo&)':
UObject.cpp:(.text+0x7188): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0x71ef): undefined reference to `FormatHEX[abi:cxx11](unsigned short)'
/usr/bin/ld: UObject.cpp:(.text+0x7264): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0x72a0): undefined reference to `FormatStateFlags[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0x72fe): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0x750d): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: libUObject.a(UObject.cpp.o): in function `UClass::Deserialize[abi:cxx11](std::istream&, UPKInfo&)':
UObject.cpp:(.text+0x7750): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0x778b): undefined reference to `FormatClassFlags[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0x77eb): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0x7953): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0x7a43): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0x7b33): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0x7c23): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: libUObject.a(UObject.cpp.o):UObject.cpp:(.text+0x7d13): more undefined references to `FormatHEX[abi:cxx11](unsigned int)' follow
/usr/bin/ld: libUObject.a(UObject.cpp.o): in function `UProperty::Deserialize[abi:cxx11](std::istream&, UPKInfo&)':
UObject.cpp:(.text+0x910e): undefined reference to `FormatHEX[abi:cxx11](unsigned short)'
/usr/bin/ld: UObject.cpp:(.text+0x91a0): undefined reference to `FormatHEX[abi:cxx11](unsigned short)'
/usr/bin/ld: UObject.cpp:(.text+0x9251): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0x928d): undefined reference to `FormatPropertyFlagsL[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0x92e9): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0x9325): undefined reference to `FormatPropertyFlagsH[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0x9446): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0x9509): undefined reference to `FormatHEX[abi:cxx11](unsigned short)'
/usr/bin/ld: libUObject.a(UObject.cpp.o): in function `UByteProperty::Deserialize[abi:cxx11](std::istream&, UPKInfo&)':
UObject.cpp:(.text+0x96cf): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: libUObject.a(UObject.cpp.o): in function `UObjectProperty::Deserialize[abi:cxx11](std::istream&, UPKInfo&)':
UObject.cpp:(.text+0x988f): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: libUObject.a(UObject.cpp.o): in function `UClassProperty::Deserialize[abi:cxx11](std::istream&, UPKInfo&)':
UObject.cpp:(.text+0x9a4f): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: libUObject.a(UObject.cpp.o): in function `UStructProperty::Deserialize[abi:cxx11](std::istream&, UPKInfo&)':
UObject.cpp:(.text+0x9c0f): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: libUObject.a(UObject.cpp.o): in function `UFixedArrayProperty::Deserialize[abi:cxx11](std::istream&, UPKInfo&)':
UObject.cpp:(.text+0x9dcb): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: libUObject.a(UObject.cpp.o):UObject.cpp:(.text+0x9e84): more undefined references to `FormatHEX[abi:cxx11](unsigned int)' follow
/usr/bin/ld: libUObject.a(UObject.cpp.o): in function `UTexture2D::Deserialize[abi:cxx11](std::istream&, UPKInfo&)':
UObject.cpp:(.text+0xb7e7): undefined reference to `FormatHEX[abi:cxx11](std::vector<char, std::allocator<char> >)'
/usr/bin/ld: libUObject.a(UObject.cpp.o): in function `UObjectUnknown::Deserialize[abi:cxx11](std::istream&, UPKInfo&)':
UObject.cpp:(.text+0xba8f): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: libUObject.a(UObject.cpp.o): in function `ULevel::Deserialize[abi:cxx11](std::istream&, UPKInfo&)':
UObject.cpp:(.text+0xbc51): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0xbd0a): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0xbd98): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0xbf1f): undefined reference to `FormatHEX[abi:cxx11](char*, unsigned long)'
/usr/bin/ld: UObject.cpp:(.text+0xbf55): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0xc058): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: libUObject.a(UObject.cpp.o): in function `UScriptStruct::Deserialize[abi:cxx11](std::istream&, UPKInfo&)':
UObject.cpp:(.text+0xc28a): undefined reference to `FormatHEX[abi:cxx11](unsigned int)'
/usr/bin/ld: UObject.cpp:(.text+0xc2d0): undefined reference to `FormatStructFlags[abi:cxx11](unsigned int)'
/usr/bin/ld: libUToken.a(UToken.cpp.o): in function `UScriptToken::Deserialize[abi:cxx11](std::istream&, UPKInfo&)':
UToken.cpp:(.text+0x18): undefined reference to `FormatHEX[abi:cxx11](char*, unsigned long)'
/usr/bin/ld: libUToken.a(UToken.cpp.o): in function `UScriptToken::DeserializeByte[abi:cxx11](std::istream&, UPKInfo&)':
UToken.cpp:(.text+0xa4): undefined reference to `FormatHEX[abi:cxx11](char*, unsigned long)'
/usr/bin/ld: libUToken.a(UToken.cpp.o): in function `UScriptToken::DeserializeShort[abi:cxx11](std::istream&, UPKInfo&)':
UToken.cpp:(.text+0xf4): undefined reference to `FormatHEX[abi:cxx11](char*, unsigned long)'
/usr/bin/ld: libUToken.a(UToken.cpp.o): in function `UScriptToken::FormatType[abi:cxx11]()':
UToken.cpp:(.text+0x11e): undefined reference to `FormatHEX[abi:cxx11](char*, unsigned long)'
/usr/bin/ld: libUToken.a(UToken.cpp.o): in function `UScriptToken::FormatByte[abi:cxx11](unsigned char)':
UToken.cpp:(.text+0x187): undefined reference to `FormatHEX[abi:cxx11](char*, unsigned long)'
/usr/bin/ld: libUToken.a(UToken.cpp.o):UToken.cpp:(.text+0x1d8): more undefined references to `FormatHEX[abi:cxx11](char*, unsigned long)' follow
/usr/bin/ld: libUToken.a(UToken.cpp.o): in function `UScriptToken::FormatMemOffset[abi:cxx11](unsigned short)':
UToken.cpp:(.text+0x205): undefined reference to `FormatHEX[abi:cxx11](unsigned short)'
/usr/bin/ld: libUToken.a(UToken.cpp.o): in function `UScriptToken::DeserializeMemoryOffset[abi:cxx11](std::istream&, UPKInfo&)':
UToken.cpp:(.text+0x3a4): undefined reference to `FormatHEX[abi:cxx11](char*, unsigned long)'
/usr/bin/ld: libUToken.a(UToken.cpp.o): in function `UNameIndexToken::Deserialize[abi:cxx11](std::istream&, UPKInfo&)':
UToken.cpp:(.text+0x137a): undefined reference to `FormatHEX[abi:cxx11](char*, unsigned long)'
/usr/bin/ld: libUToken.a(UToken.cpp.o): in function `UFloatConstToken::Deserialize[abi:cxx11](std::istream&, UPKInfo&)':
UToken.cpp:(.text+0x172a): undefined reference to `FormatHEX[abi:cxx11](char*, unsigned long)'
/usr/bin/ld: libUToken.a(UToken.cpp.o): in function `UByteConstToken::Deserialize[abi:cxx11](std::istream&, UPKInfo&)':
UToken.cpp:(.text+0x1ada): undefined reference to `FormatHEX[abi:cxx11](char*, unsigned long)'
/usr/bin/ld: libUToken.a(UToken.cpp.o): in function `UJumpToken::Deserialize[abi:cxx11](std::istream&, UPKInfo&)':
UToken.cpp:(.text+0x1e8a): undefined reference to `FormatHEX[abi:cxx11](char*, unsigned long)'
/usr/bin/ld: libUToken.a(UToken.cpp.o):UToken.cpp:(.text+0x223a): more undefined references to `FormatHEX[abi:cxx11](char*, unsigned long)' follow
/usr/bin/ld: libUToken.a(UToken.cpp.o): in function `UScriptExpression::Deserialize[abi:cxx11](std::istream&, UPKInfo&)':
UToken.cpp:(.text+0x27fa): undefined reference to `FormatHEX[abi:cxx11](unsigned char)'
/usr/bin/ld: libUToken.a(UToken.cpp.o): in function `UVectorConstToken::Deserialize[abi:cxx11](std::istream&, UPKInfo&)':
UToken.cpp:(.text+0x2a93): undefined reference to `FormatHEX[abi:cxx11](char*, unsigned long)'
/usr/bin/ld: libUToken.a(UToken.cpp.o): in function `URotatorConstToken::Deserialize[abi:cxx11](std::istream&, UPKInfo&)':
UToken.cpp:(.text+0x2f43): undefined reference to `FormatHEX[abi:cxx11](char*, unsigned long)'
/usr/bin/ld: libUToken.a(UToken.cpp.o): in function `ULabelTableToken::Deserialize[abi:cxx11](std::istream&, UPKInfo&)':
UToken.cpp:(.text+0x33d1): undefined reference to `FormatHEX[abi:cxx11](char*, unsigned long)'
/usr/bin/ld: libUToken.a(UToken.cpp.o): in function `UDebugInfoToken::Deserialize[abi:cxx11](std::istream&, UPKInfo&)':
UToken.cpp:(.text+0x3885): undefined reference to `FormatHEX[abi:cxx11](char*, unsigned long)'
/usr/bin/ld: libUToken.a(UToken.cpp.o): in function `UObjRefToken::Deserialize[abi:cxx11](std::istream&, UPKInfo&)':
UToken.cpp:(.text+0x429a): undefined reference to `FormatHEX[abi:cxx11](char*, unsigned long)'
/usr/bin/ld: libUToken.a(UToken.cpp.o):UToken.cpp:(.text+0x464a): more undefined references to `FormatHEX[abi:cxx11](char*, unsigned long)' follow
/usr/bin/ld: libUToken.a(UToken.cpp.o): in function `UScriptCode::Deserialize[abi:cxx11](std::istream&, UPKInfo&)':
UToken.cpp:(.text+0xa8c2): undefined reference to `FormatHEX[abi:cxx11](unsigned short)'
/usr/bin/ld: UToken.cpp:(.text+0xa8de): undefined reference to `FormatHEX[abi:cxx11](unsigned short)'
/usr/bin/ld: UToken.cpp:(.text+0xb0da): undefined reference to `FormatHEX[abi:cxx11](unsigned short)'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/HexToPseudoCode.dir/build.make:110: HexToPseudoCode] Error 1
make[1]: *** [CMakeFiles/Makefile2:135: CMakeFiles/HexToPseudoCode.dir/all] Error 2
make: *** [Makefile:104: all] Error 2
lgdolman commented 4 years ago

UPKUtils73.7z source from release page compiles without issue

make /usr/local/bin/cmake -S/home/ldolman/Desktop/UPKUtils-7.3/build -B/home/ldolman/Desktop/UPKUtils-7.3/build --check-build-system CMakeFiles/Makefile.cmake 0 /usr/local/bin/cmake -E cmake_progress_start /home/ldolman/Desktop/UPKUtils-7.3/build/CMakeFiles /home/ldolman/Desktop/UPKUtils-7.3/build//CMakeFiles/progress.marks make -s -f CMakeFiles/Makefile2 all Scanning dependencies of target UTokenFactory [ 2%] Building CXX object CMakeFiles/UTokenFactory.dir/home/ldolman/Desktop/UPKUtils-7.3/UTokenFactory.cpp.o [ 5%] Linking CXX static library libUTokenFactory.a [ 5%] Built target UTokenFactory Scanning dependencies of target UObject [ 8%] Building CXX object CMakeFiles/UObject.dir/home/ldolman/Desktop/UPKUtils-7.3/UObject.cpp.o [ 11%] Linking CXX static library libUObject.a [ 11%] Built target UObject Scanning dependencies of target UObjectFactory [ 13%] Building CXX object CMakeFiles/UObjectFactory.dir/home/ldolman/Desktop/UPKUtils-7.3/UObjectFactory.cpp.o [ 16%] Linking CXX static library libUObjectFactory.a [ 16%] Built target UObjectFactory Scanning dependencies of target UPKInfo [ 19%] Building CXX object CMakeFiles/UPKInfo.dir/home/ldolman/Desktop/UPKUtils-7.3/UPKInfo.cpp.o [ 22%] Linking CXX static library libUPKInfo.a [ 22%] Built target UPKInfo Scanning dependencies of target UToken [ 25%] Building CXX object CMakeFiles/UToken.dir/home/ldolman/Desktop/UPKUtils-7.3/UToken.cpp.o [ 27%] Linking CXX static library libUToken.a [ 27%] Built target UToken Scanning dependencies of target UPKUtils [ 30%] Building CXX object CMakeFiles/UPKUtils.dir/home/ldolman/Desktop/UPKUtils-7.3/UPKUtils.cpp.o [ 33%] Linking CXX static library libUPKUtils.a [ 33%] Built target UPKUtils Scanning dependencies of target HexToPseudoCode [ 36%] Building CXX object CMakeFiles/HexToPseudoCode.dir/home/ldolman/Desktop/UPKUtils-7.3/HexToPseudoCode.cpp.o [ 38%] Linking CXX executable HexToPseudoCode [ 38%] Built target HexToPseudoCode Scanning dependencies of target DeserializeAll [ 41%] Building CXX object CMakeFiles/DeserializeAll.dir/home/ldolman/Desktop/UPKUtils-7.3/DeserializeAll.cpp.o [ 44%] Linking CXX executable DeserializeAll [ 44%] Built target DeserializeAll Scanning dependencies of target ModParser [ 47%] Building CXX object CMakeFiles/ModParser.dir/home/ldolman/Desktop/UPKUtils-7.3/ModParser.cpp.o [ 50%] Linking CXX static library libModParser.a [ 50%] Built target ModParser Scanning dependencies of target CompareUPK [ 52%] Building CXX object CMakeFiles/CompareUPK.dir/home/ldolman/Desktop/UPKUtils-7.3/CompareUPK.cpp.o [ 55%] Linking CXX executable CompareUPK [ 55%] Built target CompareUPK Scanning dependencies of target ExtractNameLists [ 58%] Building CXX object CMakeFiles/ExtractNameLists.dir/home/ldolman/Desktop/UPKUtils-7.3/ExtractNameLists.cpp.o [ 61%] Linking CXX executable ExtractNameLists [ 61%] Built target ExtractNameLists Scanning dependencies of target minilzo [ 63%] Building C object CMakeFiles/minilzo.dir/home/ldolman/Desktop/UPKUtils-7.3/minilzo.c.o [ 66%] Linking C static library libminilzo.a [ 66%] Built target minilzo Scanning dependencies of target FindObjectByOffset [ 69%] Building CXX object CMakeFiles/FindObjectByOffset.dir/home/ldolman/Desktop/UPKUtils-7.3/FindObjectByOffset.cpp.o [ 72%] Linking CXX executable FindObjectByOffset [ 72%] Built target FindObjectByOffset Scanning dependencies of target DecompressLZO [ 75%] Building CXX object CMakeFiles/DecompressLZO.dir/home/ldolman/Desktop/UPKUtils-7.3/DecompressLZO.cpp.o [ 77%] Linking CXX executable DecompressLZO [ 77%] Built target DecompressLZO Scanning dependencies of target FindObjectEntry [ 80%] Building CXX object CMakeFiles/FindObjectEntry.dir/home/ldolman/Desktop/UPKUtils-7.3/FindObjectEntry.cpp.o [ 83%] Linking CXX executable FindObjectEntry [ 83%] Built target FindObjectEntry Scanning dependencies of target MoveExpandFunction [ 86%] Building CXX object CMakeFiles/MoveExpandFunction.dir/home/ldolman/Desktop/UPKUtils-7.3/MoveExpandFunction.cpp.o [ 88%] Linking CXX executable MoveExpandFunction [ 88%] Built target MoveExpandFunction Scanning dependencies of target ModScript [ 91%] Building CXX object CMakeFiles/ModScript.dir/home/ldolman/Desktop/UPKUtils-7.3/ModScript.cpp.o [ 94%] Linking CXX static library libModScript.a [ 94%] Built target ModScript Scanning dependencies of target PatchUPK [ 97%] Building CXX object CMakeFiles/PatchUPK.dir/home/ldolman/Desktop/UPKUtils-7.3/PatchUPK.cpp.o [100%] Linking CXX executable PatchUPK [100%] Built target PatchUPK /usr/local/bin/cmake -E cmake_progress_start /home/ldolman/Desktop/UPKUtils-7.3/build/CMakeFiles 0

ghost commented 4 years ago

Hi, i encountered a similar issue and i used the meson build made by https://github.com/soerengrunewald

https://github.com/soerengrunewald/UPKUtils/tree/feature/add-meson-build-support

wghost commented 4 years ago

I'm currently under Windows 10 using wxWidgets-3.1.3 and tdm-gcc-5.1.0-3 compiler. The project was originally created for Code::Blocks. I did not update cmake version, so it won't work.

wghost commented 4 years ago

Merged the meson build support offered by soerengrunewald, should work now.