electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » DIY Hardware and Software » ChucK programming language
Compilation of miniaudicle
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [2 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
nerak99



Joined: Dec 18, 2011
Posts: 6
Location: UK

PostPosted: Fri Dec 30, 2011 8:03 am    Post subject: Compilation of miniaudicle
Subject description: Compiling miniaudicle
Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message AIM Address
nerak99



Joined: Dec 18, 2011
Posts: 6
Location: UK

PostPosted: Fri Dec 30, 2011 8:43 am    Post subject: Compilation issue solved
Subject description: Compilation fixed although still no slound
Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [2 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » ChucK programming language
Jump to:  

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
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use