Changes between Version 4 and Version 5 of Solaris10Build
- Timestamp:
- 03/15/10 14:37:58 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Solaris10Build
v4 v5 156 156 }}} 157 157 158 Instructions for building the OSSIM distribution on Solaris 10 systems. This tutorial tracks an install of the OSSIM distribution from July 2008 on a freshly installed version of Solaris 10. This tutorial assumes a build out of a home directory Development folder with default installation at /usr/local /ossimas defined by the INSTALL_HERE environmental variable.158 Instructions for building the OSSIM distribution on Solaris 10 systems. This tutorial tracks an install of the OSSIM distribution from July 2008 on a freshly installed version of Solaris 10. This tutorial assumes a build out of a home directory Development folder with default installation at /usr/local as defined by the INSTALL_HERE environmental variable. 159 159 160 160 The entire OSSIM distribution contains many source directories and dependencies. Proper set up of the environmental variables used during the build is key to a successful build from source code. … … 183 183 184 184 Gathering the Dependency Source Code 185 186 Make an ossim_dependencies directory 187 {{{ 188 dev 189 cd ossimsource 190 mkdir ossim_dependencies 191 ozd (should move you to ossim_dependencies directory) 192 }}} 185 193 186 194 The following dependencies are need to build and can be downloaded into the source directory. URLs are provided. … … 199 207 wxWidgets http://prdownloads.sourceforge.net/wxwindows/wxWidgets-2.8.10.tar.gz 200 208 OpenSceneGraph 201 ozd 202 svn co http://www.openscenegraph.org/svn/osg/OpenSceneGraph/tags/OpenSceneGraph-2.4.0 OpenSceneGraph 203 svn co http://www.openscenegraph.org/svn/osg/OpenSceneGraph-Data/tags/OpenSceneGraph-Data-2.4.0 OpenSceneGraph-Data 204 }}} 205 206 207 Make an ossim_dependencies directory 208 {{{ 209 dev 210 cd ossimsource 211 mkdir ossim_dependencies 212 ozd (should move you to ossim_dependencies directory) 209 ozd 210 svn co http://www.openscenegraph.org/svn/osg/OpenSceneGraph/tags/OpenSceneGraph-2.4.0 OpenSceneGraph 211 svn co http://www.openscenegraph.org/svn/osg/OpenSceneGraph-Data/tags/OpenSceneGraph-Data-2.4.0 OpenSceneGraph-Data 213 212 }}} 214 213 … … 229 228 {{{ 230 229 ozd 231 232 230 nano fixdir.sh 231 }}} 233 232 {{{ 234 233 #!/bin/sh … … 247 246 chmod +x jpeg-6b/config.guess 248 247 }}} 248 {{{ 249 249 chmod +x fixdir.sh 250 250 ./fixdir.sh … … 260 260 261 261 ffmpeg 262 263 {{{ 264 ozd 265 cd ffmpeg 266 ./configure --prefix=${INSTALL_HERE} --disable-vhook --disable-mmx --enable-shared --disable-static 267 make 268 make install 262 {{{ 263 ozd 264 cd ffmpeg 265 export LDFLAGS="-mimpure-text -lrt" 266 ./configure --prefix=${INSTALL_HERE} --disable-vhook --disable-mmx --enable-shared --disable-static 267 make 268 make install 269 export LDFLAGS="" 269 270 }}} 270 271 271 272 The include files don’t line up with code, in the install location created ffmpeg dir and moved the libavs down into it. 272 273 {{{ 274 cd ${INSTALL_HERE}/include 275 mkdir ffmpeg 276 mv libav* ffmpeg 277 cd ffmpeg 278 cp libavcodec/* . 279 cp libavdevice/* . 280 cp libavformat/* . 281 cp libavutil/* . 282 }}} 283 284 EXPAT 285 Downloaded from http://sourceforge.net/project/downloading.php?group_id=10127&use_mirror=internap&filename=expat-2.0.1.tar.gz&87780402 286 287 {{{ 288 ozd 289 cd expat-2.0.1 290 ./configure --prefix=${INSTALL_HERE} 291 make 292 make install 293 }}} 294 273 {{{ 274 cd ${INSTALL_HERE}/include 275 mkdir ffmpeg 276 mv libav* ffmpeg 277 cd ffmpeg 278 cp libavcodec/* . 279 cp libavdevice/* . 280 cp libavformat/* . 281 cp libavutil/* . 282 }}} 295 283 296 284 libtiff (bigtiff) 297 298 {{{ 299 ozd 300 cd libtiff-4.0.0 301 chmod +x configure 302 ./configure --prefix=${INSTALL_HERE} 303 make 304 make install 305 cd libtiff 306 cp *.h /usr/local/include 285 {{{ 286 ozd 287 cd libtiff-4.0.0 288 chmod +x configure 289 ./configure --prefix=${INSTALL_HERE} 290 make 291 make install 292 cd libtiff 293 cp *.h /usr/local/include 307 294 }}} 308 295 … … 310 297 311 298 {{{ 312 ozd 313 cd libgeotiff-1.2.3 314 ./configure --prefix=${INSTALL_HERE} --with-libtiff=${INSTALL_HERE} 315 rm config.status 316 ./configure --prefix=${INSTALL_HERE} --with-libtiff=${INSTALL_HERE} 317 make clean 318 make 319 make install 320 321 cd ${INSTALL_HERE}/lib 322 ls (should see the installed libtiff and libgeotiff libs) 323 }}} 324 299 ozd 300 cd libgeotiff-1.2.3 301 ./configure --prefix=${INSTALL_HERE} --with-libtiff=${INSTALL_HERE} 302 rm config.status 303 ./configure --prefix=${INSTALL_HERE} --with-libtiff=${INSTALL_HERE} 304 make clean 305 make 306 make install 307 308 cd ${INSTALL_HERE}/lib 309 ls (should see the installed libtiff and libgeotiff libs) 310 }}} 325 311 326 312 GDAL 327 328 {{{ 329 ozd 330 cd gdal-1.5.1 331 ./configure --prefix=${INSTALL_HERE} --with-libtiff=${INSTALL_HERE} --with-libgeotiff=${INSTALL_HERE} --with-expat-inc=${INSTALL_HERE}/include --with-expat-lib=${INSTALL_HERE}/lib --with-expat=${INSTALL_HERE) 332 make clean; 333 make 334 make install 313 {{{ 314 ozd 315 cd gdal-1.5.1 316 ./configure --prefix=${INSTALL_HERE} --with-libtiff=${INSTALL_HERE} --with-libgeotiff=${INSTALL_HERE} --with-expat-inc=${INSTALL_HERE}/include --with-expat-lib=${INSTALL_HERE}/lib --with-expat=${INSTALL_HERE) 317 make clean 318 make 319 make install 335 320 }}} 336 321 337 322 OpenMPI 338 339 {{{ 340 ozd 341 cd openmpi-1.2.6 342 ./configure (had to run this without args first) 343 ./configure --prefix=${INSTALL_HERE} 344 make 345 make install 346 }}} 347 348 CMake 349 Will need to make sure that cmake is on the system, if not download and install it 350 351 {{{ 352 ozd 353 cd cmake-2.6.0 354 ./bootstrap --prefix=${INSTALL_HERE} 355 make 356 make install 323 {{{ 324 ozd 325 cd openmpi-1.4.1 326 ./configure (had to run this without args first) 327 ./configure --prefix=${INSTALL_HERE} 328 make 329 make install 357 330 }}} 358 331 359 332 ColladaDOM 2.1 360 361 The Linux build needs libxml, PCRE, and boost filesytem development files installed on your machine to build the DOM. 362 363 {{{ 364 pcre-devel-6.6-2.el5_1.7.x86_64.rpm (install this through the package manager) 365 pcre-6.6-2.el5_1.7.x86_64.rpm 366 367 ozd 368 cd colladadom_21m 369 370 cd dom 371 make all 372 ih 373 cd include 374 mkdir colladadom 375 376 ozd; cd colladadom/dom 333 {{{ 334 ozd 335 cd pcre-7.9 336 ./configure 337 make 338 make install 339 ozd 340 cd boost_1_42_0 341 ./bootstrap.sh 342 ./bjam install 343 }}} 344 {{{ 345 ozd 346 cd colladadom_21 347 nano include/dae.h 348 add #include <memory> under the other #includes 349 cd dom 350 make project=dom 351 ih 352 cd include 353 mkdir colladadom 354 ozd 355 cd colladadom_21/dom 377 356 edit the Makefile line 179 to read: 378 prefix :=/usr/local379 make install (gets the headers in place then fails) 380 381 382 357 prefix :=/usr/local 358 make install 359 cd build 360 cd linux-1.4/ 361 cp -r libcollada14dom* ${INSTALL_HERE}/lib/ 383 362 }}} 384 363 385 364 OpenSceneGraph 386 387 Note: On the mac, just build OpenSceneGraph with the included xcode project. 388 389 Follow the default install instructions which install in /usr/local 390 on unix: 391 392 {{{ 393 ozd 394 cd OpenSceneGraph 395 ./configure (first time error’d out ) 396 ./configure 397 make 398 }}} 399 400 Next steps require admin privileges 401 402 {{{ 403 make install 404 exit 405 ozd 406 su 407 cp -r OpenSceneGraph-Data /usr/local/share 408 exit 365 {{{ 366 ozd 367 cd OpenSceneGraph 368 ./configure (first time has some errors) 369 ./configure 370 make 371 make install 372 ozd 373 cp -r OpenSceneGraph-Data /usr/local/share 409 374 }}} 410 375 411 376 To see if you have OpenSceneGraph installed and running: 412 377 {{{ 413 ozd 414 cd OpenSceneGraph-Data 415 osgviewer cow.osg 416 press <esc> to quit 417 }}} 378 ozd 379 cd OpenSceneGraph-Data 380 osgviewer cow.osg 381 press <esc> to quit 382 }}} 383 418 384 OSSIM 419 385 {{{ 420 oz 421 ./configure --prefix=${INSTALL_HERE} --with-libtiff=${INSTALL_HERE} --with-geotiff=${INSTALL_HERE} --with-freetype=/usr --with-mpi=${INSTALL_HERE} --with-openthreads=${INSTALL_HERE} 422 make depends 423 make 424 make install 425 }}} 426 427 libwms 386 oz 387 ./configure --prefix=${INSTALL_HERE} --with-libtiff=${INSTALL_HERE} --with-geotiff=${INSTALL_HERE} --with-freetype=/usr --with-mpi=${INSTALL_HERE} --with-openthreads=${INSTALL_HERE} 388 make depends 389 make 390 make install 391 }}} 392 393 ossim_plugins 394 {{{ 395 ozd 396 cd ../ossim_plugins 397 make all 398 make install 399 }}} 400 401 Typing: 402 {{{ 403 cd ${INSTALL_HERE}/ossim/lib 404 ls *_plugin.so 405 }}} 406 should return these installed, built plugins: 407 libossimcontrib_plugin.so libossimgdal_plugin.so libossimpng_plugin.so 408 409 410 411 412 413 414 NOTICE: None of the below steps have been tested. Proceed at your own risk. 415 416 Move them into an ossim_plugins directory: 417 {{{ 418 mkdir ossim_plugins (if necessary) 419 opt 420 mv -r *_plugins.so ossim_plugins 421 }}} 422 423 libwms (doesn't compile correctly in Solaris 10 atm) 428 424 429 425 need to manually copy lib/include to INSTALL_HERE 430 431 426 {{{ 432 427 oz … … 442 437 }}} 443 438 444 ossim_plugins445 446 {{{447 ozd448 cd ../ossim_plugins449 make all450 make install451 }}}452 453 typing454 455 {{{456 cd ${INSTALL_HERE}/lib457 ls *_plugin.so458 }}}459 460 should return the installed, built plugins461 462 libossimcontrib_plugin.so libossimgdal_plugin.so libossimpng_plugin.so463 464 move them into an ossim_plugins directory465 466 {{{467 mkdir ossim_plugins (if necessary)opt468 mv -r *_plugins.so ossim_plugins469 }}}470 439 471 440 ossimPredator