I'm making my first project on a real text editor, Sublime Text.
All I have are two files: index.html and script.js
In index.html, all I have is
<h1>hello world</h1>
In script.js, all I have is
console.log("hello?")
Then I hit "Build System > Automatic" and then "Build"
I get the error "make: *** No targets specified and no makefile found. Stop."
What could I have done wrong?
Related
I am trying to learn Sphinx documentation creating tool. I am able to generate html documentation. Now, in order to create an off-line version of the (html) documentation, I have been trying to generate pdf file from my project.
Towards that goal, so far I have tried the following (using resources available on the web including the Sphinx docs):
Added the following to conf.py:
# conf.py options for Latex
latex_engine = 'pdflatex'
latex_elements = {
'papersize': 'a4paper',
'pointsize': '10pt',
}
Subsequently used the command make latexpdf in the terminal, whereupon I got the following messages in the terminal:
/Users/.../.../.../.../.../urls.py:docstring of lead.urls:5: WARNING: Definition list ends without a blank line; unexpected unindent.
/Users/.../urls.py:docstring of lead.urls:7: WARNING: Unexpected indentation.
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
processing lead.tex... index modules/...
resolving references...
done
writing... done
copying TeX support files... copying TeX support files...
done
build succeeded, () warnings.
The LaTeX files are in _build/latex.
Run 'make' in that directory to run these through (pdf)latex
(use `make latexpdf' here to do that automatically).
latexmk -pdf -dvi- -ps- 'lead.tex'
make[1]: latexmk: No such file or directory
make[1]: *** [lead.pdf] Error 1
make: *** [latexpdf] Error 2
A new folder latex was created with a number of files in them including one with the name <project_name>.tex (lead.tex in the error log above) and one batch file make.bat among them.
However, running the command make only produces the following error:
latexmk -pdf -dvi- -ps- 'lead.tex'
make: latexmk: No such file or directory
make: *** [lead.pdf] Error 1
Following some leads (materials available on the web) on latexmk, tried to install BasicTex package from the Tex site.
However, the package available is only for macOs 10.13 and higher. I am on 10.12.6.
So I am stuck. Can somebody please let me know if there is any solution to my predicament?
https://www.tug.org/mactex/faq/3-4.html worked for me while on macOS 10.12.6.
[ 59%] Compiling bitmap2component's resource file
gcc: error: Sanchez/AppData/Roaming/SPB_Data/src/MINGW-Packages/mingw-w64-kicad-git/src/kicad/bitmap2component: No such file or directory
E:\Documents2\MSYSkicadbuild\mingw64\bin\windres.exe: preprocessing failed.
make[2]: *** [bitmap2component/CMakeFiles/bitmap2component.dir/build.make:62: bitmap2component/CMakeFiles/bitmap2component.dir/bitmap2component_rc.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:1979: bitmap2component/CMakeFiles/bitmap2comp onent.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Compiled kicad on msys2 followed http://kicad-source-mirror.readthedocs.io/en/latest/Documentation/development/compiling/index.html#building-kicad-from-source
It says there is no such file or directory but there is...
MSYS ~/src/MINGW-Packages/mingw-w64-kicad-git/src/kicad
$ ls
_clang-format cvpcb lib_dxf README.txt
3d-viewer demos new resources
AUTHORS.txt Documentation pagelayout_editor scripting
**bitmap2component** Doxyfile patches scripts
bitmaps_png eeschema pcb_calculator template
CMakeLists.txt gerbview pcbnew TODO.txt
CMakeModules helpers plugins tools
common include polygon uncrustify.cfg
copyright.h INSTALL.txt potrace utils
CTestConfig.cmake kicad qa
this is what is inside bitmap2component
bitmap2cmp_gui.cpp bitmap2component.cpp CMakeLists.txt
bitmap2cmp_gui_base.cpp bitmap2component.h Info.plist
bitmap2cmp_gui_base.fbp bitmap2component.icns
bitmap2cmp_gui_base.h bitmap2component.rc
I must be missing something a path or file idk any help would be appreciated.
ohh not sure if this help figure anything out but it will keep compiling to around 71% and then tell me something about eeschema_kiface error.
I'm trying to compile transmission from source code checkout from svn, and ran into some issues compiling.
It says
"Makefile.in:15 *** missing seperator..."
where the line was #SET_MAKE# that has no white spaces in front of it.
After I commented out that line, it says:
make: #SHELL#: Command not found
Makefile.in:484: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 127
The Makefile.in is generated by ./autogen.sh
Automake and Autoconf are both up-to-date and exceeds minimum requirement.
Debian Jessie updated.
Makefile.in is only a template for a makefile, this is typically used by GNU Autotools. In order to generate a Makefile from that template, you have to run ./configure, which should also have been generated by ./autogen.sh.
I am attempting to compile Go/Baduk engine Pachi (https://github.com/pasky/pachi) with Caffe (http://caffe.berkeleyvision.org) support.
Caffe install is OK and its located in /something/PACHI_GO_ENGINE/caffe/
caffe.hpp is located in:
/something/PACHI_GO_ENGINE/caffe/distribute/include/caffe/caffe.hpp
/something/PACHI_GO_ENGINE/caffe/include/caffe/caffe.hpp
I also updated the Pachi Makefile as instructed:
- Edit Makefile, set DCNN=1, point it to where caffe is installed and build.
I even made a copy of ...include/caffe/ to /usr/local/lib because this supposed to be a default location.
Makefile changes:
DCNN=1
#CAFFE_LIB=/usr/local/lib
CAFFE_LIB=/something/PACHI_GO_ENGINE/caffe/distribute/include
#(and several variations of this)
And I still get:
[CC] fbook.c
[CC] chat.c
[CXX] dcnn.cpp
dcnn.cpp:13:27: fatal error: caffe/caffe.hpp: No such file or directory
compilation terminated.
Makefile.lib:78: recipe for target 'dcnn.o' failed
make: *** [dcnn.o] Error 1
CAFFE_LIB variable is to point to the path where caffe.so or caffe.a is present. In your case, the dcnn.cpp cannot find the header files.
Though the header files are present in /something/PACHI_GO_ENGINE/caffe/distribute/include they won't be detected by pachi because, header file paths are mentioned using the variable INCLUDES. You will have to append this path to the INCLUDES variable and not the CAFFE_LIB.
I haven't used a .rc file yet. I was looking for how to set the filename/version/product name etc of a Qt assembly file, found this. I created an empty file named resources.rc and the version.h header and added in the .pro file RC_FILE = resources.rc. But when I went to build the application I get this error:
gcc: error: Message\: No such file or directory
gcc: error: Kernel: No such file or directory
windres: preprocessing failed.
Makefile.Release:158: recipe for target 'release/resources_res.o' failed
mingw32-make[1]: *** [release/resources_res.o] Error 1
mingw32-make[1]: Leaving directory 'C:/Users/jack/Desktop/foo/build-Message Kernel-Desktop_Qt_5_5_0_MinGW_32bit-Release'
mingw32-make: *** [release] Error 2
makefile:34: recipe for target 'release' failed
00:43:58: The process "C:\Qt2\Qt5.5.0\Tools\mingw492_32\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project Message Kernel (kit: Desktop Qt 5.5.0 MinGW 32bit)
When executing step "Make"
How do I fix this?
Found the error! Hope this is useful to anyone!
My project name contains white spaces, by looking carefully at compiler output tab (in Qt creator) I noticied that the path passed to windres utility wasn't surrounded by quotes (as a path with spaces in name should be) causing the error:
gcc: error: Message: No such file or directory
So I just removed the spaces from project name and this worked just fine.
Here's the Qt version this is happening: