Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
5248 Discussions

How to build Cardiac_demo for Windows?

YossarianKing
Beginner
618 Views

I'm attempting to build the Cardiac_demo project on GitHub for Windows 10 Pro, to use as a sample for VTune profiling. The GitHub project is owned by Intel's Alexey Malkhanov. 

I installed the prerequisites (Intel MPI Library, Intel C++ Compiler, Qt) but am getting hung up on the build_qt.sh step. If I run build_qt.sh from a cmd shell, then another shell window briefly pops up but disappears before I can read the text. If I run the bash shell that comes with Git, and then run "sh build_qt.sh" I get the following output:

build_qt.sh: line 17: /usr/bin/qmake-qt4: No such file or directory
build_qt.sh: line 18: make: command not found
build_qt.sh: line 20: icc: command not found
Error building librcm.so

It appears I don't have the development environment configured correctly. I installed the prerequisites using default installation settings, but did not set up any environment variables, is that the missing step? Is there a guide somewhere with more information on what I'm missing?

Thanks!

P.S. I also submitted this as a GitHub project issue.

0 Kudos
3 Replies
yuzhang3_intel
Moderator
591 Views

This forum is only focused on analyzers-related issues.

 

From the log, it looks like the missing make and icc caused the build to fail. Did you check whether the make and ICC are installed in your environment or specify the correct path?

 

Currently, Intel oneAPI toolkits only provide Intel oneAPI DPC++/C++ compiler below (icx); ICC was discontinued.

https://www.intel.com/content/www/us/en/developer/tools/oneapi/dpc-compiler-download.html?operatingsystem=linux&distribution-linux=offline

 

or download Intel DPC++/C++ compiler as a part of Intel oneAPI toolkits:

https://www.intel.com/content/www/us/en/developer/tools/oneapi/base-toolkit-download.html?packages=oneapi-toolkit&oneapi-toolkit-os=windows&oneapi-win=offline

 

You need to change the compiler from icc to icx in the build_qt.sh below:

icc ../rcm.cpp -I.. -shared -fPIC -o librcm.so

YossarianKing
Beginner
503 Views

Thank you, that helped a bit. Getting the Cardiac_demo project to build under Windows seems to be a bigger problem, due to the dependency on Qt and its qmake-based build process. I will look elsewhere for more information on how to do this, thanks again for your help.

0 Kudos
YossarianKing
Beginner
463 Views

I'm back a few days later to note that my question about this demo is at least indirectly an "analyzer-related issue", since the Cardiac_demo is linked from the Tutorials and Samples page for VTune. On that page (which I hadn't seen, I was directed to the demo directly) it does say that the sample is intended for Linux, and not Windows. It would be fantastic if the demo could be moved from Alexey's repository to an official Intel repository, and (ideally) set up to work on Windows as well or (at minimum) clearly documented as not being a suitable Windows demo.

For now I'm moving on to other samples and demos, so not expecting any immediate fix. Thanks!

0 Kudos
Reply