Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Error loading FreeImage: The specified procedure could not be found. #349

Answered by 3togo
3togo asked this question in Q&A
Discussion options

Because git version of arrayfire has better support of broadcasting. I have recompiled both linux and windows version. Linux version does not have any problem. However, the windows failed when try to load FreeImage. The FreeImage.dll is already in the search path. What else shall I check to fix the bug?

Below is the error msg

`thread 'main' panicked at 'Error message: Unknown Error
Last error: In function FreeImage_Module::FreeImage_Module
In file src\api\c\imageio.cpp:120
Error loading FreeImage: The specified procedure could not be found.
FreeImage or one of it's dependencies failed to load. Try installing FreeImage or check if FreeImage is in the search path.
 0# af::dim4::get in afcuda
 1# af_draw_image in afcuda
 2# af_draw_image in afcuda
 3# af_load_image in afcuda
 4# af_load_image in af
 5# arrayfire::image::load_image<u8> at C:\Users\joe\.cargo\registry\src\mirrors.ustc.edu.cn-61ef6e0cd06fb9b8\arrayfire-3.8.0\src\image\mod.rs:316
 6# af_helloworld::j_cv::get_2d_z_shape at d:\home\joe\gitee\rust_egs\jviewr\src\j_cv.rs:49
 7# af_helloworld::main at d:\home\joe\gitee\rust_egs\jviewr\src\main.rs:341
 8# core::ops::function::FnOnce::call_once<void (*)(),tuple$<> > at /rustc/b44197abb0b3ffe4908892e1e08ab1cd721ff3b9\library\core\src\ops\function.rs:248
 9# std::sys_common::backtrace::__rust_begin_short_backtrace<void (*)(),tuple$<> > at /rustc/b44197abb0b3ffe4908892e1e08ab1cd721ff3b9\library\s', C:\Users\joe\.cargo\registry\src\mirrors.ustc.edu.cn-61ef6e0cd06fb9b8\arrayfire-3.8.0\src\core\error.rs:37:14
stack backtrace:
 0: 0x7ff78b813d26 - std::sys_common::backtrace::_print_fmt
 at /rustc/b44197abb0b3ffe4908892e1e08ab1cd721ff3b9/library\std\src\sys_common\backtrace.rs:66
 1: 0x7ff78b813d26 - std::sys_common::backtrace::_print::impl0ドル::fmt
 at /rustc/b44197abb0b3ffe4908892e1e08ab1cd721ff3b9/library\std\src\sys_common\backtrace.rs:45
 2: 0x7ff78b8231fb - core::fmt::write
 at /rustc/b44197abb0b3ffe4908892e1e08ab1cd721ff3b9/library\core\src\fmt\mod.rs:1202
 3: 0x7ff78b811bfa - std::io::Write::write_fmt<std::sys::windows::stdio::Stderr>
 at /rustc/b44197abb0b3ffe4908892e1e08ab1cd721ff3b9/library\std\src\io\mod.rs:1679 
 4: 0x7ff78b815d74 - std::sys_common::backtrace::_print
 at /rustc/b44197abb0b3ffe4908892e1e08ab1cd721ff3b9/library\std\src\sys_common\backtrace.rs:48
 5: 0x7ff78b815d74 - std::sys_common::backtrace::print
 at /rustc/b44197abb0b3ffe4908892e1e08ab1cd721ff3b9/library\std\src\sys_common\backtrace.rs:35
 6: 0x7ff78b815d74 - std::panicking::default_hook::closure1ドル
 at /rustc/b44197abb0b3ffe4908892e1e08ab1cd721ff3b9/library\std\src\panicking.rs:295 
 7: 0x7ff78b8159aa - std::panicking::default_hook
 at /rustc/b44197abb0b3ffe4908892e1e08ab1cd721ff3b9/library\std\src\panicking.rs:314 
 8: 0x7ff78b816561 - std::panicking::rust_panic_with_hook
 at /rustc/b44197abb0b3ffe4908892e1e08ab1cd721ff3b9/library\std\src\panicking.rs:698 
 9: 0x7ff78b81646d - std::panicking::begin_panic_handler::closure0ドル
 at /rustc/b44197abb0b3ffe4908892e1e08ab1cd721ff3b9/library\std\src\panicking.rs:588 
 10: 0x7ff78b81474f - std::sys_common::backtrace::__rust_end_short_backtrace<std::panicking::begin_panic_handler::closure_env0,ドルnever$>
 at /rustc/b44197abb0b3ffe4908892e1e08ab1cd721ff3b9/library\std\src\sys_common\backtrace.rs:138
 11: 0x7ff78b816130 - std::panicking::begin_panic_handler
 at /rustc/b44197abb0b3ffe4908892e1e08ab1cd721ff3b9/library\std\src\panicking.rs:584 
 12: 0x7ff78b829245 - core::panicking::panic_fmt
 at /rustc/b44197abb0b3ffe4908892e1e08ab1cd721ff3b9/library\core\src\panicking.rs:142 
 13: 0x7ff78b806ac2 - arrayfire::core::error::handle_error_general
 at C:\Users\joe\.cargo\registry\src\mirrors.ustc.edu.cn-61ef6e0cd06fb9b8\arrayfire-3.8.0\src\core\error.rs:37
 14: 0x7ff78b806a0a - arrayfire::core::error::Callback::call
 at C:\Users\joe\.cargo\registry\src\mirrors.ustc.edu.cn-61ef6e0cd06fb9b8\arrayfire-3.8.0\src\core\error.rs:29
 15: 0x7ff78b806ba8 - arrayfire::core::error::HANDLE_ERROR
 at C:\Users\joe\.cargo\registry\src\mirrors.ustc.edu.cn-61ef6e0cd06fb9b8\arrayfire-3.8.0\src\core\error.rs:95
 16: 0x7ff78b7fe2f8 - arrayfire::image::load_image<u8>
 at C:\Users\joe\.cargo\registry\src\mirrors.ustc.edu.cn-61ef6e0cd06fb9b8\arrayfire-3.8.0\src\image\mod.rs:317
 17: 0x7ff78b7f32ed - af_helloworld::j_cv::get_2d_z_shape
 at d:\home\joe\gitee\rust_egs\jviewr\src\j_cv.rs:49
 18: 0x7ff78b80055f - af_helloworld::main
 at d:\home\joe\gitee\rust_egs\jviewr\src\main.rs:341
 19: 0x7ff78b7f1dbb - core::ops::function::FnOnce::call_once<void (*)(),tuple$<> >
 at /rustc/b44197abb0b3ffe4908892e1e08ab1cd721ff3b9\library\core\src\ops\function.rs:248
 20: 0x7ff78b80552e - std::sys_common::backtrace::__rust_begin_short_backtrace<void (*)(),tuple$<> >
 at /rustc/b44197abb0b3ffe4908892e1e08ab1cd721ff3b9\library\std\src\sys_common\backtrace.rs:122 
 21: 0x7ff78b7fe5d1 - std::rt::lang_start::closure0ドル<tuple$<> >
 at /rustc/b44197abb0b3ffe4908892e1e08ab1cd721ff3b9\library\std\src\rt.rs:166
 22: 0x7ff78b80f750 - core::ops::function::impls::impl2ドル::call_once
 at /rustc/b44197abb0b3ffe4908892e1e08ab1cd721ff3b9/library\core\src\ops\function.rs:280
 23: 0x7ff78b80f750 - std::panicking::try::do_call
 at /rustc/b44197abb0b3ffe4908892e1e08ab1cd721ff3b9/library\std\src\panicking.rs:492
 24: 0x7ff78b80f750 - std::panicking::try
 at /rustc/b44197abb0b3ffe4908892e1e08ab1cd721ff3b9/library\std\src\panicking.rs:456
 25: 0x7ff78b80f750 - std::panic::catch_unwind
 at /rustc/b44197abb0b3ffe4908892e1e08ab1cd721ff3b9/library\std\src\panic.rs:137
 26: 0x7ff78b80f750 - std::rt::lang_start_internal::closure2ドル
 at /rustc/b44197abb0b3ffe4908892e1e08ab1cd721ff3b9/library\std\src\rt.rs:148
 27: 0x7ff78b80f750 - std::panicking::try::do_call
 at /rustc/b44197abb0b3ffe4908892e1e08ab1cd721ff3b9/library\std\src\panicking.rs:492
 28: 0x7ff78b80f750 - std::panicking::try
 at /rustc/b44197abb0b3ffe4908892e1e08ab1cd721ff3b9/library\std\src\panicking.rs:456
 29: 0x7ff78b80f750 - std::panic::catch_unwind
 at /rustc/b44197abb0b3ffe4908892e1e08ab1cd721ff3b9/library\std\src\panic.rs:137
 30: 0x7ff78b80f750 - std::rt::lang_start_internal
 at /rustc/b44197abb0b3ffe4908892e1e08ab1cd721ff3b9/library\std\src\rt.rs:148
 31: 0x7ff78b7fe5aa - std::rt::lang_start<tuple$<> >
 at /rustc/b44197abb0b3ffe4908892e1e08ab1cd721ff3b9\library\std\src\rt.rs:165
 32: 0x7ff78b800a8c - main
 33: 0x7ff78b827ae0 - invoke_main
 at D:\a\_work1円\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78
 34: 0x7ff78b827ae0 - __scrt_common_main_seh
 at D:\a\_work1円\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
 35: 0x7ffb1b5a7034 - BaseThreadInitThunk
 36: 0x7ffb1bba2651 - RtlUserThreadStart
PS D:\home\joe\gitee\rust_egs\jviewr>
`
You must be logged in to vote

fixed. missing freetype

Replies: 1 comment

Comment options

fixed. missing freetype

You must be logged in to vote
0 replies
Answer selected by 3togo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /