I have a project with the following directory structure: A file in the $doc/tests directory e.g test1.rst is created from $tests/test1/test1.e. I’m having problems with the makefile specifying that the source files are in $tests/*/*.e and the destination files are in $doc/tests/*.rst. I’ve seen several similar questions but haven’t been able to workout the correct makefile syntax. This makefile works
Tag: compilation
Linux randomly deleted my file while compiling what do I do?
This is my error code. prog3.c is nowhere to be found, what on earth happened is there any way to get my file back?? The bold is the command I ran and the rest is the resultant console output Answer Your problem is here: -o prog3.c. gcc’s -o option is used to tell gcc which name it should give to
How to start compilation of Krusader?
My question is simple. It is probably something obvious what I am missing… I downloaded Krusader (file manager) source, from their webpage in .tar.gz. I unpacked it and want to compile, but there is no ./configure, no make, no make install. The install.txt file is not clear for me. There is information about required dependencies, but I don’t know how
Can I get symbol names from one .so and make another .so see it?
I’ve built zlib and libpng separately (what are these libs doesn’t matter), so I’ve got libz.so and libpng.so now. With dlopen() and dlsym() I get function pointers from libpng.so and use them, but the problem is that, since libpng depends on zlib, I get linker errors when libpng function calls some zlib function inside itself. So my quiestion is: Is
Undefined reference error while compiling
I’m trying to compile a project that has multiple *.c files and *.h file when I type the following command: the hdr folder is where the *.h files are located, the .o files are created but when I try to link them using the command: I see errors Answer Using a Makefile is very common for this task example (untested)
GCC compiled code: why integer declaration needs several statements?
I’m learning AT&T assembly,I know arrays/variables can be declared using .int/.long, or using .equ to declare a symbol, that’s to be replaced by assembly. They’re declared insided either .data section(initialzed),or .bss section(uninitialzed). But when I used gcc to compiled a very simple .c file with ‘-S’ command line option to check the disassembly code, I noticed that: (1) .s is
OpenCV 3.1.0 won’t compile with CMake
I know there are many supposed duplicates for this matter, but since none of the answers worked for me I’d rather ask another question. My project won’t compile with CMake: Found package configuration file: /usr/share/OpenCV/OpenCVConfig.cmake but it set OpenCV_FOUND to FALSE so package “OpenCV” is considered to be NOT FOUND. My CMakeLists.txt is as follows: The error happens on the
What are these unfamiliar lines in the C preprocessed file?
This is an output of the GNU cpp on a Hello World program in C. I am wondering what do these lines mean? # Number Header_File_Location [Numbers] Are these some kind of dependencies? If yes, then on what? Line numbers? Answer Those are line number directives, and tells the compiler what line and file the next part of the source
Cmake Error: The following variables are used in the project, but they are set to NOTFOUND trying to compile Rigs of Rods in archlinux
I’ve been trying to compile Rigs of Rods under archlinux with 4.2.6 Kernel. I’ve followed the official compiling instructions presented in http://www.rigsofrods.com/wiki/pages/Compiling_Sources_under_Linux I have succesfully compiled ogredeps and CMake gave me no error, I even enabled multithreading for it (while using make, after running CMake .), but when I try to compile Ogre (Mentioned under the “Ogre Itself” section in
Shogun fails to compile. Are these Shogun bugs?
I am trying to compile Shogun on Fedora 23 64bit, but it fails with the errors below. Version 4.0.0 have the same issue. Can anyone tell me, if there errors are bugs in Shogun or something I have done wrong? And here is the output with the errors. Update Here is the output from cmake Answer Fedora 23, shogun :