{"action":"created","issue":{"url":"https://api.github.com/repos/Xilinx/xfopencv/issues/13","repository_url":"https://api.github.com/repos/Xilinx/xfopencv","labels_url":"https://api.github.com/repos/Xilinx/xfopencv/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/Xilinx/xfopencv/issues/13/comments","events_url":"https://api.github.com/repos/Xilinx/xfopencv/issues/13/events","html_url":"https://github.com/Xilinx/xfopencv/issues/13","id":340114840,"node_id":"MDU6SXNzdWUzNDAxMTQ4NDA=","number":13,"title":"xfopencv error in makefile","user":{"login":"dhruvchamania","id":24455149,"node_id":"MDQ6VXNlcjI0NDU1MTQ5","avatar_url":"https://avatars3.githubusercontent.com/u/24455149?v=4","gravatar_id":"","url":"https://api.github.com/users/dhruvchamania","html_url":"https://github.com/dhruvchamania","followers_url":"https://api.github.com/users/dhruvchamania/followers","following_url":"https://api.github.com/users/dhruvchamania/following{/other_user}","gists_url":"https://api.github.com/users/dhruvchamania/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvchamania/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvchamania/subscriptions","organizations_url":"https://api.github.com/users/dhruvchamania/orgs","repos_url":"https://api.github.com/users/dhruvchamania/repos","events_url":"https://api.github.com/users/dhruvchamania/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvchamania/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-11T06:57:00Z","updated_at":"2018-07-11T09:40:12Z","closed_at":null,"author_association":"NONE","body":"using 2017.4, getting this error while making the file(included the code.  in [makefile] as well as the what we input in terminal) for the sobel detector. \r\n\r\nERROR: [SYNCHK 200-79] Cannot find the top function 'w0_xf_Sobel' in the design. Possible causes are: (1) the top function name is misspelled; (2) the top function is nonexistent or declared as static.\r\nERROR: [HLS 200-70] Synthesizability check failed.\r\ncommand 'ap_source' returned error code\r\n    while executing\r\n\"source /home/kushalchaudhari/Projects/_project/SDSoC_platform/xfopencv/examples/sobelfilter/_sds/vhls/w0_xf_Sobel_run.tcl\"\r\n    invoked from within\r\n\"hls::main /home/kushalchaudhari/Projects/_project/SDSoC_platform/xfopencv/examples/sobelfilter/_sds/vhls/w0_xf_Sobel_run.tcl -l w0_xf_Sobel_viva...\"\r\n    (\"uplevel\" body line 1)\r\n    invoked from within\r\n\"uplevel 1 hls::main {*}$args\"\r\n    (procedure \"hls_proc\" line 5)\r\n    invoked from within\r\n\"hls_proc $argv\"\r\nINFO: [Common 17-206] Exiting vivado_hls at Wed Jul 11 12:18:03 2018...\r\nERROR: [SdsCompiler 83-5019] Exiting sds++ : Error when calling '/home/kushalchaudhari/Xilinx/Vivado/2017.4/bin/vivado_hls /home/kushalchaudhari/Projects/_project/SDSoC_platform/xfopencv/examples/sobelfilter/_sds/vhls/w0_xf_Sobel_run.tcl -l w0_xf_Sobel_vivado_hls.log'\r\nsds++ log file saved as /home/kushalchaudhari/Projects/_project/SDSoC_platform/xfopencv/examples/sobelfilter/_sds/reports/sds_xf_sobel_accel.log\r\nERROR: [SdsCompiler 83-5004] Build failed\r\nsds++ completed at Wed Jul 11 12:18:03 IST 2018\r\n\r\nMAKEFILE\r\n\r\nAPPSOURCES = xf_sobel_tb.cpp xf_sobel_accel.cpp\r\nEXECUTABLE = sobel.elf\r\nVERBOSE = #-verbose\r\nPLATFORM = /home/kushalchaudhari/Projects/_project/example_desing/zip_file/zcu102_rv_ss\r\nSDSCC_FLAGS = -sds-pf ${PLATFORM} -std=c++11 ${VERBOSE} \\\r\n-sds-hw \"xf::Sobel<0,3,0,1,1080, 1920,1>\" xf_sobel_accel.cpp -files ../../include/imgproc/xf_sobel.hpp -clkid 2 -sds-end -dmclkid 2\r\n#sobel<XF_BORDER_CONSTANT,XF_8UC1,XF_16UC1,HEIGHT, WIDTH,XF_NPPC8>(imgInput, imgOutputx,imgOutputy);\r\n\r\nCC = sds++ ${SDSCC_FLAGS}\r\n\r\nIDIRS = -I. -I${SYSROOT}/usr/include -I ../../include\r\n\r\nLDIRS = --sysroot=${SYSROOT} -L=/lib -L=/usr/lib -Wl,-rpath-link=${SYSROOT}/lib,-rpath-link=${SYSROOT}/usr/lib\r\n\r\nLLIBS = -lopencv_imgcodecs -lopencv_core -llzma -ltiff -lpng16 -lz -ljpeg -lopencv_imgproc -ldl -lrt -lwebp -lopencv_features2d -lopencv_flann \r\n#LLIBS = -lopencv_core -lopencv_imgproc -lopencv_imgcodecs \r\n#OLEVEL = -ggdb\r\nCFLAGS = -O3 -Wall ${OLEVEL} -c ${IDIRS} -DHLS_NO_XIL_FPO_LIB\r\nLFLAGS = ${OLEVEL} ${LDIRS} ${LLIBS}\r\n\r\nSOURCES := $(patsubst %,./%,$(APPSOURCES))\r\nOBJECTS := $(APPSOURCES:.cpp=.o)\r\nDEPS := $(OBJECTS:.o=.d)\r\n.PHONY: all\r\nall: ${EXECUTABLE}\r\n${EXECUTABLE}: ${OBJECTS}\r\n\t${CC} ${OBJECTS} ${LFLAGS} -o $@\r\n-include ${DEPS}\r\n%.o: %.cpp\r\n\t${CC} ${CFLAGS} $< -o $@\r\nclean:\r\n\t${RM} ${EXECUTABLE} ${OBJECTS}\r\nultraclean: clean\r\n\t${RM} -rf _sds sd_card ${EXECUTABLE}.bit ${EXECUTABLE} ${OBJECTS}\r\ncopy:\r\n\t/bin/cp -prf ${XLNX_SRC_PATH}/sobelfilter/example .\r\n\t/bin/cp -prf ${XLNX_SRC_PATH}/sobelfilter/src .\r\n\r\nTERMINAL\r\nsource /home/kushalchaudhari/Xilinx/Vivado/2017.4/settings64.sh\r\n\r\nexport SYSROOT=/home/kushalchaudhari/Projects/_project/example_desing/zip_file/zcu102_rv_ss/sw/sysroot/\r\n\r\nHope this helps for you to resolve the issue."},"comment":{"url":"https://api.github.com/repos/Xilinx/xfopencv/issues/comments/404108932","html_url":"https://github.com/Xilinx/xfopencv/issues/13#issuecomment-404108932","issue_url":"https://api.github.com/repos/Xilinx/xfopencv/issues/13","id":404108932,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDEwODkzMg==","user":{"login":"bgouthamb","id":28917313,"node_id":"MDQ6VXNlcjI4OTE3MzEz","avatar_url":"https://avatars2.githubusercontent.com/u/28917313?v=4","gravatar_id":"","url":"https://api.github.com/users/bgouthamb","html_url":"https://github.com/bgouthamb","followers_url":"https://api.github.com/users/bgouthamb/followers","following_url":"https://api.github.com/users/bgouthamb/following{/other_user}","gists_url":"https://api.github.com/users/bgouthamb/gists{/gist_id}","starred_url":"https://api.github.com/users/bgouthamb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgouthamb/subscriptions","organizations_url":"https://api.github.com/users/bgouthamb/orgs","repos_url":"https://api.github.com/users/bgouthamb/repos","events_url":"https://api.github.com/users/bgouthamb/events{/privacy}","received_events_url":"https://api.github.com/users/bgouthamb/received_events","type":"User","site_admin":false},"created_at":"2018-07-11T09:40:12Z","updated_at":"2018-07-11T09:40:12Z","author_association":"CONTRIBUTOR","body":"@dhruvchamania \r\nPlease check whether you have changed the configuration through the macros in _xf_sobel_config.h_ and _xf_config_params.h_. If yes, you need to update the parameters in the hardware function in the Makefile accordingly."}}
{"actor":{"display_login":"bgouthamb"}}