Discussion:
[otb-users] Unable to build OTB (6.7) example on Ubuntu 18
ym2018
2018-08-01 16:29:21 UTC
Permalink
Hy all I've create a Ubuntu docker like so :

FROM ubuntu:18.04

RUN apt-get update
RUN apt-get install -y build-essential git cmake wget

#Clone Sources
RUN mkdir ~/OTB
RUN cd ~/OTB && git clone
https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb.git

RUN mkdir ~/OTB/build
RUN mkdir ~/OTB/install

#BUILD
RUN cd ~/OTB/build && cmake -D CMAKE_INSTALL_PREFIX=~/OTB/install
~/OTB/otb/SuperBuild -DOTB_USE_QWT=OFF -DOTB_USE_GLFW=OFF -DOTB_USE_GLEW=OFF
-DOTB_USE_GLUT=OFF -DOTB_USE_OPENGL=OFF -DOTB_USE_QT=OFF
-DOTB_USE_OPENGL=OFF -DOTB_WRAP_PYTHON=OFF
RUN cd ~/OTB/build && make

Everything is ok!

Despite I'm unable to build OTB_examples:
there is my error :

root/OTB/install/include/OTB-6.7/otbGDALImageIO.h:119:3: error: no match for
'operator<<' (operand types are 'std::basic_ostream<char>' and 'const
NoDataListType {aka const std::vector<std::pair&lt;int, double> >}')

Is Someone know how to solve that issue ?

thanks for attention.




--
Sent from: http://otb-users.37221.n3.nabble.com/
--
--
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html

You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to otb-***@googlegroups.com
To unsubscribe from this group, send email to
otb-users+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
---
You received this message because you are subscribed to the Google Groups "otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to otb-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Poughon Victor
2018-08-03 07:40:55 UTC
Permalink
Hi

This is a known problem in the develop branch right now. We are fixing it:
https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/merge_requests/188

In the meantime you should probably use the master branch to get the latest release, or the specific release you want with branch release-6.6 for example:

git checkout master

Victor Poughon
-----Message d'origine-----
Envoyé : mercredi 1 août 2018 18:29
Objet : [otb-users] Unable to build OTB (6.7) example on Ubuntu 18
FROM ubuntu:18.04
RUN apt-get update
RUN apt-get install -y build-essential git cmake wget
#Clone Sources
RUN mkdir ~/OTB
RUN cd ~/OTB && git clone
https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb.git
RUN mkdir ~/OTB/build
RUN mkdir ~/OTB/install
#BUILD
RUN cd ~/OTB/build && cmake -D CMAKE_INSTALL_PREFIX=~/OTB/install
~/OTB/otb/SuperBuild -DOTB_USE_QWT=OFF -DOTB_USE_GLFW=OFF -DOTB_USE_GLEW=OFF -DOTB_USE_GLUT=OFF -
DOTB_USE_OPENGL=OFF -DOTB_USE_QT=OFF -DOTB_USE_OPENGL=OFF -DOTB_WRAP_PYTHON=OFF RUN cd ~/OTB/build &&
make
Everything is ok!
root/OTB/install/include/OTB-6.7/otbGDALImageIO.h:119:3: error: no match for 'operator<<' (operand
types are 'std::basic_ostream<char>' and 'const NoDataListType {aka const
std::vector<std::pair&lt;int, double> >}')
Is Someone know how to solve that issue ?
thanks for attention.
--
Sent from: http://otb-users.37221.n3.nabble.com/
--
--
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html
You received this message because you are subscribed to the Google Groups "otb-users" group.
email to
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
---
You received this message because you are subscribed to the Google Groups "otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to otb-
For more options, visit https://groups.google.com/d/optout.
--
--
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html

You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to otb-***@googlegroups.com
To unsubscribe from this group, send email to
otb-users+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
---
You received this message because you are subscribed to the Google Groups "otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to otb-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Manuel Grizonnet
2018-08-03 12:38:25 UTC
Permalink
The compilation issue is now fix in the git develop branch of OTB. It
should work now. Sorry for that.

Manuel
Post by Poughon Victor
Hi
https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/merge_requests/188
In the meantime you should probably use the master branch to get the
latest release, or the specific release you want with branch release-6.6
git checkout master
Victor Poughon
-----Message d'origine-----
de ym2018
Envoyé : mercredi 1 août 2018 18:29
Objet : [otb-users] Unable to build OTB (6.7) example on Ubuntu 18
FROM ubuntu:18.04
RUN apt-get update
RUN apt-get install -y build-essential git cmake wget
#Clone Sources
RUN mkdir ~/OTB
RUN cd ~/OTB && git clone
https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb.git
RUN mkdir ~/OTB/build
RUN mkdir ~/OTB/install
#BUILD
RUN cd ~/OTB/build && cmake -D CMAKE_INSTALL_PREFIX=~/OTB/install
~/OTB/otb/SuperBuild -DOTB_USE_QWT=OFF -DOTB_USE_GLFW=OFF
-DOTB_USE_GLEW=OFF -DOTB_USE_GLUT=OFF -
DOTB_USE_OPENGL=OFF -DOTB_USE_QT=OFF -DOTB_USE_OPENGL=OFF
-DOTB_WRAP_PYTHON=OFF RUN cd ~/OTB/build &&
make
Everything is ok!
root/OTB/install/include/OTB-6.7/otbGDALImageIO.h:119:3: error: no
match for 'operator<<' (operand
types are 'std::basic_ostream<char>' and 'const NoDataListType {aka const
std::vector<std::pair&lt;int, double> >}')
Is Someone know how to solve that issue ?
thanks for attention.
--
Sent from: http://otb-users.37221.n3.nabble.com/
--
--
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html
You received this message because you are subscribed to the Google
Groups "otb-users" group.
unsubscribe from this group, send
email to
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
---
You received this message because you are subscribed to the Google
Groups "otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to otb-
For more options, visit https://groups.google.com/d/optout.
--
--
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html
You received this message because you are subscribed to the Google
Groups "otb-users" group.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
---
You received this message because you are subscribed to the Google Groups
"otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
Manuel Grizonnet
--
--
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html

You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to otb-***@googlegroups.com
To unsubscribe from this group, send email to
otb-users+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
---
You received this message because you are subscribed to the Google Groups "otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to otb-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...