View unanswered posts | View active topics It is currently Tue Sep 17, 2019 11:34 pm



This topic is locked, you cannot edit posts or make further replies.  [ 12 posts ] 
How do I compile bsnes on Ubuntu x64? 
Author Message
New Member

Joined: Thu Aug 28, 2008 1:51 pm
Posts: 6
Reply with quote
Post How do I compile bsnes on Ubuntu x64?
I tried:

make platform=x compiler=gcc enable_gzip=true

But then I got:

rhy@greenbuntu:~/bsnes_v036/src$ make platform=x compiler=gcc enable_gzip=true
g++ -O3 -fomit-frame-pointer -Ilib -DGZIP_SUPPORT `pkg-config --cflags gtk+-2.0` -c lib/hiro/hiro.cpp -o obj/hiro.o
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
In file included from lib/hiro/gtk/hiro.cpp:1,
from lib/hiro/hiro.cpp:7:
lib/hiro/gtk/hiro.h:4:21: error: gtk/gtk.h: No such file or directory
lib/hiro/gtk/hiro.h:5:22: error: gdk/gdkx.h: No such file or directory
lib/hiro/gtk/hiro.h:6:19: error: cairo.h: No such file or directory
lib/hiro/gtk/hiro.h:7:28: error: gdk/gdkkeysyms.h: No such file or directory
In file included from lib/hiro/gtk/hiro.h:8,
from lib/hiro/gtk/hiro.cpp:1,
from lib/hiro/hiro.cpp:7:
/usr/include/X11/extensions/dpms.h:54: error: expected constructor, destructor, or type conversion before ‘extern’
/usr/include/X11/extensions/dpms.h:55: error: ‘Status’ does not name a type
/usr/include/X11/extensions/dpms.h:56: error: ‘Bool’ does not name a type
/usr/include/X11/extensions/dpms.h:57: error: ‘Status’ does not name a type
/usr/include/X11/extensions/dpms.h:58: error: ‘Bool’ does not name a type
/usr/include/X11/extensions/dpms.h:59: error: ‘Status’ does not name a type
/usr/include/X11/extensions/dpms.h:60: error: ‘Status’ does not name a type
/usr/include/X11/extensions/dpms.h:61: error: ‘Status’ does not name a type
/usr/include/X11/extensions/dpms.h:62: error: ‘Status’ does not name a type
In file included from /usr/include/X11/extensions/XInput.h:55,
from /usr/include/X11/extensions/XTest.h:50,
from lib/hiro/gtk/hiro.h:9,
from lib/hiro/gtk/hiro.cpp:1,
from lib/hiro/hiro.cpp:7:
/usr/include/X11/Xlib.h:93: error: expected constructor, destructor, or type conversion before ‘extern’
In file included from lib/hiro/gtk/hiro.h:13,
from lib/hiro/gtk/hiro.cpp:1,
from lib/hiro/hiro.cpp:7:
lib/hiro/gtk/widget.h:12: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/widget.h:12: error: ‘GtkWidget’ declared as a ‘virtual’ field
lib/hiro/gtk/widget.h:12: error: expected ‘;’ before ‘*’ token
In file included from lib/hiro/gtk/hiro.h:14,
from lib/hiro/gtk/hiro.cpp:1,
from lib/hiro/hiro.cpp:7:
lib/hiro/gtk/window.h:49: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/window.h:49: error: expected ‘;’ before ‘*’ token
lib/hiro/gtk/window.h:50: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/window.h:50: error: expected ‘;’ before ‘*’ token
lib/hiro/gtk/window.h:51: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/window.h:51: error: expected ‘;’ before ‘*’ token
lib/hiro/gtk/window.h:52: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/window.h:52: error: expected ‘;’ before ‘*’ token
lib/hiro/gtk/window.h:53: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/window.h:53: error: expected ‘;’ before ‘*’ token
lib/hiro/gtk/window.h:54: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/window.h:54: error: expected ‘;’ before ‘*’ token
lib/hiro/gtk/window.h:55: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/window.h:55: error: expected ‘;’ before ‘*’ token
In file included from lib/hiro/gtk/hiro.h:15,
from lib/hiro/gtk/hiro.cpp:1,
from lib/hiro/hiro.cpp:7:
lib/hiro/gtk/menucontrol.h:11: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/menucontrol.h:11: error: ‘GtkWidget’ declared as a ‘virtual’ field
lib/hiro/gtk/menucontrol.h:11: error: expected ‘;’ before ‘*’ token
In file included from lib/hiro/gtk/hiro.h:16,
from lib/hiro/gtk/hiro.cpp:1,
from lib/hiro/hiro.cpp:7:
lib/hiro/gtk/menugroup.h:10: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/menugroup.h:10: error: expected ‘;’ before ‘*’ token
lib/hiro/gtk/menugroup.h:11: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/menugroup.h:11: error: expected ‘;’ before ‘*’ token
lib/hiro/gtk/menugroup.h:12: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/menugroup.h:12: error: expected ‘;’ before ‘*’ token
In file included from lib/hiro/gtk/hiro.h:17,
from lib/hiro/gtk/hiro.cpp:1,
from lib/hiro/hiro.cpp:7:
lib/hiro/gtk/menuitem.h:9: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/menuitem.h:9: error: expected ‘;’ before ‘*’ token
lib/hiro/gtk/menuitem.h:10: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/menuitem.h:10: error: expected ‘;’ before ‘*’ token
In file included from lib/hiro/gtk/hiro.h:18,
from lib/hiro/gtk/hiro.cpp:1,
from lib/hiro/hiro.cpp:7:
lib/hiro/gtk/menucheckitem.h:12: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/menucheckitem.h:12: error: expected ‘;’ before ‘*’ token
lib/hiro/gtk/menucheckitem.h:13: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/menucheckitem.h:13: error: expected ‘;’ before ‘*’ token
In file included from lib/hiro/gtk/hiro.h:19,
from lib/hiro/gtk/hiro.cpp:1,
from lib/hiro/hiro.cpp:7:
lib/hiro/gtk/menuradioitem.h:11: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/menuradioitem.h:11: error: expected ‘;’ before ‘*’ token
lib/hiro/gtk/menuradioitem.h:12: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/menuradioitem.h:12: error: expected ‘;’ before ‘*’ token
In file included from lib/hiro/gtk/hiro.h:20,
from lib/hiro/gtk/hiro.cpp:1,
from lib/hiro/hiro.cpp:7:
lib/hiro/gtk/menuseparator.h:9: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/menuseparator.h:9: error: expected ‘;’ before ‘*’ token
lib/hiro/gtk/menuseparator.h:10: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/menuseparator.h:10: error: expected ‘;’ before ‘*’ token
In file included from lib/hiro/gtk/hiro.h:21,
from lib/hiro/gtk/hiro.cpp:1,
from lib/hiro/hiro.cpp:7:
lib/hiro/gtk/formcontrol.h:14: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/formcontrol.h:14: error: ‘GtkWidget’ declared as a ‘virtual’ field
lib/hiro/gtk/formcontrol.h:14: error: expected ‘;’ before ‘*’ token
In file included from lib/hiro/gtk/hiro.h:22,
from lib/hiro/gtk/hiro.cpp:1,
from lib/hiro/hiro.cpp:7:
lib/hiro/gtk/frame.h:10: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/frame.h:10: error: expected ‘;’ before ‘*’ token
lib/hiro/gtk/frame.h:11: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/frame.h:11: error: expected ‘;’ before ‘*’ token
In file included from lib/hiro/gtk/hiro.h:23,
from lib/hiro/gtk/hiro.cpp:1,
from lib/hiro/hiro.cpp:7:
lib/hiro/gtk/canvas.h:12: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/canvas.h:12: error: expected ‘;’ before ‘*’ token
lib/hiro/gtk/canvas.h:18: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/canvas.h:18: error: expected ‘;’ before ‘*’ token
In file included from lib/hiro/gtk/hiro.h:24,
from lib/hiro/gtk/hiro.cpp:1,
from lib/hiro/hiro.cpp:7:
lib/hiro/gtk/label.h:10: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/label.h:10: error: expected ‘;’ before ‘*’ token
lib/hiro/gtk/label.h:11: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/label.h:11: error: expected ‘;’ before ‘*’ token
In file included from lib/hiro/gtk/hiro.h:25,
from lib/hiro/gtk/hiro.cpp:1,
from lib/hiro/hiro.cpp:7:
lib/hiro/gtk/button.h:10: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/button.h:10: error: expected ‘;’ before ‘*’ token
lib/hiro/gtk/button.h:11: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/button.h:11: error: expected ‘;’ before ‘*’ token
In file included from lib/hiro/gtk/hiro.h:26,
from lib/hiro/gtk/hiro.cpp:1,
from lib/hiro/hiro.cpp:7:
lib/hiro/gtk/checkbox.h:13: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/checkbox.h:13: error: expected ‘;’ before ‘*’ token
lib/hiro/gtk/checkbox.h:14: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/checkbox.h:14: error: expected ‘;’ before ‘*’ token
In file included from lib/hiro/gtk/hiro.h:27,
from lib/hiro/gtk/hiro.cpp:1,
from lib/hiro/hiro.cpp:7:
lib/hiro/gtk/radiobox.h:12: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/radiobox.h:12: error: expected ‘;’ before ‘*’ token
lib/hiro/gtk/radiobox.h:13: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/radiobox.h:13: error: expected ‘;’ before ‘*’ token
In file included from lib/hiro/gtk/hiro.h:28,
from lib/hiro/gtk/hiro.cpp:1,
from lib/hiro/hiro.cpp:7:
lib/hiro/gtk/editbox.h:11: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/editbox.h:11: error: expected ‘;’ before ‘*’ token
lib/hiro/gtk/editbox.h:12: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/editbox.h:12: error: expected ‘;’ before ‘*’ token
lib/hiro/gtk/editbox.h:13: error: ISO C++ forbids declaration of ‘GtkTextBuffer’ with no type
lib/hiro/gtk/editbox.h:13: error: expected ‘;’ before ‘*’ token
lib/hiro/gtk/editbox.h:15: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/editbox.h:15: error: expected ‘;’ before ‘*’ token
In file included from lib/hiro/gtk/hiro.h:29,
from lib/hiro/gtk/hiro.cpp:1,
from lib/hiro/hiro.cpp:7:
lib/hiro/gtk/listbox.h:16: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/listbox.h:16: error: expected ‘;’ before ‘*’ token
lib/hiro/gtk/listbox.h:17: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/listbox.h:17: error: expected ‘;’ before ‘*’ token
lib/hiro/gtk/listbox.h:18: error: ISO C++ forbids declaration of ‘GtkListStore’ with no type
lib/hiro/gtk/listbox.h:18: error: expected ‘;’ before ‘*’ token
lib/hiro/gtk/listbox.h:19: error: ISO C++ forbids declaration of ‘GtkCellRenderer’ with no type
lib/hiro/gtk/listbox.h:19: error: expected ‘;’ before ‘*’ token
lib/hiro/gtk/listbox.h:20: error: ISO C++ forbids declaration of ‘GtkTreeViewColumn’ with no type
lib/hiro/gtk/listbox.h:20: error: expected ‘;’ before ‘*’ token
lib/hiro/gtk/listbox.h:21: error: ‘GtkTreeViewColumn’ was not declared in this scope
lib/hiro/gtk/listbox.h:21: error: template argument 1 is invalid
lib/hiro/gtk/listbox.h:22: error: ‘GtkTreeIter’ does not name a type
lib/hiro/gtk/listbox.h:24: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/listbox.h:24: error: expected ‘;’ before ‘*’ token
In file included from lib/hiro/gtk/hiro.h:30,
from lib/hiro/gtk/hiro.cpp:1,
from lib/hiro/hiro.cpp:7:
lib/hiro/gtk/combobox.h:13: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/combobox.h:13: error: expected ‘;’ before ‘*’ token
lib/hiro/gtk/combobox.h:15: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/combobox.h:15: error: expected ‘;’ before ‘*’ token
In file included from lib/hiro/gtk/hiro.h:31,
from lib/hiro/gtk/hiro.cpp:1,
from lib/hiro/hiro.cpp:7:
lib/hiro/gtk/progressbar.h:11: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/progressbar.h:11: error: expected ‘;’ before ‘*’ token
lib/hiro/gtk/progressbar.h:12: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/progressbar.h:12: error: expected ‘;’ before ‘*’ token
In file included from lib/hiro/gtk/hiro.h:32,
from lib/hiro/gtk/hiro.cpp:1,
from lib/hiro/hiro.cpp:7:
lib/hiro/gtk/slider.h:11: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/slider.h:11: error: expected ‘;’ before ‘*’ token
lib/hiro/gtk/slider.h:13: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
lib/hiro/gtk/slider.h:13: error: expected ‘;’ before ‘*’ token
In file included from lib/hiro/gtk/hiro.cpp:1,
from lib/hiro/hiro.cpp:7:
lib/hiro/gtk/hiro.h:56: error: ISO C++ forbids declaration of ‘GdkScreen’ with no type
lib/hiro/gtk/hiro.h:56: error: expected ‘;’ before ‘*’ token
lib/hiro/gtk/hiro.h:57: error: ISO C++ forbids declaration of ‘GdkColormap’ with no type
lib/hiro/gtk/hiro.h:57: error: expected ‘;’ before ‘*’ token
lib/hiro/gtk/hiro.h:58: error: ISO C++ forbids declaration of ‘PangoFontDescription’ with no type
lib/hiro/gtk/hiro.h:58: error: expected ‘;’ before ‘*’ token
lib/hiro/gtk/hiro.h:60: error: ‘PATH_MAX’ was not declared in this scope
In file included from lib/hiro/hiro.cpp:7:
lib/hiro/gtk/hiro.cpp:9: error: variable or field ‘set_font’ declared void
lib/hiro/gtk/hiro.cpp:9: error: ‘GtkWidget’ was not declared in this scope
lib/hiro/gtk/hiro.cpp:9: error: ‘widget’ was not declared in this scope
lib/hiro/gtk/hiro.cpp:9: error: ‘gpointer’ was not declared in this scope
lib/hiro/hiro.cpp:274: error: expected `}' at end of input
make: *** [obj/hiro.o] Error 1

I'm utterly n00b, and would just like a quick 1-5 list of what to do.

Right Click Select Extract here.

Go to /src in terminal.

make .........

Am I missing dependencies?


Tue Sep 16, 2008 5:22 pm
Profile
New Member

Joined: Thu Aug 28, 2008 1:51 pm
Posts: 6
Reply with quote
Post Fixed SOME missing dependencies....
OK, I installed libgtk2.0-dev in synaptic, and now I'm getting this:

rhy@greenbuntu:~/bsnes_v036/src$ make platform=x compiler=gcc enable_gzip=true
g++ -O3 -fomit-frame-pointer -Ilib -DGZIP_SUPPORT `pkg-config --cflags gtk+-2.0` -c lib/hiro/hiro.cpp -o obj/hiro.o
g++ -O3 -fomit-frame-pointer -Ilib -DGZIP_SUPPORT -DVIDEO_GLX -DVIDEO_XV -DVIDEO_SDL -DAUDIO_OPENAL -DAUDIO_OSS -DAUDIO_ALSA -DAUDIO_AO -DINPUT_SDL -DINPUT_X `sdl-config --cflags` -c lib/ruby/ruby.cpp -o obj/ruby.o
In file included from lib/ruby/ruby_impl.cpp:20,
from lib/ruby/ruby.cpp:2:
lib/ruby/video/sdl.cpp:6:31: error: X11/extensions/Xv.h: No such file or directory
lib/ruby/video/sdl.cpp:7:34: error: X11/extensions/Xvlib.h: No such file or directory
In file included from lib/ruby/ruby_impl.cpp:34,
from lib/ruby/ruby.cpp:2:
lib/ruby/audio/alsa.cpp:1:28: error: alsa/asoundlib.h: No such file or directory
In file included from lib/ruby/ruby_impl.cpp:28,
from lib/ruby/ruby.cpp:2:
lib/ruby/video/xv.cpp:10: error: expected constructor, destructor, or type conversion before ‘*’ token
In file included from lib/ruby/ruby_impl.cpp:28,
from lib/ruby/ruby.cpp:2:
lib/ruby/video/xv.cpp:24: error: ISO C++ forbids declaration of ‘XvImage’ with no type
lib/ruby/video/xv.cpp:24: error: expected ‘;’ before ‘*’ token
lib/ruby/video/xv.cpp: In member function ‘bool ruby::pVideoXv::set(ruby::Video::Setting, uintptr_t)’:
lib/ruby/video/xv.cpp:64: error: ‘XvSetPortAttribute’ was not declared in this scope
lib/ruby/video/xv.cpp: In member function ‘void ruby::pVideoXv::refresh(unsigned int, unsigned int)’:
lib/ruby/video/xv.cpp:108: error: ‘xvimage’ was not declared in this scope
lib/ruby/video/xv.cpp:129: error: ‘XvShmPutImage’ was not declared in this scope
lib/ruby/video/xv.cpp: In member function ‘bool ruby::pVideoXv::init()’:
lib/ruby/video/xv.cpp:144: error: ‘XvAdaptorInfo’ was not declared in this scope
lib/ruby/video/xv.cpp:144: error: ‘adaptor_info’ was not declared in this scope
lib/ruby/video/xv.cpp:146: error: ‘XvQueryAdaptors’ was not declared in this scope
lib/ruby/video/xv.cpp:150: error: ‘XvInputMask’ was not declared in this scope
lib/ruby/video/xv.cpp:151: error: ‘XvImageMask’ was not declared in this scope
lib/ruby/video/xv.cpp:158: error: ‘XvFreeAdaptorInfo’ was not declared in this scope
lib/ruby/video/xv.cpp:207: error: ‘XvSetPortAttribute’ was not declared in this scope
lib/ruby/video/xv.cpp:210: error: ‘xvimage’ was not declared in this scope
lib/ruby/video/xv.cpp:210: error: ‘XvShmCreateImage’ was not declared in this scope
In file included from lib/ruby/ruby_impl.cpp:34,
from lib/ruby/ruby.cpp:2:
lib/ruby/audio/alsa.cpp: At global scope:
lib/ruby/audio/alsa.cpp:14: error: ISO C++ forbids declaration of ‘snd_pcm_t’ with no type
lib/ruby/audio/alsa.cpp:14: error: expected ‘;’ before ‘*’ token
lib/ruby/audio/alsa.cpp:15: error: ‘snd_pcm_format_t’ does not name a type
lib/ruby/audio/alsa.cpp:16: error: ‘snd_pcm_uframes_t’ does not name a type
lib/ruby/audio/alsa.cpp:17: error: ‘snd_pcm_uframes_t’ does not name a type
lib/ruby/audio/alsa.cpp: In member function ‘bool ruby::pAudioALSA::set(ruby::Audio::Setting, uintptr_t)’:
lib/ruby/audio/alsa.cpp:51: error: ‘struct ruby::pAudioALSA::<anonymous>’ has no member named ‘handle’
lib/ruby/audio/alsa.cpp:62: error: ‘struct ruby::pAudioALSA::<anonymous>’ has no member named ‘handle’
lib/ruby/audio/alsa.cpp:73: error: ‘struct ruby::pAudioALSA::<anonymous>’ has no member named ‘handle’
lib/ruby/audio/alsa.cpp: In member function ‘void ruby::pAudioALSA::sample(uint16_t, uint16_t)’:
lib/ruby/audio/alsa.cpp:85: error: ‘struct ruby::pAudioALSA::<anonymous>’ has no member named ‘handle’
lib/ruby/audio/alsa.cpp:88: error: ‘struct ruby::pAudioALSA::<anonymous>’ has no member named ‘period_size’
lib/ruby/audio/alsa.cpp:91: error: ‘struct ruby::pAudioALSA::<anonymous>’ has no member named ‘handle’
lib/ruby/audio/alsa.cpp:91: error: ‘snd_pcm_avail_update’ was not declared in this scope
lib/ruby/audio/alsa.cpp:92: error: ‘snd_pcm_sframes_t’ was not declared in this scope
lib/ruby/audio/alsa.cpp:92: error: expected `;' before ‘delay’
lib/ruby/audio/alsa.cpp:93: error: ‘struct ruby::pAudioALSA::<anonymous>’ has no member named ‘handle’
lib/ruby/audio/alsa.cpp:93: error: ‘delay’ was not declared in this scope
lib/ruby/audio/alsa.cpp:93: error: ‘snd_pcm_delay’ was not declared in this scope
lib/ruby/audio/alsa.cpp:95: error: ‘struct ruby::pAudioALSA::<anonymous>’ has no member named ‘handle’
lib/ruby/audio/alsa.cpp:95: error: ‘snd_pcm_prepare’ was not declared in this scope
lib/ruby/audio/alsa.cpp:96: error: ‘struct ruby::pAudioALSA::<anonymous>’ has no member named ‘buffer_size’
lib/ruby/audio/alsa.cpp:96: error: ‘struct ruby::pAudioALSA::<anonymous>’ has no member named ‘period_size’
lib/ruby/audio/alsa.cpp:106: error: ‘snd_pcm_sframes_t’ was not declared in this scope
lib/ruby/audio/alsa.cpp:106: error: expected `;' before ‘written’
lib/ruby/audio/alsa.cpp:107: error: ‘written’ was not declared in this scope
lib/ruby/audio/alsa.cpp:109: error: ‘struct ruby::pAudioALSA::<anonymous>’ has no member named ‘handle’
lib/ruby/audio/alsa.cpp:109: error: ‘snd_pcm_recover’ was not declared in this scope
lib/ruby/audio/alsa.cpp: In member function ‘bool ruby::pAudioALSA::init()’:
lib/ruby/audio/alsa.cpp:126: error: ‘struct ruby::pAudioALSA::<anonymous>’ has no member named ‘handle’
lib/ruby/audio/alsa.cpp:126: error: ‘SND_PCM_STREAM_PLAYBACK’ was not declared in this scope
lib/ruby/audio/alsa.cpp:126: error: ‘snd_pcm_open’ was not declared in this scope
lib/ruby/audio/alsa.cpp:143: error: ‘snd_pcm_hw_params_t’ was not declared in this scope
lib/ruby/audio/alsa.cpp:143: error: ‘hwparams’ was not declared in this scope
lib/ruby/audio/alsa.cpp:144: error: ‘snd_pcm_sw_params_t’ was not declared in this scope
lib/ruby/audio/alsa.cpp:144: error: ‘swparams’ was not declared in this scope
lib/ruby/audio/alsa.cpp:149: error: ‘snd_pcm_hw_params_alloca’ was not declared in this scope
lib/ruby/audio/alsa.cpp:150: error: ‘struct ruby::pAudioALSA::<anonymous>’ has no member named ‘handle’
lib/ruby/audio/alsa.cpp:150: error: ‘snd_pcm_hw_params_any’ was not declared in this scope
lib/ruby/audio/alsa.cpp:155: error: ‘struct ruby::pAudioALSA::<anonymous>’ has no member named ‘handle’
lib/ruby/audio/alsa.cpp:155: error: ‘SND_PCM_ACCESS_RW_INTERLEAVED’ was not declared in this scope
lib/ruby/audio/alsa.cpp:155: error: ‘snd_pcm_hw_params_set_access’ was not declared in this scope
lib/ruby/audio/alsa.cpp:156: error: ‘struct ruby::pAudioALSA::<anonymous>’ has no member named ‘handle’
lib/ruby/audio/alsa.cpp:156: error: ‘struct ruby::pAudioALSA::<anonymous>’ has no member named ‘format’
lib/ruby/audio/alsa.cpp:156: error: ‘snd_pcm_hw_params_set_format’ was not declared in this scope
lib/ruby/audio/alsa.cpp:157: error: ‘struct ruby::pAudioALSA::<anonymous>’ has no member named ‘handle’
lib/ruby/audio/alsa.cpp:157: error: ‘snd_pcm_hw_params_set_channels’ was not declared in this scope
lib/ruby/audio/alsa.cpp:158: error: ‘struct ruby::pAudioALSA::<anonymous>’ has no member named ‘handle’
lib/ruby/audio/alsa.cpp:158: error: ‘snd_pcm_hw_params_set_rate_near’ was not declared in this scope
lib/ruby/audio/alsa.cpp:159: error: ‘struct ruby::pAudioALSA::<anonymous>’ has no member named ‘handle’
lib/ruby/audio/alsa.cpp:159: error: ‘snd_pcm_hw_params_set_period_time_near’ was not declared in this scope
lib/ruby/audio/alsa.cpp:160: error: ‘struct ruby::pAudioALSA::<anonymous>’ has no member named ‘handle’
lib/ruby/audio/alsa.cpp:160: error: ‘snd_pcm_hw_params_set_buffer_time_near’ was not declared in this scope
lib/ruby/audio/alsa.cpp:166: error: ‘struct ruby::pAudioALSA::<anonymous>’ has no member named ‘handle’
lib/ruby/audio/alsa.cpp:166: error: ‘snd_pcm_hw_params’ was not declared in this scope
lib/ruby/audio/alsa.cpp:171: error: ‘struct ruby::pAudioALSA::<anonymous>’ has no member named ‘handle’
lib/ruby/audio/alsa.cpp:171: error: ‘struct ruby::pAudioALSA::<anonymous>’ has no member named ‘buffer_size’
lib/ruby/audio/alsa.cpp:171: error: ‘struct ruby::pAudioALSA::<anonymous>’ has no member named ‘period_size’
lib/ruby/audio/alsa.cpp:171: error: ‘snd_pcm_get_params’ was not declared in this scope
lib/ruby/audio/alsa.cpp:176: error: ‘snd_pcm_sw_params_alloca’ was not declared in this scope
lib/ruby/audio/alsa.cpp:177: error: ‘struct ruby::pAudioALSA::<anonymous>’ has no member named ‘handle’
lib/ruby/audio/alsa.cpp:177: error: ‘snd_pcm_sw_params_current’ was not declared in this scope
lib/ruby/audio/alsa.cpp:182: error: ‘struct ruby::pAudioALSA::<anonymous>’ has no member named ‘handle’
lib/ruby/audio/alsa.cpp:183: error: ‘struct ruby::pAudioALSA::<anonymous>’ has no member named ‘buffer_size’
lib/ruby/audio/alsa.cpp:183: error: ‘struct ruby::pAudioALSA::<anonymous>’ has no member named ‘period_size’
lib/ruby/audio/alsa.cpp:183: error: ‘struct ruby::pAudioALSA::<anonymous>’ has no member named ‘period_size’
lib/ruby/audio/alsa.cpp:183: error: ‘snd_pcm_sw_params_set_start_threshold’ was not declared in this scope
lib/ruby/audio/alsa.cpp:189: error: ‘struct ruby::pAudioALSA::<anonymous>’ has no member named ‘handle’
lib/ruby/audio/alsa.cpp:189: error: ‘snd_pcm_sw_params’ was not declared in this scope
lib/ruby/audio/alsa.cpp:194: error: ‘struct ruby::pAudioALSA::<anonymous>’ has no member named ‘period_size’
lib/ruby/audio/alsa.cpp: In member function ‘void ruby::pAudioALSA::term()’:
lib/ruby/audio/alsa.cpp:199: error: ‘struct ruby::pAudioALSA::<anonymous>’ has no member named ‘handle’
lib/ruby/audio/alsa.cpp:200: error: ‘struct ruby::pAudioALSA::<anonymous>’ has no member named ‘handle’
lib/ruby/audio/alsa.cpp:200: error: ‘snd_pcm_drain’ was not declared in this scope
lib/ruby/audio/alsa.cpp:201: error: ‘struct ruby::pAudioALSA::<anonymous>’ has no member named ‘handle’
lib/ruby/audio/alsa.cpp:201: error: ‘snd_pcm_close’ was not declared in this scope
lib/ruby/audio/alsa.cpp:202: error: ‘struct ruby::pAudioALSA::<anonymous>’ has no member named ‘handle’
lib/ruby/audio/alsa.cpp: In constructor ‘ruby::pAudioALSA::pAudioALSA(ruby::AudioALSA&)’:
lib/ruby/audio/alsa.cpp:212: error: ‘struct ruby::pAudioALSA::<anonymous>’ has no member named ‘handle’
lib/ruby/audio/alsa.cpp:213: error: ‘struct ruby::pAudioALSA::<anonymous>’ has no member named ‘format’
lib/ruby/audio/alsa.cpp:213: error: ‘SND_PCM_FORMAT_S16_LE’ was not declared in this scope
make: *** [obj/ruby.o] Error 1
rhy@greenbuntu:~/bsnes_v036/src$


Tue Sep 16, 2008 5:32 pm
Profile
Reply with quote
Post 
You're just missing lots of development libraries. Unfortunately I don't know their exact package names, as I use Ubuntu.

asound = libalsa
Xv = libxv
XInput stuff = libxtst


Tue Sep 16, 2008 5:35 pm
New Member

Joined: Thu Aug 28, 2008 1:51 pm
Posts: 6
Reply with quote
Post 
I then installed these:

libxvmc-dev (version 2:1.0.4-2ubuntu1) will be installed
libxxf86dga-dev (version 2:1.0.2-1) will be installed
libxxf86misc-dev (version 1:1.0.1-2) will be installed
x11proto-xf86dga-dev (version 2.0.3-1) will be installed
x11proto-xf86misc-dev (version 0.9.2-4ubuntu1) will be installed

and am still getting tons of errors.

thanks in advance.

rhY


Tue Sep 16, 2008 5:51 pm
Profile
New Member

Joined: Thu Aug 28, 2008 1:51 pm
Posts: 6
Reply with quote
Post 
byuu wrote:
You're just missing lots of development libraries. Unfortunately I don't know their exact package names, as I use Ubuntu.

asound = libalsa
Xv = libxv
XInput stuff = libxtst


I AM on Ubuntu... Ubuntu x64. Is there a list of dependencies somewhere?!?

Thanks in advance!


Tue Sep 16, 2008 5:51 pm
Profile
New Member

Joined: Thu Aug 28, 2008 1:51 pm
Posts: 6
Reply with quote
Post 
Well, I got it to compile! I just installed every lib -dev I could find.... Seems to run well!


Tue Sep 16, 2008 6:05 pm
Profile
Regular

Joined: Sat Mar 04, 2006 3:17 pm
Posts: 307
Reply with quote
Post 
Is it actually possible to compile a 64bit version of bsnes? for windows too?

Would the increased register size help performance or weaken it?


Tue Sep 16, 2008 9:07 pm
Profile
ZSNES Shake Shake Prinny
User avatar

Joined: Wed Jul 28, 2004 4:15 pm
Posts: 5615
Location: PAL50, dood !
Reply with quote
Post 
. . .

_________________
皆黙って俺について来い!!
Code:
<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)

Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54


Tue Sep 16, 2008 9:14 pm
Profile
Regular
User avatar

Joined: Tue Mar 07, 2006 10:32 am
Posts: 347
Location: The Netherlands
Reply with quote
Post 
tetsuo55 wrote:
Is it actually possible to compile a 64bit version of bsnes? for windows too?

Would the increased register size help performance or weaken it?

Presumably the advantage on Windows would be the lack of a 32-bit emulation layer. Other than that I think the only difference for bsnes is the use of 64-bit pointers, as it obviously doesn't be use any 64-bit only numbers. (and why would it? The SNES hardly does) On Linux, though, I think it needs to be 64-bit because there's no emulation layer (by default?)


Tue Sep 16, 2008 10:02 pm
Profile
Reply with quote
Post 
The only issue with Win64 is that you'll have to use the slower Windows Fibers API for libco*. This is because Microsoft, as usual, had to go with something completely different from everyone else -- in this case, the ABI specified by System V. The same version of libco runs on all BSDs, Linux, and OS X. But not Windows.

Two problems with me adding a Win64 assembler target: 1) I don't have, nor want, Win64. 2) It's a really horrible ABI that backs up way more registers, including most of the FPU. Yes, the FPU is actually non-volatile in Win64.

That's really only a ~3% speed hit, but it's probably more than you'd gain from using a 64-bit build anyway. Hard to say.

(* that works transparently, by the way. Just compile for a 64-bit target and it'll know to use it.)


Tue Sep 16, 2008 10:27 pm
Regular

Joined: Sat Mar 04, 2006 3:17 pm
Posts: 307
Reply with quote
Post 
Should have expected MS to do something that dumb


Thu Sep 18, 2008 8:54 pm
Profile
Lurker

Joined: Mon Mar 10, 2008 11:36 pm
Posts: 199
Reply with quote
Post 
After reading this. I think Microsoft need quit making tools that doesn't do the same on 32bit and 64bit. All they had to do is marge into one tools so that the tools will work on 32bit and 64bit without a problem. :roll:

_________________
Window Vista Home Premium 32-bit / Intel Core 2 Quad Q6600 2.40Ghz / 3.00 GB RAM / Nvidia GeForce 8500 GT


Wed Dec 17, 2008 2:37 am
Profile
Display posts from previous:  Sort by  
This topic is locked, you cannot edit posts or make further replies.   [ 12 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software.