Compile Juce Example in dev-c++ 4.9.9.0 (12 east steps) v1.2

Discussion about: tracktion.com
RELATED
PRODUCTS

Post

Step 1: Install Dev-C++ 4.9.9.0

Step 2: Update! Goto tools-->check for updates/packages. Check for updates. Check Directx9 devpack, download selected and install.

Step 3: "install" Juce, preferrably to c:\juce or d:\juce (dont double your paths when extracting!)

Step 4: open "\juce\build\win32\devcpp\juce.dev"

Step 5: in juce_win32_Threads.cpp, change

Code: Select all

include "crtdbg.h"
to

Code: Select all

#ifdef PLATFORM_WIN32_MSVC
       include "crtdbg.h"
#endif
step 6: same file as above. in Process:terminate() change...

Code: Select all

    _CrtDumpMemoryLeaks();
to

Code: Select all

    #ifdef PLATFORM_WIN32_MSVC
    _CrtDumpMemoryLeaks();
    #endif
(I suggest Jules add this, or similiar, to the lib btw for those of us who dont have access to crtcbg.h or similiar without a massive searching headache)

step 7: Compile! in 1.4 this will make libjuce.a, in 1.3 it makes juce.a. You need the file to be called libjuce.a

step 8: New project, win32 GUI, c++

Step 9: Add file "\juce\projects\example project for Win32\main.cpp"

Step 10: Alt-P (project options) -> Directories tab, and add "\juce\bin" to your library directories.

Step 11: Still inside project options (alt-p), add this to linker parameters. "-ljuce -lmsvfw32 -lwinmm -lrpcrt4" without the quotes.

Step 12: Compile and link! following these steps from no install to build on a computer I havent used Juce on worked great.


If there's any errors you have, just let me know and Ill see if I left out a step or something.

v1.2 revisions: Added update procedure for directX, needed for dsound.h and the various trinkets jules uses from it.

v1.1 revisions: Added steps to remove crtdbg.h for non MSVC compilers.
Last edited by Robert Randolph on Fri Sep 03, 2004 9:24 pm, edited 1 time in total.

Post

Thanks, Robert! Nice work! :)

Post

damn Robert! i would not have had free time enough to hunt all that down, so kudos for being the trailblazer.

:hail:

Now I just need to write a sample editor with the T interface, and I'll be happy. First though I shoudl practise JUCE by writing a certain VSText plugin that has been in a mostly broken state on my hard drive for nigh on a year now.

Oh, and then I need to learn how to expose functions to python or perl so I can make the editor scriptable. :)

unless anyone feels like helping out with a nice open source scriptable wave editor.... ??? hmmmm.... :)
Someone shot the food. Remember: don't shoot food!

Post

Whenever jules is ready for a linux port, Ill be there ;) At least I know I can knock that out in a few minutes rather than a few hours like this windows bullshit.


get a basic UI going Valley :) Get it up on sourceforge, I bet we can do it in a month assuming no one flakes out.

Post

Just waiting to see if anyone (modulr) tries... Want to make sure I didnt forget something.

Post

Robert Randolph wrote:Just waiting to see if anyone (modulr) tries... Want to make sure I didnt forget something.
I need to install a ceiling tonight, but I should be able to get ten minutes to walk through your steps above. I'm thinking I'm going to settle on dev-c anyway.
Someone shot the food. Remember: don't shoot food!

Post

valley wrote:
Robert Randolph wrote:Just waiting to see if anyone (modulr) tries... Want to make sure I didnt forget something.
I need to install a ceiling tonight, but I should be able to get ten minutes to walk through your steps above. I'm thinking I'm going to settle on dev-c anyway.
11 steps ;)

Dont "fix" anything without letting me know, if followed exactly and you get errors, I want to fix them in the tutorial above. There MAYBE trouble with some people needing the dx9 package.

Post

thx robert, that's much quicker than finding it out by myself ;)

Post

aldi wrote:thx robert, that's much quicker than finding it out by myself ;)
No problemo... still waiting for word if it works for anyone yet.


No use calling JUCE gpl if you gotta compile with MSVC eh ;)

Post

I am sitting here at work again... I left this very location at 6am this morning, and arrived at my house at 7am... went to a doctor's appointment at 10am where I had the fortune of being sent to the WRONG type of doctor... :box: walked out very pissed! :bang: and highly irritated on about 2hrs of terrible sleep. Thus far this day blows hardcore...

All of that to say...

THANK YOU! You have made my very f**ked up day a bit more bearable and pleasant! I needed it! :hail: gonna try your directions right now. :phones:
ModuLR / Radio

Post

anyone have any cool JUCE stuff compiled to play with?

Post

soma wrote:anyone have any cool JUCE stuff compiled to play with?
klf has something in the works...

I just got juce to compile and already made a neat little wav editor (input based, not graphical).

Post

I've gotten to the part where I compile... and it now says "fatal : 'all-before' does not exist - don't know how to make it...


I swear I had it partially compiling last night, but I reinstalled dev-c++ and the new juce stuff, now it's doing this... :cry:
ModuLR / Radio

Post

fixed the problem... (if you reinstall dev-cpp in a diff directory, make sure you check your local setttings folder and delete the dev-c config files before you reinstall). Also, don't forget about dx4devc.zip that robert mentioned in the other thread... otherwise you'll hit an error when it gets to directsound.

WHHHOOOOTTT it compiled! Thanks Robert!! Now I'm gonna try to make something! :D
ModuLR / Radio

Post

ModuLR wrote:Also, don't forget about dx4devc.zip that robert mentioned in the other thread... otherwise you'll hit an error when it gets to directsound.
For those not fond of hoping between threads, that'd be this zip file.


Glad to hear you got it working Mod. Assuming my ceiling repairs go smoothly tonight I'm hoping to get some Quick demos knocked together myself.

Should we create a forum somewhere[1] specifically for JUCE development, so as to keep the noise down on this forum a little?


[1] I'm happy to put my money where my mouth is and host it, and code examples, on adbe.org.
Someone shot the food. Remember: don't shoot food!

Post Reply

Return to “Tracktion”