hdf5.h error when installing hdf5 using luarocks - c

I am installing hdf5 for lua using luarocks command,
luarocks --local install hdf5
Then I got an error;
make[1]: Entering directory '/tmp/luarocks_hdf5-2.0.0-1-g0RmEe/lua-hdf5/hdf5'
In file included from <command-line>:0:0:
/usr/include/stdc-predef.h:63:1: fatal error: H5pubconf.h: No such file or directory
#endif
^
compilation terminated.
gcc -E -o C.i -I/tmp/luarocks_hdf5-2.0.0-1-g0RmEe/lua-hdf5/hdf5/../gcc-lua-cdecl/ffi-cdecl C.c
C.c:11:18: fatal error: hdf5.h: No such file or directory
#include <hdf5.h>
^
compilation terminated.
Makefile:33: recipe for target 'C.i' failed
make[1]: *** [C.i] Error 1
make[1]: Leaving directory '/tmp/luarocks_hdf5-2.0.0-1-g0RmEe/lua-hdf5/hdf5'
Makefile:44: recipe for target 'hdf5' failed
make: *** [hdf5] Error 2
Error: Build error: Failed building.
I am using lua 5.3 with luarocks 3.2.0 and gcc-4.8 compiler on an ubuntu 18.04 system.
Can anyone please help out?

Related

'absl/meta/type_traits.h' file not found

I am currently trying to build the baresip library in order to use it into an Android application. For that, I use the project libbaresip-android and I follow the instructions of the README file.
I am trying to setup a pipeline running on Ubuntu 20.04. From the README file, the steps 1, 2 and 3 seems to work, but my pipeline failed on the step 4 when the script tries to compile webrtc.
The error:
make[2]: Entering directory '/home/vsts/work/1/s/webrtc'
[armeabi-v7a] Compile++ thumb: webrtc <= aecm_core.cc
In file included from jni/src/webrtc/modules/audio_processing/aecm/aecm_core.cc:24:
jni/src/webrtc/rtc_base/checks.h:57:10: fatal error: 'absl/meta/type_traits.h' file not found
#include "absl/meta/type_traits.h"
^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [/usr/local/lib/android/sdk/ndk/21.4.7075529/build/core/build-binary.mk:478: obj/local/armeabi-v7a/objs/webrtc/src/webrtc/modules/audio_processing/aecm/aecm_core.o] Error 1
make[2]: Leaving directory '/home/vsts/work/1/s/webrtc'
make[1]: *** [Makefile:247: webrtc] Error 2
make[1]: Leaving directory '/home/vsts/work/1/s'
make: *** [Makefile:324: install-all] Error 2
##[error]Bash exited with code '2'.
As you can see, this file has the following instruction:
#include "absl/meta/type_traits.h"
I am not a C developer, so I do not know if this include instruction refered to something standard or to a specific file of the project. But the source code does not contain any "adsl" directory.
Should I install something specific on the machine that builds the project? Thank you for your help.
Download abseil library (https://github.com/abseil/abseil-cpp) and put it under third_party folder.

How to compile pmars-0.9.2 on Ubuntu 18.04? error: Makefile:116: recipe for target 'all' failed

I'm trying to compile a pmars-0.9.2 game, but stumbled on an error while passing the test, after command make -j4:
make[2]: *** [extractor/CMakeFiles/extractor.dir/backoff_sampler.cc.o] Error 1
CMakeFiles/Makefile2:2561: recipe for target 'extractor/CMakeFiles/extractor.dir/all' failed
make[1]: *** [extractor/CMakeFiles/extractor.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2
Can you tell me which installation drivers are missing to successfully complete the compilation?
To view logs from an unpacked archived use command:
nano /home/user/Desktop/pmars-0.9.2/cdec/BUILDING
To build cdec, you'll need:
boost headers & boost program_options (you may need to install a package
like libboost-dev)
Instructions for building
1) Create a build directory and generate Makefiles using CMake
mkdir my_build
cd my_build
cmake ..
If the cmake command completes successfully, you can proceed. If you have
libraries (such as Boost) installed in nonstandard locations, you may need
to run cmake with special options like -DBOOST_ROOT=/path/to/boost.
2) Build
make -j 2
3) Test
make test
./tests/run-system-tests.pl

Installing I210 driver on a running kernel?

I am working on a basic kernel which is not supporting Make command.
The drivers provided by intel use Makefile to install.
So I cant copy the file into my target and run make.
I tried to cross compile but its giving following error.
make[1]: Entering directory /usr/src/linux-headers-3.11.0-15-generic'
/usr/src/linux-headers-3.11.0-15-generic/arch/x86/Makefile:92:
stack protector enabled but no compiler support
rm: cannot remove/home/sigma/karthik1/igb-5.3.4.4/src/.tmp_versions/igb.mod': Permission denied
make[1]: * [crmodverdir] Error 1
make[1]: Leaving directory `/usr/src/linux-headers-3.11.0-15-generic'
make: * [default] Error 2

OpenSSL installation error (could not read symbols: Bad value)

I am trying to install openssl1.0.1e on a 64bit FC16 machine. I already have one older version (1.0.0j) installed in my machine. My application is having some memory corruption and trying to debug it through valgrind tool. Valgrind shows lots of "Uninitialized Variable" message for openssl functions which I want to suppress by installing latest openSSL with PURIFY macro enabled. I am installing it using following commands
./config -DPURIFY shared
make
make is stopping installation and throwing below errors:
/usr/bin/ld: libcrypto.a(e_4758cca.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
libcrypto.a(e_4758cca.o): could not read symbols: Bad value
collect2: ld returned 1 exit status
make[4]: *** [link_a.gnu] Error 1
make[4]: Leaving directory `/home/downloads/openssl-1.0.1e'
make[3]: *** [do_linux-shared] Error 2
make[3]: Leaving directory `/home/downloads/openssl-1.0.1e'
make[2]: *** [libcrypto.so.1.0.0] Error 2
make[2]: Leaving directory `/home/downloads/openssl-1.0.1e'
make[1]: *** [shared] Error 2
make[1]: Leaving directory `/home/downloads/openssl-1.0.1e/crypto'
make: *** [build_crypto] Error 1
What could be the reason for this error?
Thanks in advance!

No such file or directory, but the files are there

Im trying to compile a gstreamer plugin using Kdevelop in Kubuntu 12.04, but I get the following error:
gcc: error: /usr/lib/libgstvideo-0.10.so: No such file or directory
gcc: error: /usr/lib/libgstcontroller-0.10.so: No such file or directory
gcc: error: /usr/lib/libgstbase-0.10.so: No such file or directory
gcc: error: /usr/lib/libgstreamer-0.10.so: No such file or directory
make: *** [libvpefTEMPLATE.la] Error 1
*** Failed ***
When I cd into /usr/lib/ The files ARE there, and they are not misspelled or anything.
Any ideas?
Thanks to everyone that helped me.
I cd into the folder then typed
file libgstvideo-0.10.so
and got
libgstvideo-0.10.so: broken symbolic link to `libgstvideo-0.10.so.0.24.0'
I searched libgstvideo and saw that the current file was called libgstvideo-0.10.so.0.25.0 , so I did the following:
sudo rm libgstvideo-0.10.so.0.24.0
sudo ln /usr/lib/i386-linux-gnu/libgstvideo-0.10.so.0.25.0 ./libgstvideo-0.10.so
and repeated for the rest of the files. Thanks guys.

Resources