Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[build] build error in window.c #17

Closed
nodiscc opened this issue Feb 28, 2016 · 3 comments
Closed

[build] build error in window.c #17

nodiscc opened this issue Feb 28, 2016 · 3 comments

Comments

@nodiscc
Copy link

nodiscc commented Feb 28, 2016

[...]
$ dpkg-buildpackage
[...]
gcc -DHAVE_CONFIG_H -I. -I..    -g -Wall -O2 -DPACKAGE_DATA_DIR=\""/usr/share"\" -DPACKAGE_LOCALE_DIR=\""/usr//locale"\" -DIMAGES_DIR=\"\" -I../lib -I../lib/samplecat -I../lib/file_manager -I../lib/waveform -I../xdgmime -I./dir_tree -I./gimp   -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/gtkglext-1.0 -I/usr/lib/gtkglext-1.0/include    -I/usr/include/x86_64-linux-gnu  -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include   -g -O2 -DNDEBUG -pipe  -fmessage-length=139 -fdiagnostics-show-location=every-line -c -o application.o application.c
gcc -DHAVE_CONFIG_H -I. -I..    -g -Wall -O2 -DPACKAGE_DATA_DIR=\""/usr/share"\" -DPACKAGE_LOCALE_DIR=\""/usr//locale"\" -DIMAGES_DIR=\"\" -I../lib -I../lib/samplecat -I../lib/file_manager -I../lib/waveform -I../xdgmime -I./dir_tree -I./gimp   -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/gtkglext-1.0 -I/usr/lib/gtkglext-1.0/include    -I/usr/include/x86_64-linux-gnu  -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include   -g -O2 -DNDEBUG -pipe  -fmessage-length=139 -fdiagnostics-show-location=every-line -c -o list_store.o list_store.c
gcc -DHAVE_CONFIG_H -I. -I..    -g -Wall -O2 -DPACKAGE_DATA_DIR=\""/usr/share"\" -DPACKAGE_LOCALE_DIR=\""/usr//locale"\" -DIMAGES_DIR=\"\" -I../lib -I../lib/samplecat -I../lib/file_manager -I../lib/waveform -I../xdgmime -I./dir_tree -I./gimp   -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/gtkglext-1.0 -I/usr/lib/gtkglext-1.0/include    -I/usr/include/x86_64-linux-gnu  -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include   -g -O2 -DNDEBUG -pipe  -fmessage-length=139 -fdiagnostics-show-location=every-line -c -o window.o window.c
window.c:123:7: error: unknown type name 'AGlActor'
       AGlActor*   spp;
       ^
window.c:124:7: error: unknown type name 'AGlActor'
       AGlActor*   spinner;
       ^
window.c: In function 'waveform_panel_new':
window.c:1353:28: warning: implicit declaration of function 'agl_get_gl_context' 
window.c:1353:28: warning: [-Wimplicit-function-declaration]
  waveform_view_plus_set_gl(agl_get_gl_context());
                            ^
window.c:1353:28: warning: passing argument 1 of 'waveform_view_plus_set_gl' makes pointer 
window.c:1353:28: warning: from integer without a cast [-Wint-conversion]
In file included from window.c:44:0:
../lib/waveform/waveform/view_plus.h:73:19: note: expected 'GdkGLContext * {aka struct 
../lib/waveform/waveform/view_plus.h:73:19: note: _GdkGLContext *}' but argument is of type 
../lib/waveform/waveform/view_plus.h:73:19: note: 'int'
 void              waveform_view_plus_set_gl        (GdkGLContext*);
                   ^
window.c:1356:2: error: unknown type name 'AGlActor'
  AGlActor* text_layer = waveform_view_plus_add_layer(view, text_actor(NULL), 3);
  ^
window.c:1356:25: warning: implicit declaration of function 'waveform_view_plus_add_layer' 
window.c:1356:25: warning: [-Wimplicit-function-declaration]
  AGlActor* text_layer = waveform_view_plus_add_layer(view, text_actor(NULL), 3);
                         ^
window.c:1356:60: warning: implicit declaration of function 'text_actor' 
window.c:1356:60: warning: [-Wimplicit-function-declaration]
  AGlActor* text_layer = waveform_view_plus_add_layer(view, text_actor(NULL), 3);
                                                            ^
window.c:1356:25: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
  AGlActor* text_layer = waveform_view_plus_add_layer(view, text_actor(NULL), 3);
                         ^
window.c:1357:2: warning: implicit declaration of function 'text_actor_set_colour' 
window.c:1357:2: warning: [-Wimplicit-function-declaration]
  text_actor_set_colour((TextActor*)text_layer, 0x000000bb, 0xffffffbb);
  ^
window.c:1357:25: error: 'TextActor' undeclared (first use in this function)
  text_actor_set_colour((TextActor*)text_layer, 0x000000bb, 0xffffffbb);
                         ^
window.c:1357:25: note: each undeclared identifier is reported only once for each function it appears in
window.c:1357:35: error: expected expression before ')' token
  text_actor_set_colour((TextActor*)text_layer, 0x000000bb, 0xffffffbb);
                                   ^
window.c:1359:57: warning: implicit declaration of function 'wf_spp_actor' 
window.c:1359:57: warning: [-Wimplicit-function-declaration]
  window.layers.spp = waveform_view_plus_add_layer(view, wf_spp_actor(waveform_view_plus_get_actor(view)), 0);
                                                         ^
window.c:1359:70: warning: implicit declaration of function 'waveform_view_plus_get_actor' 
window.c:1359:70: warning: [-Wimplicit-function-declaration]
  window.layers.spp = waveform_view_plus_add_layer(view, wf_spp_actor(waveform_view_plus_get_actor(view)), 0);
                                                                      ^
window.c:1359:20: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
  window.layers.spp = waveform_view_plus_add_layer(view, wf_spp_actor(waveform_view_plus_get_actor(view)), 0);
                    ^
window.c:1361:61: warning: implicit declaration of function 'wf_spinner' 
window.c:1361:61: warning: [-Wimplicit-function-declaration]
  window.layers.spinner = waveform_view_plus_add_layer(view, wf_spinner(NULL), 0);
                                                             ^
window.c:1361:24: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
  window.layers.spinner = waveform_view_plus_add_layer(view, wf_spinner(NULL), 0);
                        ^
window.c:1356:12: warning: unused variable 'text_layer' [-Wunused-variable]
  AGlActor* text_layer = waveform_view_plus_add_layer(view, text_actor(NULL), 3);
            ^
window.c: In function 'waveform_on_position':
window.c:1439:4: warning: implicit declaration of function 'wf_spp_actor_set_time' 
window.c:1439:4: warning: [-Wimplicit-function-declaration]
    wf_spp_actor_set_time((SppActor*)window.layers.spp, waveform_is_playing() ? app->play.position : UINT32_MAX);
    ^
window.c:1439:27: error: 'SppActor' undeclared (first use in this function)
    wf_spp_actor_set_time((SppActor*)window.layers.spp, waveform_is_playing() ? app->play.position : UINT32_MAX);
                           ^
window.c:1439:36: error: expected expression before ')' token
    wf_spp_actor_set_time((SppActor*)window.layers.spp, waveform_is_playing() ? app->play.position : UINT32_MAX);
                                    ^
window.c: In function 'waveform_on_stop':
window.c:1450:3: error: unknown type name 'AGlActor'
   AGlActor* spp = waveform_view_plus_get_layer((WaveformViewPlus*)window.waveform, 5);
   ^
window.c:1450:19: warning: implicit declaration of function 'waveform_view_plus_get_layer' 
window.c:1450:19: warning: [-Wimplicit-function-declaration]
   AGlActor* spp = waveform_view_plus_get_layer((WaveformViewPlus*)window.waveform, 5);
                   ^
window.c:1450:19: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
window.c:1452:27: error: 'SppActor' undeclared (first use in this function)
    wf_spp_actor_set_time((SppActor*)spp, UINT32_MAX);
                           ^
window.c:1452:36: error: expected expression before ')' token
    wf_spp_actor_set_time((SppActor*)spp, UINT32_MAX);
                                    ^
window.c: In function 'spectrogram_new':
window.c:1515:32: warning: passing argument 1 of 'gl_spectrogram_set_gl_context' makes 
window.c:1515:32: warning: pointer from integer without a cast [-Wint-conversion]
  gl_spectrogram_set_gl_context(agl_get_gl_context());
                                ^
In file included from window.c:49:0:
gl_spectrogram_view.h:42:6: note: expected 'GdkGLContext * {aka struct _GdkGLContext *}' but 
gl_spectrogram_view.h:42:6: note: argument is of type 'int'
 void gl_spectrogram_set_gl_context (GdkGLContext* _glcontext);
      ^
window.c: In function 'update_waveform_view':
window.c:1628:2: warning: implicit declaration of function 'wf_spinner_start' 
window.c:1628:2: warning: [-Wimplicit-function-declaration]
  wf_spinner_start((WfSpinner*)window.layers.spinner);
  ^
window.c:1628:20: error: 'WfSpinner' undeclared (first use in this function)
  wf_spinner_start((WfSpinner*)window.layers.spinner);
                    ^
window.c:1628:30: error: expected expression before ')' token
  wf_spinner_start((WfSpinner*)window.layers.spinner);
                              ^
window.c: In function 'on_loaded':
window.c:1632:3: warning: implicit declaration of function 'wf_spinner_stop' 
window.c:1632:3: warning: [-Wimplicit-function-declaration]
   wf_spinner_stop((WfSpinner*)window.layers.spinner);
   ^
window.c:1632:30: error: expected expression before ')' token
   wf_spinner_stop((WfSpinner*)window.layers.spinner);
                              ^
window.c: In function 'update_waveform_view':
window.c:1635:2: error: too many arguments to function 'waveform_view_plus_load_file'
  waveform_view_plus_load_file(view, sample->online ? sample->full_path : NULL, on_loaded, NULL);
  ^
In file included from window.c:44:0:
../lib/waveform/waveform/view_plus.h:76:19: note: declared here
 void              waveform_view_plus_load_file     (WaveformViewPlus*, const char*); //be careful, it force loads, even if already loaded.
                   ^
window.c:1647:2: error: unknown type name 'AGlActor'
  AGlActor* text_layer = waveform_view_plus_get_layer(view, 3);
  ^
window.c:1647:25: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
  AGlActor* text_layer = waveform_view_plus_get_layer(view, 3);
                         ^
window.c:1662:3: warning: implicit declaration of function 'text_actor_set_text' 
window.c:1662:3: warning: [-Wimplicit-function-declaration]
   text_actor_set_text(((TextActor*)text_layer), g_strdup(sample->name), text);
   ^
window.c:1662:25: error: 'TextActor' undeclared (first use in this function)
   text_actor_set_text(((TextActor*)text_layer), g_strdup(sample->name), text);
                         ^
window.c:1662:35: error: expected expression before ')' token
   text_actor_set_text(((TextActor*)text_layer), g_strdup(sample->name), text);
                                   ^
make[4]: *** [window.o] Error 1
Makefile:744: recipe for target 'window.o' failed
make[4]: Leaving directory '/home/bsp/Téléchargements/samplecat/src'
make[3]: *** [all-recursive] Error 1
Makefile:934: recipe for target 'all-recursive' failed
make[3]: Leaving directory '/home/bsp/Téléchargements/samplecat/src'
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
Makefile:541: recipe for target 'all-recursive' failed
make[2]: Leaving directory '/home/bsp/Téléchargements/samplecat'
Makefile:430: recipe for target 'all' failed
make[1]: Leaving directory '/home/bsp/Téléchargements/samplecat'
dh_auto_build: make -j1 returned exit code 2
debian/rules:4: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
@ayyi
Copy link
Owner

ayyi commented Feb 28, 2016

Hi
It appears that the libwaveform submodule is not present.
Possibly the steps in the README:

  git submodule init
  git submodule update

were not done.
As you are compiling using dpkg-buildpackage I will assume that this is a problem with the debian packaging and deal with it as part of issue #15
Cheers

@ayyi ayyi closed this as completed Feb 28, 2016
@nodiscc
Copy link
Author

nodiscc commented Feb 29, 2016

I had updated the waveform submodule, and still get this issue. I will retry compiling with the standard make procedure. What steps should I follow to compile and install it properly? There's no configure or Makefile.

@ayyi
Copy link
Owner

ayyi commented Feb 29, 2016

Ok, thanks for the update.
The tarball releases have configure and Makefile, but if using the repository directly, you need to run ./autogen.sh
Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants