Menu

#6 OS X build / docker

Current
open
nobody
None
2015-03-14
2014-11-08
Anonymous
No

Hey there,

I am trying to build bdreader on OS X (10.10) and am running on an issue.

Here is the procedure I followed:

  • install XQuartz
  • install required libs with homebrew
  • run configure as such:

    env CPPFLAGS="-I/usr/local/include -I/opt/X11/include" LDFLAGS="-L/usr/local/lib -L/opt/X11/lib" .configure

by default clang -print-search-dirs only yield directories included in Xcode, hence the inclusion of those with CCPFLAGS and LDFLAGS.

I had to remove the mupdf section in configure as it looks for mupdf-js-none, which seem no longer listed as a separate library file but included in mupdf.

Running make, yield the following error:

/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in src
g++ -DHAVE_CONFIG_H -I. -I..   -I/usr/local/include -I/opt/X11/include  -g -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.cpp
In file included from main.cpp:31:
In file included from ./MainWindow.h:49:
In file included from ./Document_archive.h:34:
./Page_archive.h:35:10: fatal error: 'archive.h' file not found
#include <archive.h>
         ^
1 error generated.
make[2]: *** [main.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

I am stuck there.

In the meantime I am trying to run it on OS X with boot2docker, and noticed the .deb file requires ubuntu:precise, won't work with more recent version of ubuntu due to dependent packages changing names.

Discussion

  • Vincent Crocher

    Vincent Crocher - 2014-11-08

    Hi,

    thank you for the detailed report. As said the software has never been tested on OS X so far, so that's good to know what happen.
    Looking at your error message it's clearly a problem with libarchive: the "main" header of libarchive is missing. Since you don't seem to have errors on the configure, libarchive appears to be installed on your system, but the compiler can't find the archive.h.
    Then, could you check if you have an archive.h in your include path (i.e. /usr/local/include or . or ..) ? If not it might be a different installation of libarchive which doesn't installed the headers (sorry don't know much about Mac OS...) or it has been installed in a different path, other than /usr/local/include and you will have to tell the compiler to look in that path (adding -I/your_path/ or add the path to your system path) or reinstall/move libarchive in /usr/local .
    I also suspect that you might have similar error messages for the other libraries (libarchive is the first one to be included at compilation), so same possible fix if that happen: change the path/add the path of the libraries.

    Concerning the deb file, yes it's restricted to precise, mainly due to the change of OpenCV version (2.3 to 2.4). That should be fixed in the later releases (but not immediately next one, sorry).
    
     
  • Vincent Crocher

    Vincent Crocher - 2014-11-14

    You can give a try to the latest version of the deb package: it should accept the most recent versions of opencv and libarchive.

     
  • Vincent Crocher

    Vincent Crocher - 2015-03-14

    You can also now try the recent Deb package with boot2docker. They are some for recent versions of Ubuntu. They are available on the ppa http://launchpad.net/~kennyyy/+archive/ubuntu/bdreader .

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB