Juce not compiling under Microsoft Visual Studio 2008 Expres


#1

Hi all,

Not sure if I should set this topic here or under Windows. I chose here as my issue deals with initial setup of Juce. Forgive me if I am wrong.

I am operating Win7, 64 bit, Dual core.

I have followed all setup of MSV2008Exp as best I can based on the ReadMe’s provided.

I have commented out asio and Quicktime references in juce_Config.h, juce_amalgamated.h and .cpp as per:

http://www.rawmaterialsoftware.com/viewtopic.php?t=&f=&p=13323

I almost have compile. That is up to linking final jucelib_static_Win32_debug.lib; it does not seem to be created.

I have multi thread debug set (not dll) etc. I just keep getting the dreaded fatal error LNK1104. Very frustrating to wrestle with env again.

If anyone can see some obvious flag that I have missed please let me know? I was working in VS2010 and couldn’t get environment set for this. I went back to 2008 exp as it works for me and I have some experience with fltk. I hope to have the opportunity to play with this in a few audio editors.

Thanks in advance.

Here is the build log.

[code]Build Log Build started: Project: juce_test_02, Configuration: Debug|Win32
Command Lines Creating temporary file “c:\Users\dp\Documents\Visual Studio 2008\Projects\juce_test_02\juce_test_02\Debug\RSP00001649768040.rsp” with contents
[
/OUT:“C:\Users\dp\Documents\Visual Studio 2008\Projects\juce_test_02\Debug\juce_test_02.exe” /INCREMENTAL /MANIFEST /MANIFESTFILE:“Debug\juce_test_02.exe.intermediate.manifest” /MANIFESTUAC:“level=‘asInvoker’ uiAccess=‘false’” /DEBUG /PDB:“C:\Users\dp\Documents\Visual Studio 2008\Projects\juce_test_02\Debug\juce_test_02.pdb” /SUBSYSTEM:WINDOWS /DYNAMICBASE /NXCOMPAT /MACHINE:X86 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib

“.\Debug\ApplicationStartup.obj”

“.\Debug\MainAppWindow.obj”

“.\Debug\juce_test_02.exe.embed.manifest.res”
]
Creating command line "link.exe @“c:\Users\dp\Documents\Visual Studio 2008\Projects\juce_test_02\juce_test_02\Debug\RSP00001649768040.rsp” /NOLOGO /ERRORREPORT:PROMPT"
Output Window Linking…
LINK : fatal error LNK1104: cannot open file 'jucelib_static_Win32_debug.lib’
Results Build log was saved at "file://c:\Users\dp\Documents\Visual Studio 2008\Projects\juce_test_02\juce_test_02\Debug\BuildLog.htm"
juce_test_02 - 1 error(s), 0 warning(s)

[/code]


#2

The thread you refer to is 3 years old - I wouldn’t treat it as up-to-date advice!

Probably all of this could have been avoided if you’d just used the introjucer to create your project - did you try that?


#3

Hi Jules,
Thanks for the note.
Yes I did try the introjucer. I get mixed results. The first time I run it looking to generate the ‘blank’ window I get this.

'nextOne.exe': Loaded 'C:\Users\dp\Downloads\New folder\Builds\VisualStudio2008\Debug\nextOne.exe', Symbols loaded. 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\user32.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\comdlg32.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll' 'nextOne.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7600.16661_none_ebfb56996c72aefc\comctl32.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\shell32.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\msvfw32.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\winmm.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\wininet.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\urlmon.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\crypt32.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\msasn1.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\iertutil.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\ws2_32.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\nsi.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\version.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\opengl32.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\glu32.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\ddraw.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\dciman32.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\setupapi.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\devobj.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\dwmapi.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\apphelp.dll' 'nextOne.exe': Loaded 'C:\Windows\AppPatch\AcLayers.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\userenv.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\profapi.dll' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\winspool.drv' 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\mpr.dll' JUCE v1.53.81 'nextOne.exe': Loaded 'C:\Windows\SysWOW64\uxtheme.dll' 'nextOne.exe': Loaded 'C:\ProgramData\Real\RealPlayer\BrowserRecordPlugin\Chrome\Hook\rpchromebrowserrecordhelper.dll' 'nextOne.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4974_none_50940634bcb759cb\msvcr90.dll' 'nextOne.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4974_none_50940634bcb759cb\msvcp90.dll'

Linking is all fine etc and something runs but no window. I stop process with the stop button and, sometimes when i run again, I get this…seems a second run of introjucer is activate…

[code]Build Log Build started: Project: nextOne, Configuration: Debug|Win32
Command Lines Creating temporary file “c:\Users\dp\Downloads\New folder\Builds\VisualStudio2008\Debug\RSP00000510322480.rsp” with contents
[
/Od /D “WIN32” /D “_WINDOWS” /D “DEBUG” /D “_DEBUG” /D “JUCER_VS2008_78A5006=1” /D “_MBCS” /FD /EHsc /MTd /Fp".\Debug\nextOne.pch" /Fo".\Debug\" /Fd".\Debug\" /W4 /c /ZI /TP “…\JuceLibraryCode\JuceLibraryCode4.cpp”

“…\JuceLibraryCode\JuceLibraryCode3.cpp”

“…\JuceLibraryCode\JuceLibraryCode2.cpp”

“…\JuceLibraryCode\JuceLibraryCode1.cpp”

“…\Source\Main.cpp”
]
Creating command line “cl.exe @“c:\Users\dp\Downloads\New folder\Builds\VisualStudio2008\Debug\RSP00000510322480.rsp” /nologo /errorReport:prompt"
Creating temporary file “c:\Users\dp\Downloads\New folder\Builds\VisualStudio2008\Debug\RSP00000610322480.rsp” with contents
[
/OUT:”.\Debug\nextOne.exe" /MANIFEST /MANIFESTFILE:".\Debug\nextOne.exe.intermediate.manifest" /MANIFESTUAC:“level=‘asInvoker’ uiAccess=‘false’” /NODEFAULTLIB:“libcmt.lib” /NODEFAULTLIB:“msvcrt.lib” /DEBUG /PDB:".\Debug\nextOne.pdb" /SUBSYSTEM:WINDOWS /DYNAMICBASE /NXCOMPAT /MACHINE:X86 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib

“.\Debug\Main.obj”

“.\Debug\JuceLibraryCode1.obj”

“.\Debug\JuceLibraryCode2.obj”

“.\Debug\JuceLibraryCode3.obj”

“.\Debug\JuceLibraryCode4.obj”
]
Creating command line “link.exe @“c:\Users\dp\Downloads\New folder\Builds\VisualStudio2008\Debug\RSP00000610322480.rsp” /NOLOGO /ERRORREPORT:PROMPT"
Creating temporary file “c:\Users\dp\Downloads\New folder\Builds\VisualStudio2008\Debug\RSP00000710322480.rsp” with contents
[
/outputresource:”.\Debug\nextOne.exe;#1" /manifest

“.\Debug\nextOne.exe.intermediate.manifest”
]
Creating command line "mt.exe @“c:\Users\dp\Downloads\New folder\Builds\VisualStudio2008\Debug\RSP00000710322480.rsp” /nologo"
Output Window Compiling…
JuceLibraryCode4.cpp
JuceLibraryCode3.cpp
JuceLibraryCode2.cpp
JuceLibraryCode1.cpp
Main.cpp
Generating Code…
Linking…
Embedding manifest…
mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file “.\Debug\nextOne.exe”. The process cannot access the file because it is being used by another process.
Results Build log was saved at "file://c:\Users\dp\Downloads\New folder\Builds\VisualStudio2008\Debug\BuildLog.htm"
nextOne - 1 error(s), 0 warning(s)

[/code]

Anyway, when I close the offending run of introjucer, clean and rebuild I get the run with no window…suggestions?

tia
Derek


#4

Sorry, I’m struggling to follow what you’re talking about, it all sounds extremely muddled! You should use the introjucer’s project wizard to create a project with a window, so at least you’ve got a starting point.


#5

Hi again,
I used the wizard to create a project with window. It compiles and runs but no window shows itself. Am i missing something in settings?
thanks
Derek


#6

Just to sanity-check this, I just tried running the wizard myself, and it works perfectly well… I’ve really no idea how you’d manage to create something that builds but doesn’t work. Did you definitely select the option in the wizard that makes it create a window?


#7

sanity-check = TRUE

Ok, I did not see that there was a choice after the first combo box that offered to create GUI. I thought that was it and the .cpp file offer in the combo down was it; I hadn’t checked that it was a combo box.

Thanks for your patience; I have it now. I can get back to the c++.

It is a great concept and program; thank you for this.

best
D