Tag Info

Hot answers tagged

5

Indeed, clear_screen is a macro: $ grep clear_screen /usr/include/term.h #define clear_screen CUR Strings[5] You will have to use some other name, like the linked page does: void Clear_screen (void) The compiler messages also state this: clear_screen_UNIX.c:9:6: note: in expansion of macro ‘clear_screen’ That's why the errors seem ...


3

Since your real goal seems to be to automate whatever needs to be done to run your program, I suggest a different approach. Instead of writing a shell script, you can use a makefile. If you like, you can write a rule in your makefile for running your executable once it is built. You will then have two files--your C++ source code file and your makefile--and ...


2

You need to edit your own module makefile. Kernel build makefiles are a little different from regular makefiles: the target needs to be modules, not the name of your module (test), which only needs to be specified via the obj-m variable: obj-m += test.o all: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules


2

Just steal the config file for the Ubuntu version of the kernel you want to build. For example, say you wanted to compile kernel 4.0 yourself. Go to the kernel PPA, get and install the kernel. Then from your build location do: cp /boot/config-4.0.0-040000-lowlatency .config where in my example, I have used the lowlatency kernel, you might use a different ...


2

You may also see this message if you are running a build system that executes some build steps in parallel on a multi-core machine and one of those steps requires an output from the other, but the build system doesn't know it. For example: step1: generate header file that gets used by step 2 step2: run gcc to compile a .c file that includes the header ...


2

The use of make is not right here. longsleep just revised the README: Guys this repository is ubuntu packaging. So you should build the package and install it. It then builds the module with the kernel patches required for your particular kernel version. I See that the readme needs some work :-) This should work: First you need this package: ...


1

Use this command instead of dpkg-buildpackage -us -uc and all is fine: DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -rfakeroot -us -uc -b Tests are disabled and there are only built binary packages.


1

Following steps are required for installing a non-compiled program ( building and installing a program directly from source code ). Step 1: Ubuntu does not come with tools required for compiling a program by default.Thus, you need to install additional packages. Execute following code in the Terminal (Ctrl+Alt+T) sudo apt-get install build-essential ...



Only top voted, non community-wiki answers of a minimum length are eligible