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

error: undefined symbol: PF::version_string #190

Open
yurivict opened this issue Jun 9, 2019 · 5 comments
Open

error: undefined symbol: PF::version_string #190

yurivict opened this issue Jun 9, 2019 · 5 comments
Assignees
Labels

Comments

@yurivict
Copy link

yurivict commented Jun 9, 2019

Link fails on FreeBSD:

ld: error: undefined symbol: PF::version_string
>>> referenced by mainwindow.cc
>>>               mainwindow.cc.o:(PF::MainWindow::MainWindow()) in archive src/libpfgui.a
@aferrero2707
Copy link
Owner

Could you please provide me the whole cmake and make logs? Thanks!

@yurivict
Copy link
Author

This patch solved the problem:

@@ -482,7 +482,7 @@ ENDIF(APPLE)
 #
 # photoflow executable
 #
-add_executable(photoflow main.cc ${RESOURCE_OBJECT})
+add_executable(photoflow main.cc version.cc ${RESOURCE_OBJECT}) # https://github.com/aferrero2707/PhotoFlow/issues/190
 IF(APPLE)
   set_target_properties(photoflow PROPERTIES LINK_FLAGS " -framework ApplicationServices ")
 ENDIF(APPLE)

You didn't add version.cc to build commands.

@aferrero2707
Copy link
Owner

version.cc is included at either lines 222 or 224 in src/CMakeLists.txt, but something seems to go wrong on FreeBSD... that's why I am interested in the cmake log, and possibly also the cmake parameters you are using.

@aferrero2707 aferrero2707 self-assigned this Sep 2, 2019
@aferrero2707
Copy link
Owner

@yurivict are there any news? Could you provide me the cmake log and the cmake invocation parameters you are using?

Thanks!

@aferrero2707
Copy link
Owner

@yurivict bumping this thread to see if there are any news...

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

2 participants