Questions tagged [compiling]
Questions related to compiling software from sources, usually using the "make" command.
2,573
questions
0
votes
0
answers
253
views
error: C compiler cannot create executables while cross compile tcpdump
when I cross compile tcpdump for the rt-ac86u from the https://github.com/RMerl/asuswrt-merlin.ng repository using the https://github.com/RMerl/am-toolchains toolchain, tested on a x86_64 Ubuntu host:
...
1
vote
1
answer
714
views
Install Tor 0.4.x on Ubuntu 18.04
We can install Tor 0.3.x on Ubuntu from Ubuntu's default repository.
I want to have updated tor version. Because the 0.3.x version doesn't work here any more.
Is there any repository that offers Tor 0....
1
vote
1
answer
5k
views
c++ compilng failed
I have tried to build and run c++ files but it failes every time I try.
here is the code when I compile it in the terminal
In file included from /usr/local/include/c++/8.3.0/x86_64-cros-linux-gnu/...
0
votes
1
answer
736
views
Where is the gtk+-quartz-3.0 package located? (Trying to compile webkitgtk)
prompt:> cmake -DPORT=GTK -DCMAKE_BUILD_TYPE=RelWithDebInfo -GNinja
CMake Warning:
No source or binary directory provided. Both will be assumed to be the
same as the current working directory, ...
1
vote
0
answers
770
views
(environment-modules) Setting up modulefile for Intel compilers
I am trying to install openmpi (not from apt) into my system. I want to use intel compilers (fortran, c and c++) for the compilation. When ./configure my openmpi folder, without module load intel, ...
0
votes
0
answers
464
views
Compiling file.c and creating executable file with one button - Ubuntu 19.10 [duplicate]
I'm wondering if there is a way (e.g. a software like bloodshed dev c++ in Windows) to compile a file.c and to create the executable file by using a single click.
I know only the classic way: writing ...
0
votes
1
answer
4k
views
When installing libmtp: "collect2: error: ld returned 1 exit status". How to debug/fix?
Following these instructions for fixing libmtp problems ...
https://askubuntu.com/a/886986/296836
... I get these errors ...
../src/.libs/libmtp.so: undefined reference to `usb_claim_interface'
../...
0
votes
1
answer
618
views
Error when building tesseract from source [duplicate]
I've hit an error trying to build tesseract. From the log output, my suspicion is that there is some python2 code causing an issue. My system python is 3.7. Not sure how to resolve, any tips ...
0
votes
0
answers
476
views
How to compile Ubuntu from source [duplicate]
I am looking for a procedure to build Ubuntu (LTS) from the source including xwindow.
The goal is to prepare for my platform of embedded SoC (ARM64) based device.
1
vote
0
answers
424
views
Broken link of kernel build and source
When I install XR driver on NanoPi Duo2 using the command make, I got the following error message:
10:09 root@G2:XR21B1411-RS-485-driver# make
make -C /lib/modules/4.14.111/build M=/root/C/...
1
vote
1
answer
3k
views
libGL.so: undefined reference to `glapi_tls_Current'?
I am a newbie trying to build a C++ project on Ubuntu 18.04, which I used to be able to build without any issues before updating from Ubuntu 16.04.
My machine has an NVIDIA GPU running with NVIDIA ...
0
votes
1
answer
207
views
Computer hanging when booting Linux 5.4.2
I have a laptop running Ubuntu and its bootloader is Grub2. I was using kernel version 5.3.0, but decided to switch to 5.4.2. I followed this guide to compile it from source. All went well, so I tried ...
0
votes
1
answer
796
views
Passing in bash arguments from a variable that has quotes
I'm trying to build an Nginx module. The instructions I had found have this configure line:
./configure --add-dynamic-module=my-module-path $(nginx -V)
Which runs without error but the module that ...
1
vote
2
answers
9k
views
Couldnt compile kernel with patch
I am trying to build the ubuntu 5.3.0 kernel with a custom patch. I downloaded the source and added the patch using
patch -p1 < patch_name.patch
and make a config using
make config
then I ...
0
votes
0
answers
1k
views
Install Qt > 5.10 on ubuntu 18.04 in order to build the minitube 3.2
For building the minitube ( https://github.com/flaviotordini/minitube ) I need to have a version later than the one offered by the repositories. The reason I am asking is because the developer ...
1
vote
0
answers
427
views
How to compile and install change to Ubuntu Linux kernel?
Short version:
How do I make a change to the Ubuntu Linux kernel (18.04 LTS), compile it, install it, and use it on subsequent boot up's?
Long version:
There seems to be an issue with the Trim ...
1
vote
1
answer
261
views
Error while installing pcl 1.8.0 for Ubuntu 16.04.6 LTS. #error Your compiler does not support C++11
I am a beginner and I am struggling with the issues during installation of PCL v1.8.
I followed the instructions of this question :
How to install Point Cloud Library v1.8 (pcl-1.8.0) on Ubuntu 16.04....
0
votes
0
answers
104
views
Unable to compile simulink s function for comedi interfacing on linux lubuntu 64 bit
I have created simulink s-function block for comedi interfacing on windows 32 bit and compliled suceesfully. But I am unable to compile on 64 bit linux-rtai(lubuntu) system. I am getting following ...
1
vote
1
answer
3k
views
/usr/src/linux-headers-5.0.0-32-generic' arch/x86/Makefile:147: CONFIG_X86_X32 enabled but no binutils support
please help, i make a file named hello.c
#include linux/module.h
#include linux/kernel.h
#include linux/init.h
static int __init hello_start(void){
printk(KERN_INFO "Loading hello module...\n");
...
3
votes
0
answers
9k
views
Configure `gcc-8` to be default gcc "error: no alternatives for gcc"
I am running ubuntu 18.04 and I currently have:
(tensorflow_p36) ubuntu@user:~$ gcc --version
gcc (GCC) 4.8.5
(tensorflow_p36) ubuntu@user:~$ gcc-8 --version
gcc-8 (Ubuntu 8.3.0-6ubuntu1~18.04.1) 8....
2
votes
1
answer
2k
views
Compiling a LibUSB 0.1 program fails with "undefined reference" errors
I have a small C program that uses libusb 0.1.
I've already installed libusb-dev (which basically means libusb 0.1: https://packages.ubuntu.com/de/xenial/libusb-dev) and included the header <usb.h&...
5
votes
1
answer
11k
views
How can I force an older version of g++ if I have a newer version?
g++ --version on my home machine reads 7.4.0, but a server I frequently do work on shows 4.8.5. Their servers don't support -std=c++11 compiler flags yet my home machine does. The most recent flag it ...
1
vote
1
answer
211
views
hadoop installation errors in ubuntu 19.10
I was installing Hadoop on Ubuntu 19.10 I got following errors
I am comipiling https://hadoop.apache.org/releases.html
file version https://www.apache.org/dyn/closer.cgi/hadoop/common/hadoop-3.1.3/...
1
vote
2
answers
3k
views
Installation of GEM5 on Ubuntu 19.10 on my Laptop ( i5 CPU M520 -64bit)
Tried GEM5 Simulator installation as per instructions provided in http://learning.gem5.org/book/part1/building.html and by doing the following
sudo apt install build-essential git m4 scons zlib1g ...
0
votes
1
answer
497
views
Failure installing build-essential from mirror repository
I have a machine that needs network drivers to be built from source to get internet connectivity. In order to build the drivers, I need to install build-essential and friends.
I made a mirror ...
2
votes
1
answer
1k
views
Vala compiler cannot find gee.h
I followed the GNOME guid to setup Vala on Ubuntu. and try the first GEE sample.
$ valac --pkg gee-0.8 gee-list.vala
gee-list.vala.c:8:10: fatal error: gee.h: No such file or directory
#include <...
2
votes
0
answers
164
views
How to install virtualbox-6.0.14-dfsg/src/VBox/Additions/x11/x11stubs
On one of my Ubuntu 19.10 machines my install of VBox from the repository is fatally unstable -- freezes my machine with mysterious errors that has no takers on any of the forums I've posted to. So I'...
1
vote
0
answers
36
views
Can't run C on Geany [duplicate]
I'm having trouble in running C code from Geany. The code compiles successfully, but when I try to execute it, it shows on Terminal:
/tmp/geany_run_script_I007A0.sh: 7: /tmp/geany_run_script_I007A0....
2
votes
1
answer
3k
views
how to solve this error? (collect2: fatal error: cannot find 'ld')
I'm a beginner and I need your help.
I use Ubuntu18.04 and want to install Orient package for molecular calculation.
https://gitlab.com/anthonyjs/orient
I get this error when compiling it with ...
4
votes
1
answer
2k
views
How to build kernel 4.15.0 on ubuntu 18.04 and avoid missing libperf-jvmti.so
I'm trying to build kernel 4.15.0 to apply patch with Docker. But I encountered the problem that libperf-jvmti.so was not found on building the kernel.
Could anybody tell me how to fix this error?
...
3
votes
1
answer
2k
views
GCC error: 500: no such file or directory
I've written a program in C, and I'm trying to compile it on command-line with arguments, but when I write an integer, for example:
gcc findtopk.c -o findtopk 500 5 test1.txt test2.txt test3.txt ...
0
votes
0
answers
83
views
need help installing sick lms200 sensor software
I have the LIDAR Sick lms200 http://sicktoolbox.sourceforge.net/
I would like to install the driver, but compiling the source ends in error.
I have tried modifying the compilation flags to be c++11 ...
1
vote
0
answers
120
views
Parallel builds using all cores hang entire computer
I have an Intel i9-9900K, a CPU with 8 physical cores and 16 threads, and I'm running Ubuntu 16.04. When I compile a project that is able to fully use all 16 threads (i.e. 16 long-running parallel ...
4
votes
0
answers
757
views
How to install gcc 3.2?
I need to use gcc 3.2. No prior answers exactly resolved this problem. It looks like this version is not available in a apt-get repository and I do not exactly know how to install it using the source ...
4
votes
1
answer
579
views
How to compile msmtp from source, install in the proper location and install a service startup script for 18.04?
I've found that the msmtp package for Ubuntu 18.04 is old and missing a component. The current included package is version 1.6.6 from 2016-11-14 and is missing msmtpd. I would like to install version ...
4
votes
1
answer
7k
views
Cross-compiler path
I have some compilers for different architectures:
$ > whereis gcc
gcc: /usr/bin/gcc /usr/lib/gcc /usr/share/man/man1/gcc.1.gz
$ > whereis arm-linux-gnueabi-gcc
arm-linux-gnueabi-gcc: /usr/bin/...
-1
votes
1
answer
1k
views
quantum espresso installation [closed]
I got this on the terminal after I try to install quantum espresso
./configure: line 66: make: command not found
checking build system type... x86_64-pc-linux-gnu
checking ARCH... x86_64
checking ...
-1
votes
1
answer
113
views
What do I do after running make, to use lcd-opencv-simulator?
I'm new to Ubuntu and I need to run a LCD simulator our professor has given us without giving us sufficient information on how to actually use it.
The program requires OpenCV, which I believe I ...
1
vote
1
answer
6k
views
fatal error: opening dependency file /main.cpp.o.d: Permission denied
Completely new to Ubuntu and programming as well. Installed CodeLite yesterday and still cannot compile a project. I get this after pressing "Compile this file".
/bin/sh -c '/usr/bin/make -j4 -e -f "...
0
votes
0
answers
571
views
"NSS headers not found" error while building evolution-data-server-3.34.1 using cmake
I am installing Evolution Data Server from source using cmake by following command:
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DWITH_OPENLDAP=OFF -DWITH_NSPR_INCLUDES=/usr/inclue/nspr/ ..
...
0
votes
0
answers
911
views
Using matplotlib-cpp in Code::Blocks
I am trying to use matplotlib-cpp according to this guide:
Installing matplotlib-cpp, but I am trying it on Ubuntu so It's a little bit different.
In "Search directories", I have included these two ...
1
vote
0
answers
117
views
Installed c++ libraries and header removed from search paths
I recently upgraded to Ubuntu 19.04. However, somehow I messed something up today and I don't know how to fix it.
If I want to build a c++ program, all headers that are located in a subfolder inside ...
0
votes
0
answers
1k
views
Error: Expected a right parenthesis in expression at (1) after `make` command
I am compiling a software following this tutorial (called PRESTO), but when I type ./configure, I receive the following message:
$ make && sudo make install
Making all in src
make[1]: enter ...
0
votes
0
answers
2k
views
configure: error: linking to Fortran libraries from C fails
I am following this tutorial to install the mentioned software (called PRESTO), but when I type ./configure, I receive the following message:
checking how to get verbose linking output from /home/...
0
votes
0
answers
368
views
CLion won't track compiler via WSL
downloaded compiler and everything. Tho for some reason it downloads only cmake 3.10 and I need 3.15. I updated it following this guide How do I install the latest version of cmake from the command ...
0
votes
1
answer
2k
views
clang: error: unknown argument: '-no-pie'
I'm trying to compile, but I get this error:
clang: error: unknown argument: '-no-pie'
clang: error: unknown argument: '-no-pie'
clang: error: unknown argument: '-no-pie'
compilation of ...
0
votes
0
answers
314
views
Continue custom kernel creation and not start over again from square one
Task:
Create a custom Ubuntu kernel from git sources (in my case hwe-branch).
Short summary:
I want to fix a error reported by the build scripts and then repeat only the last compilation/packaging ...
1
vote
0
answers
74
views
Building NetworkManager from source causes ProtectSystem capaibilities to stop functioning
I'm fairly new to systemd in general, and building a program that fully supports the ProtectSystem capability is a bit over my head.
I'm trying to understand which options I should supply to ./...
1
vote
0
answers
184
views
../x86_64-linux-gnu/libarmadillo.so: referencia a `H5Ovisit1' sin definir collect2: error: ld returned 1 exit status
I cannot compile anymore a cpp file with armadillo library.
I get this:
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libarmadillo.so: referencia a `H5Ovisit1' sin definir
collect2: error:...
0
votes
3
answers
4k
views
use math.h function in linux ? sqrt() [closed]
why i can't run the program with sqrt (a)
code :
#include <stdio.h>
1 #include <math.h>
2 int main (...