FreeBSD Bugzilla – Attachment 211111 Details for
Bug 243525
graphics/poppler-glib: c++: error: linker command failed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
[patch] fix for "cannot fine -lgtk-3"
pr-poppler-gtk-tests-build-fix.diff (text/plain), 1.38 KB, created by
John Hein
on 2020-01-27 19:07:26 UTC
(
hide
)
Description:
[patch] fix for "cannot fine -lgtk-3"
Filename:
MIME Type:
Creator:
John Hein
Created:
2020-01-27 19:07:26 UTC
Size:
1.38 KB
patch
obsolete
>Index: files/patch-glib-demo-CMakeLists.txt >=================================================================== >--- files/patch-glib-demo-CMakeLists.txt (nonexistent) >+++ files/patch-glib-demo-CMakeLists.txt (working copy) >@@ -0,0 +1,16 @@ >+Fix this error: >+/usr/bin/ld: cannot find -lgtk-3 >+see https://stackoverflow.com/questions/29191855/what-is-the-proper-way-to-use-pkg-config-from-cmake >+need to add -L paths as well as -lgtk-3; try to leverage pkg-config >+ Note: earlier attempt to change GTK3_LIBRARIES to PkgConfig::GTK3 didn't add -L paths to link.txt >+ >+--- glib/demo/CMakeLists.txt.orig 2019-12-28 12:18:51 UTC >++++ glib/demo/CMakeLists.txt >+@@ -27,4 +27,6 @@ >+ taggedstruct.c >+ ) >+ poppler_add_test(poppler-glib-demo BUILD_GTK_TESTS ${poppler_glib_demo_SRCS}) >+-target_link_libraries(poppler-glib-demo ${CAIRO_LIBRARIES} poppler-glib ${GTK3_LIBRARIES}) >++find_package(PkgConfig REQUIRED) >++pkg_check_modules(GTK3 REQUIRED IMPORTED_TARGET gtk+-3.0) >++target_link_libraries(poppler-glib-demo ${CAIRO_LIBRARIES} poppler-glib PkgConfig::GTK3) > >Property changes on: files/patch-glib-demo-CMakeLists.txt >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
jcfyecrayz
:
maintainer-approval?
(
desktop
)
Actions:
View
|
Diff
Attachments on
bug 243525
:
210973
| 211111