Skip to content
This repository has been archived by the owner on Dec 3, 2018. It is now read-only.

Commit

Permalink
libosmium: first successfull build
Browse files Browse the repository at this point in the history
  • Loading branch information
wilhelmberg committed Jan 12, 2015
1 parent 47104c8 commit 8f1a080
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 9 deletions.
29 changes: 21 additions & 8 deletions patches/libosmium.diff
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index 7bbfe73..9cbe615 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -5,7 +5,7 @@ if(GETOPT_MISSING)
endif()

set(SIMPLE_EXAMPLES
- osmium_convert
+ #osmium_convert
osmium_count
osmium_create_node_cache
osmium_debug
diff --git a/include/osmium/util/double.hpp b/include/osmium/util/double.hpp
index 91f4ac7..629853b 100644
--- a/include/osmium/util/double.hpp
Expand All @@ -11,22 +24,22 @@ index 91f4ac7..629853b 100644
namespace osmium {

diff --git a/test/osm-testdata/CMakeLists.txt b/test/osm-testdata/CMakeLists.txt
index 743bb5a..3dc5fbb 100644
index 743bb5a..2a0a695 100644
--- a/test/osm-testdata/CMakeLists.txt
+++ b/test/osm-testdata/CMakeLists.txt
@@ -30,6 +30,7 @@ file(GLOB TESTCASE_CPPS testcases/*.cpp)
@@ -29,6 +29,7 @@ endif()
file(GLOB TESTCASE_CPPS testcases/*.cpp)
add_executable(testdata-testcases testdata-testcases.cpp ${TESTCASE_CPPS})
target_link_libraries(testdata-testcases
+ ${OSMIUM_LIBRARIES}
${OSMIUM_IO_LIBRARIES}
+ Ws2_32.lib
)
add_test(NAME testdata-testcases
COMMAND testdata-testcases
@@ -43,6 +44,7 @@ add_executable(testdata-overview testdata-overview.cpp)
@@ -41,6 +42,7 @@ set_tests_properties(testdata-testcases

add_executable(testdata-overview testdata-overview.cpp)
target_link_libraries(testdata-overview
+ ${OSMIUM_LIBRARIES}
${OSMIUM_IO_LIBRARIES}
${GDAL_LIBRARIES}
+ Ws2_32.lib
)
add_test(NAME testdata-overview
COMMAND testdata-overview ${TESTDATA_DIR}/grid/data/all.osm
1 change: 1 addition & 0 deletions scripts/build_libosmium.bat
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ SET LIBBZIP2=%PKGDIR%\bzip2\libbz2.lib
SET LIBBZIP2=%LIBBZIP2:\=/%

cmake .. ^
-DOsmium_DEBUG=TRUE ^
-DCMAKE_BUILD_TYPE=%BUILD_TYPE% ^
-DBOOST_ROOT=%PKGDIR%\boost ^
-DBoost_PROGRAM_OPTIONS_LIBRARY=%PKGDIR%\boost\stage\lib\libboost_program_options-vc140-mt-1_57.lib ^
Expand Down
4 changes: 3 additions & 1 deletion scripts/build_libosmium_deps.bat
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ IF %ERRORLEVEL% NEQ 0 GOTO ERROR
CALL
IF %ERRORLEVEL% NEQ 0 GOTO ERROR

REM -DCMAKE_BUILD_TYPE=%BUILD_TYPE%

cmake .. ^
-DCMAKE_BUILD_TYPE=%BUILD_TYPE% ^
-DCMAKE_BUILD_TYPE=Dev ^
-DBOOST_ROOT=%PKGDIR%\boost ^
-DBoost_PROGRAM_OPTIONS_LIBRARY=%PKGDIR%\boost\stage\lib\libboost_program_options-vc140-mt-1_57.lib ^
-DOSMPBF_LIBRARY=%PKGDIR%\OSM-binary\deploy\lib\osmpbf.lib ^
Expand Down

0 comments on commit 8f1a080

Please sign in to comment.