Adding dlib's fft dependency#1054
Conversation
|
Hii @sayanshaw24 @skottmckay may you review it once. |
|
Does it need the functions in fft.cpp or just the definition of What code requires an |
|
I would suggest adding something like this in the OCOS_ENABLE_MATH section before line 414 so that we only include the file when needed: # operators\math\energy_stft_segmentation.cc needs the dlib fft implementation
list(APPEND TARGET_SRC ${TARGET_SRC_DLIB} ${dlib_SOURCE_DIR}/dlib/fft/fft.cpp)onnxruntime-extensions/CMakeLists.txt Line 414 in a9ec848 And now as multiple places could include fft.cpp we should remove duplicates at the end of configuration just before the onnxruntime-extensions/CMakeLists.txt Lines 516 to 517 in a9ec848 |
So it needs the definition of fft_size only as per my observation. This function is used by these files So in a default build we are making the OCOS_ENABLE_AUDIO by default on and in which we are adding this file fft.cpp which will give this definition. |
Yep @skottmckay that way, also we can do, and your approach is better in that way. |
|
Hii @sayanshaw24 may u review it once. |
There was a problem hiding this comment.
Pull request overview
This PR addresses an AIX link failure (Undefined symbol: dlib::fft<float>(...)) by ensuring dlib’s FFT implementation unit is compiled into the extensions build, even when audio operators are disabled.
Changes:
- Adds
dlib/fft/fft.cppto the CMake source list for builds where math ops are enabled. - Minor whitespace cleanup around the
ext_imgcodecsinclude.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Copilot suggestion Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
Hii @skottmckay @sayanshaw24 may u review it once. |
Using the build.sh as
Problem:
After my changes.