3 Replies - 2072 Views - Last Post: 16 June 2010 - 06:14 PM Rate Topic: -----

#1 chitalian701  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 12
  • Joined: 07-October 09

GTKmm and MinGW

Posted 16 June 2010 - 02:58 PM

Hi,

I'm trying to cross compile a GTKmm app in Linux using MingGW. When I use g++, everything compiles, but there are a ton of errors when using MinGW. Here's what I'm entering:

i586-mingw32msvc-g++ main.cpp -o simple `pkg-config gtkmm-2.4 --cflags --libs`


Here are the errors I'm receiving from it

i586-mingw32msvc-: command not found
joe@joe-laptop:~/Documents$ i586-mingw32msvc-g++ main.cpp -o simple `pkg-config gtkmm-2.4 --cflags --libs`
i586-mingw32msvc-g++: unrecognized option '-pthread'
i586-mingw32msvc-g++: unrecognized option '-pthread'
In file included from /usr/include/cairomm-1.0/cairomm/fontoptions.h:26,
                 from /usr/include/gdkmm-2.4/gdkmm/screen.h:34,
                 from /usr/include/gdkmm-2.4/gdkmm/visual.h:31,
                 from /usr/include/gdkmm-2.4/gdkmm.h:28,
                 from /usr/include/gtkmm-2.4/gtkmm.h:89,
                 from main.cpp:1:
/usr/include/cairo/cairo-ft.h:46:35: error: fontconfig/fontconfig.h: No such file or directory
/usr/include/cairo/cairo-ft.h:47:22: error: ft2build.h: No such file or directory
/usr/include/cairo/cairo-ft.h:48:10: error: #include expects "FILENAME" or <FILENAME>
main.cpp:257:2: warning: no newline at end of file
In file included from /usr/include/cairomm-1.0/cairomm/fontoptions.h:26,
                 from /usr/include/gdkmm-2.4/gdkmm/screen.h:34,
                 from /usr/include/gdkmm-2.4/gdkmm/visual.h:31,
                 from /usr/include/gdkmm-2.4/gdkmm.h:28,
                 from /usr/include/gtkmm-2.4/gtkmm.h:89,
                 from main.cpp:1:
/usr/include/cairo/cairo-ft.h:53: error: ‘FcPattern’ was not declared in this scope
/usr/include/cairo/cairo-ft.h:53: error: ‘pattern’ was not declared in this scope
/usr/include/cairo/cairo-ft.h:57: error: ‘FcPattern’ has not been declared
/usr/include/cairo/cairo-ft.h:60: error: ‘FT_Face’ was not declared in this scope
/usr/include/cairo/cairo-ft.h:61: error: expected primary-expression before ‘int’
/usr/include/cairo/cairo-ft.h:61: error: initializer expression list treated as compound expression
/usr/include/cairo/cairo-ft.h:63: error: ‘FT_Face’ does not name a type
In file included from /usr/include/gdkmm-2.4/gdkmm/screen.h:34,
                 from /usr/include/gdkmm-2.4/gdkmm/visual.h:31,
                 from /usr/include/gdkmm-2.4/gdkmm.h:28,
                 from /usr/include/gtkmm-2.4/gtkmm.h:89,
                 from main.cpp:1:
/usr/include/cairomm-1.0/cairomm/fontoptions.h:146: error: ‘FcPattern’ has not been declared
In file included from /usr/include/cairomm-1.0/cairomm/context.h:25,
                 from /usr/include/pangomm-1.4/pangomm/context.h:42,
                 from /usr/include/pangomm-1.4/pangomm/layout.h:35,
                 from /usr/include/gdkmm-2.4/gdkmm/drawable.h:30,
                 from /usr/include/gdkmm-2.4/gdkmm/gc.h:31,
                 from /usr/include/gdkmm-2.4/gdkmm.h:29,
                 from /usr/include/gtkmm-2.4/gtkmm.h:89,
                 from main.cpp:1:
/usr/include/cairomm-1.0/cairomm/fontface.h:439: error: ‘FT_Face’ has not been declared
/usr/include/cairomm-1.0/cairomm/fontface.h:470: error: ‘FcPattern’ has not been declared
/usr/include/cairomm-1.0/cairomm/fontface.h:473: error: expected `)' before ‘face’
/usr/include/cairomm-1.0/cairomm/fontface.h:474: error: expected `)' before ‘*’ token
In file included from /usr/include/cairomm-1.0/cairomm/context.h:29,
                 from /usr/include/pangomm-1.4/pangomm/context.h:42,
                 from /usr/include/pangomm-1.4/pangomm/layout.h:35,
                 from /usr/include/gdkmm-2.4/gdkmm/drawable.h:30,
                 from /usr/include/gdkmm-2.4/gdkmm/gc.h:31,
                 from /usr/include/gdkmm-2.4/gdkmm.h:29,
                 from /usr/include/gtkmm-2.4/gtkmm.h:89,
                 from main.cpp:1:
/usr/include/cairomm-1.0/cairomm/scaledfont.h:270: error: ‘FT_Face’ does not name a type



Anyone know what's going on? I'll really appreciate if somebody can point me in the right direction.

Thanks again.

Is This A Good Question/Topic? 0
  • +

Replies To: GTKmm and MinGW

#2 Munawwar  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 162
  • View blog
  • Posts: 457
  • Joined: 20-January 10

Re: GTKmm and MinGW

Posted 16 June 2010 - 03:17 PM

Means fontconfig/fontconfig.h and ft2build.h cannot be found.
I don't know what i586-mingw32msvc is for?
Was This Post Helpful? 0
  • +
  • -

#3 chitalian701  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 12
  • Joined: 07-October 09

Re: GTKmm and MinGW

Posted 16 June 2010 - 05:22 PM

i586-mingw32msvc is the mingw compiler
Was This Post Helpful? 0
  • +
  • -

#4 Oler1s  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1395
  • View blog
  • Posts: 3,884
  • Joined: 04-June 09

Re: GTKmm and MinGW

Posted 16 June 2010 - 06:14 PM

Have you setup freetype on your system? Looks like freetype is missing.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1