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

[BUG] #299

Closed
langzime opened this issue Sep 27, 2020 · 2 comments
Closed

[BUG] #299

langzime opened this issue Sep 27, 2020 · 2 comments

Comments

@langzime
Copy link

langzime commented Sep 27, 2020

Describe the bug
compile failed when i execute cargo run --color=always --package fltk --example animations

To Reproduce

Expected behavior
--- stderr
之前的 HEAD 位置是 d20c68a49 More Doxygen information for enum Fl_Paged_Device::Page_Format.
切换到分支 'master'
error: 打补丁失败:CMake/export.cmake:33
error: CMake/export.cmake:补丁未应用
error: 打补丁失败:CMake/options.cmake:115
error: CMake/options.cmake:补丁未应用
error: 打补丁失败:src/drivers/Android/Fl_Android_System_Driver.H:25
error: src/drivers/Android/Fl_Android_System_Driver.H:补丁未应用
/Users/wangyanqing16/cargo_work/fltk-rs/fltk-sys/cfltk/src/cfl_text.cpp:354:18: error: no member named 'style_buffer' in 'Fl_Text_Display'
return self->style_buffer();
~~~~ ^
/Users/wangyanqing16/cargo_work/fltk-rs/fltk-sys/cfltk/src/cfl_text.cpp:375:18: error: no member named 'style_buffer' in 'Fl_Text_Editor'
return self->style_buffer();
~~~~ ^
/Users/wangyanqing16/cargo_work/fltk-rs/fltk-sys/cfltk/src/cfl_text.cpp:564:18: error: no member named 'style_buffer' in 'Fl_Simple_Terminal'
return self->style_buffer();
~~~~ ^
3 errors generated.
make[2]: *** [CMakeFiles/cfltk.dir/src/cfl_text.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/cfltk.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /Users/wangyanqing16/cargo_work/fltk-rs/target/debug/build/fltk-sys-cb38f46d453e5239/out/lib/libfltk.a(Fl_Help_Dialog_Dox.cxx.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /Users/wangyanqing16/cargo_work/fltk-rs/target/debug/build/fltk-sys-cb38f46d453e5239/out/lib/libfltk.a(fl_overlay_visual.cxx.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /Users/wangyanqing16/cargo_work/fltk-rs/target/debug/build/fltk-sys-cb38f46d453e5239/out/lib/libfltk.a(Fl_Help_Dialog_Dox.cxx.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /Users/wangyanqing16/cargo_work/fltk-rs/target/debug/build/fltk-sys-cb38f46d453e5239/out/lib/libfltk.a(fl_overlay_visual.cxx.o) has no symbols
make: *** [all] Error 2
thread 'main' panicked at '
command did not execute successfully, got: exit code: 2

build script failed, must exit now', /Users/wangyanqing16/.cargo/registry/src/github.com-1ecc6299db9ec823/cmake-0.1.44/src/lib.rs:885:5
stack backtrace:
0: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
1: core::fmt::write
2: std::io::Write::write_fmt
3: std::panicking::default_hook::{{closure}}
4: std::panicking::default_hook
5: std::panicking::rust_panic_with_hook
6: rust_begin_unwind
7: std::panicking::begin_panic_fmt
8: cmake::fail
9: cmake::run
10: cmake::Config::build
11: build_script_build::main
12: std::rt::lang_start::{{closure}}
13: std::rt::lang_start_internal
14: std::rt::lang_start
15: main
note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace.

Screenshots
图片

Desktop (please complete the following information):

  • OS: macOS 10.14.6
@MoAlyousef
Copy link
Collaborator

Hello
The clone (or fork) you have seems to have an older version of FLTK (the C++ library) which added the style_buffer() method.
You can try (from the project root):

cargo clean
cd fltk-sys/cfltk/fltk
git pull
cd ../../..
cargo run --color=always --package fltk --example animations

Or reclone the fltk-rs repo.

@langzime
Copy link
Author

Okay, thank you! I made a mistake.

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

2 participants