Posts: 18
Joined: Jun 2007
Reputation:
0
I'm sure you know....
g++-4.1 -c -O2 -D_LINUX -D_FILE_DEFINED -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I. -I../ -I../linux -I../../guilib -I../lib/UnrarXLib -I../lib/libUPnP/Platinum/ThirdParty/Neptune/Source/Core -I../lib/libUPnP/Platinum/Source/Core -I../lib/libUPnP/Platinum/Source/Devices/MediaServer -I../lib/libUPnP/Platinum/ThirdParty/Neptune/Source/System/Posix FileRTV.cpp -o FileRTV.o
In file included from FileRTV.h:16,
from FileRTV.cpp:6:
../lib/libRTV/interface.h:36:7: warning: no newline at end of file
../lib/libRTV/rtv.h:56: error: ‘u8’ does not name a type
../lib/libRTV/rtv.h:57: error: ‘u16’ does not name a type
../lib/libRTV/rtv.h:58: error: ‘u32’ does not name a type
../lib/libRTV/rtv.h:59: error: ‘u64’ does not name a type
../lib/libRTV/rtv.h:62: error: ‘u8’ has not been declared
../lib/libRTV/rtv.h:63: error: ‘u16’ has not been declared
../lib/libRTV/rtv.h:64: error: ‘u32’ has not been declared
../lib/libRTV/rtv.h:65: error: ‘u64’ has not been declared
../lib/libRTV/interface.h:26: error: ‘u64’ does not name a type
../lib/libRTV/interface.h:31: error: ‘u64’ has not been declared
FileRTV.cpp: In member function ‘bool XFILE::CFileRTV::Open(const char*, const char*, int, bool)’:
FileRTV.cpp:57: error: ‘u64’ was not declared in this scope
FileRTV.cpp:57: error: expected `;' before ‘size’
FileRTV.cpp:58: error: ‘size’ was not declared in this scope
FileRTV.cpp:58: error: ‘rtv_get_filesize’ was not declared in this scope
make[1]: *** [FileRTV.o] Error 1
make[1]: Leaving directory `/home/xbmc/XBMC/xbmc/FileSystem'
Posts: 32
Joined: Jun 2007
Reputation:
0
Would it be worthwhile for us to establish some rules or processes when commiting code? Perhaps each commit can be a branch that gets merged back into the trunk once someone else verifies that everything works.
We seem to be broken quite often, so I just wanted to throw the idea out there.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Thanks for your concern, but we've been working fine for the last 6 years or so with our current policy. SVN is very rarely broken, and I don't recall it ever being broken for more than 24 hours at all.
SVN is cutting edge stuff - very occasionally we forget to commit a file or two, but usually it's fixed within a couple of hours (if not sooner). It's not designed for endusers to depend on, and nor will it ever be.
With that said, however, it's highly unlikely to be broken at any point in time.
Cheers,
Jonathan
Posts: 43
Joined: Aug 2007
Reputation:
0
untg99
Junior Member
Posts: 43
2007-08-06, 07:55
I'm having a very similar problem with build 9837.
Below is what I get at the end of the 'make'
g++-4.1 -o XboxMediaCenter xbmc/*.o xbmc/settings/*.o xbmc/cdrip/*.o guilib/*.o guilib/tinyXML/*.o guilib/common/*.o xbmc/FileSystem/*.o xbmc/FileSystem/VideoDatabaseDirectory/*.o xbmc/FileSystem/MusicDatabaseDirectory/*.o xbmc/visualizations/*.o xbmc/cores/*.o xbmc/cores/paplayer/*.o xbmc/linux/*.o xbmc/lib/sqlLite/*.o xbmc/lib/libscrobbler/*.o xbmc/lib/libPython/*.o xbmc/lib/libPython/xbmcmodule/*.o xbmc/xbox/*.o xbmc/cores/DllLoader/*.o xbmc/cores/DllLoader/exports/*.o xbmc/cores/DllLoader/exports/util/*.o xbmc/utils/*.o xbmc/lib/UnrarXLib/*.o xbmc/lib/libGoAhead/*.o xbmc/cores/dvdplayer/*.o xbmc/cores/dvdplayer/DVDSubtitles/*.o xbmc/cores/dvdplayer/DVDInputStreams/*.o xbmc/cores/dvdplayer/DVDCodecs/*.o xbmc/cores/dvdplayer/DVDCodecs/Audio/*.o xbmc/cores/dvdplayer/DVDCodecs/Video/*.o xbmc/cores/dvdplayer/DVDCodecs/Overlay/*.o xbmc/cores/dvdplayer/DVDDemuxers/*.o xbmc/cores/dvdplayer/DVDCodecs/Overlay/libspucc/*.o xbmc/cores/VideoRenderers/*.o xbmc/lib/libGoAhead/libGoAheadD-i486-linux.a xbmc/lib/libXBMS/libxbms-i486-linux.a xbmc/lib/libUPnP/libupnp-i486-linux.a xbmc/lib/libshout/libshout-i486-linux.a xbmc/lib/libRTV/librtv-i486-linux.a xbmc/lib/libXDAAP/libxdaap-i486-linux.a -lsqlite3 -lsmbclient -llzo -lfribidi -lfreetype -ldl -lcdio -lSDL_mixer -lSDL_image -lSDL -lXinerama -lGLU -lGLEW -lGL -rdynamic
xbmc/cdrip/CDDARipper.o: In function `CCDDARipper::Rip(CStdStr<char> const&, CStdStr<char> const&, MUSIC_INFO::CMusicInfoTag&)':
/home/davos/XBMC/xbmc/cdrip/CDDARipper.cpp:115: warning: the use of `tempnam' is dangerous, better use `mkstemp'
xbmc/cores/paplayer/paplayer_linux.o: In function `PAPlayer::WaitForStream()':
/home/davos/XBMC/xbmc/cores/paplayer/paplayer_linux.cpp:1093: undefined reference to `snd_pcm_wait'
xbmc/cores/paplayer/paplayer_linux.o: In function `PAPlayer::AddPacketsToStream(int, CAudioDecoder&)':
----Snip more of the same...-----
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:82: undefined reference to `snd_pcm_hw_params_set_rate_near'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:83: undefined reference to `snd_strerror'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:85: undefined reference to `snd_pcm_hw_params_set_channels'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:86: undefined reference to `snd_strerror'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:89: undefined reference to `snd_pcm_hw_params_set_period_size_near'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:90: undefined reference to `snd_strerror'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:93: undefined reference to `snd_pcm_hw_params_set_buffer_size_near'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:94: undefined reference to `snd_strerror'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:97: undefined reference to `snd_pcm_hw_params_get_period_time'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:98: undefined reference to `snd_strerror'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:101: undefined reference to `snd_pcm_hw_params'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:102: undefined reference to `snd_strerror'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:104: undefined reference to `snd_pcm_hw_params_free'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:105: undefined reference to `snd_strerror'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:110: undefined reference to `snd_pcm_sw_params_malloc'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:111: undefined reference to `snd_pcm_sw_params_current'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:112: undefined reference to `snd_strerror'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:114: undefined reference to `snd_pcm_sw_params_get_boundary'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:115: undefined reference to `snd_strerror'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:117: undefined reference to `snd_pcm_sw_params_set_stop_threshold'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:118: undefined reference to `snd_strerror'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:120: undefined reference to `snd_pcm_sw_params_set_silence_size'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:121: undefined reference to `snd_strerror'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:123: undefined reference to `snd_pcm_sw_params'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:124: undefined reference to `snd_strerror'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:126: undefined reference to `snd_pcm_sw_params_free'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:127: undefined reference to `snd_strerror'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:129: undefined reference to `snd_pcm_prepare'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:130: undefined reference to `snd_strerror'
collect2: ld returned 1 exit status
make[1]: *** [XboxMediaCenter] Error 1
make[1]: Leaving directory `/home/davos/XBMC'
make: *** [all] Error 2
Not sure if that's an ALSA problem?
I tried reinstalling all the packages that were listed on the HOW-TO page and also alsa-util and alsa-base but to no avail, any ideas as to what I can do to fix this?
Posts: 43
Joined: Aug 2007
Reputation:
0
untg99
Junior Member
Posts: 43
Managed to fix this for those interested with...
sudo apt-get install libsdl1.2debian-alsa
Posts: 43
Joined: Aug 2007
Reputation:
0
untg99
Junior Member
Posts: 43
Could this package install possibly be added to wiki? I tried but the page is locked...
Posts: 119
Joined: Jan 2007
Reputation:
0
pm abazoid,
he has edit powers ^^
or else,
request them yourself (as will I)
Posts: 499
Joined: May 2007
Reputation:
1
d4rk
Team-XBMC Developer
Posts: 499
If you're using ubuntu, the ALSA libs are provided by libasound2 and libasound2-dev. libsdl1.2debian-alsa does not provide ALSA, it installs a version of SDL that has been compiled with ALSA support and therefore installs ALSA as a dependency. libasound2-dev is mentioned in the wiki and README, so I don't think there is anything to add.
Posts: 43
Joined: Aug 2007
Reputation:
0
untg99
Junior Member
Posts: 43
Well, I ran the setup exactly as specified and run the installation for all the packages (I even ran a --reinstall on them when it wasn't working) on two different machines and one worked fine and one didn't work fine.
The one that didn't work, worked after I installed the libsdl1.2debian-alsa package.
I don't know why that was but just saying my experience with it, I got the error that is written here when I tried the 'make'.
Posts: 18
Joined: Aug 2007
Reputation:
0
I'm trying to compile Rev 9922 on Gentoo and also get the alsa error. Alsa-lib and the alsa-headers are present. What could be missing?