Author |
Message |
nerak99
Joined: Dec 18, 2011 Posts: 6 Location: UK
|
Posted: Fri Dec 30, 2011 8:03 am Post subject:
Compilation of miniaudicle Subject description: Compiling miniaudicle |
|
|
The compilation fails on one of the cpp files as follows
[brian@centos miniAudicle-0.2.0]$ make linux-jack
make -f makefile.jack
make[1]: Entering directory `/home/brian/Music/Chuck/miniAudicle-0.2.0'
gcc -o wxw/mAPreferencesWindow.o -D__LINUX_ALSA__ -D__LINUX__ -D__MA_WXWIDGETS__ `wx-config --cppflags` -O3 -c -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__ -Ichuck/src -Iwxw -I/home/brian/Music/Chuck/miniAudicle-0.2.0 wxw/mAPreferencesWindow.cpp
wxw/mAPreferencesWindow.cpp: In member function ‘void mAPreferencesWindow::SelectedAudioOutputChanged()’:
wxw/mAPreferencesWindow.cpp:677:82: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
wxw/mAPreferencesWindow.cpp:693:53: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
wxw/mAPreferencesWindow.cpp: In member function ‘void mAPreferencesWindow::SelectedAudioInputChanged()’:
wxw/mAPreferencesWindow.cpp:730:53: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
wxw/mAPreferencesWindow.cpp: In member function ‘void mAPreferencesWindow::LoadGUIToMiniAudicleAndPreferences()’:
wxw/mAPreferencesWindow.cpp:831:70: error: cast from ‘void*’ to ‘int’ loses precision [-fpermissive]
wxw/mAPreferencesWindow.cpp:840:69: error: cast from ‘void*’ to ‘int’ loses precision [-fpermissive]
wxw/mAPreferencesWindow.cpp:849:81: error: cast from ‘void*’ to ‘int’ loses precision [-fpermissive]
wxw/mAPreferencesWindow.cpp:858:79: error: cast from ‘void*’ to ‘int’ loses precision [-fpermissive]
wxw/mAPreferencesWindow.cpp:867:78: error: cast from ‘void*’ to ‘int’ loses precision [-fpermissive]
wxw/mAPreferencesWindow.cpp:876:78: error: cast from ‘void*’ to ‘int’ loses precision [-fpermissive]
make[1]: *** [wxw/mAPreferencesWindow.o] Error 1
make[1]: Leaving directory `/home/brian/Music/Chuck/miniAudicle-0.2.0'
make: [linux-jack] Error 2 (ignored) |
|
Back to top
|
|
|
nerak99
Joined: Dec 18, 2011 Posts: 6 Location: UK
|
Posted: Fri Dec 30, 2011 8:43 am Post subject:
Compilation issue solved Subject description: Compilation fixed although still no slound |
|
|
By changing the cast in the various error lines I was able to effect compilation.
e.g. Line 831 of mAPreferncesWindow now reads
int dac = *(( int *) audio_output->GetClientData( selected_item ));
Rather than
int dac = ( int ) audio_output->GetClientData( selected_item );
If you apply this to all the error lines and add -lpthread to the makefile.linux in the static chuck that is part of miniaudicle, then it will compile on my system at least. The above fix to a cast will work and it will not do any harm although I do not want to claim I am an expert on Cpp casting.
Monitoring iuisng qjackctl shows the jack connection going when you start the VM.
However, I can still not make any noise with this program. |
|
Back to top
|
|
|
|