Description
Previous ID | SR-145 |
Radar | None |
Original Reporter | terhechte (JIRA User) |
Type | Bug |
Status | Resolved |
Resolution | Done |
Environment
Ubuntu Linux 15.04 with GTK+3
Additional Detail from JIRA
Votes | 8 |
Component/s | Compiler, Package Manager |
Labels | Bug |
Assignee | None |
Priority | Medium |
md5: 0f2c4d0bda8df613a9af477cdc681d26
is duplicated by:
- SR-179 Including Gtk header (gtk/gtk.h) in a module - can't find gdk/gdk.h
Issue Description:
I tried to get GTK running with Swift. To run this, a Linux machine with a working GTK3
installation is needed (could also work with OSX && brew install gtk+3, however I did not try that);
i.e.
`sudo apt-get install libgtk-3-dev`
Initially I tried with GTK but since GTK has dependencies to a lot of other things, I tried something
simpler, i.e. in this case GDK which has only dependencies to X11.
// First try
module CGTK [system] {
umbrella header "/usr/include/gtk-3.0/gdk/gdk.h"
link "gdk-3"
export *
}
Error:
Cloning Packages/CGTK
Compiling Swift Module 'example' (1 sources)
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "/usr/include/gtk-3.0/gdk/gdk.h"
^
/usr/include/gtk-3.0/gdk/gdk.h:30:10: error: 'gdk/gdkconfig.h' file not found
#include <gdk/gdkconfig.h>
More here:
https://gist.github.com/terhechte/c48fff0eb7e581d676b2