I am executing the following command, which is resulting in the error below. I have chmod 777 to all directories involved. The css and image files are written successfully, but the html file(s) is not getting generated. What am I do worng?
perl genhtml -o coverage jsTestDriver.conf-coverage.dat
Reading data file jsTestDriver.conf-coverage.dat
Found 4 entries.
No common filename prefix found!
Writing .css and .png files.
Generating output.
mkdir: cannot create directory '': No such file or directory
genhtml: ERROR: cannot create directory !
Try this cross platform alternative to lcov genhtml - requires no cygwin. http://code.google.com/p/jgenhtml/
Related
I'm trying to run a specific file using the code below on desktop ubuntu
source /mnt/d/Xilinx/Vivado/2021.1/settings64.sh
However, I keep getting hit with
-bash: D:\Xilinx\DocNav\.settings64-DocNav.sh: No such file or directory
-bash: D:\Xilinx\Vivado\2021.1\.settings64-Vivado.sh: No such file or directory
-bash: D:\Xilinx\Vitis\2021.1\.settings64-Vitis.sh: No such file or directory
-bash: D:\Xilinx\Model_Composer\2021.1\.settings64-Model_Composer.sh: No such file or directory
-bash: D:\Xilinx\Vitis_HLS\2021.1\.settings64-Vitis_HLS.sh: No such file or directory
I'm confused as to why can the file not be found when I can see it existing in the folder and when I run an ls command
Here is an image of the command prompt
I have seen a few posts with similar problems but I don't quite understand their solutions. Any clarification would be appreciated.
settings64.sh file contents
source 'D:\Xilinx\DocNav\.settings64-DocNav.sh'
source 'D:\Xilinx\Vivado\2021.1\.settings64-Vivado.sh'
source 'D:\Xilinx\Vitis\2021.1\.settings64-Vitis.sh'
source 'D:\Xilinx\Model_Composer\2021.1\.settings64-Model_Composer.sh'
source 'D:\Xilinx\Vitis_HLS\2021.1\.settings64-Vitis_HLS.sh'
can you check the fill content of settings64.sh.
Because in Linux we don't mount volumes with letters like C:// or D://
According to me that script is not made for the supported OS you running on.
Let me know if I am wrong and I will edit the answer accordingly.
When I am trying to converting my python file into executable and binding with pdf with using command add-data. My pdf file is store no where due to this I cannot open my pdf file while opening executable.(yes, but command will create executable properly but there storing of pdf in default temp directory).
command:
pyinstaller.exe --add-data src;. --onefile python_file.py
P.s:- I tried to popen my file through my code but pdf is storing nowhere so, I cannot execute popen command
The documentation of pyinstaller is here: https://pyinstaller.readthedocs.io/en/stable/usage.html
and syntax of this command is:
--add-data <SRC;DEST or SRC:DEST>
Additional non-binary files or folders to be added to the executable. The path
separator is platform specific, os.pathsep (which is ; on Windows and : on most unix
systems) is used. This option can be used multiple times.
It means that for each folder of data you need use this parameter once. SRC is path in your system. DST is path relative to your bundle root. I suggest do not use --onefile when you have some problem with build. Then you can easier inspect resulted build.
I am try to use .autogen.sh to build the files from this repository:
https://github.com/cnangel/pidgin-libqq
It works when I input the command (.autogen.sh) from the directory(/project) where everything is unzipped.
But when I want to build them from different directory (/test), it shows the error: aclocal: error: 'configure.ac' is required. I believe this is because when running autogen.sh in /project from /test directory, the autogen.sh still looks for configure.ac in /test directory.
How should I rewrite the autogen.sh file for it to recognize/scan the configure.ac file in the directory (/project) where they both located?
Appreciate any suggestion for this problem!
I'm building project with CMake. While configuration and building I'm in directory project/build . How can I change the directory in CMake and execute a bash script from another directory.
execute_process( COMMAND cd ../ ) - doesn't work. When I execute this CMake doesn't change its directory and I'm again in project/build.
The WORKING_DIRECTORY directive of the execute_process command lets you directly specify the directory the script is to be run from.
execute_process(COMMAND ${CMAKE_SOURCE_DIR}/script.sh args
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
With ${CMAKE_SOURCE_DIR} you get the source path. Executing a binary from the source directory would be
execute_process(${CMAKE_SOURCE_DIR}/bin/myscript.sh)
If you need to handle files from the build directory you have to add them like
execute_process(${CMAKE_SOURCE_DIR}/bin/myscript.sh ${CMAKE_CURRENT_BINARY_DIR}/input.txt)
Overall the variables CMAKE_SOURCE_DIR, CMAKE_CURRENT_SOURCE_DIR, CMAKE_BINARY_DIR, and CMAKE_CURRENT_BINARY_DIR are very helpful. You can find a more complete list at http://www.cmake.org/Wiki/CMake_Useful_Variables
I want to tell CMake to output files and folders to a different folder instead of the current folder. I'm talking about the generated files by CMake below:
file: CMakeCache.txt
dir: CMakeFiles/
file: Makefile
dir: bin/
file: cmake_install.cmake
Is there a way to let CMake output these files and folders in another folder?
I wrote a tool that executes CMake from the root of the project-directory, as a result my project-directory gets messed up with the generated files and folders listed above.
Here a link what I want:
http://pastebin.com/cxykCi5M
Hope this will clarify more what I want.
You can use the undocumented command line options -B and -H to specify your build directory and source directory respectively. So, from your project's root, you can do:
cmake -Bbuild -H.
(Where build is your build directory path.)