You are not logged in.

Read the FAQ and Knowledge Base before posting.
We won't make a 3DS/2DS emulator.



#1 2008-05-02 15:57:21

sparr
Member
Registered: 2008-05-02
Posts: 4

compile problem

desmume-0.8/src/gtk-glade$ make
gcc -DPACKAGE_NAME=\"desmume\" -DPACKAGE_TARNAME=\"desmume\" -DPACKAGE_VERSION=\"0.8\" -DPACKAGE_STRING=\"desmume\ 0.8\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"desmume\" -DVERSION=\"0.8\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIBZ=1 -DHAVE_LIBZZIP=1 -DHAVE_GL_GL_H=1 -DHAVE_GL_GLU_H=1 -DGLADEUI_UNINSTALLED_DIR=\"/home/sparr/download/desmume-0.8/src/gtk-glade/glade/\" -DGETTEXT_PACKAGE=\"desmume\" -DHAVE_LOCALE_H=1 -DHAVE_LC_MESSAGES=1 -DHAVE_BIND_TEXTDOMAIN_CODESET=1 -DHAVE_GETTEXT=1 -DHAVE_DCGETTEXT=1 -DENABLE_NLS=1 -I.  -I../../src -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1   -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DDATADIR=\"/usr/local/share/desmume/glade/\" -DLOCALEDIR=\"/usr/local/share/locale\"   -g -O2 -MT callbacks_IO.o -MD -MP -MF .deps/callbacks_IO.Tpo -c -o callbacks_IO.o callbacks_IO.c
In file included from ../cflash.h:9,
                 from globals.h:92,
                 from callbacks_IO.h:23,
                 from callbacks_IO.c:23:
../fat.h:80: warning: '__packed__' attribute ignored for field of type 'u8[3]'
../fat.h:81: warning: '__packed__' attribute ignored for field of type 'u8[8]'
../fat.h:84: warning: '__packed__' attribute ignored for field of type 'u8'
../fat.h:86: warning: '__packed__' attribute ignored for field of type 'u8'
../fat.h:89: warning: '__packed__' attribute ignored for field of type 'u8'
../fat.h:98: warning: '__packed__' attribute ignored for field of type 'u8'
../fat.h:99: warning: '__packed__' attribute ignored for field of type 'u8'
../fat.h:100: warning: '__packed__' attribute ignored for field of type 'u8'
../fat.h:102: warning: '__packed__' attribute ignored for field of type 'u8[11]'
../fat.h:103: warning: '__packed__' attribute ignored for field of type 'u8[8]'
../fat.h:105: warning: '__packed__' attribute ignored for field of type 'u8[448]'
../fat.h:113: warning: '__packed__' attribute ignored for field of type 'u8[8]'
../fat.h:114: warning: '__packed__' attribute ignored for field of type 'u8[3]'
../fat.h:115: warning: '__packed__' attribute ignored for field of type 'u8'
../fat.h:116: warning: '__packed__' attribute ignored for field of type 'u8'
../fat.h:117: warning: '__packed__' attribute ignored for field of type 'u8'
callbacks_IO.c: In function 'init_GL_capabilities':
callbacks_IO.c:83: error: number of arguments doesn't match prototype
gdk_gl.h:38: error: prototype declaration
callbacks_IO.c: At top level:
callbacks_IO.c:84: error: conflicting types for 'init_GL'
gdk_gl.h:39: error: previous declaration of 'init_GL' was here
callbacks_IO.c:85: error: conflicting types for 'reshape'
gdk_gl.h:43: error: previous declaration of 'reshape' was here
make: *** [callbacks_IO.o] Error 1

The fat.h warnings occur on every file, so I am not worried about those.  The problem is at the bottom, there are conflicting prototypes for some GL functions in the two mentioned files.  Commenting out the less-precise prototypes in callbacks_IO.c in favor of the ones in gdk_gl.h got me past the problem.  More to come...

Offline

#2 2008-05-02 16:04:56

sparr
Member
Registered: 2008-05-02
Posts: 4

Re: compile problem

and then there is this, due to dTools/* not including gl.h

desmume-0.8/src/gtk-glade$ make
gcc -DPACKAGE_NAME=\"desmume\" -DPACKAGE_TARNAME=\"desmume\" -DPACKAGE_VERSION=\"0.8\" -DPACKAGE_STRING=\"desmume\ 0.8\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"desmume\" -DVERSION=\"0.8\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIBZ=1 -DHAVE_LIBZZIP=1 -DHAVE_GL_GL_H=1 -DHAVE_GL_GLU_H=1 -DGLADEUI_UNINSTALLED_DIR=\"/home/sparr/download/desmume-0.8/src/gtk-glade/glade/\" -DGETTEXT_PACKAGE=\"desmume\" -DHAVE_LOCALE_H=1 -DHAVE_LC_MESSAGES=1 -DHAVE_BIND_TEXTDOMAIN_CODESET=1 -DHAVE_GETTEXT=1 -DHAVE_DCGETTEXT=1 -DENABLE_NLS=1 -I.  -I../../src -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1   -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DDATADIR=\"/usr/local/share/desmume/glade/\" -DLOCALEDIR=\"/usr/local/share/locale\"   -g -O2 -MT callbacks_4_tileview.o -MD -MP -MF .deps/callbacks_4_tileview.Tpo -c -o callbacks_4_tileview.o `test -f 'dTools/callbacks_4_tileview.c' || echo './'`dTools/callbacks_4_tileview.c
In file included from dTools/../../cflash.h:9,
                 from dTools/../globals.h:92,
                 from dTools/callbacks_dtools.h:22,
                 from dTools/callbacks_4_tileview.c:22:
dTools/../../fat.h:80: warning: '__packed__' attribute ignored for field of type 'u8[3]'
dTools/../../fat.h:81: warning: '__packed__' attribute ignored for field of type 'u8[8]'
dTools/../../fat.h:84: warning: '__packed__' attribute ignored for field of type 'u8'
dTools/../../fat.h:86: warning: '__packed__' attribute ignored for field of type 'u8'
dTools/../../fat.h:89: warning: '__packed__' attribute ignored for field of type 'u8'
dTools/../../fat.h:98: warning: '__packed__' attribute ignored for field of type 'u8'
dTools/../../fat.h:99: warning: '__packed__' attribute ignored for field of type 'u8'
dTools/../../fat.h:100: warning: '__packed__' attribute ignored for field of type 'u8'
dTools/../../fat.h:102: warning: '__packed__' attribute ignored for field of type 'u8[11]'
dTools/../../fat.h:103: warning: '__packed__' attribute ignored for field of type 'u8[8]'
dTools/../../fat.h:105: warning: '__packed__' attribute ignored for field of type 'u8[448]'
dTools/../../fat.h:113: warning: '__packed__' attribute ignored for field of type 'u8[8]'
dTools/../../fat.h:114: warning: '__packed__' attribute ignored for field of type 'u8[3]'
dTools/../../fat.h:115: warning: '__packed__' attribute ignored for field of type 'u8'
dTools/../../fat.h:116: warning: '__packed__' attribute ignored for field of type 'u8'
dTools/../../fat.h:117: warning: '__packed__' attribute ignored for field of type 'u8'
dTools/callbacks_4_tileview.c: In function 'refresh':
dTools/callbacks_4_tileview.c:123: error: 'GL_COLOR_BUFFER_BIT' undeclared (first use in this function)
dTools/callbacks_4_tileview.c:123: error: (Each undeclared identifier is reported only once
dTools/callbacks_4_tileview.c:123: error: for each function it appears in.)
dTools/callbacks_4_tileview.c:123: error: 'GL_DEPTH_BUFFER_BIT' undeclared (first use in this function)
dTools/callbacks_4_tileview.c:125: error: 'GL_TEXTURE_2D' undeclared (first use in this function)
dTools/callbacks_4_tileview.c:130: error: 'GL_RGBA' undeclared (first use in this function)
dTools/callbacks_4_tileview.c:132: error: 'GL_UNSIGNED_SHORT_1_5_5_5_REV' undeclared (first use in this function)
dTools/callbacks_4_tileview.c:134: error: 'GL_QUADS' undeclared (first use in this function)
dTools/callbacks_4_tileview.c:146: error: 'GL_PROXY_TEXTURE_2D' undeclared (first use in this function)
make: *** [callbacks_4_tileview.o] Error 1

so I added gl.h to globals.h just to make sure it got included everywhere.  More to come...

Offline

#3 2008-05-02 18:31:10

sparr
Member
Registered: 2008-05-02
Posts: 4

Re: compile problem

and, finally...

desmume-0.8/src/gtk-glade$ make
gcc -DPACKAGE_NAME=\"desmume\" -DPACKAGE_TARNAME=\"desmume\" -DPACKAGE_VERSION=\"0.8\" -DPACKAGE_STRING=\"desmume\ 0.8\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"desmume\" -DVERSION=\"0.8\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIBZ=1 -DHAVE_LIBZZIP=1 -DHAVE_GL_GL_H=1 -DHAVE_GL_GLU_H=1 -DGLADEUI_UNINSTALLED_DIR=\"/home/sparr/download/desmume-0.8/src/gtk-glade/glade/\" -DGETTEXT_PACKAGE=\"desmume\" -DHAVE_LOCALE_H=1 -DHAVE_LC_MESSAGES=1 -DHAVE_BIND_TEXTDOMAIN_CODESET=1 -DHAVE_GETTEXT=1 -DHAVE_DCGETTEXT=1 -DENABLE_NLS=1 -I.  -I../../src -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1   -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DDATADIR=\"/usr/local/share/desmume/glade/\" -DLOCALEDIR=\"/usr/local/share/locale\"   -g -O2 -MT callbacks_4_tileview.o -MD -MP -MF .deps/callbacks_4_tileview.Tpo -c -o callbacks_4_tileview.o `test -f 'dTools/callbacks_4_tileview.c' || echo './'`dTools/callbacks_4_tileview.c
In file included from dTools/../../cflash.h:9,
                 from dTools/../globals.h:92,
                 from dTools/callbacks_dtools.h:22,
                 from dTools/callbacks_4_tileview.c:22:
dTools/../../fat.h:80: warning: '__packed__' attribute ignored for field of type 'u8[3]'
dTools/../../fat.h:81: warning: '__packed__' attribute ignored for field of type 'u8[8]'
dTools/../../fat.h:84: warning: '__packed__' attribute ignored for field of type 'u8'
dTools/../../fat.h:86: warning: '__packed__' attribute ignored for field of type 'u8'
dTools/../../fat.h:89: warning: '__packed__' attribute ignored for field of type 'u8'
dTools/../../fat.h:98: warning: '__packed__' attribute ignored for field of type 'u8'
dTools/../../fat.h:99: warning: '__packed__' attribute ignored for field of type 'u8'
dTools/../../fat.h:100: warning: '__packed__' attribute ignored for field of type 'u8'
dTools/../../fat.h:102: warning: '__packed__' attribute ignored for field of type 'u8[11]'
dTools/../../fat.h:103: warning: '__packed__' attribute ignored for field of type 'u8[8]'
dTools/../../fat.h:105: warning: '__packed__' attribute ignored for field of type 'u8[448]'
dTools/../../fat.h:113: warning: '__packed__' attribute ignored for field of type 'u8[8]'
dTools/../../fat.h:114: warning: '__packed__' attribute ignored for field of type 'u8[3]'
dTools/../../fat.h:115: warning: '__packed__' attribute ignored for field of type 'u8'
dTools/../../fat.h:116: warning: '__packed__' attribute ignored for field of type 'u8'
dTools/../../fat.h:117: warning: '__packed__' attribute ignored for field of type 'u8'
dTools/callbacks_4_tileview.c: In function 'refresh':
dTools/callbacks_4_tileview.c:123: error: 'GL_COLOR_BUFFER_BIT' undeclared (first use in this function)
dTools/callbacks_4_tileview.c:123: error: (Each undeclared identifier is reported only once
dTools/callbacks_4_tileview.c:123: error: for each function it appears in.)
dTools/callbacks_4_tileview.c:123: error: 'GL_DEPTH_BUFFER_BIT' undeclared (first use in this function)
dTools/callbacks_4_tileview.c:125: error: 'GL_TEXTURE_2D' undeclared (first use in this function)
dTools/callbacks_4_tileview.c:130: error: 'GL_RGBA' undeclared (first use in this function)
dTools/callbacks_4_tileview.c:132: error: 'GL_UNSIGNED_SHORT_1_5_5_5_REV' undeclared (first use in this function)
dTools/callbacks_4_tileview.c:134: error: 'GL_QUADS' undeclared (first use in this function)
dTools/callbacks_4_tileview.c:146: error: 'GL_PROXY_TEXTURE_2D' undeclared (first use in this function)
make: *** [callbacks_4_tileview.o] Error 1

And I cannot figure this one out.  Those things are defined in gl.h, which is included in gdk_gl.h, which is included in gdk_gl.c, which is compiled and linked here as gdk_gl.o.

Offline

#4 2008-05-02 19:56:19

sparr
Member
Registered: 2008-05-02
Posts: 4

Re: compile problem

these problems were caused by my lack of libgtkglext1-dev
installing that package resolved them.  not deleting this thread so future searches will find it.

Offline

Board footer

Powered by FluxBB