{"action":"created","issue":{"url":"https://api.github.com/repos/frankyeh/DSI-Studio/issues/13","repository_url":"https://api.github.com/repos/frankyeh/DSI-Studio","labels_url":"https://api.github.com/repos/frankyeh/DSI-Studio/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/frankyeh/DSI-Studio/issues/13/comments","events_url":"https://api.github.com/repos/frankyeh/DSI-Studio/issues/13/events","html_url":"https://github.com/frankyeh/DSI-Studio/issues/13","id":149109411,"number":13,"title":"Trouble compiling on Ubuntu 14.04.4 LTS 64bit / GCC 4.8","user":{"login":"marcogaio","id":7048664,"avatar_url":"https://avatars.githubusercontent.com/u/7048664?v=3","gravatar_id":"","url":"https://api.github.com/users/marcogaio","html_url":"https://github.com/marcogaio","followers_url":"https://api.github.com/users/marcogaio/followers","following_url":"https://api.github.com/users/marcogaio/following{/other_user}","gists_url":"https://api.github.com/users/marcogaio/gists{/gist_id}","starred_url":"https://api.github.com/users/marcogaio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcogaio/subscriptions","organizations_url":"https://api.github.com/users/marcogaio/orgs","repos_url":"https://api.github.com/users/marcogaio/repos","events_url":"https://api.github.com/users/marcogaio/events{/privacy}","received_events_url":"https://api.github.com/users/marcogaio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-18T10:22:48Z","updated_at":"2016-04-18T12:00:37Z","closed_at":null,"body":"I'm trying to build your software in a environment as the subject, and following the instructions at http://dsi-studio.labsolver.org/dsi-studio-download/compile-dsi-studio-on-windows-mac-linux .\r\n\r\nAfter some code crunching, full of warning, i get:\r\n```\r\ng++ -c -m64 -pipe -fpermissive -O2 -std=c++11 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../../lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I../src -I../src/libs -I../src/libs/dsi -I../src/libs/tracking -I../src/libs/mapping -I../../../include/qt5 -I../../../include/qt5/QtPrintSupport -I../../../include/qt5/QtOpenGL -I../../../include/qt5/QtWidgets -I../../../include/qt5/QtGui -I../../../include/qt5/QtCore -I. -I. -I. -o tract_model.o ../src/libs/tracking/tract_model.cpp\r\n[...]\r\nIn file included from ../src/image/morphology/morphology.hpp:7:0,\r\n                 from ../src/image/image.hpp:31,\r\n                 from ../src/libs/tracking/roi.hpp:4,\r\n                 from ../src/libs/tracking/tract_model.cpp:8:\r\n../src/image/numerical/basic_op.hpp: In instantiation of ‘void image::change_endian(type&) [with type = double]’:\r\n../src/image/numerical/basic_op.hpp:826:34:   required from ‘void image::change_endian(datatype*, size_type) [with datatype = double; size_type = long unsigned int]’\r\n../src/image/io/dicom.hpp:162:85:   required from here\r\n../src/image/numerical/basic_op.hpp:787:13: warning: array subscript has type ‘char’ [-Wchar-subscripts]\r\n         temp[i] = *pdata;\r\n             ^\r\n../src/image/numerical/basic_op.hpp:788:11: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]\r\n     value = *(type*)temp;\r\n           ^\r\nmake: *** [tract_model.o] Errore 1\r\n```\r\n\r\nLooking at the forum, i've tried also with gcc 4.6 (compilation stops early) and using -std=c++11 or -std=c++0x, nothing resolutive.\r\n\r\nCan you help me? Thanks."},"comment":{"url":"https://api.github.com/repos/frankyeh/DSI-Studio/issues/comments/211348497","html_url":"https://github.com/frankyeh/DSI-Studio/issues/13#issuecomment-211348497","issue_url":"https://api.github.com/repos/frankyeh/DSI-Studio/issues/13","id":211348497,"user":{"login":"frankyeh","id":275569,"avatar_url":"https://avatars.githubusercontent.com/u/275569?v=3","gravatar_id":"","url":"https://api.github.com/users/frankyeh","html_url":"https://github.com/frankyeh","followers_url":"https://api.github.com/users/frankyeh/followers","following_url":"https://api.github.com/users/frankyeh/following{/other_user}","gists_url":"https://api.github.com/users/frankyeh/gists{/gist_id}","starred_url":"https://api.github.com/users/frankyeh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frankyeh/subscriptions","organizations_url":"https://api.github.com/users/frankyeh/orgs","repos_url":"https://api.github.com/users/frankyeh/repos","events_url":"https://api.github.com/users/frankyeh/events{/privacy}","received_events_url":"https://api.github.com/users/frankyeh/received_events","type":"User","site_admin":false},"created_at":"2016-04-18T12:00:37Z","updated_at":"2016-04-18T12:00:37Z","body":"Hi Marco,\n\n    Please download TIPL library again and see if it works for you.\n\nBest regards,\nFrank\n\nOn Mon, Apr 18, 2016 at 6:22 AM, Marco Gaiarin <notifications@github.com> wrote:\n> I'm trying to build your software in a environment as the subject, and\n> following the instructions at\n> http://dsi-studio.labsolver.org/dsi-studio-download/compile-dsi-studio-on-windows-mac-linux\n> .\n>\n> After some code crunching, full of warning, i get:\n>\n> g++ -c -m64 -pipe -fpermissive -O2 -std=c++11 -Wall -W -D_REENTRANT -fPIE\n> -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_OPENGL_LIB -DQT_WIDGETS_LIB\n> -DQT_GUI_LIB -DQT_CORE_LIB\n> -I../../../lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I../src\n> -I../src/libs -I../src/libs/dsi -I../src/libs/tracking -I../src/libs/mapping\n> -I../../../include/qt5 -I../../../include/qt5/QtPrintSupport\n> -I../../../include/qt5/QtOpenGL -I../../../include/qt5/QtWidgets\n> -I../../../include/qt5/QtGui -I../../../include/qt5/QtCore -I. -I. -I. -o\n> tract_model.o ../src/libs/tracking/tract_model.cpp\n> [...]\n> In file included from ../src/image/morphology/morphology.hpp:7:0,\n>                  from ../src/image/image.hpp:31,\n>                  from ../src/libs/tracking/roi.hpp:4,\n>                  from ../src/libs/tracking/tract_model.cpp:8:\n> ../src/image/numerical/basic_op.hpp: In instantiation of ‘void\n> image::change_endian(type&) [with type = double]’:\n> ../src/image/numerical/basic_op.hpp:826:34:   required from ‘void\n> image::change_endian(datatype*, size_type) [with datatype = double;\n> size_type = long unsigned int]’\n> ../src/image/io/dicom.hpp:162:85:   required from here\n> ../src/image/numerical/basic_op.hpp:787:13: warning: array subscript has\n> type ‘char’ [-Wchar-subscripts]\n>          temp[i] = *pdata;\n>              ^\n> ../src/image/numerical/basic_op.hpp:788:11: warning: dereferencing\n> type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]\n>      value = *(type*)temp;\n>            ^\n> make: *** [tract_model.o] Errore 1\n>\n> Looking at the forum, i've tried also with gcc 4.6 (compilation stops early)\n> and using -std=c++11 or -std=c++0x, nothing resolutive.\n>\n> Can you help me? Thanks.\n>\n> —\n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly or view it on GitHub\n"}}