Open mitali0531 opened 4 years ago
@mitali0531 Are you building it for reVISION platform or Base platform? Are you building the function out of the box? If not, make sure to add the _-lopencvcore library in the Makefile.
@mitali0531 Are you building it for reVISION platform or Base platform? Are you building the function out of the box? If not, make sure to add the _-lopencvcore library in the Makefile.
i am building it in base platform. and could you be more elaborate about outside the box function thing? thank you already for helping.
@mitali0531 By out of the box, I mean, are you building the cloned/downloaded example as it is without modifying anything?
@mitali0531 By out of the box, I mean, are you building the cloned/downloaded example as it is without modifying anything?
yes Sir.. i am building it as it is.
Imported it directly from the xfopencv examples folder.
@mitali0531 Can you confirm whether you have set the path to the opencv libs compiled for ARM in the Makefile, correctly? Attaching the project here would also help us to take a closer look.
how do i attach the project? can i mail you rather than here. I need help with the solution.
@mitali0531 Can you attach the Makefile along with the complete log file?
here is the makefile for the code
@mitali0531 This file seems to be corrupted. Am unable to open it.
@mitali0531 This file seems to be corrupted. Am unable to open it.
the original file is not attaching. so i had to convert it to doc for sending. if you could send your email id i will send the entire code to you.
@mitali0531
I don't think sharing email-id is possible.
You should find a way to attach here the Makefile and log file.
If you are building through GUI, make sure you have set the following libs :
opencv_core
opencv_imgcodecs
opencv_core
in your project, in this section : Project->right click->C/C++ build settings->SDS++ Linker ->Libraries->Libraries(-l)
that really helped
here is the make file:::
################################################################################
################################################################################
-include ../makefile.init
RM := rm -rf _sds sd_card
-include sources.mk -include src/subdir.mk -include subdir.mk -include objects.mk
ifneq ($(MAKECMDGOALS),clean) ifneq ($(strip $(CC_DEPS)),) -include $(CC_DEPS) endif ifneq ($(strip $(C_UPPER_DEPS)),) -include $(C_UPPER_DEPS) endif ifneq ($(strip $(CXX_DEPS)),) -include $(CXX_DEPS) endif ifneq ($(strip $(C_DEPS)),) -include $(C_DEPS) endif ifneq ($(strip $(CPP_DEPS)),) -include $(CPP_DEPS) endif endif
-include ../makefile.defs
all: pre-build main-build
main-build: kuchtohho.elf
kuchtohho.elf: $(OBJS) $(USER_OBJS) @echo 'Building target: $@' @echo 'Invoking: SDS++ Linker' sds++ -L"C:\Users\Meet\Desktop\opencv-3.0.0\include\opencv2" --remote_ip_cache C:/Users/Meet/workspace/ip_cache -o "kuchtohho.elf" $(OBJS) $(USER_OBJS) $(LIBS) -dmclkid 1 -mno-bitstream -mno-boot-files -sds-sys-config a53_linux -sds-proc a53_linux -sds-pf "zcu104" -emulation debug @echo 'Finished building target: $@' @echo ' '
clean: -$(RM) $(CC_DEPS)$(EXECUTABLES)$(C_UPPER_DEPS)$(OBJS)$(CXX_DEPS)$(C_DEPS)$(CPP_DEPS) kuchtohho.elf -@echo ' '
pre-build: -sdsoc_make_clean Debug -@echo ' '
.PHONY: all clean dependents .SECONDARY: main-build pre-build
-include ../makefile.targets
@mitali0531 The -L path in the Makefile is pointing to the the include directory of OpenCV. This is not correct. It should have the path to the lib directory.
In Project->right click->C/C++ build settings->SDS++ Linker ->Libraries->Library Search Path(-L) add the following: path-to-your-opencv-install-folder/lib
Go through "Using the xfOpenCV Library on a non-reVISION Platform" section of UG1233 to understand the build procedure.
Post any further usage related issues on the SDSoC forum.
Thank you so much Sir for all the help...
having error building code in SDSoC.. shows unresolved references for 2 statements as follow.
p