when i tried to install xgap in the terminal of linux there is an error accure in the step ((make)) as below:
root#heino-VirtualBox:~/Downloads/xgap-4.30# make
( cd bin/x86_64-unknown-linux-gnu-gcc ; make CC=gcc )
make[1]: Verzeichnis „/home/heino/Downloads/xgap-4.30/bin/x86_64-unknown-linux-gnu-gcc“ wird betreten
gcc -I. -g -O2 -o xcmds.o -c ../../src.x11/xcmds.c
In file included from ../../src.x11/xcmds.c:9:0:
../../src.x11/utils.h:134:13: **fatal error: X11/StringDefs.h: Datei oder Verzeichnis nicht gefunden
#include <X11/StringDefs.h>**
compilation terminated.
Makefile:31: recipe for target 'xcmds.o' failed
make[1]: *** [xcmds.o] Error 1
make[1]: Verzeichnis „/home/heino/Downloads/xgap-4.30/bin/x86_64-unknown-linux-gnu-gcc“ wird verlassen
Makefile:47: recipe for target 'compile' failed
make: *** [compile] Error 2
so what should i do now? and what should i write which command after that to install the startup script??
thanks alots!
Edit: Highlighting
( Also ref. the previous xgap question How to install xgap 4.30 in Ubuntu using the terminal? by #Elias ).
fatal error: X11/StringDefs.h: Datei oder Verzeichnis nicht gefunden
Search for a file :
$ sudo apt install apt-file
$ apt-file update
$ apt-file search StringDefs.h
Install the library : $ apt install libxt-dev
Related
I'm building the riscv-gnu-toolchain here on the latest Arch Linux.
https://github.com/riscv-collab/riscv-gnu-toolchain like this:
sudo pacman -Syyu autoconf automake curl python3 libmpc mpfr gmp gawk base-devel bison flex texinfo gperf libtool patchutils bc zlib expat
cd /tmp
git clone --recursive https://github.com/riscv-collab/riscv-gnu-toolchain
cd riscv-gnu-toolchain
mkdir build
cd build
../configure --prefix=${HOME}/riscv64_github
make -j$(nproc)
When compiling during the build of gcc I get this error:
/tmp/riscv-gnu-toolchain/gcc/gcc/fold-const.cc:16842:1: fatal error: error writing to /tmp/ccNNtXpB.s: No space left on device
16842 | }
| ^
compilation terminated.
make[2]: *** [Makefile:1143: fold-const.o] Error 1
make[2]: *** Waiting for unfinished jobs....
rm gfdl.pod gcc.pod gcov-dump.pod gcov-tool.pod fsf-funding.pod gpl.pod cpp.pod gcov.pod lto-dump.pod
make[2]: Leaving directory '/tmp/riscv-gnu-toolchain/build/build-gcc-newlib-stage1/gcc'
make[1]: *** [Makefile:4607: all-gcc] Error 2
make[1]: Leaving directory '/tmp/riscv-gnu-toolchain/build/build-gcc-newlib-stage1'
make: *** [Makefile:552: stamps/build-gcc-newlib-stage1] Error 2
What should I do?
when running make
g++ -pedantic -Wall -W -g pkg-config --cflags --libs liblog4cxx
dbus-c++-1 -DDOUANE_VERSION=\"0.9.0\" -o freedesktop/desktop_file.o
-c freedesktop/desktop_file.cpp In file included from freedesktop/desktop_file.cpp:1:0: freedesktop/desktop_file.h:5:37:
fatal error: boost/filesystem/path.hpp: No such file or directory
compilation terminated. Makefile:36: recipe for target
'freedesktop/desktop_file.o' failed make: ***
[freedesktop/desktop_file.o] Error 1
getting this, Im on a distro with XFCE environment, as I searched the freedesktop/desktop_file.cpp has to do with the XFCE. But the main problem is line
boost/filesystem/path.hpp
the solution given by https://stackoverflow.com/a/25770596/1320686
sudo apt-get install libboost-dev
When I run the command, make from the 0.4.4 oculus linux package, I keep getting this error:
g++ -o ./Release/OculusWorldDemo_x86_64_Debug ./Obj/Linux/Debug/x86_64/OculusWorldDemo.o ./Obj/Linux/Debug/x86_64/OculusWorldDemo_Scene.o ./Obj/Linux/Debug/x86_64/Player.o ./Obj/Linux/Debug/x86_64/../CommonSrc/Util/RenderProfiler.o ./Obj/Linux/Debug/x86_64/../CommonSrc/Util/OptionMenu.o ./Obj/Linux/Debug/x86_64/../CommonSrc/Platform/Linux_Gamepad.o ./Obj/Linux/Debug/x86_64/../CommonSrc/Platform/Linux_Platform.o ./Obj/Linux/Debug/x86_64/../CommonSrc/Platform/Platform.o ./Obj/Linux/Debug/x86_64/../CommonSrc/Render/Render_Device.o ./Obj/Linux/Debug/x86_64/../CommonSrc/Render/Render_GL_Device.o ./Obj/Linux/Debug/x86_64/../CommonSrc/Render/Render_LoadTextureDDS.o ./Obj/Linux/Debug/x86_64/../CommonSrc/Render/Render_LoadTextureTGA.o ./Obj/Linux/Debug/x86_64/../CommonSrc/Render/Render_XmlSceneLoader.o ./Obj/Linux/Debug/x86_64/../../3rdParty/TinyXml/tinyxml2.o -L../../LibOVR/Lib/Linux/Debug/x86_64 -lovr -ludev -lpthread -lGL -lX11 -lXrandr -lrt
/usr/bin/ld: cannot find -ludev
collect2: error: ld returned 1 exit status
make[1]: *** [Release/OculusWorldDemo_x86_64_Debug] Error 1
make[1]: Leaving directory `/mo/software/oculus/ovr_sdk_linux_0.4.4/Samples/OculusWorldDemo'
make: *** [Samples/OculusWorldDemo/Release/OculusWorldDemo_x86_64_Debug] Error 2
What do I need to do to make Oculus work? I've had this for over 2 months now and haven't used yet because installation hasnt been possible to resolve.
You need to install the libudevand libudev-dev packages.
sudo apt-get install libudev-dev libudev0
get ludev from http://packages.ubuntu.com/precise/i386/libudev0/download
download it, then install package with
sudo dpkg -i libudev0_175-0ubuntu9_i386.deb
you may have to do a
sudo apt-get install libudev-dev libudev0
for good measure
now you can do the make , make run
I am trying to run the make command over the NVIDIA CUDA Sample files. I navigated to the directory and typed make. Below is the output.
root#ubuserver3:/home/ubuadmin/CUDA/SampleInstalled/NVIDIA_CUDA-5.5_Samples# make
make[1]: Entering directory `/home/ubuadmin/CUDA/SampleInstalled/NVIDIA_CUDA-5.5_Samples/0_Simple/simpleAssert'
"/home/ubuadmin/CUDA"/bin/nvcc -ccbin g++ -I../../common/inc -m32 -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=\"sm_35,compute_35\" -o simpleAssert.o -c simpleAssert.cu
g++: No such file or directory
make[1]: *** [simpleAssert.o] Error 1
make[1]: Leaving directory `/home/ubuadmin/CUDA/SampleInstalled/NVIDIA_CUDA-5.5_Samples/0_Simple/simpleAssert'
make: *** [0_Simple/simpleAssert/Makefile.ph_build] Error 2
root#ubuserver3:/home/ubuadmin/CUDA/SampleInstalled/NVIDIA_CUDA-5.5_Samples#
There is an error which I do not understand why.
If you search you'll find many answers for this question. Basically, you don't have a compiler installed on your system.
Since you're running Ubuntu, run sudo apt-get install build-essential to get all the packages needed to compile software.
I want to install node.js on QNAP NAS, it's a linux OS I can use ipkg install package.
but ipkg not have node.js...
I reference web forum as http://forum.qnap.com/viewtopic.php?p=248556, installed V8 JavaScript Engine.
Then install node.js
When I'm typing make on /opt/node, that shows an error message as follows:
make -C out BUILDTYPE=Release V=1 make[1]: Entering directory
/share/HDA_DATA/.qpkg/Optware/node/out' flock
/share/HDA_DATA/.qpkg/Optware/node/out/Release/linker.lock g++
-pthread -rdynamic -o /share/HDA_DATA/.qpkg/Optware/node/out/Release/mksnapshot
-Wl,--start-group /share/HDA_DATA/.qpkg/Optware/node/out/Release/obj.target/mksnapshot/deps/v8/src/mksnapshot.o
/share/HDA_DATA/.qpkg/Optware/node/out/Release/obj.target/deps/v8/tools/gyp/libv8_base.a
/share/HDA_DATA/.qpkg/Optware/node/out/Release/obj.target/deps/v8/tools/gyp/libv8_nosnapshot.a
-Wl,--end-group make[1]: flock: Command not found make[1]: *** [/share/HDA_DATA/.qpkg/Optware/node/out/Release/mksnapshot] Error 127
make[1]: Leaving directory/share/HDA_DATA/.qpkg/Optware/node/out'
make: * [node] Error 2
The QNAP NAS(TS-119P2) does not have flock command line,
What can I do? Could somebody help me?
ipkg install util-linux
It contains flock command.
Goto node source dir.
./configure --prefix=/opt
...
LINK=g++ make
...
LINK=g++ make install
Worked for me.
I had to export CC as my compiler, and then run the commands babalooi suggested:
export CC=/opt/bin/gcc
./configure --prefix=/opt
...
LINK=g++ make
...
LINK=g++ make install