bruvzg / gdsdecomp

Godot reverse engineering tools
MIT License
1.42k stars 138 forks source link

error building on windows #44

Closed The-ThirtyFour closed 2 years ago

The-ThirtyFour commented 2 years ago
=====
b'modules\\gdsdecomp\\utility\\image_parser_v2.cpp: In static member function \'static String ImageParserV2::image_v2_to_string(const Variant&)\':\nmodules\\gdsdecomp\\utility\\image_parser_v2.cpp:85:29: error: \'FORMAT_PVRTC1_2\' is not a member of \'Image\'\n   85 |                 case Image::FORMAT_PVRTC1_2:\n      |                             ^~~~~~~~~~~~~~~\nmodules\\gdsdecomp\\utility\\image_parser_v2.cpp:88:29: error: \'FORMAT_PVRTC1_2A\' is not a member of \'Image\'\n   88 |                 case Image::FORMAT_PVRTC1_2A:\n      |                             ^~~~~~~~~~~~~~~~\nmodules\\gdsdecomp\\utility\\image_parser_v2.cpp:91:29: error: \'FORMAT_PVRTC1_4\' is not a member of \'Image\'\n   91 |
        case Image::FORMAT_PVRTC1_4:\n      |                             ^~~~~~~~~~~~~~~\nmodules\\gdsdecomp\\utility\\image_parser_v2.cpp:94:29: error: \'FORMAT_PVRTC1_4A\' is not a member of \'Image\'\n   94 |                 case Image::FORMAT_PVRTC1_4A:\n      |                             ^~~~~~~~~~~~~~~~\nmodules\\gdsdecomp\\utility\\image_parser_v2.cpp:118:127: error: \'FORMAT_PVRTC1_4A\' is not a member of \'Image\'\n  118 |                         subimgstr = ", " + itos(Image::get_image_required_mipmaps(img->get_width(), img->get_height(), Image::FORMAT_PVRTC1_4A)) + ", ";\n      | 
      ^~~~~~~~~~~~~~~~\nmodules\\gdsdecomp\\utility\\image_parser_v2.cpp: In static member function \'static Error ImageParserV2::write_image_v2_to_bin(FileAccess*, const Variant&, PropertyHint)\':\nmodules\\gdsdecomp\\utility\\image_parser_v2.cpp:206:37: error: \'FORMAT_PVRTC1_2\' is not a member of \'Image\'\n  206 |                         case Image::FORMAT_PVRTC1_2: {\n      |                                     ^~~~~~~~~~~~~~~\nmodules\\gdsdecomp\\utility\\image_parser_v2.cpp:209:37: error: \'FORMAT_PVRTC1_2A\' is not a member of \'Image\'\n  209 |                         case Image::FORMAT_PVRTC1_2A: {\n      |                                     ^~~~~~~~~~~~~~~~\nmodules\\gdsdecomp\\utility\\image_parser_v2.cpp:212:37: error: \'FORMAT_PVRTC1_4\' is not a member of \'Image\'\n  212 |                         case Image::FORMAT_PVRTC1_4: {\n      |                                     ^~~~~~~~~~~~~~~\nmodules\\gdsdecomp\\utility\\image_parser_v2.cpp:215:37: error: \'FORMAT_PVRTC1_4A\' is not a member of \'Image\'\n  215 |                         case Image::FORMAT_PVRTC1_4A: {\n      |                                     ^~~~~~~~~~~~~~~~\nmodules\\gdsdecomp\\utility\\image_parser_v2.cpp:237:121: error: \'FORMAT_PVRTC1_4A\' is not a member of \'Image\'\n  237 |                                 mipmaps = Image::get_image_required_mipmaps(val->get_width(), val->get_height(), Image::FORMAT_PVRTC1_4A);\n      |                                                                                                                         ^~~~~~~~~~~~~~~~\nmodules\\gdsdecomp\\utility\\image_parser_v2.cpp: In static member function \'static Error ImageParserV2::parse_image_v2(FileAccess*, Variant&, bool, bool)\':\nmodules\\gdsdecomp\\utility\\image_parser_v2.cpp:325:46: error: \'FORMAT_PVRTC1_2\' is not a member of \'Image\'\n  325 |                                 fmt = Image::FORMAT_PVRTC1_2;\n      |                                              ^~~~~~~~~~~~~~~\nmodules\\gdsdecomp\\utility\\image_parser_v2.cpp:328:46: error: \'FORMAT_PVRTC1_2A\' is not a member of \'Image\'\n  328 |                                 fmt = Image::FORMAT_PVRTC1_2A;\n      |                                              ^~~~~~~~~~~~~~~~\nmodules\\gdsdecomp\\utility\\image_parser_v2.cpp:331:46: error: \'FORMAT_PVRTC1_4\' is not a member of \'Image\'\n  331 |                                 fmt = Image::FORMAT_PVRTC1_4;\n      |                                              ^~~~~~~~~~~~~~~\nmodules\\gdsdecomp\\utility\\image_parser_v2.cpp:334:46: error: \'FORMAT_PVRTC1_4A\' is not a member of \'Image\'\n  334 |
              fmt = Image::FORMAT_PVRTC1_4A;\n      |                                              ^~~~~~~~~~~~~~~~\n'
=====
scons: *** [modules\gdsdecomp\utility\image_parser_v2.windows.opt.tools.64.o] Error 1
scons: building terminated because of errors.
[Time elapsed: 00:02:09.109]

OS: Windows 11 x64 Using MinGW

nikitalita commented 2 years ago

Yeah, looks like we drifted out of sync with master about 13 days ago: https://github.com/bruvzg/gdsdecomp/actions/runs/1705740800

Last good sync was commit 1cff9a2e49d42187d4e3729cddbaf7fdbcced0bd, check that out in the godot repo and recompile.

The-ThirtyFour commented 2 years ago

thanks, it worked