Inkscape can't find the file for includesvg - latex

Having a nightmare including an svg file in my document. It's just a picture of Tux.
Code:
\svgpath{{C:/Users/me/Google\ Drive/foo}}
\includesvg[width = 200pt]{tux}
Error:
** (inkscape.exe:27228): WARNING **: 20:52:43.840: Can't open file: tux.svg (doesn't exist)
** (inkscape.exe:27228): WARNING **: 20:52:43.840: Can't open file: tux.svg (doesn't exist)
** (inkscape.exe:27228): WARNING **: 20:52:43.840: Specified document tux.svg cannot be opened (does not exist or not a valid SVG file)
The system cannot find the file specified.
The system cannot find the file specified.
I wish it would give me more debugging information so I could tell what directory is being used. I've enabled --shell-escape. I've tried various combinations with no success.
EDIT: Minimal example
\documentclass{article}
\usepackage{svg}
\begin{document}
\includesvg{tux}
\end{document}
I created a directory c:\latex
My command line is texify --pdf --engine=luatex --synctex=1 --tex-option=--shell-escape --clean foo
I noticed that it also says there's a log file, but I cannot find a log file with more information
Package svg Warning: The export with Inkscape failed for file
(svg) `tux.svg'
(svg) Troubleshooting: Please check in the log file how
(svg) the invocation of Inkscape took place and try to
(svg) execute it yourself in the terminal on input line 5.
I would love to get my hands on that mythical log file. There's a foo.log file but that just says what my console output was. There's another log file at C:\Users\james\AppData\Local\MiKTeX\2.9\miktex\log\texify.log, but that doesn't have any information about the inkscape command either.
The docs (http://mirror.its.dal.ca/ctan/graphics/svg/doc/svg.pdf) say that I should see runsystem ....

The problem is the --clean option. I figured this out by selected pdflatex in TeXWorks and it suddenly built. Taking out options one by one helped me get to the bottom of this. Going back to post on some other questions.
As #samcarter pointed out, if you don't have to use texify, try not to. One of my packages requires LuaLaTex to typeset, so I selected the LuaLaTeX +MakeIndex +BibTex when I only needed the LuaLaTex plain option. Using that one fixed the issue.
If you have to use texify, though, try removing the --clean.

Related

"Error: LaTeX failed to compile" output when using TinyTex; error running pdflatex (exit code 1)

I'm using an R Sweave doc and trying to compile a pdf from RStudio using TinyTex. Let's assume my Sweave file is titled "Example.Rnw" and my file path to the .tex output is "Path/Example.tex." After hitting "Compile PDF" in my Sweave doc, I get the following error:
[1] "Example.tex"
Compiling document with tinytex ... Error: LaTeX failed to compile /Path/Example.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips.
Execution halted
failed
Error running /usr/local/bin/pdflatex (exit code 1)
When I copy and paste the resulting .tex file into Overleaf, the pdf looks fine. My guess is there's some issue with pdflatex and TinyTex, but I'm not sure what. After a few hours I'm still stumped. Any advice for how to compile this pdf? I've already updated and reinstalled TinyTex, and set my PATH to the TinyTex distribution folder. Thanks in advance.

The system cannot find the file specified error Lua

I have a folder containing main.lua opened in Sublime Text, but when I try to compile it in the text editor, it gives me this error. I have no problem running the code in the game engine. Can someone tell me what I am doing wrong and how to fix it in layman's terms? I am new to coding. Here is the full error:
[WinError 2] The system cannot find the file specified
[cmd: ['lua', 'C:\\Users\\eshig\\Desktop\\pong-0\\main.lua']]
[dir: C:\Users\eshig\Desktop\pong-0]
[path: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%SYSTEMROOT%\System32\OpenSSH\;C:\Program Files\Java\jdk-13.0.2\bin;%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;]
[Finished]

build_iphone.sh: line 52: /Users/.../pocketsphinx-master/configure: No such file or directory

I'm on macOS Mojave in terminal, and I'm getting an error that says no such file or directory for the directory ".../pocketsphinx-master/configure" when I run build_iphone.sh, which I got from this repository: cmusphinx/pocketsphinx-ios-demo.
The instructions for pocketsphinx found at this repository -- cmusphinx/pocketsphinx gives these instructions to use pocketsphinx with Xcode. Here's part of what it says, which I don't understand:
Pocketsphinx uses the standard unix autogen system, you can build pocketsphinx with automake given you already built sphinxbase You just need to pass correct configure arguments, set compiler path, set sysroot and other options. After you build the code you need to import dylib file into your project and you also need to configure includes for your project to find sphinxbase headers.
Here is what my terminal on my Mac mini looks like:
Daniels-Mac-mini:pocketsphinx-master shinehah$ sh build_iphone.sh
building arm64...
build_iphone.sh: line 52: /Users/shinehah/cmusphinx/pocketsphinx-master/configure: No such file or directory
I created that directory, but I still get the same error message. What do I need to put in that directory?
In build_iphone.sh, line 52, it says:
--host="${HOST_TYPE}" \
Here is the code segment it is from:
$CWD/configure
--host="${HOST_TYPE}" // line 52
--prefix="$DEST/$ARCH"
--without-lapack
--without-python
--with-sphinxbase="$SPHINXBASE_DIR"
|| exit 1

fatal error: zbar.h: No such file or directory

I downloaded the zbar library and cloned the opencv-zbar repo in my home directory. Then I ran the following command $cmake . which gave my the error
-- Could NOT find ZBAR (missing: ZBAR_LIBRARIES ZBAR_INCLUDE_DIR)
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
ZBAR_LIBRARIES
linked by target "zbar_opencv" in directory /home/surabhi/opencv-zbar
-- Configuring incomplete, errors occurred!
See also "/home/surabhi/opencv-zbar/CMakeFiles/CMakeOutput.log".
I then made two changes in my CMakeCache.txt as follows
//Path to a file.
ZBAR_INCLUDE_DIR:PATH=/usr/include/zbar
//Path to a library.
ZBAR_LIBRARIES:FILEPATH=/usr/lib/libzbar.so
because the were set to NOTFOUND.
It then gave me no errors
-- Found ZBAR: /usr/lib/libzbar.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/surabhi/opencv-zbar
But when I run make
It gives the error:
fatal error: zbar.h: No such file or directory
#include <zbar.h>
^
compilation terminated.
I don't understand why I get this error as It says Found ZBAR when I run cmake.
Thanks in advance
You need to do actually use the include dirs somewhere in your CMakeLists.txt so CMake knows that you actually want to use these include paths.
Examples:
include_directories(${ZBAR_INCLUDE_DIR})
Or the more modern, recommended way:
target_include_directories(zbar_opencv PRIVATE ${ZBAR_INCLUDE_DIR})

lede sdk compile error occur?

when I compile sdk on lede, some errors occurd like this:
find: '/home/ascend/project/lede/build_dir/target-mips_24kc_musl-1.1.16/lede-sdk-ar71xx-generic_gcc-5.4.0_musl-1.1.16.Linux-i686/staging_dir/host/usr/bin': No such file or directory
find: '/home/ascend/project/lede/build_dir/target-mips_24kc_musl-1.1.16/lede-sdk-ar71xx-generic_gcc-5.4.0_musl-1.1.16.Linux-i686/staging_dir/host/usr/lib': No such file or directory
Makefile:76: recipe for target '/home/ascend/project/lede/bin/targets/ar71xx/generic/lede-sdk-ar71xx-generic_gcc-5.4.0_musl-1.1.16.Linux-i686.tar.xz' failed
make[3]: [/home/ascend/project/lede/bin/targets/ar71xx/generic/lede-sdk-ar71xx-generic_gcc-5.4.0_musl-1.1.16.Linux-i686.tar.xz] Error 123 (ignored)
But it compiled successfully and the image was made.
Some one have ideas?
I think you have some errors in the format of the file path, but the path is still correct. instead of using one back-slash between the folders, try using 2.
If this doesn't work, just reply and then i will find another answer for you. Good luck!

Resources