can't build latest hugin from source on ubuntu (error with flann_cpp_s)

58 views
Skip to first unread message

Jeffrey Martin

unread,
Jan 27, 2011, 5:42:05 PM1/27/11
to hugi...@googlegroups.com
I'm trying to build hugin from source, on Ubuntu (I installed Ubuntu today)

After some missteps with getting the latest pano13 compiled, I finally got to building Hugin, but now I'm getting this error:

[ 36%] Built target flann_cpp_s
Scanning dependencies of target flann_cpp
make[2]: *** No rule to make target `src/foreign/flann/CMakeFiles/flann_cpp.dir/build'.  Stop.
make[1]: *** [src/foreign/flann/CMakeFiles/flann_cpp.dir/all] Error 2
make: *** [all] Error 2

If anyone can explain what to do, it would be very much appreciated :-)

thanks,
Jeffrey

Pablo d'Angelo

unread,
Jan 28, 2011, 2:12:11 AM1/28/11
to hugi...@googlegroups.com
Hi Jeffrey,

I haven't seen that error (I'm using ubuntu maverik).
The only difference is that I'm using a separate build directory. I
usually do something like this:

$ cd hugin.hg
$ mkdir build_release
$ cd build_release
$ cmake ..
$ make

ciao
Pablo

Jeffrey Martin

unread,
Jan 28, 2011, 3:46:42 AM1/28/11
to hugi...@googlegroups.com
Hi Pablo,

I tried that, but I get this flann_cpp error again.

I'm really getting frustrated - 24 hours to install hugin and still nothing. I tried everyone's suggestions, and still nothing. I might be a beginner with Ubuntu but I really didn't expect something like this.... Oh dear.

Jeffrey

Harry van der Wolf

unread,
Jan 28, 2011, 9:06:54 AM1/28/11
to hugi...@googlegroups.com


2011/1/28 Jeffrey Martin <360c...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Hugin and other free panoramic software" group.
A list of frequently asked questions is available at: http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugi...@googlegroups.com
To unsubscribe from this group, send email to hugin-ptx+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx

In your hugin directory do an "rm CMakeCache.txt"
Then in you build directory do again a "rm CMakeCache.txt"
Then from your build directory try another time:
cmake ..
make

Harry

Jeffrey Martin

unread,
Jan 28, 2011, 9:53:14 AM1/28/11
to hugi...@googlegroups.com


When doing this,
sudo apt-get update

I get these errors.

Err http://ppa.launchpad.net karmic/main Packages
  404  Not Found
Fetched 20.9kB in 0s (26.9kB/s)
W: Failed to fetch http://ppa.launchpad.net/hugin/nightly/ubuntu/dists/karmic/main/binary-amd64/Packages.gz  404  Not Found


is there any point in continuing?


Tim Nugent

unread,
Jan 28, 2011, 9:55:40 AM1/28/11
to hugi...@googlegroups.com
That path is wrong. Go here:


And you can see what's available, doesn't look like karmic is supported.

Cheers,

Tim

Jeffrey Martin

unread,
Jan 28, 2011, 10:05:20 AM1/28/11
to hugi...@googlegroups.com
Ok, obviously my version of ubuntu (9.10) is causing me problems. I'm going to upgrade to 10.10.

But wait - 32 bit or 64 bit? I have 2x cpu's and 8GB ram.


Tim Nugent

unread,
Jan 28, 2011, 10:07:40 AM1/28/11
to hugi...@googlegroups.com
But which CPUs do you have? If there are 64 bit... go with that Ubuntu version

Cheers,

Tim

On 28 January 2011 16:05, Jeffrey Martin <360c...@gmail.com> wrote:
Ok, obviously my version of ubuntu (9.10) is causing me problems. I'm going to upgrade to 10.10.

But wait - 32 bit or 64 bit? I have 2x cpu's and 8GB ram.

Jan Martin

unread,
Jan 28, 2011, 10:08:29 AM1/28/11
to hugi...@googlegroups.com
I said so before in your other thread.

There is no Karmic Koala version!
Stop trying to install from a non-existent repository.

Go for Lucid Lynx  10.04. It's LTS. = Long Term Support.
Avoid the latest Ubuntu version as there will be many incompatibilities with programs not yet updated to it.
Most programs support the latest LTS version and TRY to cover the latest version.

Here is a list:
http://en.wikipedia.org/wiki/List_of_Ubuntu_releases

Jan
--
http://www.DIY-streetview.org

Stefan Peter

unread,
Jan 28, 2011, 10:09:23 AM1/28/11
to hugi...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Jeffrey

Am 28.01.2011 15:53, schrieb Jeffrey Martin:
>
> I get these errors.
>
> Err http://ppa.launchpad.net karmic/main Packages
> 404 Not Found
> Fetched 20.9kB in 0s (26.9kB/s)
> W: Failed to fetch
> http://ppa.launchpad.net/hugin/nightly/ubuntu/dists/karmic/main/binary-amd64/Packages.gz
> 404 Not Found
>
>
> is there any point in continuing?

These error messages are caused by the fact that you tried to use the
nightly builds from the hugin builders ppa. This would have resultet in
binary packages being installed, so you would have been able to use a
recent huging build without having to build it yourself.

However, there are no such builds for karmic. Therefore, I advise you to
remove the hugin/nightly entries from your sources.
As there is AFAIK no command line tool for removing apt entries, yoi
will euther have to do that in the GUI (System -> Administration ->
Software Sources) or by manually editing /etc/apt/sources.list.

However, this has nothing to do with the compiling. In other words, this
error message has no relation to the problems you face trying to compile
your own, actual hugin version.


Regards

Stefan

- --
In theory there is no difference between theory and practice. In
practice there is.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJNQtwcAAoJEBgqi52L7+L/Th4H/0orrC2zv2P41xFdP1J2UJQD
mQZsOgcRCiicZHa1qndvX8RqnOYgnNO2SZhtHEyI68QIg1utrxeNvzINm0ujZy5H
vep6cwYrWe9n80kXuHGlLTVLSLNUW9+B2r7ZSlqPbbWBEgzfO/RVKWVwsJRmqs6A
f2FPM0KvvQXRl8U5pUGqZ/g4GQ0dq4ie0liRm1Z9zlVR2lComX4i083mUJL7u4ER
zPGUCXDbnQB/KILAzGoiKajtaMSz9qV+Th/yoGcRG/ISZE1wHDXgGnufMfY8ibEx
hy/cEM/QW39pu5VJs1t4tnyPXoXICRf8kqLx0ZvNpRJYVfMkMGWU0N2JF+1NR5w=
=QWpb
-----END PGP SIGNATURE-----

Jeffrey Martin

unread,
Jan 28, 2011, 10:53:45 AM1/28/11
to hugi...@googlegroups.com
Jan,

the confusion is coming from the fact that my friend has ubuntu 9.10 and hugin installed with no problem. but it's the version 2010.4, not the latest version.

I'm upgrading to 10.04 now.

Kornel Benko

unread,
Jan 28, 2011, 11:45:35 AM1/28/11
to hugi...@googlegroups.com

Am Freitag, 28. Januar 2011 schrieb Jeffrey Martin:

> Ok, obviously my version of ubuntu (9.10) is causing me problems. I'm going

> to upgrade to 10.10.

If you upgrade than consider that on 10.10 the cmake is erroneous.

(try somehow to downgrade cmake from 2.8.2 to version 2.8.0.)

> But wait - 32 bit or 64 bit? I have 2x cpu's and 8GB ram.

This depends on your cpu obviously. Try to master own compile ...

Kornel

signature.asc

Jeffrey Martin

unread,
Jan 28, 2011, 11:51:20 AM1/28/11
to hugi...@googlegroups.com
10.04 is booting up now :)

now let's try this again...

Jeffrey Martin

unread,
Jan 28, 2011, 12:05:00 PM1/28/11
to hugi...@googlegroups.com
Ok, after upgrading to 10.04, it works.

now i have this 2010.5.0.19ef8ad7ee6a which is the very newest version if I'm not mistaken.

so it seems that my problems came from trying to install this newest hugin on ubuntu 9.10.

Thank you everybody for all your help and advice. Sorry to take up so much space on this forum with my problems. Now everything is working I'll try to be quiet :-)))

Jeffrey

Pit Suetterlin

unread,
Jan 29, 2011, 5:55:00 AM1/29/11
to hugi...@googlegroups.com

Hi all,

I had the same error with flann_cpp (I'm also building in a separate
subdirectory). No cache files to be deleted. I had given up and checked out
the stable 2010.4 branch which built fine.

So now I started looking at it again, and found during the configure process
the following:
CMake Error: CMake can not determine linker language for target:flann_cpp
CMake Error: Cannot determine link language for target "flann_cpp".
which seems to be the reason for the missing make rule. Maybe some cmake-Guru
knows how to proceed there.

My system is a 64-bit Opensuse 11.2

Cheers,

Pit

> --
> You received this message because you are subscribed to the Google Groups "Hugin and other free panoramic software" group.
> A list of frequently asked questions is available at: http://wiki.panotools.org/Hugin_FAQ
> To post to this group, send email to hugi...@googlegroups.com
> To unsubscribe from this group, send email to hugin-ptx+...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/hugin-ptx

--
Dr. Peter "Pit" Suetterlin http://www.astro.su.se/~pit
Institute for Solar Physics
Tel.: +34 922 405 590 (Spain) P.Suet...@royac.iac.es
+46 8 5537 8507 (Sweden) Peter.Su...@astro.su.se

Lajos Höss

unread,
Feb 28, 2011, 5:28:23 AM2/28/11
to hugi...@googlegroups.com
Hi all,

I had the same error with flann_cpp (I'm also building in a separate
subdirectory). No cache files to be deleted. I had given up and checked out
the stable 2010.4 branch which built fine.

My system is a 32-bit Uhu-Linux 2.1. The hugin is 2011.0.0 beta 2.

Any idea?

Lajos

Pit Suetterlin

unread,
Mar 1, 2011, 2:14:58 AM3/1/11
to hugi...@googlegroups.com

Hi Lajos,

see the 'Hugin-2011.0_beta2 released' thread - you'll have to upgrade cmake.

Pit

kfj

unread,
Mar 1, 2011, 3:52:15 AM3/1/11
to hugin and other free panoramic software


On 28 Jan., 17:45, Kornel Benko <Kornel.Be...@berlin.de> wrote:

> If you upgrade than consider that on 10.10 the cmake is erroneous.
> (try somehow to downgrade cmake from 2.8.2 to version 2.8.0.)

In what way erroneous? I've been using cmake 2.8.2 on my Kubuntu 10.10
system for months and it has always done precisely what it's supposed
to do.

Kay

Kornel Benko

unread,
Mar 1, 2011, 4:40:09 AM3/1/11
to hugi...@googlegroups.com

Creating debian package with "make package" will create a deb file which includes a tar file.
This tar file normally includes directories and regular files.
But cpack from the 2.8.2 version of cmake creates only the regular files.
That is, installing with dpkg is ok if the destination directories are already there.

The target directory creation is missing.

> Kay
>

Kornel

signature.asc

Yuval Levy

unread,
Mar 1, 2011, 7:41:50 AM3/1/11
to hugi...@googlegroups.com
On March 1, 2011 04:40:09 am Kornel Benko wrote:
> Am Dienstag, 1. März 2011 schrieb kfj:
> > On 28 Jan., 17:45, Kornel Benko <Kornel.Be...@berlin.de> wrote:
> > > If you upgrade than consider that on 10.10 the cmake is erroneous.
> > > (try somehow to downgrade cmake from 2.8.2 to version 2.8.0.)
> >
> > In what way erroneous? I've been using cmake 2.8.2 on my Kubuntu 10.10
> > system for months and it has always done precisely what it's supposed
> > to do.
>
> Creating debian package with "make package" ...

...is just more broken than in previous and latest version. AFAIK it has
always been "broken" in that the Debian packages build with CMake/CPack don't
pass basic Debian tests / policies. Google for a thread in this list where
Andreas Metzler gives the details.

Using the combination of
make package && sudo dpkg -i <NAME_OF_THE_GENERATED PACKAGE>
is barely better than using
make && sudo make install

If you are serious about building debian packages use dpkg-buildpackage

Some instructions (geared at producing a package for a PPA on Launchpad) are
at [0].

Theoretically it would be possible to follow the above instructions and build
binary snapshot of any version of Hugin including development branches; and
distribute them from a Launchpad PPA (any Launchpad member can have their own
PPA), but so far nobody has gone there yet.

Yuv

[0] <http://wiki.panotools.org/Hugin_PPA>

signature.asc

Kornel Benko

unread,
Mar 1, 2011, 8:29:56 AM3/1/11
to hugi...@googlegroups.com

Am Dienstag, 1. März 2011 schrieb Yuval Levy:

> On March 1, 2011 04:40:09 am Kornel Benko wrote:

> > Am Dienstag, 1. März 2011 schrieb kfj:

> > > On 28 Jan., 17:45, Kornel Benko <Kornel.Be...@berlin.de> wrote:

> > > > If you upgrade than consider that on 10.10 the cmake is erroneous.

> > > > (try somehow to downgrade cmake from 2.8.2 to version 2.8.0.)

> > >

> > > In what way erroneous? I've been using cmake 2.8.2 on my Kubuntu 10.10

> > > system for months and it has always done precisely what it's supposed

> > > to do.

> >

> > Creating debian package with "make package" ...

>

> ...is just more broken than in previous and latest version. AFAIK it has

> always been "broken" in that the Debian packages build with CMake/CPack

> don't pass basic Debian tests / policies. Google for a thread in this

> list where Andreas Metzler gives the details.

It is. But still I am using this build-process without problems. (Until now I was using the 2.8.0 version, but since some days I use the 2.8.4 version on ubuntu 10.10)

(Got it from "ftp://ftp.debian.org/debian/pool/main/c/cmake/"

cmake_2.8.4-2_amd64.deb

cmake-data_2.8.4-2_all.deb

cmake-qt-gui_2.8.4-2_amd64.deb

)

> Using the combination of

> make package && sudo dpkg -i <NAME_OF_THE_GENERATED PACKAGE>

> is barely better than using

> make && sudo make install

Naturally I don't follow you here. Installing through package makes it easy to deinstall also.

Ok, maybe it's valid for me only ...

...

> Yuv

>

Kornel

signature.asc

Seb Perez-D

unread,
Mar 1, 2011, 8:54:43 AM3/1/11
to hugi...@googlegroups.com, Kornel Benko
On Tue, Mar 1, 2011 at 14:29, Kornel Benko <Kornel...@berlin.de> wrote:
>> Using the combination of
>> make package && sudo dpkg -i <NAME_OF_THE_GENERATED PACKAGE>
>> is barely better than using
>> make && sudo make install
>
> Naturally I don't follow you here. Installing through package makes it easy
> to deinstall also.
> Ok, maybe it's valid for me only ...

An alternative which I use is checkinstall, which works even when the
make package doesn't. I'm sure it's not the best solution, but it
works for me (and as Kornel says, it's easier to de-install).

Seb

Lajos Höss

unread,
Mar 2, 2011, 1:24:07 AM3/2/11
to hugi...@googlegroups.com
Now the compile/package for hugin 2011.0.0 beta2 solved on UHU-Linux
2.1. Thanks.
Newer cmake build (2.8.4), new cmake need upgrade the libarchive to 2.8.4.

Now another problem, when i use help->about, hugin crash.

Lajos

Pit Suetterlin

unread,
Mar 2, 2011, 3:28:31 AM3/2/11
to hugi...@googlegroups.com
Lajos H�ss wrote:

> Now another problem, when i use help->about, hugin crash.

Same here (with the 2011.0.0 beta2 tarball)

Pit

Kornel Benko

unread,
Mar 2, 2011, 5:51:38 AM3/2/11
to hugi...@googlegroups.com

Am Mittwoch, 2. März 2011 schrieb Pit Suetterlin:

Hmm, cannot reproduce. Hugin from today trunk.

Kornel

signature.asc

Peter Suetterlin

unread,
Mar 4, 2011, 5:28:09 AM3/4/11
to hugi...@googlegroups.com
Kornel Benko wrote:
> Am Mittwoch, 2. M�rz 2011 schrieb Pit Suetterlin:

> > Lajos H�ss wrote:
> > > Now another problem, when i use help->about, hugin crash.
> >
> > Same here (with the 2011.0.0 beta2 tarball)
> >
> > Pit
>
> Hmm, cannot reproduce. Hugin from today trunk.

Confirmed, that one(*) also doesn't crash for me.

Pit

(*) hg identify -i = f3a428981466

Yuval Levy

unread,
Mar 4, 2011, 9:50:39 PM3/4/11
to hugi...@googlegroups.com
On March 1, 2011 08:54:43 am Seb Perez-D wrote:
> as Kornel says, it's easier to de-install

easier than `sudo make uninstall` ?

signature.asc

Kornel Benko

unread,
Mar 5, 2011, 5:27:24 AM3/5/11
to hugi...@googlegroups.com

Yes. Suppose you make a new build, with different (maybe renamed) files or directories.

Now the `sudo make uninstall` would try to uninstall the _new_ data, leaving some old data installed.

Kornel

signature.asc
Reply all
Reply to author
Forward
0 new messages