Bug 966357 - Eclipse with Autotools and pkg-config project doesn't build
Summary: Eclipse with Autotools and pkg-config project doesn't build
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: eclipse-cdt
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jeff Johnston
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-23 06:58 UTC by gareth foster
Modified: 2016-07-19 10:13 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-07-19 10:13:28 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description gareth foster 2013-05-23 06:58:38 UTC
Description of problem:
There's an upstream description here.

http://code.google.com/p/pkg-config-support-for-eclipse-cdt/issues/detail?id=12

The pkg-config libs and includes are added to the project, but don't seem to be added to the actual makefiles, and so the project doesn't build.

Very annoying as this would allow people to write Gnome apps in C, C++ and Java so much more easily.

Version-Release number of selected component (if applicable):
Latest

How reproducible:
Always

Steps to Reproduce:
1. Create C/C++ Autotools project
2. Add a dependency on GTK+3
3. Try to include gtk.h

Actual results:
Building project fails.

Expected results:
It works.

Additional info:
Upstream bug report http://code.google.com/p/pkg-config-support-for-eclipse-cdt/issues/detail?id=12

Comment 1 Alexander Kurtakov 2014-11-13 10:24:26 UTC
Jeff, would you please take a look at this one.

Comment 2 Jeff Johnston 2014-11-14 17:59:43 UTC
An Autotools project does not automatically manage the Autotool files for you as in the case of a Managed Make project which forms the Makefile on your behalf.  The Makefile is under control of the appropriate Makefile.am/Makefile.in files.

The pkg-config plug-in could conceivably set flags for the configuration that the Makefile.am could use (for example CFLAGS=xxxx, CXXFLAGS=xxxx) which is how Autotools adds options for gcov, gprof, and debugging (see Project Properties->Autotools->Configure Settings->Advanced).  This could be used to add include and library paths for the build, assuming the Makefile.in follows normal C/C++ protocol for compilation/linking.  This might require some consultation as the current exposed APIs might not be sufficient.

Otherwise, the pkg-config plug-in would need to make the Autotool file changes itself.

Comment 3 Jaroslav Reznik 2015-03-03 16:53:12 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22

Comment 4 Fedora End Of Life 2016-07-19 10:13:28 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.