Problems building from hg

28 views
Skip to first unread message

Greg 'groggy' Lehey

unread,
Feb 17, 2013, 11:29:29 PM2/17/13
to Hugin developers list
I've just checked out the latest version of Hugin (revision 7f5499ea1cfc) from
the Mercurial repository, and when I try to build I get:

CMake Error at CMakeLists.txt:75 (FILE):
file Internal CMake error when trying to open file:
/src/FreeBSD/svn/ports/graphics/hugin-devel/work/hugin/rev.txt for reading.

The directory is the base directory of the checked-out tree, and of
course there is no rev.txt. By comparison it's clear that the
contents should be the revision number, and if I create the file,
everything builds nicely. But why isn't it there in the first place?

Apart from that, everything compiles and appears to work. Once I've
clarified this issue, I'll be in a position to commit a port and
replace the horrible kludge described at
http://wiki.panotools.org/Hugin_Compiling_FreeBSD

Greg
--
Sent from my desktop computer.
Finger gr...@FreeBSD.org for PGP public key.
See complete headers for address and phone numbers.
This message is digitally signed. If your Microsoft MUA reports
problems, please read http://tinyurl.com/broken-mua

Terry Duell

unread,
Feb 18, 2013, 12:23:45 AM2/18/13
to hugi...@googlegroups.com
Hello Greg,

On Mon, 18 Feb 2013 15:29:29 +1100, Greg 'groggy' Lehey
<groo...@gmail.com> wrote:

> I've just checked out the latest version of Hugin (revision
> 7f5499ea1cfc) from
> the Mercurial repository, and when I try to build I get:
>
> CMake Error at CMakeLists.txt:75 (FILE):
> file Internal CMake error when trying to open file:
> /src/FreeBSD/svn/ports/graphics/hugin-devel/work/hugin/rev.txt for
> reading.
>
> The directory is the base directory of the checked-out tree, and of
> course there is no rev.txt. By comparison it's clear that the
> contents should be the revision number, and if I create the file,
> everything builds nicely. But why isn't it there in the first place?

I often build the default branch, and don't have this problem.
To check that it is currently working here, I ran "hg pull && hg up" to
update my local repo, then set up a build dir and ran "cmake .." from the
build dir, and "rev.txt" is there and says "7f5499ea1cfc".
If you don't have a "rev.txt" before running cmake, I think creating an
empty "rev.txt" is probably sufficient.

Cheers,
--
Regards,
Terry Duell

T. Modes

unread,
Feb 18, 2013, 2:42:02 PM2/18/13
to hugin and other free panoramic software
Hi Greg,

On 18 Feb., 05:29, Greg 'groggy' Lehey <groog...@gmail.com> wrote:
> I've just checked out the latest version of Hugin (revision 7f5499ea1cfc) from
> the Mercurial repository, and when I try to build I get:
>
> CMake Error at CMakeLists.txt:75 (FILE):
>   file Internal CMake error when trying to open file:
>   /src/FreeBSD/svn/ports/graphics/hugin-devel/work/hugin/rev.txt for reading.
>

This sounds like your local repository/checkout is not ok.
After checkout there should be a folder .hg (created/used by
mercurial). From the error message it appears that this folder is
missing, so the local repository is corrupted.

You need to build directly from the local repository, then the rev.txt
is not needed and will be automatically created.

If this is not an option, you can create you own "source tarball":
Do a fresh checkout, then run cmake, followed by "make
package_source". Now you have your own source tarball. Extract this
tarball and build from this directory.

Thomas

Greg 'groggy' Lehey

unread,
Feb 21, 2013, 12:34:37 AM2/21/13
to hugi...@googlegroups.com
On Monday, 18 February 2013 at 11:42:02 -0800, T. Modes wrote:
> Hi Greg,
>
> On 18 Feb., 05:29, Greg 'groggy' Lehey <groog...@gmail.com> wrote:
>> I've just checked out the latest version of Hugin (revision 7f5499ea1cfc) from
>> the Mercurial repository, and when I try to build I get:
>>
>> CMake Error at CMakeLists.txt:75 (FILE):
>>   file Internal CMake error when trying to open file:
>>   /src/FreeBSD/svn/ports/graphics/hugin-devel/work/hugin/rev.txt for reading.
>>
>
> This sounds like your local repository/checkout is not ok. After
> checkout there should be a folder .hg (created/used by
> mercurial). From the error message it appears that this folder is
> missing, so the local repository is corrupted.

No, it was there, but I removed it. The intention here is to build a
tarball for the FreeBSD hugin-devel port, and the .hg hierarchy is far
too large.

> You need to build directly from the local repository, then the
> rev.txt is not needed and will be automatically created.

OK. So this is an hg thing?

> If this is not an option, you can create you own "source tarball":
> Do a fresh checkout, then run cmake, followed by "make
> package_source". Now you have your own source tarball. Extract this
> tarball and build from this directory.

Thanks. That wasn't my question, but it was what I wanted to know :-)
Reply all
Reply to author
Forward
0 new messages