Questions tagged [compiling]

Questions related to compiling software from sources, usually using the "make" command.

Filter by
Sorted by
Tagged with
0
votes
1answer
25 views

Is there an Ubuntu developer installation which comes with full C/C++ development envirenment installed?

I do not want to download source code for gnu gcc/g++/gdb/make... and compile from scratch. I am OK with downloading a built and ready to use set of packages. But best of all, I am looking for an ...
2
votes
1answer
37 views

bash startup variable expression

I have the idea that I would like to add an environment variable ("waitTillReady") to my ~/.bashrc file, such that instead of doing this: while [ "$(pidof -s make)" -o "$(pidof -s gcc)" -o "$(pidof -...
1
vote
0answers
35 views

Compilation failure in installing NTL library

I'm trying to install NTL Library in Ubuntu and having problems What I typed in the terminal is: gunzip ntl-xxx.tar.gz tar xf ntl-xxx.tar cd ntl-xxx/src ./configure After entering from the last ...
0
votes
0answers
25 views

How to build the imb kernel module

I would like to compile an INTEL IPMI Baseband Open Source driver for Linux that currently only has support for kernel versions 2.4 and 2.6. My kernel is 4.15.0-54-generic. I have never attempted ...
1
vote
2answers
37 views

Error compiling program - Maths library failure?

I have Ubuntu server (no GIU) version Ubuntu 16.04.3 LTS and an trying to install a program 'parsefsh-1.0-g231'. I have downloaded the file and de-compressed it fine, now I need to compile it, so ...
0
votes
1answer
12 views

Error while installing icecat Ubuntu 19.04

Seems like everything I do requires extra steps. Here's where the install process gets. I've installed>updated>upgraded rustc and now I'm here. 0:02.95 checking for rustc... /usr/bin/rustc 0:02.95 ...
1
vote
2answers
158 views

How to modify build rules in Makefile

I tried to compile FFmpeg from source code located HERE. All is good, but the built binaries lack ffplay. And looks like the build rule is missing from the makefile located under /fftools. How can I ...
0
votes
1answer
160 views

fatal error: linux/compiler-gcc7.h: No such file or directory

I am trying to install the Atheros CSI tool (provided installation instructions here), running Ubuntu 18.04.2 LTS on a Dell Inspiron 5570 laptop with a QCA9377 wireless adapter. I am able to do ...
0
votes
0answers
18 views

where is KF5/inserthtmldialog.h at ubuntu disco?

Upto cosmic, KF5's inserthtmldialog.h exists here : c++ : /usr/include/KF5/KPIMTextEdit/KPIMTextEdit/InsertHtmlDialog c : /usr/include/KF5/KPIMTextEdit/kpimtextedit/inserthtmldialog.h But I couldn'...
1
vote
2answers
69 views

Package libprotobuf was not found in the pkg-config search path

I am installing protobuf-c 1.3.2 after ./configure it shows protobuf-c 1.3.2 CC: gcc CFLAGS: -g -O2 CXX: g++ -std=...
0
votes
1answer
168 views

Can't install rtl8192eu-linux-driver on UBUNTU 18.10

I am using UBUNTU 18.10 and I had problem with TL-WN822n v5 driver in UBUNTU and Kali (4.19.0-kali5-amd64) The problem is driver=rtl8xxxu so I found a driver in this page : https://github.com/Mange/...
0
votes
2answers
65 views

Auto compile alias in .bashrc

How do I create an alias in my .bashrc file so that I can compile my C++ program without inputting this much longer command: g++ -o filename filename.cpp Here the file name is variable.
0
votes
0answers
23 views

How to do apt-get build-dep gawk for kernel building [duplicate]

I just found this little guide in how to download, patch and build an ubuntu kernel sudo apt-get install dpkg-dev sudo apt-get build-dep gawk sudo nano /etc/apt/sources.list deb-src http://security....
1
vote
1answer
65 views

How do I fix “cannot find -lccp4c” to install Gromacs with Density Fit?

I am trying to install gromacs 5.0.7 with automated desnity fitting according to the protocol provided at the bottom of this link: https://www.mpibpc.mpg.de/grubmueller/densityfitting Unfortunately, ...
1
vote
1answer
40 views

Require assistance in compiling and running gcc(gsl) programs via terminal

Installed gsl 2.5 on ubuntu 18.04. Trying to compile and run a sample_matrix.c script using $ gcc -Wall -I/usr/local/include -c sample_matrix.c runs successfully; further to display the output, ...
0
votes
1answer
48 views
1
vote
1answer
76 views

cmd “./configure” not executing

I am trying to install gsl 2.5 on Ubuntu 18.04. Followed the following steps: 1. Downloaded the latest gsl pkg from http://ftpmirror.gnu.org/gsl/. Unzipped the tarball with archive manager, a folder ...
1
vote
0answers
25 views

Tracking down ODROID-xu3 alignment traps

I'm using an Odroid XU3 with: Ubuntu 18.04 (kernel version 3.10.106-154) Clang 6.0.0 (reports /usr/bin/../lib/gcc/arm-linux-gnueabihf/7 as the gcc installation) architecture is armv7l according to ...
-4
votes
0answers
38 views

I am trying to install openbts, but I keep getting this error: (dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2)

# checking for a supported radio type # - found # single component specified # - found, building open bts # checking for a compatible build host # - fully supported host detected: ...
0
votes
0answers
60 views

Not able to enable ktls while build OpenSSL3.0.0 on Ubuntu 16.04.1

I am trying to build Openssl-3.0.0 from master branch to use ktls feature on Ubuntu 16, but the build is skipping the ktls feature even though i am using Ubuntu 16.04.1 (Kernel version: 4.15) ...
0
votes
1answer
36 views

Strange error in running CPP file [duplicate]

I created a very simple file in CPP, namely trash.cpp. Ran it using gcc trash.cpp #include <iostream> #include <string> int main() { try{ throw 6; } catch(int e) { ...
1
vote
0answers
24 views

How to obtain the same performance of self-compiled OpenCV as the package from the repository

I recently decided to compile OpenCV myself on my newer Ubuntu 18.04 machine (which previously had no installation of OpenCV whatsoever). However, I noticed severe performance drops out of software I'...
1
vote
0answers
51 views

GCC is neither sinking assignements nor eliminating partial dead codes [closed]

I am trying to see whether or not the GCC applies partial dead code elimination optimization. Partial dead code elimination can be considered as the result of the two opt passes: assignment sinking + ...
0
votes
1answer
32 views

Compiling Opencv cpp code in ubuntu

while compiling the below code.. #include <opencv2/core/core.hpp> #include <opencv2/imgcodecs.hpp> #include <opencv2/highgui/highgui.hpp> #include <iostream> #include <...
1
vote
0answers
101 views

Make exits with *** [all] error 2 [closed]

I am compiling Autodock Suite from source to increase the maximum number of torsions supported (in case it helps) using this as my reference. When I type in make in the terminal, it throws this up (it ...
1
vote
0answers
19 views

Sublevel version mismatch when trying to compile current kernel

I am trying to recompile the sound/usb module on Ubuntu 18.10 against the running kernel. I get no compilation errors but when I try to load the module I get this error: Invalid module format I am ...
0
votes
1answer
33 views

No .a or .o file created after building the project in Codelite

I have installed Codelite and I have g++ installed on my machine: I've also used the following settings when creating a new codelite project And I 've created a simple project #include <...
0
votes
1answer
24 views

Trouble installing ncurses

I've git cloned a program I need: https://github.com/dbdexter-dev/meteor_demod When I try to compile it with make, I get a fatal error: ncurses.h: No such file or catalog So I tried sudo apt install ...
0
votes
0answers
25 views

Chromium single executable build

I've been following the documentation here to build Chromium on Ubuntu 18. I've been able to successfully build using these flags gn gen out/amd64 --args='is_official_build=true is_debug=false' and ...
1
vote
1answer
41 views

Dockerfile ubuntu and docker builds and commands

I'm curious on how to write to a file with docker commands etc.. Let's say i want to build a file like so: RUN touch newfile.php Now how do i write to that file after it's built in the dockerfile ...
0
votes
0answers
81 views

dbus-1.0/dbus/dbus.h:29:10: fatal error: 'dbus/dbus-arch-deps.h' file not found

I am using dbus in my programme, but when i include #include <dbus-1.0/dbus/dbus.h> I am getting error : dbus-1.0/dbus/dbus.h:29:10: fatal error: 'dbus/dbus-arch-deps.h' file not found In the ...
1
vote
1answer
44 views

module build resource not found trying to make a driver from .C source

Found this: "How do I install a driver provided as source code?." After an answer here corrected some spelling, got as far as the 'make step'. Here’s the Makefile: obj-m := GobiSerial.o KDIR := /...
0
votes
1answer
22 views

I have a driver supplied as source cod (.c) cannot install 'build-essentials' [closed]

Found this question and answer "How do I install a driver provided as source code?". When I followed the instruction: "sudo apt-get install build-essentials" got the response "E: Unable to locate ...
0
votes
0answers
63 views

Errors compiling an android kernel

I have a Xiaomi Redmi Note 5, and I wanted to install this kernel The problem is that its my first kernel compilation and I can't compile it due to some errors: CC drivers/bluetooth/...
0
votes
0answers
24 views

How to load or compile Marvell 88E8053 PCI-E Gigabit adapter msk driver

I have a problem with my Marvell 88E8053, it is a gigabit controller, but my throughput is around 100mbps only on my 18.04 lubuntu. I find this driver: http://manpages.ubuntu.com/manpages/bionic/...
1
vote
1answer
99 views

How to install a specific version of granite dependency on Ubuntu 18.0.4?

I am trying to build Akira on Ubuntu 18.0.4.2. I checked the instruction at the Github site: https://github.com/akiraux/Akira#-compile, and installed all dependencies by using sudo apt install. ...
0
votes
0answers
33 views

Can't convert vcxproj to cmake with the cmake-converter

I am using the cmake-converter tool from this link to convert a .vcxproj file to cmake to be able to use it with Clion. I am in the folder where the vcxproj file is located and I run the following ...
1
vote
1answer
39 views

How can I install mpich for a newer gcc compiler?

I have a small server with Ubuntu Server 18.04. I have the GCC and MPICH compilers installed on this machine: gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-...
0
votes
1answer
2k views

building kernel with non-retpoline compiler

I am trying to build rtl wifi driver on ubuntu and when I make it gives me this message make[1]: Entering directory '/usr/src/linux-headers-4.15.0-50-generic' arch/x86/Makefile:156: CONFIG_X86_X32 ...
2
votes
2answers
82 views

Managing dependencies for GNU radio to compile from source

Ettus research gives a big list of dependencies for 18.04 which almost works for compiling gnu radio from source. cmake gives the following config error: -- Python checking for PyQt5 - found -- ...
1
vote
1answer
53 views

Manually installed exiv not found during meson build in Ubuntu 19.04

Can anyone explain the following? user@system:~/gexiv2-0.11.0/build$ exiv2 --version exiv2 0.27.1 This program is free software; you can redistribute it and/or modify it under the terms of the GNU ...
0
votes
1answer
31 views

Installing Caffe in Ubuntu 14.04

I need help building Caffe (deep learning) on Ubuntu 14.04. After running the command sudo make all -j4 i get report like this: In file included from /usr/local/include/google/protobuf/arena.h:48:0, ...
1
vote
2answers
73 views

gcc --version and package version is not the same

When i enter following command in the terminal: gcc --version It's output something like this: gcc (Ubuntu 6.5.0-2ubuntu1~18.04) 6.5.0 20181026 ... But when i enter below command to see version of ...
0
votes
0answers
32 views

Use `update-alternatives` to provide gold, lld as alternatives for ld

I'm looking for a way to use update-alternatives to provide gold (from GCC) and lld (from the LLVM project) as alternatives for /bin/ld and /usr/bin/ld. The problem there is, I'm facing an error that ...
1
vote
0answers
322 views

Error in make install arch/x86/Makefile:245: *** You are building kernel with non-retpoline compiler, please update your compiler.. Stop

I've been trying to follow the steps given on this site http://ubuntuhandbook.org/index.php/2018/08/no-wifi-adapter-found-hp-laptops-ubuntu-18-04/ to install an WiFi adapter device driver on my HP ...
0
votes
2answers
121 views

Installed Qemu 4.0 but version 2.11 still shows in terminal

I installed qemu using apt and got version 2.11. Decided to use a more recent version and downloaded the source for 4.0. Removed apt version with a: apt remove qemu successfully compiled version 4.0,...
0
votes
0answers
23 views

Installing GIMP 2.8 from source on a system with GIMP 2.10 , babl library not found

My 18.04 system has GIMP 2.10 installed. I need to use a plugin that will only work with GIMP 2.8. On the gimp.org Old Stable Downloads page they advise installing a Flatpak of it, but that wanted to ...
2
votes
0answers
43 views

why 18.04 malloc.h does not have mallinfo?

The following code doesn't compile: #include <stdio.h> #include <malloc.h> int main(int argc, char *argv[]) { struct mallinfo mi; mi = mallinfo(); return 0; } ~/ssd/tmp$ gcc ...
2
votes
1answer
46 views

Read GPIO-ports from C-program

Iḿ trying the following: - we have a AXIS-controler which is connected to the Linux (18.04) via an CP2102-chip to an USB-port. We want to read the values of the GPIO 0-3-bits via a C-program on the ...
1
vote
0answers
61 views

Failed to build modules: libdbusmenu-qt ,libgpg-error, gpgme while building KIO framework

I am trying to build KIO framework using kdesrc-build --include-dependencies on Ubuntu 18.04. Initially everything goes fine, but these 3 modules(libdbusmenu-qt ,libgpg-error, gpgme) fails to bulid ...