Author |
Message |
moudi
Joined: Oct 07, 2006 Posts: 63 Location: Bern Switzerland
|
|
Back to top
|
|
|
blue hell
Site Admin
Joined: Apr 03, 2004 Posts: 24075 Location: The Netherlands, Enschede
Audio files: 277
G2 patch files: 320
|
Posted: Mon Nov 19, 2007 4:49 pm Post subject:
|
|
|
I think it would be useful to have build directions for this as well! _________________ Jan
also .. could someone please turn down the thermostat a bit.
|
|
Back to top
|
|
|
moudi
Joined: Oct 07, 2006 Posts: 63 Location: Bern Switzerland
|
Posted: Tue Nov 20, 2007 2:55 pm Post subject:
|
|
|
Blue Hell wrote: | I think it would be useful to have build directions for this as well! |
yep, here we go...
Code: | How to build an ASIO miniAudicle on Windows with Visual Studio 2005
Some of the mentioned steps and requirements came from other people in that thread:
http://electro-music.com/forum/topic-20796.html
i'm very thankful for all the hints and help i got in that thread.
Some of the terms i use here could be different on english machines because my installation is in german
and i'm trying to translate them to english synonyms. i hope haven't forgot anything...
1) First of all you need to download (and if needed install) the following sources/components.
- miniAudicle Sources (take the ones for linux, since there are none for Win)
http://audicle.cs.princeton.edu/mini/release/files/miniAudicle-0.1.3.8.tgz
- wxWidgets (the wxMSW package) i took version 2.6.4, the one with the installer.
i assume it should also be possible with the newer version, but i haven't tried it so far.
http://prdownloads.sourceforge.net/wxwindows/wxMSW-2.6.4-Setup.exe
- Windows Platform SDK
http://msdn2.microsoft.com/en-us/vstudio/aa700755.aspx
- DirectX SDK
http://msdn2.microsoft.com/en-us/xna/aa937788.aspx
- RTAudio
http://www.music.mcgill.ca/~gary/rtaudio
2) Build the wxWidgets Libraries.
Open the <wxWidgets>\build\msw\wx.dsw with the Visual Studio and convert all included projects to the actual version.
Next you need to compile the needed projects. Use the Debug and/or Release configurations, the others aren't needed.
Probably you won't need all of the projects but i just made all of them, and because there are dependencies among themselves,
it would be the simplest to follow the order of compiling i've found:
- wxtiff
- wxjpeg
- wxpng
- wxzlib
- wxregex
- wxexpat
- base
- qa
- odbc
- net
- media
- html
- gl
- dbgrid
- core
- adv
- xml
- xrc
Once you've compiled the basic libraries, you need to compile the stc library which is part of the contribution package.
you can use the <wxWidgets>\contrib\build\stc\stc.dsw file to compile this library (also use the Debug and/or Release configurations).
3) Add the additional needed linker paths in your visual studio environment.
I added them in the <Extras>Options->Projects and Solutions->VC++Directories>
Please note that i don't mention the ones for the Platform- and DirectX SDK's. You should be able to find out them by reading the HowTo's
provided in the links above.
I've made the following entries for the include directories:
- <wxWidgets>\include
- <wxWidgets>\lib\vc_lib\mswd
- <wxWidgets>\contrib\include
The following entries for the Libraries directories:
- <wxWidgets>\lib\vc_lib
Dunno why, but the added entries by the wxWidgets installer weren't working. i think you can remove them.
4) Correct/remove the following typos:
- ugen_xxx.cpp
line 2590 change from: char * format = strrchr( filename, '.');
to: char * format = (char *) strrchr( filename, '.');
- rtaudio.cpp
lines 4891 and 4914 change from: EM_poplog():
to: EM_poplog();
line 5137 and 5138 from: if ( mode == INPUT && stream_.mode == OUTPUT && stream_.bufferSize != *bufferSize )
std::cerr << "Possible input/output buffersize discrepancy!" << std::endl;
to: //if ( mode == INPUT && stream_.mode == OUTPUT && stream_.bufferSize != *bufferSize )
//std::cerr << "Possible input/output buffersize discrepancy!" << std::endl;
5) Add the following part:
#define _HAS_ITERATOR_DEBUGGING 0
#define _SECURE_SCL 0
in chuck_oo.cpp before #include "chuck_oo.h"
6) Copy the asio directory and its content of the RTAudio distribution to the chuck source directory of your miniAudicle environment.
The directory structure should look like this <miniAudicle-0.1.3.8\chuck-1.2.1.1\src\asio
Then add the following source files from this asio directory to the source files of your vs-project:
- asio.h
- asio.cpp
- asiodrivers.h
- asiodrivers.cpp
- asiolist.h
- asiolist.cpp
- asiosys.h
7) Use the following preprocessor settings:
_DEBUG
WIN32
_WINDOWS
__WINDOWS_ASIO__
__WINDOWS_DS__
__PLATFORM_WIN32__
_SCL_SECURE_NO_WARNINGS
8) If you're using a newer version of the wxWidgets you need to change the filenames of the following linker dependencies:
- wxmsw26d_adv.lib
- wxmsw26d_stc.lib
- wxmsw26d_core.lib
- wxbase26d.lib
from *26d* to *28d* (depending on the version you are using).
9) Hit the compile button and pray :)) |
jassas
/moudi Last edited by moudi on Sun Nov 25, 2007 2:47 pm; edited 1 time in total |
|
Back to top
|
|
|
blue hell
Site Admin
Joined: Apr 03, 2004 Posts: 24075 Location: The Netherlands, Enschede
Audio files: 277
G2 patch files: 320
|
Posted: Tue Nov 20, 2007 3:09 pm Post subject:
|
|
|
Great, quite a story again
Too bad I've got no time to check it out now ... _________________ Jan
also .. could someone please turn down the thermostat a bit.
|
|
Back to top
|
|
|
Kassen
Janitor
Joined: Jul 06, 2004 Posts: 7678 Location: The Hague, NL
G2 patch files: 3
|
Posted: Tue Nov 20, 2007 3:34 pm Post subject:
|
|
|
moudi wrote: |
4) Correct/remove the following typos:
|
Did you email Ge about those? _________________ Kassen |
|
Back to top
|
|
|
moudi
Joined: Oct 07, 2006 Posts: 63 Location: Bern Switzerland
|
Posted: Wed Nov 21, 2007 12:27 pm Post subject:
|
|
|
Kassen wrote: | moudi wrote: |
4) Correct/remove the following typos:
|
Did you email Ge about those? |
not yet.
i thought i will send a mail to the dev-list when i had some more time to investigate in that strange behaviour with the channels.
jassas
/d |
|
Back to top
|
|
|
Kassen
Janitor
Joined: Jul 06, 2004 Posts: 7678 Location: The Hague, NL
G2 patch files: 3
|
Posted: Wed Nov 21, 2007 5:29 pm Post subject:
|
|
|
Sounds good.
At least one of those looks to me like a plain typo that should be fixed in the general source to benefit all.
Good work! _________________ Kassen |
|
Back to top
|
|
|
ge
Joined: Aug 13, 2006 Posts: 108 Location: Palo Alto, CA
|
Posted: Thu Nov 22, 2007 4:02 pm Post subject:
|
|
|
Kassen wrote: | Sounds good.
At least one of those looks to me like a plain typo that should be fixed in the general source to benefit all.
Good work! |
The casting in ugen_xxx.cpp (now both are const char *) with typos in rtaudio.cpp are both fixed in CVS. Will be part of next source release!
Thanks!! |
|
Back to top
|
|
|
lamarcph
Joined: Oct 21, 2004 Posts: 40 Location: Montreal, Canada
G2 patch files: 4
|
|
Back to top
|
|
|
blue hell
Site Admin
Joined: Apr 03, 2004 Posts: 24075 Location: The Netherlands, Enschede
Audio files: 277
G2 patch files: 320
|
Posted: Thu Nov 22, 2007 5:28 pm Post subject:
|
|
|
lamarcph wrote: | I tested with a few files and encountered no problems with the channels. |
With a Hammerfall as well, or something different? _________________ Jan
also .. could someone please turn down the thermostat a bit.
|
|
Back to top
|
|
|
lamarcph
Joined: Oct 21, 2004 Posts: 40 Location: Montreal, Canada
G2 patch files: 4
|
Posted: Fri Nov 23, 2007 7:44 am Post subject:
|
|
|
Yes, that's true; I only tested it with the asio4all and the reaRoute asio router.
Also, I now realize that the when closed, the application won't terminate properly. That too, is a mystery. |
|
Back to top
|
|
|
moudi
Joined: Oct 07, 2006 Posts: 63 Location: Bern Switzerland
|
Posted: Sun Nov 25, 2007 2:43 pm Post subject:
|
|
|
AARRGGHHH!!!
it was the absolute super embarrassing beginners fault (30 centimeters in front of the screen
of course it's not enough to only comment out the content of the if statement. it's also needed to comment out the if statement itself.
(rtaudio.cpp line 5138 AND 5137)
everything's working now as it should. (except the running time of the vm and the termination of the mini)
the world's pink again
/moudi |
|
Back to top
|
|
|
|