problems after beta 1.5.5 update

Issue #213 closed
FUNMORPH UA created an issue

Dear Ben, dear all,

I know it is a beta, and few people build from source, but these problems will hit others, so I thought it is good to report.

On my weekly system update, some dependencies of XMALab were updated (I think related to cmake or glew), XMALab refused to start and I had to re-build. I pulled the latest git commit. Here are some observations, going from

commit 7b52ace59bdc4a991b7b788d0453efa71037347b ( Tue Jul 16 11:42:21 2019)

to commit 4b6ea2b2ebd8884d190fc162aab17837d1d03813 (Wed Oct 16 13:51:50 2019)

(confirmed twice by git checkout)

(1) cameras are flipped horizontally when opening existing files

This was a tough one: when opening my project, tracked points did not match the images any more. When collecting the minimal example here (created in 1.5.4, corrupted in 1.5.5), I noticed that the reason is that both cameras are flipped horizontally compared to when the tracking was done. This was introduced by commit of “fixes #208: Flipping can now be set per camera”. Is there a way to flip cameras after loading a trial? Otherwise I’ll simply flip images. Edit: The problem seems to be that the project setting FlipImages="0" from previously stored files is not transferred to camera-wise settings; instead camera isFlipped gets set to “1” per default.

Quick fix: manipulate the “project.xml” file in the “.xma” archive as follows:

  • <Project …> tag: remove FlipImages="0"
  • all <Camera …> tags: add or modify isFlipped="0"

(2) cmake/glew hiccup

I had installed glew libraries twice on my system (version 1.1, version 2.1). Still, the latest cmake did not find it automatically. To solve it, I had to compile glew from the source downloadable on their website; note it did NOT work with the current glew git repo.

If this turns out to be a common problem, it might be worth noting in the wiki, which brings me to the third point. It is certainly related to commit 761aea3e644c24fb04fe35ff89cd8fef38ade393 (Tue Oct 15 10:35:34 2019) “set glew in cmake to static due to new cmake version”.

(3) versions to wiki developer notes

https://bitbucket.org/xromm/xmalab/wiki/Instructions for developers

It would be great if that page would point to the versions of the dependencies which you used for the latest working compilation.

Cheers,

Falk

Comments (3)

  1. Benjamin Knorlein

    Thanks for the info Falk. I am aware of the problem with the flip and already corrected it yesterday. I will make a new beta release tomorrow.

    For the other 2 comments I will update the developer notes. However for glew I had to change the CMakeLists as in the newest cmake findGlew was changed. If glew is found automatically probably depends on how it is installed on your system as it is an official script from cmake. However, you will have to compile the static libs as well.

  2. Log in to comment