Giter Site home page Giter Site logo

Comments (5)

papa-agoo avatar papa-agoo commented on May 16, 2024

scons minizip=no bin/godot leads to this:

...
patform/windows/...
...
platform/android/export/export.cpp:373:14: warning: unused variable 'string_data_offset' [-Wunused-variable]
platform/android/export/export.cpp:374:14: warning: unused variable 'styles_offset' [-Wunused-variable]
platform/android/export/export.cpp:443:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
platform/android/export/export.cpp:430:14: warning: unused variable 'line' [-Wunused-variable]
platform/android/export/export.cpp:431:14: warning: unused variable 'nspace' [-Wunused-variable]
platform/android/export/export.cpp:433:14: warning: unused variable 'check' [-Wunused-variable]
platform/android/export/export.cpp:556:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
platform/android/export/export.cpp:600:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
platform/android/export/export.cpp:326:12: warning: unused variable 'CHUNK_AXML_FILE' [-Wunused-variable]
platform/android/export/export.cpp:327:12: warning: unused variable 'CHUNK_RESOURCEIDS' [-Wunused-variable]
platform/android/export/export.cpp:329:12: warning: unused variable 'CHUNK_XML_END_NAMESPACE' [-Wunused-variable]
platform/android/export/export.cpp:330:12: warning: unused variable 'CHUNK_XML_END_TAG' [-Wunused-variable]
platform/android/export/export.cpp:331:12: warning: unused variable 'CHUNK_XML_START_NAMESPACE' [-Wunused-variable]
platform/android/export/export.cpp:333:12: warning: unused variable 'CHUNK_XML_TEXT' [-Wunused-variable]
platform/android/export/export.cpp:341:11: warning: unused variable 'header' [-Wunused-variable]
platform/android/export/export.cpp:342:11: warning: unused variable 'filesize' [-Wunused-variable]
platform/android/export/export.cpp:347:11: warning: unused variable 'string_count' [-Wunused-variable]
platform/android/export/export.cpp:348:11: warning: unused variable 'styles_count' [-Wunused-variable]
platform/android/export/export.cpp:349:11: warning: unused variable 'string_flags' [-Wunused-variable]
platform/android/export/export.cpp:350:11: warning: unused variable 'string_data_offset' [-Wunused-variable]
platform/android/export/export.cpp:352:11: warning: unused variable 'styles_offset' [-Wunused-variable]
platform/android/export/export.cpp: In static member function 'static Error EditorExportPlatformAndroid::save_apk_file(void_, const String&, const Vector&, int, int)':
platform/android/export/export.cpp:669:24: error: 'zipOpenNewFileInZip' was not declared in this scope
platform/android/export/export.cpp:672:56: error: 'zipWriteInFileInZip' was not declared in this scope
platform/android/export/export.cpp:673:27: error: 'zipCloseFileInZip' was not declared in this scope
platform/android/export/export.cpp: In member function 'virtual Error EditorExportPlatformAndroid::export_project(const String&, bool, const String&)':
platform/android/export/export.cpp:706:55: error: 'unzOpen2' was not declared in this scope
platform/android/export/export.cpp:714:32: error: 'unzGoToFirstFile' was not declared in this scope
platform/android/export/export.cpp:719:78: error: 'zipOpen2' was not declared in this scope
platform/android/export/export.cpp:727:66: error: 'unzGetCurrentFileInfo' was not declared in this scope
platform/android/export/export.cpp:735:25: error: 'unzOpenCurrentFile' was not declared in this scope
platform/android/export/export.cpp:736:48: error: 'unzReadCurrentFile' was not declared in this scope
platform/android/export/export.cpp:737:26: error: 'unzCloseCurrentFile' was not declared in this scope
platform/android/export/export.cpp:791:25: error: 'zipOpenNewFileInZip' was not declared in this scope
platform/android/export/export.cpp:793:49: error: 'zipWriteInFileInZip' was not declared in this scope
platform/android/export/export.cpp:794:24: error: 'zipCloseFileInZip' was not declared in this scope
platform/android/export/export.cpp:796:28: error: 'unzGoToNextFile' was not declared in this scope
platform/android/export/export.cpp:810:19: error: 'zipClose' was not declared in this scope
platform/android/export/export.cpp:811:14: error: 'unzClose' was not declared in this scope
platform/android/export/export.cpp: In static member function 'static void EditorExportPlatformAndroid::device_poll_thread(void)':
platform/android/export/export.cpp:999:12: warning: unused variable 'err' [-Wunused-variable]
platform/android/export/export.cpp:940:9: warning: unused variable 'err' [-Wunused-variable]
platform/android/export/export.cpp: In member function 'virtual Error EditorExportPlatformAndroid::run(int)':
platform/android/export/export.cpp:1099:4: warning: statement has no effect [-Wunused-value]
scons: *** [platform/android/export/export.o] Error 1
scons: building terminated because of errors.

from godot.

reduz avatar reduz commented on May 16, 2024

minizip is needed, but I'm not sure what the original errors mean. My guess is that gentoo does something weird regarding zlib

from godot.

JoseJX avatar JoseJX commented on May 16, 2024

Gentoo sanitizes the zlib headers because of namespace polution:
https://bugs.gentoo.org/show_bug.cgi?id=383179

This patch fixes it for me and should be okay for distros that don't do this:
--- core/io/ioapi.h.bak 2014-02-20 19:54:44.056383280 -0500
+++ core/io/ioapi.h 2014-02-20 19:55:31.060374495 -0500
@@ -99,6 +99,11 @@
extern "C" {
#endif

+#ifdef _Z_OF
+#undef OF
+#define OF _Z_OF
+#endif
+

#define ZLIB_FILEFUNC_SEEK_CUR (1)
#define ZLIB_FILEFUNC_SEEK_END (2)

from godot.

Evi1M4chine avatar Evi1M4chine commented on May 16, 2024

Just as an info: Godot compiles perfectly fine on Gentoo (amd64) nowadays.
I’ve successfully done Linux, Android and Javascript* builds (debug & release).
So I don’t think this bug is needed anymore.

The integrated libraries are not welcome on Gentoo, and would have to be removed in the ebuild [Gentoo install script], for it to have a chance of becoming integrated in to the package repository. (This is already done with Mozilla software, where it can be turned on with USE flags.)

But generally, everything is fine.


  • JS is of course still broken, but that’s another story. :)

from godot.

akien-mga avatar akien-mga commented on May 16, 2024

This issue is old, and apparently fixed judging by the last comment, so archiving it.

from godot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.