【问题标题】:Gtk with Eclipse CDTGtk 与 Eclipse CDT
【发布时间】:2013-11-16 09:32:23
【问题描述】:

我安装了 pkg-config 并在构建设置中添加了 pkg-config -cppflags 和 pkg-config --libs 请帮忙 我正在使用 Windows 8 和 Eclipse 开普勒

14:58:32 **** Incremental Build of configuration Debug for project Hi_c_gtk ****
make all 
Building file: ../src/Hi_c_gtk.c
Invoking: Cross GCC Compiler
gcc -O0 -g3 -Wall -c -fmessage-length=0 pkg-config gtkmm-2.4 --cflags -MMD -MP -MF"src/Hi_c_gtk.d" -MT"src/Hi_c_gtk.d" -o "src/Hi_c_gtk.o" "../src/Hi_c_gtk.c"
cygwin warning:
  MS-DOS style path detected: C:\Users\Project\workspace1\Hi_c_gtk\Debug
  Preferred POSIX equivalent is: /cygdrive/c/Users/Project/workspace1/Hi_c_gtk/Debug
  CYGWIN environment variable option "nodosfilewarning" turns off this warning.
  Consult the user's guide for more details about POSIX paths:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
gcc: error: pkg-config: No such file or directory
gcc: error: gtkmm-2.4: No such file or directory
gcc: error: unrecognized command line option ‘--cflags’
src/subdir.mk:18: recipe for target 'src/Hi_c_gtk.o' failed
make: *** [src/Hi_c_gtk.o] Error 1

【问题讨论】:

    标签: c windows makefile gtk eclipse-cdt


    【解决方案1】:

    我了解到您正在尝试在 Windows 上将 GTK 与 Eclipse 集成。 我最近设法在 GNU/Linux 和 Windows 环境中实现了这一点。在 GNU/Linux 上,它就像从 Eclipse 市场安装 pkg-config 并添加所需的库一样简单。 在 Windows 上,我不得不通过修改编译器选项手动配置包含路径。您需要在 Project-C/C++ Build-Settings 上手动添加 GTK+ 请求的所有包含和库。我用的是 Cygwin 的 gcc。

    完整过程在http://irkedrants.blogspot.com.es/2011/02/configuring-eclipse-to-compile-gtk.html上描述

    【讨论】:

      猜你喜欢
      • 2013-09-11
      • 1970-01-01
      • 1970-01-01
      • 2012-07-23
      • 2015-06-01
      • 2021-07-26
      • 2014-02-07
      • 2023-03-30
      • 2011-02-18
      相关资源
      最近更新 更多