Compile FMIT v0.98.0 on Ubuntu Hardy 8.04

Step-by-Step descriptions of how to do things.
Post Reply
User avatar
^rooker
Site Admin
Posts: 1481
Joined: Fri Aug 29, 2003 8:39 pm

Compile FMIT v0.98.0 on Ubuntu Hardy 8.04

Post by ^rooker »

Here are some notes about compiling FMIT (Free Music Instrument Tuner), and error messages I came across, due to missing dependencies. In order to avoid them in the first place, make sure all dependencies are installed. You can easily get package dependency lists from the repository website for FMIT.

Errormessage:
-- fmit 0.98.0 (install in /usr/local)
CMake Error at CMakeLists.txt:48 (MESSAGE):
No Qt3
Solution: Install the "libqt3-mt-dev" package:

Code: Select all

apt-get install libqt3-mt-dev
Errormessage:
ALSA sound system requested
-- Unable to find ALSA library
CMake Error at CMakeLists.txt:78 (MESSAGE):
Unable to find ALSA library
Solution: Install the "libasound2-dev" package:

Code: Select all

apt-get install libasound2-dev
Errormessage:
/install/fmit/fmit-0.98.0-Source/src/modules/GLErrorHistory.cpp:174:21: error: GL/glut.h: No such file or directory
/install/fmit/fmit-0.98.0-Source/src/modules/GLErrorHistory.cpp: In member function ‘void GLErrorHistory::drawTextTickCent(int, int)’:
/install/fmit/fmit-0.98.0-Source/src/modules/GLErrorHistory.cpp:356: error: ‘GLUT_BITMAP_HELVETICA_12’ was not declared in this scope
/install/fmit/fmit-0.98.0-Source/src/modules/GLErrorHistory.cpp:356: error: ‘glutBitmapCharacter’ was not declared in this scope
/install/fmit/fmit-0.98.0-Source/src/modules/GLErrorHistory.cpp: In member function ‘virtual void GLErrorHistory::paintGL()’:
/install/fmit/fmit-0.98.0-Source/src/modules/GLErrorHistory.cpp:373: error: ‘GLUT_BITMAP_HELVETICA_18’ was not declared in this scope
/install/fmit/fmit-0.98.0-Source/src/modules/GLErrorHistory.cpp:373: error: ‘glutBitmapCharacter’ was not declared in this scope
/install/fmit/fmit-0.98.0-Source/src/modules/GLErrorHistory.cpp:437: error: ‘GLUT_BITMAP_HELVETICA_12’ was not declared in this scope
/install/fmit/fmit-0.98.0-Source/src/modules/GLErrorHistory.cpp:437: error: ‘glutBitmapCharacter’ was not declared in this scope
/install/fmit/fmit-0.98.0-Source/src/modules/GLErrorHistory.cpp:441: error: ‘GLUT_BITMAP_HELVETICA_12’ was not declared in this scope
/install/fmit/fmit-0.98.0-Source/src/modules/GLErrorHistory.cpp:441: error: ‘glutBitmapCharacter’ was not declared in this scope
/install/fmit/fmit-0.98.0-Source/src/modules/GLErrorHistory.cpp:447: error: ‘GLUT_BITMAP_HELVETICA_12’ was not declared in this scope
/install/fmit/fmit-0.98.0-Source/src/modules/GLErrorHistory.cpp:447: error: ‘glutBitmapCharacter’ was not declared in this scope
/install/fmit/fmit-0.98.0-Source/src/modules/GLErrorHistory.cpp:451: error: ‘GLUT_BITMAP_HELVETICA_12’ was not declared in this scope
/install/fmit/fmit-0.98.0-Source/src/modules/GLErrorHistory.cpp:451: error: ‘glutBitmapCharacter’ was not declared in this scope
/install/fmit/fmit-0.98.0-Source/src/modules/GLErrorHistory.cpp:485: error: ‘GLUT_BITMAP_HELVETICA_12’ was not declared in this scope
/install/fmit/fmit-0.98.0-Source/src/modules/GLErrorHistory.cpp:485: error: ‘glutBitmapCharacter’ was not declared in this scope
make[2]: *** [src/modules/CMakeFiles/fmit_modules.dir/GLErrorHistory.o] Error 1
make[1]: *** [src/modules/CMakeFiles/fmit_modules.dir/all] Error 2
Solution: Install the package "freeglut3-dev":

Code: Select all

apt-get install freeglut3-dev
Errormessage:
/install/fmit/fmit-0.98.0-Source/src/../libs/Music/Music.h: In function ‘TYPE Music::invlp(TYPE) [with TYPE = int]’:
/install/fmit/fmit-0.98.0-Source/src/CustomInstrumentTunerForm.cpp:803: instantiated from here
/install/fmit/fmit-0.98.0-Source/src/../libs/Music/Music.h:297: error: call of overloaded ‘pow(int, int)’ is ambiguous
/usr/include/bits/mathcalls.h:154: note: candidates are: double pow(double, double)
/usr/include/c++/4.2/cmath:373: note: long double std::pow(long double, int)
/usr/include/c++/4.2/cmath:369: note: float std::pow(float, int)
/usr/include/c++/4.2/cmath:365: note: double std::pow(double, int)
/usr/include/c++/4.2/cmath:361: note: long double std::pow(long double, long double)
/usr/include/c++/4.2/cmath:357: note: float std::pow(float, float)
make[2]: *** [src/CMakeFiles/fmit.dir/CustomInstrumentTunerForm.o] Error 1
make[1]: *** [src/CMakeFiles/fmit.dir/all] Error 2
make: *** [all] Error 2
Solution:
in Music.h:297, replace:

Code: Select all

return pow(TYPE(10), value/TYPE(20));
with:

Code: Select all

return pow(double(10), double(value/double(20)));
Errormessage:
CMakeFiles/fmit.dir/main.o: In function `main':
main.cpp:(.text+0x30d): undefined reference to `glutInit'
modules/libfmit_modules.a(GLErrorHistory.o): In function `GLErrorHistory::drawTextTickCent(int, int)':
GLErrorHistory.cpp:(.text+0x642): undefined reference to `glutBitmapHelvetica12'
GLErrorHistory.cpp:(.text+0x647): undefined reference to `glutBitmapCharacter'
modules/libfmit_modules.a(GLErrorHistory.o): In function `GLErrorHistory::paintGL()':
GLErrorHistory.cpp:(.text+0x22b5): undefined reference to `glutBitmapHelvetica18'
GLErrorHistory.cpp:(.text+0x22ba): undefined reference to `glutBitmapCharacter'
GLErrorHistory.cpp:(.text+0x2a22): undefined reference to `glutBitmapHelvetica12'
GLErrorHistory.cpp:(.text+0x2a27): undefined reference to `glutBitmapCharacter'
GLErrorHistory.cpp:(.text+0x2b76): undefined reference to `glutBitmapHelvetica12'
GLErrorHistory.cpp:(.text+0x2b7b): undefined reference to `glutBitmapCharacter'
GLErrorHistory.cpp:(.text+0x2e29): undefined reference to `glutBitmapHelvetica12'
GLErrorHistory.cpp:(.text+0x2e2e): undefined reference to `glutBitmapCharacter'
GLErrorHistory.cpp:(.text+0x2f81): undefined reference to `glutBitmapHelvetica12'
GLErrorHistory.cpp:(.text+0x2f86): undefined reference to `glutBitmapCharacter'
GLErrorHistory.cpp:(.text+0x324c): undefined reference to `glutBitmapHelvetica12'
GLErrorHistory.cpp:(.text+0x3251): undefined reference to `glutBitmapCharacter'
...
Solution: No solution, yet
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
Post Reply