Building 0.9.5 'SF_FORMAT_OGG' not declared

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Building 0.9.5 'SF_FORMAT_OGG' not declared

donald.axel
Can anyone give an educated guess on what goes wrong here?
I have libogg and libvorbis, but nevertheless I get these two errors
when building mscore-0.9.5 on my system:

'SF_FORMAT_OGG' was not declared in this scope
SF_FORMAT_VORBIS' was not declared in this scope

Fuller report:

==============================================
saturn:/usr/local/src/mscore-0.9.5/ #gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /mnt/usb1/kernel-drm/gcc/gcc-4.4.1/configure --prefix=/usr/local/gcc-4.4.1 --enable-language=c,c++,objc,java
Thread model: posix
gcc version 4.4.1 (GCC)
saturn:/usr/local/src/mscore-0.9.5/ #uname -a
Linux saturn.saxen 2.6.18-53.1.14.el5 #1 SMP Wed Mar 5 10:12:42 EST 2008 i686 athlon i386 GNU/Linux
saturn:/hjem/sysadm/rpms #rpm -q glibc
glibc-2.5-24.i686
saturn:/hjem/sysadm/rpms #cmake --version
cmake version 2.6-patch 2

 --- --- ---

I get the following error, which saddens me, because I cannot
figure out why the build process complains:

[ 84%] Building CXX object mscore/CMakeFiles/mscore.dir/exportaudio.cpp.o
/usr/local/src/sound/mscore-0.9.5/mscore/mscore/exportaudio.cpp: In member function 'bool Score::saveOgg(const QString&)':
/usr/local/src/sound/mscore-0.9.5/mscore/mscore/exportaudio.cpp:171: error: 'SF_FORMAT_OGG' was not declared in this scope
/usr/local/src/sound/mscore-0.9.5/mscore/mscore/exportaudio.cpp:171: error: 'SF_FORMAT_VORBIS' was not declared in this scope

make[3]: *** [mscore/CMakeFiles/mscore.dir/exportaudio.cpp.o] Error 1
make[3]: Leaving directory `/mnt/usb1/src/sound/mscore-0.9.5/build'
make[2]: *** [mscore/CMakeFiles/mscore.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....

 --- --- ---

libogg.i386                                    2:1.1.3-3.el5         installed  
libogg-devel.i386                              2:1.1.3-3.el5         installed  

 --- --- ---
I must emphasize that there were no other errors in the build log.
There are many warnings, though; some of them may be interesting:

/usr/local/src/sound/mscore-0.9.5/mscore/mscore/capella.cpp: In member function 'int BasicDurationalObj::ticks() const':
/usr/local/src/sound/mscore-0.9.5/mscore/mscore/capella.cpp:1170: warning: 'len' may be used uninitialized in this function

==============================================

Reply | Threaded
Open this post in threaded view
|

Re: Building 0.9.5 'SF_FORMAT_OGG' not declared

David Bolton-2
Donald,

I can't give you exact instructions since I've only built on Windows,
but I believe you also need libsndfile
http://www.mega-nerd.com/libsndfile/

David


donald.axel wrote:

> Can anyone give an educated guess on what goes wrong here?
> I have libogg and libvorbis, but nevertheless I get these two errors
> when building mscore-0.9.5 on my system:
>
> 'SF_FORMAT_OGG' was not declared in this scope
> SF_FORMAT_VORBIS' was not declared in this scope
>
> Fuller report:
>
> ==============================================
> saturn:/usr/local/src/mscore-0.9.5/ #gcc -v
> Using built-in specs.
> Target: i686-pc-linux-gnu
> Configured with: /mnt/usb1/kernel-drm/gcc/gcc-4.4.1/configure
> --prefix=/usr/local/gcc-4.4.1 --enable-language=c,c++,objc,java
> Thread model: posix
> gcc version 4.4.1 (GCC)
> saturn:/usr/local/src/mscore-0.9.5/ #uname -a
> Linux saturn.saxen 2.6.18-53.1.14.el5 #1 SMP Wed Mar 5 10:12:42 EST 2008
> i686 athlon i386 GNU/Linux
> saturn:/hjem/sysadm/rpms #rpm -q glibc
> glibc-2.5-24.i686
> saturn:/hjem/sysadm/rpms #cmake --version
> cmake version 2.6-patch 2
>
>  --- --- ---
>
> I get the following error, which saddens me, because I cannot
> figure out why the build process complains:
>
> [ 84%] Building CXX object mscore/CMakeFiles/mscore.dir/exportaudio.cpp.o
> /usr/local/src/sound/mscore-0.9.5/mscore/mscore/exportaudio.cpp: In member
> function 'bool Score::saveOgg(const QString&)':
> /usr/local/src/sound/mscore-0.9.5/mscore/mscore/exportaudio.cpp:171: error:
> 'SF_FORMAT_OGG' was not declared in this scope
> /usr/local/src/sound/mscore-0.9.5/mscore/mscore/exportaudio.cpp:171: error:
> 'SF_FORMAT_VORBIS' was not declared in this scope
>
> make[3]: *** [mscore/CMakeFiles/mscore.dir/exportaudio.cpp.o] Error 1
> make[3]: Leaving directory `/mnt/usb1/src/sound/mscore-0.9.5/build'
> make[2]: *** [mscore/CMakeFiles/mscore.dir/all] Error 2
> make[2]: *** Waiting for unfinished jobs....
>
>  --- --- ---
>
> libogg.i386                                    2:1.1.3-3.el5        
> installed  
> libogg-devel.i386                              2:1.1.3-3.el5        
> installed  
>
>  --- --- ---
> I must emphasize that there were no other errors in the build log.
> There are many warnings, though; some of them may be interesting:
>
> /usr/local/src/sound/mscore-0.9.5/mscore/mscore/capella.cpp: In member
> function 'int BasicDurationalObj::ticks() const':
> /usr/local/src/sound/mscore-0.9.5/mscore/mscore/capella.cpp:1170: warning:
> 'len' may be used uninitialized in this function
>
> ==============================================
>
>  

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|

Re: Building 0.9.5 'SF_FORMAT_OGG' not declared

lasconic
Administrator
In reply to this post by donald.axel
Indeed, you need libsndfile or you can deactivate the export audio feature in the CmakeLists.txt by toggling HAS_AUDIOFILE

2009/10/4 donald.axel <[hidden email]>

Can anyone give an educated guess on what goes wrong here?
I have libogg and libvorbis, but nevertheless I get these two errors
when building mscore-0.9.5 on my system:

'SF_FORMAT_OGG' was not declared in this scope
SF_FORMAT_VORBIS' was not declared in this scope

Fuller report:

==============================================
saturn:/usr/local/src/mscore-0.9.5/ #gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /mnt/usb1/kernel-drm/gcc/gcc-4.4.1/configure
--prefix=/usr/local/gcc-4.4.1 --enable-language=c,c++,objc,java
Thread model: posix
gcc version 4.4.1 (GCC)
saturn:/usr/local/src/mscore-0.9.5/ #uname -a
Linux saturn.saxen 2.6.18-53.1.14.el5 #1 SMP Wed Mar 5 10:12:42 EST 2008
i686 athlon i386 GNU/Linux
saturn:/hjem/sysadm/rpms #rpm -q glibc
glibc-2.5-24.i686
saturn:/hjem/sysadm/rpms #cmake --version
cmake version 2.6-patch 2

 --- --- ---

I get the following error, which saddens me, because I cannot
figure out why the build process complains:

[ 84%] Building CXX object mscore/CMakeFiles/mscore.dir/exportaudio.cpp.o
/usr/local/src/sound/mscore-0.9.5/mscore/mscore/exportaudio.cpp: In member
function 'bool Score::saveOgg(const QString&)':
/usr/local/src/sound/mscore-0.9.5/mscore/mscore/exportaudio.cpp:171: error:
'SF_FORMAT_OGG' was not declared in this scope
/usr/local/src/sound/mscore-0.9.5/mscore/mscore/exportaudio.cpp:171: error:
'SF_FORMAT_VORBIS' was not declared in this scope

make[3]: *** [mscore/CMakeFiles/mscore.dir/exportaudio.cpp.o] Error 1
make[3]: Leaving directory `/mnt/usb1/src/sound/mscore-0.9.5/build'
make[2]: *** [mscore/CMakeFiles/mscore.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....

 --- --- ---

libogg.i386                                    2:1.1.3-3.el5
installed
libogg-devel.i386                              2:1.1.3-3.el5
installed

 --- --- ---
I must emphasize that there were no other errors in the build log.
There are many warnings, though; some of them may be interesting:

/usr/local/src/sound/mscore-0.9.5/mscore/mscore/capella.cpp: In member
function 'int BasicDurationalObj::ticks() const':
/usr/local/src/sound/mscore-0.9.5/mscore/mscore/capella.cpp:1170: warning:
'len' may be used uninitialized in this function

==============================================


--
View this message in context: http://n2.nabble.com/Building-0-9-5-SF-FORMAT-OGG-not-declared-tp3764927p3764927.html
Sent from the MuseScore Developer mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer


------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|

Re: Building 0.9.5 'SF_FORMAT_OGG' not declared

wschweer
Administrator
In reply to this post by donald.axel
your libsndfile version is too old and does not support ogg vorbis.

Am Sonntag 04 Oktober 2009 20:50:05 schrieb donald.axel:

> Can anyone give an educated guess on what goes wrong here?
> I have libogg and libvorbis, but nevertheless I get these two errors
> when building mscore-0.9.5 on my system:
>
> 'SF_FORMAT_OGG' was not declared in this scope
> SF_FORMAT_VORBIS' was not declared in this scope
>
> Fuller report:
>
> ==============================================
> saturn:/usr/local/src/mscore-0.9.5/ #gcc -v
> Using built-in specs.
> Target: i686-pc-linux-gnu
> Configured with: /mnt/usb1/kernel-drm/gcc/gcc-4.4.1/configure
> --prefix=/usr/local/gcc-4.4.1 --enable-language=c,c++,objc,java
> Thread model: posix
> gcc version 4.4.1 (GCC)
> saturn:/usr/local/src/mscore-0.9.5/ #uname -a
> Linux saturn.saxen 2.6.18-53.1.14.el5 #1 SMP Wed Mar 5 10:12:42 EST 2008
> i686 athlon i386 GNU/Linux
> saturn:/hjem/sysadm/rpms #rpm -q glibc
> glibc-2.5-24.i686
> saturn:/hjem/sysadm/rpms #cmake --version
> cmake version 2.6-patch 2
>
>  --- --- ---
>
> I get the following error, which saddens me, because I cannot
> figure out why the build process complains:
>
> [ 84%] Building CXX object mscore/CMakeFiles/mscore.dir/exportaudio.cpp.o
> /usr/local/src/sound/mscore-0.9.5/mscore/mscore/exportaudio.cpp: In member
> function 'bool Score::saveOgg(const QString&)':
> /usr/local/src/sound/mscore-0.9.5/mscore/mscore/exportaudio.cpp:171: error:
> 'SF_FORMAT_OGG' was not declared in this scope
> /usr/local/src/sound/mscore-0.9.5/mscore/mscore/exportaudio.cpp:171: error:
> 'SF_FORMAT_VORBIS' was not declared in this scope
>
> make[3]: *** [mscore/CMakeFiles/mscore.dir/exportaudio.cpp.o] Error 1
> make[3]: Leaving directory `/mnt/usb1/src/sound/mscore-0.9.5/build'
> make[2]: *** [mscore/CMakeFiles/mscore.dir/all] Error 2
> make[2]: *** Waiting for unfinished jobs....
>
>  --- --- ---
>
> libogg.i386                                    2:1.1.3-3.el5
> installed
> libogg-devel.i386                              2:1.1.3-3.el5
> installed
>
>  --- --- ---
> I must emphasize that there were no other errors in the build log.
> There are many warnings, though; some of them may be interesting:
>
> /usr/local/src/sound/mscore-0.9.5/mscore/mscore/capella.cpp: In member
> function 'int BasicDurationalObj::ticks() const':
> /usr/local/src/sound/mscore-0.9.5/mscore/mscore/capella.cpp:1170: warning:
> 'len' may be used uninitialized in this function
>
> ==============================================
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|

Re: Building 0.9.5 'SF_FORMAT_OGG' not declared

donald.axel
Thank you a lot! That was (almost) easy to solve. Now 0.9.5 is
up and running with sound even if this system has a somewhat impaired
sound system, where only MASTER and PCM shows up in alsamixer.
(I do not know whether that info is relevant or not - the important thing
is that musescore writes notes, saves and plays (and saves soundfiles, too).

After successfully install I directed musescore to the soundfont files.
Prefs - IO, browse for soundfont directory/large soundfont-file.

---   148,398,306  108-02-24 14:06:33    FluidR3_GM.sf2
---     3,201,926  108-02-24 14:08:24    FluidR3_GS.sf2

There is another soundfont file,
I wonder if I should concatenate the two fontfiles?
It seems that MuseScore does not take both or the directory.

After restarting mscore with a file I created with 0.9.4  
http://d-axel.dk/pub/music/Hygge/Fa-do-IIc.mscz
Mscore did not track down the specific instrument-"fonts" but
still only had bright-piano. Specifically the "pizzicato section"
was silent.

Mscore-0.9.5 did not "find" the pizzicato-section until I browsed files
from "synth bass 1" and downwards. I marked a note, and listened.
Double-checked, still no pizz. Changed from "Synth bass 1"  to "Synth bass 2",
"violin", "viola" etc. until pizzicato section and then  hooray, it was there,
the pizz (and other sounds).

I was happily surprised that dynamic markings changes midi-information.

Thank you for this excellent work. It makes my day a happy day :-)

I am going to write my article (in Danish) about the mscx-format and then go through
the feature list for 0.9.5 http://www.musescore.org/en/new-features-musescore-095
and authors. Can I use this picture?

http://d-axel.dk/pub/music/Hygge/WernerSchweer-Bonte-Ganseman.jpg

Thank you again, regards/Donald Axel

wschweer wrote
your libsndfile version is too old and does not support ogg vorbis.

Am Sonntag 04 Oktober 2009 20:50:05 schrieb donald.axel:
> Can anyone give an educated guess on what goes wrong here?
> I have libogg and libvorbis, but nevertheless I get these two errors
> when building mscore-0.9.5 on my system:
>
> 'SF_FORMAT_OGG' was not declared in this scope
> SF_FORMAT_VORBIS' was not declared in this scope
Reply | Threaded
Open this post in threaded view
|

Re: Building 0.9.5 'SF_FORMAT_OGG' not declared

Thomas Bonte
Administrator
Hi Donald,

You are allowed to use the pictures since the license is CC-by which means you need to give attribution to musescore and link to http://www.flickr.com/photos/musescore/3265890793/ 
Just to mention, MuseScore counts over 30 contributors so the picture really is not representative.

donald.axel wrote
I am going to write my article (in Danish) about the mscx-format and then go through
the feature list for 0.9.5 http://www.musescore.org/en/new-features-musescore-095
and authors. Can I use this picture?

http://d-axel.dk/pub/music/Hygge/WernerSchweer-Bonte-Ganseman.jpg

Thank you again, regards/Donald Axel
Reply | Threaded
Open this post in threaded view
|

Re: Building 0.9.5 'SF_FORMAT_OGG' not declared

olavgun
In reply to this post by lasconic

In the file exportaudio.cpp, comment out the content of the function saveOgg:

        //      return saveAudio(name, SF_FORMAT_OGG | SF_FORMAT_VORBIS);

Then everything works, except this, of course. You don't have to deactive
audio export.

Olav



Indeed, you need libsndfile or you can deactivate the export audio feature
in the CmakeLists.txt by toggling HAS_AUDIOFILE


--
View this message in context: http://www.nabble.com/Building-0.9.5-%27SF_FORMAT_OGG%27-not-declared-tp25740888p25763300.html
Sent from the MuseScore Developer mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer