-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding a work-around for a Segmentation Fault that I was encountering.
It seems that it was possible for the divconqrecurse to be given a vertex array with 1 or 0 verticies. This would cause an infinite loop causing the crash. I believe that there's already a ticket for this issue: srv#63 Additionally, adding a minor fix to the CMakeLists.txt to allow 'cmake .' to run.
- Loading branch information
Showing
2 changed files
with
47 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
# project | ||
cmake_minimum_required (VERSION 2.6) | ||
project (libviso2) | ||
|
||
# directories | ||
set (LIBVISO2_SRC_DIR src) | ||
|
||
# include directory | ||
include_directories("${LIBVISO2_SRC_DIR}") | ||
|
||
# use sse3 instruction set | ||
if(ARM_CROSS_COMPILATION) | ||
SET(CMAKE_SYSTEM_PROCESSOR arm) | ||
SET(CMAKE_CXX_FLAGS -mfpu=neon) | ||
else(ARM_CROSS_COMPILATION) | ||
add_definitions(-msse3) | ||
endif | ||
|
||
# sources | ||
FILE(GLOB LIBVISO2_SRC_FILES "src/*.cpp") | ||
|
||
# make release version | ||
set(CMAKE_BUILD_TYPE Release) | ||
|
||
# demo program | ||
add_executable(viso2 ${LIBVISO2_SRC_FILES}) | ||
target_link_libraries (viso2 png) | ||
|
||
# project | ||
cmake_minimum_required (VERSION 2.6) | ||
project (libviso2) | ||
|
||
# directories | ||
set (LIBVISO2_SRC_DIR src) | ||
|
||
# include directory | ||
include_directories("${LIBVISO2_SRC_DIR}") | ||
|
||
# use sse3 instruction set | ||
if(ARM_CROSS_COMPILATION) | ||
SET(CMAKE_SYSTEM_PROCESSOR arm) | ||
SET(CMAKE_CXX_FLAGS -mfpu=neon) | ||
else(ARM_CROSS_COMPILATION) | ||
add_definitions(-msse3) | ||
endif(ARM_CROSS_COMPILATION) | ||
|
||
# sources | ||
FILE(GLOB LIBVISO2_SRC_FILES "src/*.cpp") | ||
|
||
# make release version | ||
set(CMAKE_BUILD_TYPE Release) | ||
|
||
# demo program | ||
add_executable(viso2 ${LIBVISO2_SRC_FILES}) | ||
target_link_libraries (viso2 png) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters