problems with libkdtree++ (kdtree) - kdtree

I am a student trying to use kdtree with libkdtree++ on linux 86*64. ./configure goes smooth, though sudo make install fails
cd . && /bin/sh /home/preetigupta25/kdtree-project/nvmd-libkdtree-7bb7e83/missing --run aclocal-1.10
/home/preetigupta25/kdtree-project/nvmd-libkdtree-7bb7e83/missing: line 54: aclocal-1.10: command not found
WARNING: `aclocal-1.10' is missing on your system.
/home/preetigupta25/kdtree-project/nvmd-libkdtree-7bb7e83/missing: line 54: automake-1.10: command not found
WARNING: `automake-1.10' is missing on your system.
cd . && /bin/sh /home/preetigupta25/kdtree-project/nvmd-libkdtree-7bb7e83/missing --run autoconf
configure.ac:10: error: possibly undefined macro: AM_INIT_AUTOMAKE
make: *** [configure] Error 1
but when I run it again it gives a different problem
[preetigupta25#dhalsim nvmd-libkdtree-7bb7e83]$ sudo make install
[sudo] password for preetigupta25:
/bin/sh ./config.status --recheck
running CONFIG_SHELL=/bin/sh /bin/sh ./configure --no-create --no-recursion
./configure: line 2082: syntax error near unexpected token `-Wall'
./configure: line 2082: `AM_INIT_AUTOMAKE(-Wall -Werror)'
make: *** [config.status] Error 2

Most likely you will have a more recent automake version - 1.11 I guess.
You will have to change that in configure:
am__api_version='1.11'
You have to do it before you invoke configure the first time.

Related

How to not use /usr/local/lib after uninstalling self build package?

Initially, I had pcl-1.10 in /usr/(installed using sudo apt install libpcl-dev). Then I self-built pcl-1.12 in /usr/local/ for some reason. Now I uninstalled pcl-1.12 using sudo make uninstall and wanted to use the default pcl-1.10. But when I compiled my project, the error message showed
$ colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release
Starting >>> lidarslam_msgs
Starting >>> ndt_omp_ros2
--- stderr: ndt_omp_ros2
make[2]: *** No rule to make target '/usr/local/lib/libpcl_surface.so', needed by 'align'. Stop.
make[1]: *** [CMakeFiles/Makefile2:80: CMakeFiles/align.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
---
Failed <<< ndt_omp_ros2 [0.16s, exited with code 2]
It seems that the PATH stills points to the /usr/local/lib even if I uninstalled the package. Is there a way I can reset PATH to the global package path? For this case, I believe the pcl-1.10's libpcl_surface.so is in /usr/lib/x86_64-linux-gnu/libpcl_outofcore.so .
I am working on ROS2 and compiling the CMakeList.txt using colcon. So I can't modify the makefile. I assume it is a PATH problem.
A way is to use symlink to link all the .so file in /usr/lib/x86_64-linux-gnu/ to /usr/local/lib but I found it kind of stupid...

Unbound module llvm

I have been working through the LLVM Kaleidoscope Tutorial for OCaml. On the third part of the tutorial, I have navigated to the example code in the folder
OCaml-Kaleidoscope\Chapter3
I am encountering an issue when compiling with
ocamlbuild toy.byte
on cygwin. This is the code given in the tutorial to compile.
The error I am getting is
''ocamlc.opt -c -o codegen.cmo codegen.ml
File "codegen.ml", line 5, characters 5-9:
Error: Unbound module Llvm
Exit code 2 while executing this command:
''ocamlc.opt -c -o codegen.cmo codegen.ml
I looked up some solutions to this issue. One solution I found was to use
ocamlbuild -use-ocamlfind toy.byte -package llvm
instead of
ocamlbuild toy.byte
However, when I tried that I received this error:
Failure: ocamlfind not found on path, but -no-ocamlfind not used.
To fix this I tried:
opam install ocamlfind
But ocamlfind is already installed.
Another solution I found was to use:
opam install llvm
This resulted in:
The following actions will be performed:
- install llvm 3.7
=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[llvm: ./install.sh 3.7] Command started
[ERROR] The installation of llvm failed at "./install.sh 3.7 make
C:\\cygwin64\\home\\setup\\.opam\\system
C:\\cygwin64\\home\\setup\\.opam\\system\\lib".
[llvm: ocamlfind remove] Command started
#=== ERROR while installing llvm.3.7 ==========================================#
# opam-version 1.3.0~dev2 (d4f7e01216dbb44af4e7cc6539a1b0afa9be9d2c)
# os win32
# command bash -c ./install.sh 3.7 make C:/cygwin64/home/setup/.opa m/system C:/cygwin64/home/setup/.opam/system/lib
# path C:\cygwin64\home\setup\.opam\system\build\llvm.3.7
# exit-code 2
# env-file C:\cygwin64\home\setup\.opam\system\build\llvm.3.7\llvm-1 0768-58c514.env
# stdout-file C:\cygwin64\home\setup\.opam\system\build\llvm.3.7\llvm-1 0768-58c514.out
# stderr-file C:\cygwin64\home\setup\.opam\system\build\llvm.3.7\llvm-1 0768-58c514.err
### stdout ###
# [...]
# config.status: executing bindings/ocaml/Makefile.ocaml commands
# make: Entering directory '/home/setup/.opam/system/build/llvm.3.7/build/bindin gs'
# llvm[0]: Constructing LLVMBuild project information.
# make[1]: Entering directory '/home/setup/.opam/system/build/llvm.3.7/build/bin dings/ocaml'
# make[2]: Entering directory '/home/setup/.opam/system/build/llvm.3.7/build/bin dings/ocaml/llvm'
# llvm[2]: Compiling llvm_ocaml.c for Release+Asserts build
# /home/setup/.opam/system/build/llvm.3.7/Makefile.rules:1536: recipe for target '/home/setup/.opam/system/build/llvm.3.7/build/bindings/ocaml/llvm/Release+Asse rts/llvm_ocaml.o' failed
# make[2]: Leaving directory '/home/setup/.opam/system/build/llvm.3.7/build/bind ings/ocaml/llvm'
# /home/setup/.opam/system/build/llvm.3.7/Makefile.rules:880: recipe for target 'all' failed
# make[1]: Leaving directory '/home/setup/.opam/system/build/llvm.3.7/build/bind ings/ocaml'
# /home/setup/.opam/system/build/llvm.3.7/Makefile.rules:939: recipe for target 'ocaml/.makeall' failed
# make: Leaving directory '/home/setup/.opam/system/build/llvm.3.7/build/binding s'
### stderr ###
# [...]
# configure: WARNING: dlopen() not found - disabling plugin support
# configure: WARNING: mmap() of a fixed address required but not supported
# configure: WARNING: mmap() of files required but not found
# configure: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not inst alled. Tests will not run
# + make -C bindings all SYSTEM_LLVM_CONFIG=llvm-config
# gcc.exe: error: /home/setup/.opam/system/build/llvm.3.7/bindings/ocaml/llvm/ll vm_ocaml.c: No such file or directory
# gcc.exe: fatal error: no input files
# compilation terminated.
# /usr/bin/rm: cannot remove '/home/setup/.opam/system/build/llvm.3.7/build/bind ings/ocaml/llvm/Release+Asserts/llvm_ocaml.d.tmp': No such file or directory
# make[2]: *** [/home/setup/.opam/system/build/llvm.3.7/build/bindings/ocaml/llv m/Release+Asserts/llvm_ocaml.o] Error 1
# make[1]: *** [all] Error 1
# make: *** [ocaml/.makeall] Error 2
=-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The following actions failed
- install llvm 3.7
No changes have been performed
=-=- llvm.3.7 troubleshooting -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
=> This package relies on external (system) dependencies that may be missing.
`opam depext llvm.3.7' may help you find the correct installation for your
system.
I am using version 3.8.0 of llvm and version 4.02.3 of OCaml from this link.
Am I on the right track? What do I need to do to fix this?
As I have answered in your question LLVM tutorial OCaml Compilation Assembler Error, your best way is not to use Windows.
OPAM is now usable in Cygwin OCaml or even in MinGW OCaml (using Cygwin opam binary) but packages in the OPAM repository are not tested in these environments. Just avoid them unless you are experienced with OCaml program development in Windows.
If you stick to Windows, then check the build at C:\cygwin64\home\setup\.opam\system\build\llvm.3.7. There should be stdout and stderr log files which can help to understand what happend.

Changing python headers directory for configure

I'm trying to build gnome-weather using jhbuild, but running build process results in the following errors:
checking for python extension module directory... ${exec_prefix}/lib64/python2.7/site-packages
checking for headers required to compile python extensions... ./configure: line 14697: /usr/local/bin/python-config: No such file or directory
not found
configure: error: Python headers not found
*** Error during phase configure of gobject-introspection: ########## Error running ./autogen.sh --prefix /home/pgolinski/jhbuild/install --disable-static --disable-gtk-doc *** [7/36]
[1] Rerun phase configure
[2] Ignore error and continue to build
[3] Give up on module
[4] Start shell
[5] Reload configuration
[6] Go to phase "wipe directory and start over"
[7] Go to phase "clean"
[8] Go to phase "distclean"
Strangely the error says that Python headers were not found even though I have python-devel installed. I managed to find python-config in usr/bin so how to change its directory for configure? Or maybe the problem lies elsewhere? (I just want to build gnome-weather)
you can download the last version of gnome-weather here:
https://git.gnome.org/browse/gnome-weather/snapshot/gnome-weather-3.14.1.zip
and compile that with these command after unzip it:
libtoolize
aclocal
autoheader
autoconf
automake --add-missing --foreign
./configure
make && make install
this should work.8y3
Here's what finally worked for me if someone struggles with something similair in future:
PYTHON=/usr/bin/python jhbuild build gnome-weather

Strange error while trying to make install Gtkaml (and libvala-0.16) in Ubuntu

I have downloaded and tried to install Gtkaml but I am having troubles.
I followed their instructions to install it, but it still fails.
I downloaded it into my downloads folder, then ran Terminal:
cd ~/Downloads
ls
cd gtkaml-0.5.94
./configure
But then it failed at ./configure, I can't remember what it was, but it was missing something so I then ran:
sudo apt-get build-dep gtkaml, then I re-ran ./configure and it succeeded. So then I proceeded to sudo make, but then it said,
jase#Jase-PC:~/Downloads/gtkaml-0.5.94$ sudo make make all-recursive
make1: Entering directory /home/jase/Downloads/gtkaml-0.5.94'
Making all in libgtkaml make[2]: Entering directory
/home/jase/Downloads/gtkaml-0.5.94/libgtkaml' /usr/bin/valac -C -H
gtkaml.h --library gtkaml --vapidir . --pkg config --pkg glib-2.0
--pkg libvala-0.16 --pkg libxml-2.0 --pkg gio-2.0 gtkamlcodecontext.vala gtkamlmarkupparser.vala gtkonparser.vala
gtkamlmarkupscanner.vala gtkamlmarkupresolver.vala
gtkamlcodeparserprovider.vala ast/gtkamlmarkupattribute.vala
ast/gtkamlmarkupcomplexattribute.vala gtkamlmarkupclass.vala
ast/gtkamlmarkuptag.vala ast/gtkamlmarkuproot.vala
ast/gtkamlmarkupchildtag.vala ast/gtkamlmarkupunresolvedtag.vala
ast/gtkamlmarkupmember.vala ast/gtkamlmarkuptemp.vala
ast/gtkamlmarkupreference.vala gtkamlmarkupnamespace.vala
gtkamlmarkuphint.vala gtkamlmarkuphintsstore.vala
gtkamlpropertyspec.vala workarounds/gtkamldatatypeparent.vala
workarounds/gtkamlcallable.vala workarounds/gtkamlvalaparser.vala
workarounds/gtkamlnamespacevisitor.vala error: Package libvala-0.16'
not found in specified Vala API directories or GObject-Introspection
GIR directories Compilation failed: 1 error(s), 0 warning(s) make[2]:
*** [libgtkaml.stamp] Error 1 make[2]: Leaving directory/home/jase/Downloads/gtkaml-0.5.94/libgtkaml' make1: *
[all-recursive] Error 1 make1: Leaving directory
`/home/jase/Downloads/gtkaml-0.5.94' make: * [all] Error 2
So then I ran sudo apt-get install libvala-0.16 to install libvala-0.16. It then said,
Reading package lists... Done Building dependency tree Reading
state information... Done Note, selecting 'libvala-0.16-dev' for regex
'libvala-0.16' Note, selecting 'libvala-0.16-0' for regex
'libvala-0.16' Note, selecting 'libvala-0.16-0-dbg' for regex
'libvala-0.16' libvala-0.16-0 is already the newest version.
libvala-0.16-0-dbg is already the newest version. libvala-0.16-dev is
already the newest version. The following packages were automatically
installed and are no longer required: libqt5declarative5 par2
python-support Use 'apt-get autoremove' to remove them. 0 to upgrade,
0 to newly install, 0 to remove and 0 not to upgrade.
So I re-ran sudo make. But same error as the original make error.
How do I make/make install this thing?
This should fix the problem
sudo apt-get install libvala-0.16-dev
What you need is a libvala development package.
I have been unable to make from source obtained from the Google code website. But I have been able to install it from the Software Center.
I have written and compiled a sample application:
<Window xmlns:g="http://gtkaml.org/0.4" xmlns="Gtk" g:name="GTKamlSample"
type="{WindowType.TOPLEVEL}" title="Window"
position="{WindowPosition.CENTER}" default-width="300" default-height="150"
destroy="Gtk.main_quit">
<Button label="Click me." clicked='{target.label="Thank you.";}' />
<![CDATA[
static int main (string[] args)
{
Gtk.init(ref args);
var window = new GTKamlSample();
window.show_all();
Gtk.main();
return 0;
}
]]>
</Window>
Which works. So your best bet is to use Software Center if you run into troubles installing it from source.

installing PAR::Packer Module on Perl 5.16

I was trying to install a module named "PAR::Packer" on active Perl version 5.16 running on 64 bit Ubuntu machine . But the installation was exiting with some errors :
this is the error :
-----------------
main.o: In function `main':
main.c:(.text.startup+0x35): undefined reference to `pthread_atfork'
collect2: error: ld returned 1 exit status
make[1]: *** [par] Error 1
make[1]: Leaving directory `/root/.cpan/build/PAR-Packer-1.017-dIGsgr/myldr'
make: *** [subdirs] Error 2
RSCHUPP/PAR-Packer-1.017.tar.gz
/usr/bin/make -- NOT OK
'YAML' not installed, will not store persistent state
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Failed during this command:
RSCHUPP/PAR-Packer-1.017.tar.gz : make NO
----------------
I also tried with PPM to install this module . PPM installation was successful , but I was not able to run the "pp" command .
Any help would be appreciated .
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=629670
seems to be a bug in debian 64 bit. Changed where they locate the libs.

Resources