Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined symbols for architecture x86_64 mac #129

Open
universewill opened this issue Oct 17, 2016 · 1 comment
Open

Undefined symbols for architecture x86_64 mac #129

universewill opened this issue Oct 17, 2016 · 1 comment
Labels

Comments

@universewill
Copy link

universewill commented Oct 17, 2016

I use "brew install g2o" to install g2o on my mac book pro.

I run cmake command,and encounters error "Undefined symbols for architecture x86_64".
How can i solve this problem?


Enviroment configuration in my CmakeList file is as follow:

cmake_minimum_required(VERSION 3.5)
project(Slam)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libstdc++")

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libc++")

set( EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)

set( LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)

link_directories( ${PROJECT_SOURCE_DIR}/lib)

include_directories(${PROJECT_SOURCE_DIR}/include)

add_subdirectory(${PROJECT_SOURCE_DIR}/src)

Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days.

@github-actions github-actions bot added the Stale label Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant