Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile godot with non standard build flags(probably problem with disabling GDScript) #82231

Closed
qarmin opened this issue Sep 24, 2023 · 1 comment · Fixed by #82985
Closed

Comments

@qarmin
Copy link
Contributor

qarmin commented Sep 24, 2023

Godot version

4.1 c12d635

System information

Ubuntu 22.04 CI

Issue description

Regression from ~4 days ago - robably - #81844
3.x also have same problem, so here probably #82025 caused it

 Compiling main/main_timer_sync.cpp ...
Compiling main/performance.cpp ...
main/main.cpp: In static member function 'static Error Main::setup(const char*, int, char**, bool)':
main/main.cpp:1521:33: error: 'GDScriptLanguageServer' has not been declared
 1521 |                                 GDScriptLanguageServer::port_override = port_override;
      |                                 ^~~~~~~~~~~~~~~~~~~~~~
Compiling modules/register_module_types.gen.cpp ...
Linking Static Library modules/libmodules.linuxbsd.editor.dev.x86_64.a ...
Ranlib Library modules/libmodules.linuxbsd.editor.dev.x86_64.a ...
Compiling thirdparty/astcenc/astcenc_averages_and_directions.cpp ...
scons: *** [main/main.linuxbsd.editor.dev.x86_64.o] Error 1
scons: building terminated because of errors.
[Time elapsed: 00:00:21.864]

build flags

scons dev_build=yes CCFLAGS="-fpie" LINKFLAGS="-no-pie" module_navigation_enabled=no module_gdscript_enabled=no module_basis_universal_enabled=no module_bmp_enabled=no module_camera_enabled=no module_csg_enabled=no module_cvtt_enabled=no module_dds_enabled=no module_denoise_enabled=no module_enet_enabled=no module_etcpak_enabled=no brotli=no module_glslang_enabled=no module_gltf_enabled=no module_gridmap_enabled=no module_hdr_enabled=no module_jpg_enabled=no module_jsonrpc_enabled=no module_lightmapper_rd_enabled=no module_mbedtls_enabled=no module_meshoptimizer_enabled=no module_minimp3_enabled=no module_mobile_vr_enabled=no module_msdfgen_enabled=no module_multiplayer_enabled=no module_noise_enabled=no module_ogg_enabled=no module_openxr_enabled=no module_raycast_enabled=no module_regex_enabled=no module_squish_enabled=no graphite=no module_text_server_adv_enabled=no module_tga_enabled=no module_theora_enabled=no module_tinyexr_enabled=no module_upnp_enabled=no module_vhacd_enabled=no module_vorbis_enabled=no module_webp_enabled=no module_webrtc_enabled=no module_websocket_enabled=no module_webxr_enabled=no module_xatlas_unwrap_enabled=no target=editor -j2

Steps to reproduce

Above

Minimal reproduction project

N/A

@qarmin qarmin changed the title Cannot compiled godot with non standard build flags(probably problem with disabling GDScript) Cannot compile godot with non standard build flags(probably problem with disabling GDScript) Oct 2, 2023
jackwilsdon added a commit to jackwilsdon/godot that referenced this issue Oct 8, 2023
@jackwilsdon
Copy link
Contributor

Opened #82985 to fix this in 4.x. For what it's worth, instead of listing all the modules you want to disable, you can use modules_enable_by_default=no and just enable the modules you do want:

scons dev_build=yes CCFLAGS="-fpie" LINKFLAGS="-no-pie" modules_enabled_by_default=no module_mono_enabled=yes

@akien-mga akien-mga added this to the 4.2 milestone Oct 9, 2023
mandryskowski pushed a commit to mandryskowski/godot that referenced this issue Oct 11, 2023
ProbablyWorks pushed a commit to ProbablyWorks/godot that referenced this issue Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants