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

macos m2 build fail #551

Open
PaiHL opened this issue Jan 18, 2024 · 4 comments
Open

macos m2 build fail #551

PaiHL opened this issue Jan 18, 2024 · 4 comments

Comments

@PaiHL
Copy link

PaiHL commented Jan 18, 2024

setup

  • meson setup build --reconfigure
  • ninja -C build

output

[89/98] Linking target meson-out/libui.A.dylib
FAILED: meson-out/libui.A.dylib 
cc  -o meson-out/libui.A.dylib meson-out/libui.A.dylib.p/common_attribute.c.o meson-out/libui.A.dylib.p/common_attrlist.c.o meson-out/libui.A.dylib.p/common_attrstr.c.o meson-out/libui.A.dylib.p/common_areaevents.c.o meson-out/libui.A.dylib.p/common_control.c.o meson-out/libui.A.dylib.p/common_debug.c.o meson-out/libui.A.dylib.p/common_matrix.c.o meson-out/libui.A.dylib.p/common_opentype.c.o meson-out/libui.A.dylib.p/common_shouldquit.c.o meson-out/libui.A.dylib.p/common_tablemodel.c.o meson-out/libui.A.dylib.p/common_tablevalue.c.o meson-out/libui.A.dylib.p/common_userbugs.c.o meson-out/libui.A.dylib.p/common_utf.c.o meson-out/libui.A.dylib.p/darwin_aat.m.o meson-out/libui.A.dylib.p/darwin_alloc.m.o meson-out/libui.A.dylib.p/darwin_area.m.o meson-out/libui.A.dylib.p/darwin_areaevents.m.o meson-out/libui.A.dylib.p/darwin_attrstr.m.o meson-out/libui.A.dylib.p/darwin_autolayout.m.o meson-out/libui.A.dylib.p/darwin_box.m.o meson-out/libui.A.dylib.p/darwin_button.m.o meson-out/libui.A.dylib.p/darwin_checkbox.m.o meson-out/libui.A.dylib.p/darwin_colorbutton.m.o meson-out/libui.A.dylib.p/darwin_combobox.m.o meson-out/libui.A.dylib.p/darwin_control.m.o meson-out/libui.A.dylib.p/darwin_datetimepicker.m.o meson-out/libui.A.dylib.p/darwin_debug.m.o meson-out/libui.A.dylib.p/darwin_draw.m.o meson-out/libui.A.dylib.p/darwin_drawtext.m.o meson-out/libui.A.dylib.p/darwin_editablecombo.m.o meson-out/libui.A.dylib.p/darwin_entry.m.o meson-out/libui.A.dylib.p/darwin_fontbutton.m.o meson-out/libui.A.dylib.p/darwin_fontmatch.m.o meson-out/libui.A.dylib.p/darwin_fonttraits.m.o meson-out/libui.A.dylib.p/darwin_fontvariation.m.o meson-out/libui.A.dylib.p/darwin_form.m.o meson-out/libui.A.dylib.p/darwin_future.m.o meson-out/libui.A.dylib.p/darwin_graphemes.m.o meson-out/libui.A.dylib.p/darwin_grid.m.o meson-out/libui.A.dylib.p/darwin_group.m.o meson-out/libui.A.dylib.p/darwin_image.m.o meson-out/libui.A.dylib.p/darwin_label.m.o meson-out/libui.A.dylib.p/darwin_main.m.o meson-out/libui.A.dylib.p/darwin_map.m.o meson-out/libui.A.dylib.p/darwin_menu.m.o meson-out/libui.A.dylib.p/darwin_multilineentry.m.o meson-out/libui.A.dylib.p/darwin_opentype.m.o meson-out/libui.A.dylib.p/darwin_progressbar.m.o meson-out/libui.A.dylib.p/darwin_radiobuttons.m.o meson-out/libui.A.dylib.p/darwin_scrollview.m.o meson-out/libui.A.dylib.p/darwin_separator.m.o meson-out/libui.A.dylib.p/darwin_slider.m.o meson-out/libui.A.dylib.p/darwin_spinbox.m.o meson-out/libui.A.dylib.p/darwin_stddialogs.m.o meson-out/libui.A.dylib.p/darwin_tab.m.o meson-out/libui.A.dylib.p/darwin_table.m.o meson-out/libui.A.dylib.p/darwin_tablecolumn.m.o meson-out/libui.A.dylib.p/darwin_text.m.o meson-out/libui.A.dylib.p/darwin_undocumented.m.o meson-out/libui.A.dylib.p/darwin_util.m.o meson-out/libui.A.dylib.p/darwin_window.m.o meson-out/libui.A.dylib.p/darwin_winmoveresize.m.o -Wl,-dead_strip_dylibs -Wl,-headerpad_max_install_names -shared -install_name @rpath/libui.A.dylib -compatibility_version A -current_version A -mmacosx-version-min=10.8 -Wl,-rpath,@loader_path/ -Wl,-rpath,@executable_path/ -lobjc -framework Foundation -framework AppKit
ld: malformed 32-bit x.y.z version number: A
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[90/98] Compiling C++ object meson-out/cpp-multithread.p/cpp-multithread_main.cpp.o
ninja: build stopped: subcommand failed.
@PaiHL
Copy link
Author

PaiHL commented Jan 19, 2024

可以通过在 meson.build 修改 darwin_versions: [1, 1]) # TODO 解决

@AndyObtiva
Copy link

Check out the active fork:
https://github.com/libui-ng/libui-ng

It supports the M2 chip already. I run LibUI apps on my M2 Mac every day for work and play.

@cody271
Copy link
Contributor

cody271 commented Jan 21, 2024

ld: malformed 32-bit x.y.z version number: A
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@PaiHL Your issue was already fixed here: libui-ng/libui-ng#262.

@cody271
Copy link
Contributor

cody271 commented Jan 21, 2024

可以通过在 meson.build 修改 darwin_versions: [1, 1]) # TODO 解决

中文讨论

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants