Closed lgdolman closed 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
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
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.
Merged the meson build support offered by soerengrunewald, should work now.
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)