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

Install instructions incomplete #21

Open
jacopomazzoni opened this issue Mar 25, 2021 · 0 comments
Open

Install instructions incomplete #21

jacopomazzoni opened this issue Mar 25, 2021 · 0 comments

Comments

@jacopomazzoni
Copy link

jacopomazzoni commented Mar 25, 2021

I was able to run cmake . after some googleing:
users need to issue the following commands before all dependencies are met:
git submodule update --init --recursive
apt-get install python-dev
to solve

Make Error at relight/CMakeLists.txt:11 (add_subdirectory):
  The source directory

    /home/jacopo/relight/relight/pybind11

  does not contain a CMakeLists.txt file.

Please Update the readme file

also this package no longer exists in the ubuntu repos:
libjpeg62-turbo-dev
had to substitute for libjpeg62-dev and now I am seeing the following error when I try to issue the make command:

/home/jacopo/relight/relight/rtiexport.cpp:175:21: error: cannot convert ‘wchar_t**’ to ‘char**’
  175 |    PySys_SetArgv(1, argv);
      |                     ^~~~
      |                     |
      |                     wchar_t**

EDIT: just tested in debian, same error even using the libjpeg62-turbo-dev package

EDIT2: ok not sure this works as intended but chaning that line into
PySys_SetArgv(1, reinterpret_cast<char **>(argv));
at least allows me to compile it. ( this should be a separate issue but i guess it's all under the umbrella of. things to do to get it to compile )

EDIT3: in ubuntu this does not fix the jpeg turbo missing package. after all the above changes this still happens:

/home/jacopo/relight/src/jpeg_decoder.cpp: In member function ‘bool JpegDecoder::decode(uint8_t*, size_t, uint8_t*&, int&, int&)’:
/home/jacopo/relight/src/jpeg_decoder.cpp:30:2: error: ‘jpeg_mem_src’ was not declared in this scope; did you mean ‘jpeg_stdio_src’?
   30 |  jpeg_mem_src(&decInfo, buffer, len);
      |  ^~~~~~~~~~~~
      |  jpeg_stdio_src
make[2]: *** [relight/CMakeFiles/relight.dir/build.make:261: relight/CMakeFiles/relight.dir/__/src/jpeg_decoder.cpp.o] Error 1
make[2]: Leaving directory '/home/jacopo/relight'
make[1]: *** [CMakeFiles/Makefile2:115: relight/CMakeFiles/relight.dir/all] Error 2
make[1]: Leaving directory '/home/jacopo/relight'
make: *** [Makefile:130: all] Error 2

EDIT 4: this is fixed by sudo apt-get install libturbojpeg0-dev
EDIT 5: Attaching this image with some specs/sw info about my setup.

Screenshot from 2021-03-26 10-40-43

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

1 participant