Questions tagged as ['compiling']

Questions related to compiling software from sources, usually using the "make" command.
Score: 0
ali HOZA avatar
how can i download ubuntu's kernel?
ua flag

is there any way to find and download latest Ubuntu desktop specific kernel? for example how can i download latest kernel belongs to Ubuntu 21.10?

i am looking for .tar.xz file of Ubuntu kernel.

also, how can i find ubuntu's default .config file for kernel?

Score: 2
Which package is pango that is needed to compile Qemu with --enable-gtk enabled?
ng flag

I'm compiling Qemu with --enable-gtk enabled. .configure gives me the following error messages:

Run-time dependency gtk+-3.0 found: NO

../meson.build:1042:2: ERROR: Could not generate cargs for gtk+-3.0:
Package pango was not found in the pkg-config search path.
Perhaps you should add the directory containing `pango.pc'
to the PKG_CONFIG_PATH environment variable
Package 'pango', required by 'gdk-3.0' ...
Score: 0
How to display error messages during .configure to the standard console?
ng flag

When compiling from source, we use .configure as the first step. .configure may call some other commands like cc which may fail and print error messages, like header not found or some other compile errors. But these error messages are not displayed on the standard console where I run .configure. This causes difficulty in troubleshooting because sometimes .configure will only tell you it fails. So,  ...

Score: 0
DannyNiu avatar
Why is there no cross-compiler in Arm64 version of Ubuntu?
us flag

In the Amd64 version of Ubuntu, there's the gcc-{version}-{architecture}-linux-gnu packages that I can use to build binaries for different architectures, of which, the built binaries can be tested using qemu-user. But in Arm64 version of Ubuntu, there isn't such cross compiler.

Q1: Why isn't there such packages (as of 20.04 TLS)?

Next, I'd like to use the Clang/LLVM toolchain to build binaries in place  ...

Score: 1
Frigyes avatar
PeerGuardian building from source
cn flag

I have been trying to get PeerGuardian on my Ubuntu 21.04 system, but the PPA maintainer is not updating the package, and the project seems to be abandoned.

When I try to compile on my laptop, I get this error:

/usr/bin/ld: src/stream.o:/home/frigyes/Desktop/peerguardian-code/pgld/src/blocklist.h:77: multiple definition of `blocklist'; src/pgld.o:/home/frigyes/Desktop/peerguardian-code/pgld/src/blockl ...
Score: 1
gaussian avatar
Attempt to build gtk+3.0 from source fails
br flag

I am trying to apply a patch to the gtk+3.0 on Ubuntu 21.10 and failing. But more importantly, even without applying the patches, I am unable to build the package.

Here are the steps:

apt-get source "gtk+3.0"
sudo apt-get build-dep "gtk+3.0"
cd gtk+3.0-3.24.40
dpkg-buildpackage -rfakeroot -b -us -uc

This fails with:

make  check-local
make[6]: Entering directory '/home/gaussian/owninstalls/sway-ubunt ...
Score: 1
Hashi avatar
Errors trying to install the driver for ASUS USB-AC51 AC600
cn flag

I just bought a wireless adapter USB from ASUS. It's called ASUS USB-AC51 (Wireless-AC600). I've installed the drivers from https://dlcdnets.asus.com/pub/ASUS/wireless/USB-AC51/DR_USB_AC51_V1013.zip .

I extracted the .tar file, went to Linux folder, extracted again and after following "Quick Start DPO.txt" I just blocked at some point. When I ran Makefile with "make", I got an error which is fixed by chan ...

Score: 0
user15285808 avatar
Need help to get rid of libtorch header erros: conflicting declaration ‘constexpr const auto torch::...’
tz flag

Can't compile a simple libtorch C++ program ever since upgraded ubuntu to 21.10. Using QT Creator, tried several versions (Desktop QT 5.12.5, 5.15.2, 6.1.2, 6.2.1), both gcc & clang w/o sucess. Also tried ABI=0 libtorch version. Always getting the error: /usr/local/include/torch/csrc/api/include/torch/types.h:39: error: conflicting declaration ‘constexpr const auto torch::(kUInt8, kInt8, etc)’ A ...

Score: 2
kim holder avatar
Unreal 4 compiled successfully but UE4Editor file doesn't exist
us flag

I have Ubuntu 20.04 on a desktop with an old i7 CPU and 16 GiB of RAM.

Here are the commands I ran to compile Unreal 4.27:

./Setup.sh
./GenerateProjectFiles.sh
make -j 4
make -j 4 ShaderCompileWorker

I had to try several times before the process completed. On previous attempts the machine ran out of memory and I had to do a hard shutdown. It seemed to be the use of make -j 4, to try to limit the use  ...

Score: 0
David Clark avatar
cannot find compiler-gcc9.h
th flag

I have not seen an answer for this make file error. It cannot find the linux/compiler-gcc.h or linux/compiler-gcc9.h? Trying to build "build root" embedded linux. Additionally it is stating include/linux/compiler-gcc.h:114:1: fatal error: linux/compiler-gcc9.h: No such file or directory.

What am I missing here? I looked through other posted solution, but to no avail.

Score: 0
Ed Horch avatar
How to create linux-libc-dev .deb when building 5.13 kernel?
in flag

Our turnkey application that runs on 20.04 requires the 5.13 kernel and the headers in that version's linux-libc-dev package that are installed under /usr/include/linux. It also requires a custom change to one of those header files. I have downloaded, built, installed, and am running the 5.13 kernel just fine on our target (amd64) VM. I can see the correctly modified header file in the source tree under ...

Score: 0
Hoang V. Pham avatar
Error compiling kernel 5.15.2
cn flag

I'm trying to compile kernel 5.15.2 and running into errors. How to I fix them?

Background

I'm using a new laptop (Asus ROG M16) and for some reasons my wifi and bluetooth don't work on either kernel 5.13 or 5.14. As I update to kernel 5.15, bluetooth and wifi work but then the suspend feature becomes broken (the laptop does not suspend, but instead logs out and gets blank screen, fans run on full ...

Score: 2
Parveen Jangra avatar
How to Add the installation prefix of "Qt5QmlModels" to CMAKE_PREFIX_PATH
cn flag
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake:28 (find_package):
  Could not find a package configuration file provided by "Qt5QmlModels" with
  any of the following names:

    Qt5QmlModelsConfig.cmake
    qt5qmlmodels-config.cmake

  Add the installation prefix of "Qt5QmlModels" to CMAKE_PREFIX_PATH or set
  "Qt5QmlModels_DIR" to a directory containing one of the above files.  If
   ...
Score: 0
Ray Wilson avatar
Error with Cloudy's make command on WSL2
tc flag

I'm using a WSL2 (windows subsystem Linux) with Ubuntu 20.04 LTS. I want to use the Cloudy package, a Linux based simulation tool https://gitlab.nublado.org/cloudy/cloudy I have installed the package and tried to run the make command but I'm getting this error:

sh: 0: Illegal option --
Creating cloudyconfig.h
no object file found, is the compiler working?
make: *** [Makefile:255: /home/ray/cloudy_m ...
Score: 2
student_11 avatar
problem with making a c++ project with G++
aq flag

I am trying to build cascade library using G++ 8.3.0. In the documentation they mention that it was tested on G++ 4.7.2. My question is, is it necessary to downgrade to 4.7.2? if so could you please tell me how? because I tried both 4.8 (oldest version available according to $which gcc command) and 8.3.0 to build cascade and received the following error:

In file included from ../../include/descore/ ...
Score: 0
Sohail avatar
Error in make command in installing Rasqal RDF Query Library
in flag

Installing Rasqal RDF Query Library, extracted the package in Documents. The ./configure command:

(base) sohail@muhammad-sohail:~/Documents/rasqal$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whe ...
Score: 1
pawel_winzig avatar
Compiling a program from source
cn flag

I have a basic question concerning packages and the possibility to build a program in Ubuntu. To make it concrete: I'm using Ubuntu 18.04.6 LTS. Say I want to build Okular from the source to have the latest features [ okular from source ]. There are some related questions on this topic, see Q1, Q2, but what I would like to know is: When starting downloading the needed dependencies (e.g. I need cmake_3.1 ...

Score: -1
carlosgrt avatar
Problem with module add
us flag
  1. Hi, I have to do some work on Ubuntu-20.04.3, the pdf guide tells me to use "module add miniconda/3" and "module add gcc/10.2.0" to set up the enviroment. Then I have to use cythonize then compile with gcc and then python command to execute the program.
  2. I used the computers at school for that so I didnt have a problem using that commands but now im trying on my pc with ubuntu. Everytime I use the ...
Score: 0
Farnaz avatar
inconsistent CUDA toolkit path /usr vs /usr/lib, tensorflow build from source
us flag

When I use the default tensorflow build I get Illegal instruction core dumped error.

Based on my research https://stackoverflow.com/questions/60858317/how-to-fix-illegal-instruction-core-dumped & https://github.com/tensorflow/tensorflow/issues/17411 I need to build tensorflow from source.

I started to build tensorflow from source based on: https://www.tensorflow.org/install/source

When I would like ...

Score: 0
How to you compile glibc (32-bit and 64-bit)?
de flag

I have a program that is being shipped out for multiple Linux platforms and requires all of the references to be compiled within the executable itself.

I've gather that they would need to be compiled, the *.a library placed in a folder within the project, the "-I//location//" added in for the include headers, and the "-L//location//" added in for the libraries themselves.

But, for the question itsel ...

Score: 0
BubbyNX avatar
I tried building Wine and Wine64 from the source, but only one appears to be present
us flag

OS information: Ubuntu 21.10 (Impish), attempting to install Wine 6.20 from source (WoW64 'shared' version)

More specifically, it appears that Wine (32-bit) installed successfully, but when I attempt to check wine64 --version, it doesn't appear... I ran ./configure --enable-wine64 before the actual build and I made sure to install my 32-bit build (in a separate directly) BEFORE installing wine64. ...

Score: 0
Cmake can't find gcc compiler
nl flag

I have Ubuntu 18.04.6 LTS and I am trying to install and run gcc v8 (a v7 version is the default).

I have done: sudo apt-get install build-essential

sudo apt-get install gcc-8

To try to get the v8 to be default I did: sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 700 --slave /usr/bin/g++ g++ /usr/bin/g++-7 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --sla ...

Score: 0
Monish M avatar
i ran the following command on docker it shows the folllowing error how to get rid of this?
br flag

I ran the following command on docker and got the error below. How can I fix this?

FROM compiler-common AS compi
ENV DEBIAN_FRONTEND=nonintera

RUN apt-get install -y --no-i
 git-core \
 checkinstall \
 g++ \
 make \
 tar \
 curl \
 wget \
 build-essential \
 cmake \
 autotools-dev \
 automake \
 autogen \
 ca-certificates
RUN cd ~ \
&& git clone --single-branch 
&& cd libgeotiff \
 ...
Score: 0
MUHAMMAD KASHIF avatar
How to debug Makefile based projects in any IDE in Linux Environment
pw flag

I am compiling and debugging source code of Gpg4win in linux (ubuntu) environment. I successfully build project using console terminal by using simple commands like:

./autogen
./config
make install

Now I want to modify my code in any IDE and then rebuild the project from IDE, but I dont know how to use debug projects based on Makefile in any IDE. Thanks

Score: 0
Arnefar avatar
Ubuntu 21.04 dpkg-reconfigure libdvd-pkg fails to build libdvdcss
in flag

I am trying to install libdvd_pkg to play DRM protected DVD's. dpkg-reconfigure gives some clue that the problem is with building libdvdcss2. Maybe my gcc version 10.3.0 is the problem? Is there any other way to install libdvdcss2 on Ubuntu 21.04?

The build log file follows

/usr/src/libdvd-pkg//libdvdcss2_1.4.2-1~local_amd64.build:

dpkg-buildpackage: info: source package libdvdcss
dpkg-buildpackage: ...
Score: 0
sam avatar
'cc1obj': execvp: No such file
ru flag
sam

I'm trying to install cider by using the command

pip3 install cider 

but got

 x86_64-linux-gnu-gcc: error trying to exec 'cc1obj': execvp: No such file or directory

what should I check ? or install ?

i tried to install sudo apt-get install libgnustep-gui-dev and the error become

  cider/_osx.m:1:9: fatal error: AppKit/AppKit.h: No such file or directory
     #import <AppKit/AppKit.h>
     ...
Score: 1
Roger Miranda Perez avatar
Compile LKM Raspberry Pi - Permission denied
uz flag

I'm following the first example of a Hello World LKM and now I need to compile it.

According to the book, the Makefile needs to be like this:

obj-m+=hello_world.o

all:
        make -C /lib/modules/$(shell uname -r)/build/ M=$(pwd) modules
clean:
        make -C /lib/modules/$(shell uname -r)/build/ M=$(pwd) clean

And then you need to run make (and it says that you souldn't run sudo make or you'll  ...

Score: 2
Fst0 avatar
Problems compiling Kodi
au flag

Well I´m pretty new on systems, but i wanted to start compiling my own programs instead of using the oficial repos. The thing is that I try to compile my own Kodi, so I followed the oficial documentation and the Linux Build Guide. The problem starts on this second stage, when i reach the 3.1 Build missing dependencies, with the next command

sudo make -C tools/depends/target/wayland-protocols PREF ...

Score: 0
ANKIT PULKIT avatar
How to install Gem5 on Ubuntu 20.04 LTS properly?
cn flag

I tried through multiple installation tutorials but after build it does not work on any file to analyse. It gives error as follow:

scons: Reading SConscript files ...
NameError: name 't' is not defined:
  File "/home/username/gem5/SConstruct", line 201:
    this_build_root, variant = parse_build_path(t)
  File "/home/username/gem5/site_scons/gem5_scons/__init__.py", line 237:
    error("No non-leaf ...
Score: 0
I tried to install GMT6.2.0 in ubuntu 20.04 through apt & also building it after downloading GMT & other supportive,says commant not found. Path Issue
us flag
AKB

First I tried to install GMT through #sudo apt-get install gmt. it was installed including all necessary dependencies like netcdf, cmake, curl, gdal etc. When I said #which gmt output is /usr/local/bin/gmt. but when I tried to run gmt it says command not found.

Second, I tried to install GMT6.2.0 as per the instructions http://gmt.soest.hawaii.edu/projects/gmt/wiki/BuildingGMT#Build-and-runtime-dependenci ...