Eclipse does not support simple makefile projects with GLib-2.0 dependencies [message #1244565] |
Wed, 12 February 2014 14:29 |
S V Messages: 2 Registered: February 2014 |
Junior Member |
|
|
I created a simple makefile project with a few .c and .h files in Eclipse, depending on glib-2.0.
Just running make from the shell creates the project 100% OK (!)
Additionally, I added includes obtained from pkg-config --cflags glib-2.0 to the IDE
However, when I am running "build project" from Eclipse, which just uses my correct makefile [see (!)] it produces errors saying that glib types like gchar, cannot be resolved.
I have all toolchains installed and read all beginners "howtos" and beyond.
(I do not mention that I also tried creating C-projects, with all options, --cflags and --libs honestly copied from working makefiles and pkg-config to Eclipse's appropriate "project properties" places. To no avail - there are hundreds of errors).
Eclipse is just brain-dead.
I am running Ubuntu 13.10, with latest gcc, autotools, pkg-config. Eclipse Version: 3.8.1 taken from Ubuntu's software repository (installing the latest version from the tarball produces a dead IDE, with all menues gray and non-clickable).
My makefile is as simple as (intentionally simplified, sacrificing effiency):
all:
libtool --mode=link gcc -Wall main1.c sqlite3.c -o s -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -lglib-2.0 -pthread -ldl
(main1.c includes sqlite3.h; sqlite3.c is the SQLite amalgamation)
|
|
|
|
Powered by
FUDForum. Page generated in 0.23600 seconds