Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build instructions #1

Open
floriandotpy opened this issue Jun 16, 2016 · 2 comments
Open

Build instructions #1

floriandotpy opened this issue Jun 16, 2016 · 2 comments

Comments

@floriandotpy
Copy link

I was happy to have found this project, as I am playing around with ONI recordings right now.

However, I cannot get it to build. I have no experience with CMake, so excuse my naivity.

cd extern/anyregistration
cmake . 
# seems to have worked

cd ../xndec
cmake .
# seems to also have worked

Now what do I need to do? I tried pip install . which failed:

extern/anyregistration/anyregistration.cpp:4:10: fatal error: 'Eigen/Dense' file not found
    #include <Eigen/Dense>
             ^
    1 error generated.
    error: command 'clang' failed with exit status 1

    ----------------------------------------
Command "/usr/local/opt/python/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/var/folders/xw/99wk0h_n2kv6h04l9p5f_c800000gn/T/pip-Vn53cU-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/xw/99wk0h_n2kv6h04l9p5f_c800000gn/T/pip-3cXMKU-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /var/folders/xw/99wk0h_n2kv6h04l9p5f_c800000gn/T/pip-Vn53cU-build/

Also, I tried to run cmake . on the top level as well, which also failed:

CMake Error at CMakeLists.txt:3 (add_library):
  Cannot find source file:

    xn16zdec.cpp

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx


CMake Error: CMake can not determine linker language for target: xn16zdec
CMake Error: Cannot determine link language for target "xn16zdec".

Can you give me any pointers to how I can get this working?

@eruffaldi
Copy link
Owner

Dear Florian,

I have cleaned up a few things and updated instructions. Please pull from
git.

Then:

  1. make sure that Eigen3 is available http://eigen.tuxfamily.org
  2. go top level
  3. mkdir build
    cd build
    cmake ..
  4. make
  5. make the output DLL/SO visible
  6. python setup.py install

Best,
Emanuele

2016-06-16 17:39 GMT+02:00 Florian Letsch [email protected]:

I was happy to have found this project, as I am playing around with ONI
recordings right now.

However, I cannot get it to build. I have no experience with CMake, so
excuse my naivity.

cd extern/anyregistration
cmake . # seems to have worked
cd ../xndec
cmake .# seems to also have worked

Now what do I need to do? I tried pip install . which failed:

extern/anyregistration/anyregistration.cpp:4:10: fatal error: 'Eigen/Dense' file not found
#include <Eigen/Dense>
^
1 error generated.
error: command 'clang' failed with exit status 1

----------------------------------------

Command "/usr/local/opt/python/bin/python2.7 -u -c "import setuptools, tokenize;file='/var/folders/xw/99wk0h_n2kv6h04l9p5f_c800000gn/T/pip-Vn53cU-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /var/folders/xw/99wk0h_n2kv6h04l9p5f_c800000gn/T/pip-3cXMKU-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /var/folders/xw/99wk0h_n2kv6h04l9p5f_c800000gn/T/pip-Vn53cU-build/

Also, I tried to run cmake . on the top level as well, which also failed:

CMake Error at CMakeLists.txt:3 (add_library):
Cannot find source file:

xn16zdec.cpp

Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx

CMake Error: CMake can not determine linker language for target: xn16zdec
CMake Error: Cannot determine link language for target "xn16zdec".

Can you give me any pointers to how I can get this working?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#1, or mute the thread
https://github.com/notifications/unsubscribe/AABHBPaECMRuGzzLFSilN0liH8GBRqpHks5qMW4lgaJpZM4I3hPn
.


Emanuele Ruffaldi, Ph.D. - Assistant Professor
PERCRO, TeCIP Institute - Scuola Superiore Sant'Anna
via Luigi Alamanni 13D, San Giuliano Terme 56010 (PI), Italy
mob.: +39 340 46 72 468 - tel.: +39 050 882 508
fax.: +39 050 882 564 - skype: pititaly

http://www.percro.org - http://www.teslacore.it

@brooda
Copy link

brooda commented Nov 20, 2019

Make sure that Eigen3 is available http://eigen.tuxfamily.org

Where should I place files of this library?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants