{"action":"created","issue":{"url":"https://api.github.com/repos/Itseez/opencv/issues/5744","labels_url":"https://api.github.com/repos/Itseez/opencv/issues/5744/labels{/name}","comments_url":"https://api.github.com/repos/Itseez/opencv/issues/5744/comments","events_url":"https://api.github.com/repos/Itseez/opencv/issues/5744/events","html_url":"https://github.com/Itseez/opencv/issues/5744","id":120171942,"number":5744,"title":"Error running link command, OpenCV 3.0.0 with ICC (libopencv_hal.a)","user":{"login":"zburazin","id":16135452,"avatar_url":"https://avatars.githubusercontent.com/u/16135452?v=3","gravatar_id":"","url":"https://api.github.com/users/zburazin","html_url":"https://github.com/zburazin","followers_url":"https://api.github.com/users/zburazin/followers","following_url":"https://api.github.com/users/zburazin/following{/other_user}","gists_url":"https://api.github.com/users/zburazin/gists{/gist_id}","starred_url":"https://api.github.com/users/zburazin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zburazin/subscriptions","organizations_url":"https://api.github.com/users/zburazin/orgs","repos_url":"https://api.github.com/users/zburazin/repos","events_url":"https://api.github.com/users/zburazin/events{/privacy}","received_events_url":"https://api.github.com/users/zburazin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Itseez/opencv/labels/invalid","name":"invalid","color":"000000"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-03T13:31:42Z","updated_at":"2015-12-07T14:28:57Z","closed_at":null,"body":"I'm getting the following error while trying to cross-compile OpenCV for ICC, using these instructions: https://software.intel.com/en-us/comment/1850421#comment-1850421\r\n\r\n```\r\n[user@alfa00 opencv-3.0.0]$ make\r\nScanning dependencies of target opencv_hal\r\n[  0%] Building CXX object modules/hal/CMakeFiles/opencv_hal.dir/src/filter.cpp.o\r\n[  0%] Building CXX object modules/hal/CMakeFiles/opencv_hal.dir/src/stat.cpp.o\r\n[  0%] Building CXX object modules/hal/CMakeFiles/opencv_hal.dir/src/resize.cpp.o\r\n[  0%] Building CXX object modules/hal/CMakeFiles/opencv_hal.dir/src/warp.cpp.o\r\n[  0%] Building CXX object modules/hal/CMakeFiles/opencv_hal.dir/src/matrix.cpp.o\r\n[  0%] Building CXX object modules/hal/CMakeFiles/opencv_hal.dir/src/color.cpp.o\r\n[  0%] Building CXX object modules/hal/CMakeFiles/opencv_hal.dir/src/mathfuncs.cpp.o\r\n[  1%] Building CXX object modules/hal/CMakeFiles/opencv_hal.dir/src/arithm.cpp.o\r\nLinking CXX static library ../../lib/libopencv_hal.a\r\nError running link command: No such file or directory\r\nmake[2]: *** [lib/libopencv_hal.a] Error 2\r\nmake[1]: *** [modules/hal/CMakeFiles/opencv_hal.dir/all] Error 2\r\nmake: *** [all] Error 2\r\n```\r\n\r\nCan anyone help me resolve this issue?\r\n\r\n**Environment**\r\n```\r\nArchitecture:          x86_64\r\nCPU op-mode(s):        32-bit, 64-bit\r\nByte Order:            Little Endian\r\nCPU(s):                12\r\nOn-line CPU(s) list:   0-11\r\nThread(s) per core:    2\r\nCore(s) per socket:    6\r\nSocket(s):             1\r\nNUMA node(s):          1\r\nVendor ID:             GenuineIntel\r\nCPU family:            6\r\nModel:                 63\r\nModel name:            Intel(R) Core(TM) i7-5930K CPU @ 3.50GHz\r\nStepping:              2\r\nCPU MHz:               1200.253\r\nBogoMIPS:              6996.42\r\nVirtualization:        VT-x\r\nL1d cache:             32K\r\nL1i cache:             32K\r\nL2 cache:              256K\r\nL3 cache:              15360K\r\nNUMA node0 CPU(s):     0-11\r\n```\r\n```\r\nLSB Version:\t:core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch\r\nDistributor ID:\tCentOS\r\nDescription:\tCentOS Linux release 7.1.1503 (Core) \r\nRelease:\t7.1.1503\r\nCodename:\tCore\r\n```\r\n```\r\ncmake version 2.8.11\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Itseez/opencv/issues/comments/162539575","html_url":"https://github.com/Itseez/opencv/issues/5744#issuecomment-162539575","issue_url":"https://api.github.com/repos/Itseez/opencv/issues/5744","id":162539575,"user":{"login":"alalek","id":4981219,"avatar_url":"https://avatars.githubusercontent.com/u/4981219?v=3","gravatar_id":"","url":"https://api.github.com/users/alalek","html_url":"https://github.com/alalek","followers_url":"https://api.github.com/users/alalek/followers","following_url":"https://api.github.com/users/alalek/following{/other_user}","gists_url":"https://api.github.com/users/alalek/gists{/gist_id}","starred_url":"https://api.github.com/users/alalek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alalek/subscriptions","organizations_url":"https://api.github.com/users/alalek/orgs","repos_url":"https://api.github.com/users/alalek/repos","events_url":"https://api.github.com/users/alalek/events{/privacy}","received_events_url":"https://api.github.com/users/alalek/received_events","type":"User","site_admin":false},"created_at":"2015-12-07T14:28:57Z","updated_at":"2015-12-07T14:28:57Z","body":"Try something from here: http://public.kitware.com/cgi-bin/viewcvs.cgi/CMake/Tests/Tutorial/\r\nTutorial for this code: https://cmake.org/cmake-tutorial/\r\nI believe \"Step 2\" is enough.\r\nAlso, try to use -DBUILD_SHARED_LIBS=OFF to build static (.a) libs instead of shared (.so) libs."}}