Hello,

Here are the steps you need to compile OTB with vs 2015

First install vs_community edition 2015.
https://www.visualstudio.com/vs/community/

I had vs_community installed. Installer does not enable c++ by default. A 
c++ compiler is considered "optional" by installer.
So I re did install with custom option with vc++ enabled and others 
disabled. Mobile and web etc..


Now starting with dashboard scripts

1) you need to download  my scripts from here or simply clone OTB-DevUtils 
repository
https://github.com/orfeotoolbox/OTB-DevUtils/tree/master/Config/windows

2) download & install ninja, cmake, git

3) no need to add ninja, cmake,ctest, git to system path. Even if you do 
there is no problem

4) create some directories

  c:/dashboard/otb/
  c:/dashboard/otb/xdk


5) clone otb into
c:/dashboard/otb/src
git clone  https://[email protected]/git/otb.git  
c:/dashboard/otb/src

6) clone otb-data into (optional for testing)
c:/dashboard/data/otb-data
git clone  https://[email protected]/git/otb-data.git  
c:/dashboard/data/otb-data

7) XDK: for all dlls, libs and headers of OTB's dependencies

For x64: download 
https://www.orfeo-toolbox.org//packages/xdk/OTB-5.8/OTB-5.8.0-xdk-win64.zip
extract otb xdk to 
c:/dashboard/otb/xdk/ (final directory will be 
c:/dashboard/otb/xdk/install_sb_x64

VERY IMPORTANT: Do not change directory names now.

for x86: download 
https://www.orfeo-toolbox.org/packages/xdk/OTB-5.8/OTB-5.8.0-xdk-win32.zip

extract otb xdk to 
c:/dashboard/otb/xdk/ (final directory will be c:/dashboard/otb/xdk/install_
sb_x86.

The install_sb_x86 will contains directories such as include, lib, bin 
share. This is similar to 'install_sb_x64'
both install_sb_* directories are extracted inside c:/dashboard/otb/xdk/

You need download ione of OTB-5.8.0-xdk-win*.zip depending on which build 
you need.


8) cd /path/to/Config/windows/

9) open dashboard.bat in notepad++ or some other editor and,

update path to ninja, cmake, git. see example here
https://github.com/orfeotoolbox/OTB-DevUtils/blob/master/Config/windows/dashboard.bat#L111

10) dashboard.bat x64 BUILD develop master

The above command will run OTB build with all third parties enabled

develop is the name of otb branch
and master is name of otb-data branch

if you run dashboard.bat without any arguments, it will inform you about 
usage and examples


This will give also submit build to dashboard. and you will have OTB build 
directory at c:/dashboard/otb/build_x64


On Tuesday, November 1, 2016 at 3:54:53 PM UTC+1, Yoram Elichai wrote:
>
> Hi Rashed,
>
> Thank you for your replay.
>
> There is be a guide to compile otb 5.8  width xdk on visual studio.
>
> Yoram
>
>
>
>
> On Monday, October 31, 2016 at 7:02:57 AM UTC+2, Yoram Elichai wrote:
>
>> does OTB-5.8.0 compile  in visual studio 
>>
>

-- 
-- 
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to