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 reference to *gtk something* #59

Closed
GreedyTactician opened this issue Apr 25, 2022 · 2 comments
Closed

undefined reference to *gtk something* #59

GreedyTactician opened this issue Apr 25, 2022 · 2 comments

Comments

@GreedyTactician
Copy link

Can't build the project. Getting undefined reference.

Tried to fix it by half haphazardly throwing the following cmake code I found online but it didn't work:
FIND_PACKAGE ( PkgConfig REQUIRED )
PKG_CHECK_MODULES( GTK REQUIRED gtk+-3.0 )
INCLUDE_DIRECTORIES ( ${GTK_INCLUDE_DIRS} )
include_directories(${GTK3_INCLUDE_DIRS})
link_directories(${GTK3_LIBRARY_DIRS})
add_definitions(${GTK3_CFLAGS_OTHER})
...
target_link_libraries(app PUBLIC ${GTK3_LIBRARIES})

libgtk-3-dev is installed an up to date.

@btzy
Copy link
Owner

btzy commented Apr 25, 2022

It might help to take a look the CMakeLists file in the test folder, as well as how other projects import NFDe. The information you have provided is too vague to give any definite answer.

@GreedyTactician
Copy link
Author

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants