Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -186,3 +186,4 @@ structured-build/calcTexCoordBundler
/VisualSFM
/nv.ini
/kd
/builddir
1 change: 0 additions & 1 deletion ANNWrapper.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "ANNWrapper.h"

ANNWrapper::ANNWrapper()
{
m_anything_to_free = false;
Expand Down
19 changes: 6 additions & 13 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ PROJECT(threadedStereo)
SET(THREADED_STEREO_LIB "ts")

CMAKE_MINIMUM_REQUIRED(VERSION 2.4)

set(CMAKE_CXX_STANDARD 98)
# This can removed if the required cmake version is increased to 2.6
IF(COMMAND CMAKE_POLICY)
CMAKE_POLICY(SET CMP0003 NEW)
Expand All @@ -30,6 +30,7 @@ include(ExternalProject)
FIND_PACKAGE( OpenCV REQUIRED )
pkg_check_modules(GOBJ REQUIRED gobject-2.0)
pkg_check_modules(GLIB2 REQUIRED glib-2.0)
pkg_check_modules(ZLIB REQUIRED zlib)
set(OSG_COMPONENTS osg osgUtil osgViewer osgGA osgManipulator osgText osgDB)
find_package(OpenSceneGraph REQUIRED COMPONENTS ${OSG_COMPONENTS})
#GDAL
Expand Down Expand Up @@ -57,19 +58,12 @@ ENDIF(INSOURCE)
# eg. cmake . -DCMAKE_BUILD_TYPE=Release -DDEBUG_PROFILING=on


# Build types are: Release, Debug, RelWithDebInfo, MinSizeRel
IF( NOT CMAKE_BUILD_TYPE )
SET( CMAKE_BUILD_TYPE Release )
ENDIF( NOT CMAKE_BUILD_TYPE )


#-----------------------#
# Installation Options #
#-----------------------#

IF( NOT CMAKE_INSTALL_PREFIX )
SET( CMAKE_INSTALL_PREFIX "/usr/local" )
ENDIF( NOT CMAKE_INSTALL_PREFIX )

IF(USE_AUV_FOR_STEREO)
message("Using AUV Code for Stereo")
Expand Down Expand Up @@ -352,7 +346,6 @@ stereo_dense.cpp
image_rect.cpp
ANNWrapper.cpp
)
ADD_DEFINITIONS( "-g")
ADD_LIBRARY( ${THREADED_STEREO_LIB} STATIC ${SRCS} ${SPINDEX_SRC})
TARGET_LINK_LIBRARIES (${THREADED_STEREO_LIB} ${THREADED_STEREO_LIB}-sonar)
ADD_EXECUTABLE( ${CMAKE_PROJECT_NAME} threadedStereo.cpp ShellCmd.cpp )
Expand Down Expand Up @@ -386,7 +379,7 @@ ADD_EXECUTABLE(genOverlappingPoses genOverlappingPoses.cpp)

#ADD_EXECUTABLE(temp temp.cpp)
TARGET_LINK_LIBRARIES( genOverlappingPoses ${THREADED_STEREO_LIB} )
SET(OGF_LIBS basic math cells numeric_stuff image z m )
SET(OGF_LIBS basic math cells numeric_stuff image ${ZLIB_LIBRARIES} )
LINK_LIBRARIES(osgTerrain osgFX osg spindex vips vipsCC)
TARGET_LINK_LIBRARIES( ${CMAKE_PROJECT_NAME} ${THREADED_STEREO_LIB} vips vipsCC vpb spindex ${THREADED_STEREO_LIB}-sonar ${OGF_LIBS})
#TARGET_LINK_LIBRARIES( engine ${THREADED_STEREO_LIB} vips vipsCC vpb spindex)
Expand All @@ -412,10 +405,10 @@ TARGET_LINK_LIBRARIES( calcTexCoordDidson ${THREADED_STEREO_LIB} spindex vpb vip

TARGET_LINK_LIBRARIES( singleImageTex ${THREADED_STEREO_LIB} spindex vpb vips vipsCC ${OGF_LIBS})
TARGET_LINK_LIBRARIES( borderClip ${THREADED_STEREO_LIB} spindex )
TARGET_LINK_LIBRARIES( dumpPCD vips vipsCC ${THREADED_STEREO_LIB} z)
TARGET_LINK_LIBRARIES( dumpPCD vips vipsCC ${THREADED_STEREO_LIB} ${ZLIB_LIBRARIES})

TARGET_LINK_LIBRARIES( dicedImage vips vipsCC ${THREADED_STEREO_LIB} z)
TARGET_LINK_LIBRARIES( sparseJoin vips vipsCC ${THREADED_STEREO_LIB} z)
TARGET_LINK_LIBRARIES( dicedImage vips vipsCC ${THREADED_STEREO_LIB} ${ZLIB_LIBRARIES})
TARGET_LINK_LIBRARIES( sparseJoin vips vipsCC ${THREADED_STEREO_LIB} ${ZLIB_LIBRARIES})

#TARGET_LINK_LIBRARIES( threshold ${THREADED_STEREO_LIB} )

Expand Down
20 changes: 20 additions & 0 deletions doc/building/#building.org#
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
First build requirements listed in [[file:requirements.org]].

#+title: Building
#+begin_src fish
mkdir builddir
cd builddir
cmake -DCMAKE_PREFIX_PATH=$HOME/.local -GNinja ..
cmake --build .
#+end_src


*** notes

There's a lot of "legacy" linking in the cmake files, that is linking a library like:
#+BEGIN_SRC cmake
target_link_libraries(whatever osg)
#+END_SRC
where osg is not a cmake target. This causes -losg to be added to the compiler command line,
which can cause unexpected symbol search issues. You can set the environment variable ~LIBRARY_PATH~ to
work around this
20 changes: 20 additions & 0 deletions doc/building/building.org
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#+title: Building

First build requirements listed in [[file:requirements.org]].
#+begin_src fish
mkdir builddir
cd builddir
cmake -DCMAKE_PREFIX_PATH=$HOME/.local -GNinja ..
cmake --build .
#+end_src


*** notes

There's a lot of "legacy" linking in the cmake files, that is linking a library like:
#+BEGIN_SRC cmake
target_link_libraries(whatever osg)
#+END_SRC
where osg is not a cmake target. This causes -losg to be added to the compiler command line,
which can cause unexpected symbol search issues. You can set the environment variable ~LIBRARY_PATH~ to
work around this
11 changes: 11 additions & 0 deletions doc/building/requirements.org
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#+title: Requirements
#+description: build requirements for structured
#+keywords: build, dependencies, requirements
#+language: en
#+author: Charles Barto

This file lists working versions of required libraries,
other versions may also work

+ opencv 2.4
+ OpenSceneGraph 3.2
1 change: 1 addition & 0 deletions gts-0.7.6/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)

include(CheckIncludeFile)
include(CheckFunctionExists)

check_function_exists (getopt_long HAVE_GETOPT_LONG)
check_function_exists (getpagesize HAVE_GETPAGESIZE)
Expand Down
1 change: 0 additions & 1 deletion ts-sonar/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
file(GLOB implem_files *.cpp)
file(GLOB header_files *.h)

set(LIB_NAME ${THREADED_STEREO_LIB}-sonar)

include_directories (${EIGEN3_INCLUDE_DIRS})
Expand Down
2 changes: 1 addition & 1 deletion vcgapps/numeric_stuff/ACE/amg_eigen_computation.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <stdio.h>
#include <math.h>
#include <iostream>
#include <malloc.h>
#include <time.h>
#include "defs.h"
Expand All @@ -11,7 +12,6 @@
#include "coarsen_amg.h"
#include "coarsen_match.h"
#include "RQI/rqi.h"
#include <iostream>


/********************************************
Expand Down
3 changes: 2 additions & 1 deletion vrip/src/vrip/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ message(FATAL_ERROR "csh is required please install")
ENDIF()
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/vrip/src/vrip)

INCLUDE_DIRECTORIES( . ${TCL_INCLUDE_PATH} ${TK_INCLUDE_PATH})
#set(CMAKE_INCLUDE_CURRENT_DIR ON)
INCLUDE_DIRECTORIES( ${TCL_INCLUDE_PATH} ${TK_INCLUDE_PATH})
file(COPY vripnew.csh DESTINATION ${PROJECT_SOURCE_DIR}/vrip/bin/)
file(COPY vripsurf.csh DESTINATION ${PROJECT_SOURCE_DIR}/vrip/bin/)
file(RENAME ${PROJECT_SOURCE_DIR}/vrip/bin/vripnew.csh ${PROJECT_SOURCE_DIR}/vrip/bin/vripnew )
Expand Down
1 change: 1 addition & 0 deletions vrip/src/vrip/strings.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

/* module: strings.h */

/* @(#)strings.h 1.25 */
Expand Down
2 changes: 1 addition & 1 deletion vrip/src/vrip/vripGUICmds.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ CONCERNING THIS SOFTWARE. No support is implied or provided.


#include <tcl.h>
#include <DepthMap.h>
#include "DepthMap.h"

int Vrip_PhotoSliceCmd(ClientData, Tcl_Interp *interp,
int argc, const char *argv[]);
Expand Down
6 changes: 4 additions & 2 deletions vsfm/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
set(LIB_DIR ${PROJECT_SOURCE_DIR}/vsfm/lib/)
FIND_PACKAGE(GTK2 REQUIRED)
find_package(PkgConfig REQUIRED)
pkg_check_modules(x11 REQUIRED IMPORTED_TARGET x11)
pkg_check_modules(gtk2 REQUIRED IMPORTED_TARGET gtk+-2.0)
add_executable(VisualSFM dummy.c)
TARGET_LINK_LIBRARIES(VisualSFM ${LIB_DIR}/VisualSFM.a ${LIB_DIR}/lapack.a ${LIB_DIR}/blas.a ${LIB_DIR}/libf2c.a ${LIB_DIR}/libjpeg.a ${GTK2_LIBRARIES} gthread-2.0)
TARGET_LINK_LIBRARIES(VisualSFM ${LIB_DIR}/VisualSFM.a ${LIB_DIR}/lapack.a ${LIB_DIR}/blas.a ${LIB_DIR}/libf2c.a ${LIB_DIR}/libjpeg.a ${GTK2_LIBRARIES} gthread-2.0 PkgConfig::x11 PkgConfig::gtk2)