An Azure embedded development suite including a small but powerful operating system for resource-constrained devices.
Hi @Sai I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to accept the answer .
Error Message:
CMake Error at CMakeLists.txt:19 (add_library):
Target "filex" links to target "azrtos::threadx" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
Solution:
Changing the CMakeLists.txt as follows resulted to built filex library successfully.
if(NOT FX_STANDALONE_ENABLE)
target_link_libraries(${PROJECT_NAME} PUBLIC
"libthreadx.a"
)
target_include_directories(${PROJECT_NAME} PUBLIC ../threadx/common/inc)
target_include_directories(${PROJECT_NAME} PUBLIC ../threadx/ports/cortex_m4/gnu/inc)
link_directories(${CMAKE_CURRENT_BINARY_DIR}/../threadx/build)
endif()
. ├── filex └── threadx
If I missed anything please let me know and I'd be happy to add it to my answer, or feel free to comment below with any additional information.
I hope this helps!
If you have any other questions, please let me know. Thank you again for your time and patience throughout this issue.