frankyeh / TIPL

template image processing library
Other
20 stars 10 forks source link

DSI_Studio docker build failing #8

Closed maksteel closed 5 years ago

maksteel commented 5 years ago
root@9d938e80a34e:/dsistudio/build# qmake ../src && make
g++ -c -pipe -fpermissive -w -O2 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_CHARTS_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../src -I. -I./plot -I../src/libs -I../src/libs/dsi -I../src/libs/tracking -I../src/libs/mapping -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtOpenGL -isystem /usr/include/x86_64-linux-gnu/qt5/QtCharts -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -isystem /usr/include/libdrm -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o RegionModel.o ../src/tracking/region/RegionModel.cpp
In file included from ../src/tipl/tipl.hpp:85,
                 from ../src/tracking/region/RegionModel.h:7,
                 from ../src/tracking/region/RegionModel.cpp:6:
../src/tipl/vis/march_cube.hpp: In instantiation of 'tipl::march_cube<VectorType>::march_cube(const ImageType&, double) [with ImageType = tipl::image<unsigned char, 3>; VectorType = tipl::vector<3>]':
../src/tracking/region/RegionModel.cpp:101:73:   required from here
../src/tipl/vis/march_cube.hpp:443:57: error: 'class image_type::value_type' resolves to 'tipl::image<unsigned char, 3>::value_type' {aka 'unsigned char'}, which is is not a class type
  443 |             std::vector<typename ImageType::value_type> pixels;
      |                                                         ^~~~~~
../src/tipl/vis/march_cube.hpp:443:57: error: 'class image_type::value_type' resolves to 'tipl::image<unsigned char, 3>::value_type' {aka 'unsigned char'}, which is is not a class type
../src/tipl/vis/march_cube.hpp: In instantiation of 'tipl::march_cube<VectorType>::march_cube(const ImageType&, double) [with ImageType = tipl::image<float, 3>; VectorType = tipl::vector<3>]':
../src/tracking/region/RegionModel.cpp:154:27:   required from here
../src/tipl/vis/march_cube.hpp:443:57: error: 'class image_type::value_type' resolves to 'tipl::image<float, 3>::value_type' {aka 'float'}, which is is not a class type
../src/tipl/vis/march_cube.hpp:443:57: error: 'class image_type::value_type' resolves to 'tipl::image<float, 3>::value_type' {aka 'float'}, which is is not a class type
make: *** [Makefile:3178: RegionModel.o] Error 1
root@9d938e80a34e:/dsistudio/build# 
frankyeh commented 5 years ago

Please update TIPL from github to see if it works. Frank

On Mon, Oct 7, 2019 at 11:06 PM Manish Kukreja notifications@github.com wrote:

root@9d938e80a34e:/dsistudio/build# qmake ../src && make g++ -c -pipe -fpermissive -w -O2 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_CHARTS_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../src -I. -I./plot -I../src/libs -I../src/libs/dsi -I../src/libs/tracking -I../src/libs/mapping -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtOpenGL -isystem /usr/include/x86_64-linux-gnu/qt5/QtCharts -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -isystem /usr/include/libdrm -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o RegionModel.o ../src/tracking/region/RegionModel.cpp In file included from ../src/tipl/tipl.hpp:85, from ../src/tracking/region/RegionModel.h:7, from ../src/tracking/region/RegionModel.cpp:6: ../src/tipl/vis/march_cube.hpp: In instantiation of 'tipl::march_cube::march_cube(const ImageType&, double) [with ImageType = tipl::image<unsigned char, 3>; VectorType = tipl::vector<3>]': ../src/tracking/region/RegionModel.cpp:101:73: required from here ../src/tipl/vis/march_cube.hpp:443:57: error: 'class image_type::value_type' resolves to 'tipl::image<unsigned char, 3>::value_type' {aka 'unsigned char'}, which is is not a class type 443 | std::vector pixels; | ^~ ../src/tipl/vis/march_cube.hpp:443:57: error: 'class image_type::value_type' resolves to 'tipl::image<unsigned char, 3>::value_type' {aka 'unsigned char'}, which is is not a class type ../src/tipl/vis/march_cube.hpp: In instantiation of 'tipl::march_cube::march_cube(const ImageType&, double) [with ImageType = tipl::image<float, 3>; VectorType = tipl::vector<3>]': ../src/tracking/region/RegionModel.cpp:154:27: required from here ../src/tipl/vis/march_cube.hpp:443:57: error: 'class image_type::value_type' resolves to 'tipl::image<float, 3>::value_type' {aka 'float'}, which is is not a class type ../src/tipl/vis/march_cube.hpp:443:57: error: 'class image_type::value_type' resolves to 'tipl::image<float, 3>::value_type' {aka 'float'}, which is is not a class type make: *** [Makefile:3178: RegionModel.o] Error 1 root@9d938e80a34e:/dsistudio/build#

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/frankyeh/TIPL/issues/8?email_source=notifications&email_token=AACDI4N4WVKXO7W7AUBCW43QNP2KXA5CNFSM4I6MJGUKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HQHKZOA, or mute the thread https://github.com/notifications/unsubscribe-auth/AACDI4OHEIWDPHIVBORE4W3QNP2KXANCNFSM4I6MJGUA .

maksteel commented 5 years ago

Updated docker image, that now builds on Ubuntu 18.04, the above issue is resolved. https://github.com/maksteel/dsi-studio-docker/commit/d5e3d591ae25dac15372534b3cb936b242567bc8

frankyeh commented 5 years ago

Thanks for the update. Frank

On Wed, Oct 9, 2019 at 8:59 PM Manish Kukreja notifications@github.com wrote:

Updated docker image, that now builds on Ubuntu 18.04, the above issue is resolved. maksteel/dsi-studio-docker@d5e3d59 https://github.com/maksteel/dsi-studio-docker/commit/d5e3d591ae25dac15372534b3cb936b242567bc8

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/frankyeh/TIPL/issues/8?email_source=notifications&email_token=AACDI4NYU2DBDPSTLOAVD6DQNZ47TA5CNFSM4I6MJGUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAZ6Z5I#issuecomment-540273909, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACDI4LYGWU5UJ7LE3ES6ZLQNZ47TANCNFSM4I6MJGUA .