On Wed, May 31, 2017 at 11:13 AM, André Felipe Carvalho <afelipe.carva...@gmail.com> wrote: > Hi, > Trying to compile the last git pull just now, it gives some errors. Update rawspeed submodule.
> I have 4.8.0-35-generic #40~16.04.1-Ubuntu SMP Wed Feb 1 17:42:37 UTC 2017 > x86_64 x86_64 x86_64 GNU/Linux > > Thank you in advance for any help. > > Darktable build script > > Building directory: /home/andre/compilar/darktable/build > Installation prefix: /opt/darktable > Build type: RelWithDebInfo > Build generator: Unix Makefiles > Build tasks: 8 > > > -- Building SSE2-optimized codepaths: ON > -- Found little endian system. Good. > -- Is the target platform supported: 1 > -- multiarch triplet detected: x86_64-linux-gnu > -- Performing Test C_COMPILER_UNDERSTANDS_-Wno-error=varargs > -- Performing Test C_COMPILER_UNDERSTANDS_-Wno-error=varargs - Success > -- Performing Test CXX_COMPILER_UNDERSTANDS_-Wno-error=varargs > -- Performing Test CXX_COMPILER_UNDERSTANDS_-Wno-error=varargs - Success > -- Performing Test > C_COMPILER_UNDERSTANDS_-Wno-error=address-of-packed-member > -- Performing Test > C_COMPILER_UNDERSTANDS_-Wno-error=address-of-packed-member - Failed > -- Performing Test > CXX_COMPILER_UNDERSTANDS_-Wno-error=address-of-packed-member > -- Performing Test > CXX_COMPILER_UNDERSTANDS_-Wno-error=address-of-packed-member - Failed > -- Performing Test C_COMPILER_UNDERSTANDS_-Wframe-larger-than=32768 > -- Performing Test C_COMPILER_UNDERSTANDS_-Wframe-larger-than=32768 - > Success > -- Performing Test CXX_COMPILER_UNDERSTANDS_-Wframe-larger-than=32768 > -- Performing Test CXX_COMPILER_UNDERSTANDS_-Wframe-larger-than=32768 - > Success > -- Performing Test C_COMPILER_UNDERSTANDS_-Wstack-usage=32768 > -- Performing Test C_COMPILER_UNDERSTANDS_-Wstack-usage=32768 - Success > -- Performing Test CXX_COMPILER_UNDERSTANDS_-Wstack-usage=32768 > -- Performing Test CXX_COMPILER_UNDERSTANDS_-Wstack-usage=32768 - Success > -- Performing Test C_COMPILER_UNDERSTANDS_-Wlarger-than=524288 > -- Performing Test C_COMPILER_UNDERSTANDS_-Wlarger-than=524288 - Success > -- Performing Test CXX_COMPILER_UNDERSTANDS_-Wlarger-than=524288 > -- Performing Test CXX_COMPILER_UNDERSTANDS_-Wlarger-than=524288 - Success > -- Looking for external programs > -- Found perl > -- Found intltool-merge > -- Found desktop-file-validate > CMake Warning at CMakeLists.txt:335 (find_package): > Could not find a package configuration file provided by "LLVM" (requested > version 3.9) with any of the following names: > > LLVMConfig.cmake > llvm-config.cmake > > Add the installation prefix of "LLVM" to CMAKE_PREFIX_PATH or set > "LLVM_DIR" to a directory containing one of the above files. If "LLVM" > provides a separate development package or SDK, be sure it has been > installed. > > > CMake Warning at CMakeLists.txt:364 (message): > Could not find LLVM 3.9+ > > > CMake Warning at CMakeLists.txt:365 (message): > Test-compilation of OpenCL programs can not be done. > > > -- Test-compilation of OpenCL programs is disabled. > -- Missing jsonschema, problems in noiseprofiles.json might go unnoticed > -- Found xsltproc > -- Found xmllint > -- All external programs found > -- Found msgfmt to convert .po file. Translation enabled > -- Checking for -march=native support > -- Checking for -march=native support - works > -- Checking for -std=c++11 support > -- Checking for -std=c++11 support - works > -- Looking for PThreads > -- Looking for PThreads - found > -- Looking for OpenMP > -- Looking for OpenMP - found > -- Looking for pugixml > -- Found Pugixml 1.70 > -- Looking for pugixml - found (system) > -- Looking for JPEG > -- Looking for JPEG - found > -- Looking for ZLIB > -- Looking for ZLIB - found (system) > -- Looking for xmllint tool > -- Looking for xmllint tool - found > -- Found Glib 2.48.2 > -- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found suitable > version "2.9.3", minimum required is "2.6") > -- Checking for one of the modules 'libsoup-2.2;libsoup2' > -- Found GIO > -- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found version > "2.9.3") > -- Found Sqlite3 3.11.0 > -- Found JsonGlib > CMake Warning at cmake/modules/LibFindMacros.cmake:263 (message): > WARNING: MISSING PACKAGE > > We only found some files of OpenJPEG, not all of them. Perhaps your > installation is incomplete or maybe we just didn't look in the right > place? > This package is NOT REQUIRED and you may ignore this warning but by doing > so you may miss some functionality of darktable. > > Relevant CMake configuration variables: > > OpenJPEG_INCLUDE_DIR=/usr/include > OpenJPEG_LIBRARY=<not found> > > You may use CMake GUI, cmake -D or ccmake to modify the values. Delete > CMakeCache.txt to discard all values and force full re-detection if > necessary. > > Call Stack (most recent call first): > cmake/modules/FindOpenJPEG.cmake:29 (libfind_process) > src/CMakeLists.txt:296 (find_package) > > > -- Found GraphicsMagick > -- Does the compiler support __builtin_cpu_supports(): 1 > -- Checking for -march=native support > -- Checking for one of the modules 'lua53;lua5.3;lua-5.3;lua' > -- Lua support: System library for lua 5.3 not found (to use darktable's > version use -DDONT_USE_INTERNAL_LUA=Off) > -- Found Pugixml 1.70 > -- Map mode: enabled > -- Print mode: enabled > -- building darktable-cmstest with colord support. nice. > -- > Missing xml2po. No localized usermanuals are build > Missing xml2po > Can NOT update usermanual translations > Missing po4a-translate. Can NOT create translated manpages > Missing po4a-updatepo. Can NOT update manpage translations > -- Configuring done > -- Generating done > -- Build files have been written to: /home/andre/compilar/darktable/build > [ 0%] Updating version string (git checkout) > [ 0%] Built target locale_sl > [ 0%] Built target locale_th > [ 0%] Built target locale_he > [ 0%] Built target locale_pl > [ 0%] Built target locale_ja > [ 0%] Built target locale_pt_BR > [ 0%] Built target locale_el > [ 0%] Built target locale_gl > [ 0%] Built target locale_cs > [ 0%] Built target locale_hu > [ 0%] Built target locale_da > [ 0%] Built target locale_es > [ 0%] Built target locale_sv > [ 1%] Built target locale_pt_PT > [ 1%] Built target locale_it > [ 1%] Built target locale_ca > [ 1%] Built target locale_af > [ 3%] Built target locale_uk > [ 3%] Built target locale_fi > [ 3%] Built target locale_de > [ 3%] Built target locale_sq > [ 3%] Built target locale_ro > [ 3%] Built target locale_ru > [ 3%] Built target locale_nl > [ 3%] Built target locale_zh_CN > [ 4%] Built target locale_fr > [ 4%] Built target locale_sk > [ 4%] Built target validate-cameras.xml > Version string: 2.3.0+699~gc0287c8-dirty > [ 4%] Built target generate_metadata > [ 4%] Built target create_version_gen > [ 4%] Checking validity of data/darktableconfig.xml > [ 4%] Built target dependencies > [ 4%] Built target generate_authors_h > [ 4%] Built target manpage_darktable-generate-cache.1 > [ 4%] Checking validity of darktable.desktop > [ 4%] Built target validate_darktableconfig_xml > [ 6%] Built target darktable.appdata_file > [ 6%] Built target testcompile_opencl_kernels > [ 6%] Built target validate_darktable_desktop > [ 6%] Built target manpage_darktable.1 > [ 6%] Built target manpage_darktable-cli.1 > [ 6%] Built target generate_version > [ 6%] Built target manpage_darktable-cmstest.1 > [ 6%] Built target locales > [ 6%] Built target manpage_darktable-cltest.1 > [ 6%] Built target generate_preferences > [ 6%] Built target check > [ 6%] Built target darktable.desktop_file > [ 7%] Built target darktablerc_file > [ 7%] Built target darktablerc.html_file > [ 7%] Built target manpages > [ 7%] Linking C executable darktable-cmstest > [ 18%] Built target rawspeed > [ 18%] Built target rawspeed_static > [ 18%] Linking CXX executable darktable-rs-identify > [ 18%] Built target darktable-cmstest > [ 18%] Built target darktable-rs-identify > [ 18%] Building CXX object > src/CMakeFiles/lib_darktable.dir/common/imageio_rawspeed.cc.o > [ 18%] Building C object src/CMakeFiles/lib_darktable.dir/common/utility.c.o > [ 18%] Building C object > src/CMakeFiles/lib_darktable.dir/common/pwstorage/pwstorage.c.o > [ 19%] Building C object src/CMakeFiles/lib_darktable.dir/common/dynload.c.o > [ 19%] Building C object > src/CMakeFiles/lib_darktable.dir/common/variables.c.o > [ 19%] Building C object > src/CMakeFiles/lib_darktable.dir/common/pwstorage/backend_kwallet.c.o > [ 19%] Building C object src/CMakeFiles/lib_darktable.dir/common/opencl.c.o > [ 19%] Building C object > src/CMakeFiles/lib_darktable.dir/common/dlopencl.c.o > [ 19%] Building C object src/CMakeFiles/lib_darktable.dir/common/ratings.c.o > [ 19%] Building C object > src/CMakeFiles/lib_darktable.dir/common/resource_limits.c.o > [ 19%] Building C object > src/CMakeFiles/lib_darktable.dir/common/histogram.c.o > [ 19%] Building C object > src/CMakeFiles/lib_darktable.dir/control/control.c.o > [ 19%] Building C object > src/CMakeFiles/lib_darktable.dir/control/crawler.c.o > [ 19%] Building C object src/CMakeFiles/lib_darktable.dir/control/jobs.c.o > [ 19%] Building C object > src/CMakeFiles/lib_darktable.dir/control/jobs/control_jobs.c.o > [ 21%] Building C object > src/CMakeFiles/lib_darktable.dir/control/jobs/develop_jobs.c.o > [ 21%] Building C object > src/CMakeFiles/lib_darktable.dir/control/jobs/film_jobs.c.o > [ 21%] Building C object > src/CMakeFiles/lib_darktable.dir/control/jobs/image_jobs.c.o > [ 21%] Building C object > src/CMakeFiles/lib_darktable.dir/control/progress.c.o > [ 21%] Building C object src/CMakeFiles/lib_darktable.dir/control/signal.c.o > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:49:17: error: > ‘rawspeed’ is not a namespace-name > using namespace rawspeed; > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:49:25: error: > expected namespace-name before ‘;’ token > using namespace rawspeed; > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:51:76: error: > ‘RawImage’ has not been declared > dt_imageio_retval_t dt_imageio_open_rawspeed_sraw (dt_image_t *img, > RawImage r, > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:52:8: error: > ‘CameraMetaData’ does not name a type > static CameraMetaData *meta = NULL; > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc: In function > ‘void dt_rawspeed_load_meta()’: > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:56:6: error: > ‘meta’ was not declared in this scope > if(meta == NULL) > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:65:18: error: > expected type-specifier before ‘CameraMetaData’ > meta = new CameraMetaData(camfile); > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc: In function > ‘void dt_rawspeed_lookup_makermodel(const char*, const char*, char*, int, > char*, int, char*, int)’: > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:78:11: error: > ‘Camera’ does not name a type > const Camera *cam = meta->getCamera(maker, model, ""); > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:80:10: error: > ‘cam’ was not declared in this scope > if (!cam) > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:81:13: error: > ‘meta’ was not declared in this scope > cam = meta->getCamera(maker, model, "dng"); > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:82:9: error: > ‘cam’ was not declared in this scope > if (cam) > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc: In function > ‘uint32_t dt_rawspeed_crop_dcraw_filters(uint32_t, uint32_t, uint32_t)’: > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:109:10: error: > ‘ColorFilterArray’ has not been declared > return ColorFilterArray::shiftDcrawFilter(filters, crop_x, crop_y); > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc: In function > ‘dt_imageio_retval_t dt_imageio_open_rawspeed(dt_image_t*, const char*, > dt_mipmap_buffer_t*)’: > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:119:3: error: > ‘FileReader’ was not declared in this scope > FileReader f(filen); > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:119:3: note: > suggested alternative: > In file included from > /home/andre/compilar/darktable/src/external/rawspeed/src/librawspeed/RawSpeed-API.h:35:0, > from > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:23: > /home/andre/compilar/darktable/src/external/rawspeed/src/librawspeed/io/FileReader.h:27:7: > note: ‘RawSpeed::FileReader’ > class FileReader > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:121:19: error: > ‘RawDecoder’ was not declared in this scope > std::unique_ptr<RawDecoder> d; > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:121:19: note: > suggested alternative: > In file included from > /home/andre/compilar/darktable/src/external/rawspeed/src/librawspeed/RawSpeed-API.h:32:0, > from > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:23: > /home/andre/compilar/darktable/src/external/rawspeed/src/librawspeed/decoders/RawDecoder.h:62:7: > note: ‘RawSpeed::RawDecoder’ > class RawDecoder > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:121:29: error: > template argument 1 is invalid > std::unique_ptr<RawDecoder> d; > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:121:29: error: > template argument 2 is invalid > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:122:19: error: > ‘Buffer’ was not declared in this scope > std::unique_ptr<Buffer> m; > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:122:19: note: > suggested alternative: > In file included from > /home/andre/compilar/darktable/src/external/rawspeed/src/librawspeed/RawSpeed-API.h:33:0, > from > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:23: > /home/andre/compilar/darktable/src/external/rawspeed/src/librawspeed/io/Buffer.h:55:7: > note: ‘RawSpeed::Buffer’ > class Buffer > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:122:25: error: > template argument 1 is invalid > std::unique_ptr<Buffer> m; > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:122:25: error: > template argument 2 is invalid > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:128:25: error: > the value of ‘Buffer’ is not usable in a constant expression > m = std::unique_ptr<Buffer>(f.readFile()); > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:122:19: note: > ‘Buffer’ was not declared ‘constexpr’ > std::unique_ptr<Buffer> m; > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:128:31: error: > type/value mismatch at argument 1 in template parameter list for > ‘template<class _Tp, class _Dp> class std::unique_ptr’ > m = std::unique_ptr<Buffer>(f.readFile()); > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:128:31: note: > expected a type, got ‘Buffer’ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:128:31: error: > template argument 2 is invalid > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:128:33: error: > ‘f’ was not declared in this scope > m = std::unique_ptr<Buffer>(f.readFile()); > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:130:5: error: > ‘RawParser’ was not declared in this scope > RawParser t(m.get()); > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:130:5: note: > suggested alternative: > In file included from > /home/andre/compilar/darktable/src/external/rawspeed/src/librawspeed/RawSpeed-API.h:40:0, > from > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:23: > /home/andre/compilar/darktable/src/external/rawspeed/src/librawspeed/parsers/RawParser.h:31:7: > note: ‘RawSpeed::RawParser’ > class RawParser { > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:131:25: error: > the value of ‘RawDecoder’ is not usable in a constant expression > d = std::unique_ptr<RawDecoder>(t.getDecoder(meta)); > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:121:19: note: > ‘RawDecoder’ was not declared ‘constexpr’ > std::unique_ptr<RawDecoder> d; > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:131:35: error: > type/value mismatch at argument 1 in template parameter list for > ‘template<class _Tp, class _Dp> class std::unique_ptr’ > d = std::unique_ptr<RawDecoder>(t.getDecoder(meta)); > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:131:35: note: > expected a type, got ‘RawDecoder’ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:131:35: error: > template argument 2 is invalid > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:131:37: error: > ‘t’ was not declared in this scope > d = std::unique_ptr<RawDecoder>(t.getDecoder(meta)); > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:131:50: error: > ‘meta’ was not declared in this scope > d = std::unique_ptr<RawDecoder>(t.getDecoder(meta)); > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:133:11: error: > request for member ‘get’ in ‘d’, which is of non-class type ‘int’ > if(!d.get()) return DT_IMAGEIO_FILE_CORRUPTED; > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:135:6: error: > base operand of ‘->’ is not a pointer > d->failOnUnknown = true; > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:136:6: error: > base operand of ‘->’ is not a pointer > d->checkSupport(meta); > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:137:6: error: > base operand of ‘->’ is not a pointer > d->decodeRaw(); > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:138:6: error: > base operand of ‘->’ is not a pointer > d->decodeMetaData(meta); > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:139:5: error: > ‘RawImage’ was not declared in this scope > RawImage r = d->mRaw; > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:139:5: note: > suggested alternative: > In file included from > /home/andre/compilar/darktable/src/external/rawspeed/src/librawspeed/RawSpeed-API.h:30:0, > from > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:23: > /home/andre/compilar/darktable/src/external/rawspeed/src/librawspeed/common/RawImage.h:237:8: > note: ‘RawSpeed::RawImage’ > class RawImage { > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:141:25: error: > ‘r’ was not declared in this scope > const auto errors = r->getErrors(); > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:142:29: error: > unable to deduce ‘auto&&’ from ‘errors’ > for(const auto &error : errors) fprintf(stderr, "[rawspeed] (%s) %s\n", > img > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:185:10: error: > ‘uint32’ was not declared in this scope > for (uint32 i=0; i<(sizeof(legacy_aliases)/sizeof(legacy_aliases[1])); > i++) > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:185:10: note: > suggested alternative: > In file included from > /home/andre/compilar/darktable/src/external/rawspeed/src/librawspeed/RawSpeed-API.h:28:0, > from > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:23: > /home/andre/compilar/darktable/src/external/rawspeed/src/librawspeed/common/Common.h:40:28: > note: ‘RawSpeed::uint32’ > using uint32 = unsigned int; > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:185:22: error: > ‘i’ was not declared in this scope > for (uint32 i=0; i<(sizeof(legacy_aliases)/sizeof(legacy_aliases[1])); > i++) > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:221:7: error: > request for member ‘reset’ in ‘d’, which is of non-class type ‘int’ > d.reset(); > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:222:7: error: > request for member ‘reset’ in ‘m’, which is of non-class type ‘int’ > m.reset(); > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:234:29: error: > ‘TYPE_USHORT16’ was not declared in this scope > if((r->getDataType() != TYPE_USHORT16) && (r->getDataType() != > TYPE_FLOAT32 > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:234:29: note: > suggested alternative: > In file included from > /home/andre/compilar/darktable/src/external/rawspeed/src/librawspeed/RawSpeed-API.h:30:0, > from > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:23: > /home/andre/compilar/darktable/src/external/rawspeed/src/librawspeed/common/RawImage.h:42:21: > note: ‘TYPE_USHORT16’ > enum RawImageType { TYPE_USHORT16, TYPE_FLOAT32 }; > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:234:68: error: > ‘TYPE_FLOAT32’ was not declared in this scope > if((r->getDataType() != TYPE_USHORT16) && (r->getDataType() != > TYPE_FLOAT32 > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:234:68: note: > suggested alternative: > In file included from > /home/andre/compilar/darktable/src/external/rawspeed/src/librawspeed/RawSpeed-API.h:30:0, > from > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:23: > /home/andre/compilar/darktable/src/external/rawspeed/src/librawspeed/common/RawImage.h:42:36: > note: ‘TYPE_FLOAT32’ > enum RawImageType { TYPE_USHORT16, TYPE_FLOAT32 }; > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:238:29: error: > ‘TYPE_USHORT16’ was not declared in this scope > if((r->getDataType() == TYPE_USHORT16) && (r->getBpp() != > sizeof(uint16_t)) > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:238:29: note: > suggested alternative: > In file included from > /home/andre/compilar/darktable/src/external/rawspeed/src/librawspeed/RawSpeed-API.h:30:0, > from > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:23: > /home/andre/compilar/darktable/src/external/rawspeed/src/librawspeed/common/RawImage.h:42:21: > note: ‘TYPE_USHORT16’ > enum RawImageType { TYPE_USHORT16, TYPE_FLOAT32 }; > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:240:29: error: > ‘TYPE_FLOAT32’ was not declared in this scope > if((r->getDataType() == TYPE_FLOAT32) && (r->getBpp() != > sizeof(float))) re > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:240:29: note: > suggested alternative: > In file included from > /home/andre/compilar/darktable/src/external/rawspeed/src/librawspeed/RawSpeed-API.h:30:0, > from > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:23: > /home/andre/compilar/darktable/src/external/rawspeed/src/librawspeed/common/RawImage.h:42:36: > note: ‘TYPE_FLOAT32’ > enum RawImageType { TYPE_USHORT16, TYPE_FLOAT32 }; > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:261:5: error: > ‘iPoint2D’ was not declared in this scope > iPoint2D dimUncropped = r->getUncroppedDim(); > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:261:5: note: > suggested alternative: > In file included from > /home/andre/compilar/darktable/src/external/rawspeed/src/librawspeed/RawSpeed-API.h:29:0, > from > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:23: > /home/andre/compilar/darktable/src/external/rawspeed/src/librawspeed/common/Point.h:28:7: > note: ‘RawSpeed::iPoint2D’ > class iPoint2D { > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:262:18: error: > ‘dimUncropped’ was not declared in this scope > img->width = dimUncropped.x; > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:266:14: error: > expected ‘;’ before ‘dimCropped’ > iPoint2D dimCropped = r->dim; > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:269:14: error: > expected ‘;’ before ‘cropTL’ > iPoint2D cropTL = r->getCropOffset(); > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:270:19: error: > ‘cropTL’ was not declared in this scope > img->crop_x = cropTL.x; > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:274:14: error: > expected ‘;’ before ‘cropBR’ > iPoint2D cropBR = dimUncropped - dimCropped - cropTL; > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:275:23: error: > ‘cropBR’ was not declared in this scope > img->crop_width = cropBR.x; > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:291:30: error: > ‘TYPE_FLOAT32’ was not declared in this scope > if(r->getDataType() == TYPE_FLOAT32) > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:291:30: note: > suggested alternative: > In file included from > /home/andre/compilar/darktable/src/external/rawspeed/src/librawspeed/RawSpeed-API.h:30:0, > from > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:23: > /home/andre/compilar/darktable/src/external/rawspeed/src/librawspeed/common/RawImage.h:42:36: > note: ‘TYPE_FLOAT32’ > enum RawImageType { TYPE_USHORT16, TYPE_FLOAT32 }; > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc: At global > scope: > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:357:68: error: > ‘RawImage’ has not been declared > dt_imageio_retval_t dt_imageio_open_rawspeed_sraw(dt_image_t *img, RawImage > r, > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc: In function > ‘dt_imageio_retval_t dt_imageio_open_rawspeed_sraw(dt_image_t*, int, > dt_mipmap_buffer_t*)’: > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:363:17: error: > base operand of ‘->’ is not a pointer > img->width = r->dim.x; > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:364:18: error: > base operand of ‘->’ is not a pointer > img->height = r->dim.y; > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:370:7: error: > base operand of ‘->’ is not a pointer > if(r->getDataType() != TYPE_USHORT16) return DT_IMAGEIO_FILE_CORRUPTED; > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:370:26: error: > ‘TYPE_USHORT16’ was not declared in this scope > if(r->getDataType() != TYPE_USHORT16) return DT_IMAGEIO_FILE_CORRUPTED; > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:370:26: note: > suggested alternative: > In file included from > /home/andre/compilar/darktable/src/external/rawspeed/src/librawspeed/RawSpeed-API.h:30:0, > from > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:23: > /home/andre/compilar/darktable/src/external/rawspeed/src/librawspeed/common/RawImage.h:42:21: > note: ‘TYPE_USHORT16’ > enum RawImageType { TYPE_USHORT16, TYPE_FLOAT32 }; > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:372:25: error: > base operand of ‘->’ is not a pointer > const uint32_t cpp = r->getCpp(); > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:390:42: error: > base operand of ‘->’ is not a pointer > const uint16_t *in = (uint16_t *) r->getData(0, j); > ^ > /home/andre/compilar/darktable/src/common/imageio_rawspeed.cc:414:42: error: > base operand of ‘->’ is not a pointer > const uint16_t *in = (uint16_t *) r->getData(0, j); > ^ > [ 21%] Building C object > src/CMakeFiles/lib_darktable.dir/develop/develop.c.o > src/CMakeFiles/lib_darktable.dir/build.make:916: recipe for target > 'src/CMakeFiles/lib_darktable.dir/common/imageio_rawspeed.cc.o' failed > make[2]: *** [src/CMakeFiles/lib_darktable.dir/common/imageio_rawspeed.cc.o] > Error 1 > make[2]: ** Esperando que outros processos terminem. > CMakeFiles/Makefile2:1435: recipe for target > 'src/CMakeFiles/lib_darktable.dir/all' failed > make[1]: *** [src/CMakeFiles/lib_darktable.dir/all] Error 2 > Makefile:149: recipe for target 'all' failed > make: *** [all] Error 2 > > > -- > André Felipe > > https://www.flickr.com/photos/andrefelipecarvalho/ > > ___________________________________________________________________________ > darktable developer mailing list to unsubscribe send a mail to > darktable-dev+unsubscr...@lists.darktable.org ___________________________________________________________________________ darktable developer mailing list to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org