PedestrianDynamics / jupedsim

JuPedSim is an open source pedestrian dynamics simulator
http://jupedsim.org
Other
41 stars 28 forks source link

make process failed #470

Closed gjaeger closed 5 years ago

gjaeger commented 5 years ago

JuPedSim - JPScore

With: cmake .. (cmake_protocol.log)

-- The CXX compiler identification is GNU 8.3.0
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /opt/local/bin/c++
-- Check for working CXX compiler: /opt/local/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- PROJECT_VERSION=0.8.4
-- Setting build type to 'Release' as none was specified.
-- BUILD_TESTING=OFF
-- BUILD_CPPUNIT_TEST=OFF
-- BUILD_DOC=OFF
-- JPSFIRE=OFF
-- AIROUTER=OFF
-- USE_OPENMP=ON
-- BUILD_WITH_ASAN=OFF
-- Found Boost: /opt/local/include (found suitable version "1.66.0", minimum required is "1.65") found components:  filesystem system 
-- Found OpenMP_CXX: -fopenmp (found version "4.5") 
-- Found OpenMP: TRUE (found version "4.5")  
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/gjaeger/Documents/hubs/JuPedSim_github/jpscore/build

The make process (make) (make_protocol.log) ends with an error:

ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make[2]: *** [bin/jpscore] Error 1
make[1]: *** [CMakeFiles/jpscore.dir/all] Error 2
make: *** [all] Error 2

It compiles with

cmake 
-DCMAKE_CXX_COMPILER=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ 
-DCMAKE_BUILD_TYPE=Debug` ..

Before that, I deleted the folder bin in the root directory of jpscore.

gjaeger commented 5 years ago

After I updated boost (1.66->1.70), the error still occurs.

Ozaq commented 5 years ago

@gjaeger Ah I am only linking filesystem for apple clang, I can fix that =) . I will open up a PR asap. Would be nice if you could verify this