Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Error while compiling "Unable to get output directory for this" (Read 6478 times)
rgmorales1975
Newbies
*
Offline


Posts: 4
Joined: Jan 22nd, 2017
Error while compiling "Unable to get output directory for this"
Jan 22nd, 2017 at 6:32am
Print Post  
Hi, 

Every time I try to compile, I get the error attached...

Tried to clean the project, rebuild, nothing fix the issue.

If I start a new project, it works for a while, and after compiling it for some time, I got the error again.

I'm using the latest version for both Visual Studio and VM.

Compiling for Teensy 3.6.

Any ideas?

Thanks,

Rod
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error while compiling "Unable to get output directory for this"
Reply #1 - Jan 22nd, 2017 at 2:15pm
Print Post  
Thanks for the post.

This relates to visual micro copying the final output (hex, bin , elf, .o etc) files from the temp build folder to the designated project final output folder. I will run some tests but sounds like yours is empty.

It would be useful if you also zip email the ".vcx???" files from your project folder to info[at]visualmicro.com

The final output folder is configurable by you for each project. Normally the final output folder is configured to be the solution\config folder or project\config folder. In English this means something like "MyProjectDir\Debug" or "MyProjectDir\Release"

The output folder is configured by right clicking the "Project Name > Properties" as per attached image.

You can set the folder to a fixed path or a path relative to the project or use the MSBuild variables as shown in the image. 

What is shown in the image is normally the default which is something like "MySolution\Debug"

What is your "Output Directory" set to?

Right click "project name>properties". The Output Directory is the only property from this dialog that Visual Micro uses


« Last Edit: Jan 22nd, 2017 at 2:16pm by Tim@Visual Micro »  

Please Register or Login to the Forum to see File Attachments
Back to top
IP Logged
 
rgmorales1975
Newbies
*
Offline


Posts: 4
Joined: Jan 22nd, 2017
Re: Error while compiling "Unable to get output directory for this"
Reply #2 - Jan 22nd, 2017 at 9:20pm
Print Post  
Thanks for your prompt response.

The configuration window was identical to the one you sent.

Attached are both files and the configuration I had.

After opening the window check the properties, and clicking the option to change the folder, but not changing it, the error is not longer happening... if it happens again, I will try to change the folder and see what happens.

vcxproj file:
Code (HTML)
Select All
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <ItemGroup Label="ProjectConfigurations">
    <ProjectConfiguration Include="Debug|Win32">
      <Configuration>Debug</Configuration>
      <Platform>Win32</Platform>
    </ProjectConfiguration>
    <ProjectConfiguration Include="Release|Win32">
      <Configuration>Release</Configuration>
      <Platform>Win32</Platform>
    </ProjectConfiguration>
  </ItemGroup>
  <PropertyGroup Label="Globals">
    <ProjectGuid>{C5F80730-F44F-4478-BDAE-6634EFC2CA88}</ProjectGuid>
    <RootNamespace>GPSLapTimer</RootNamespace>
    <ProjectName>GPSLapTimer</ProjectName>
  </PropertyGroup>
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
    <ConfigurationType>Application</ConfigurationType>
    <UseDebugLibraries>true</UseDebugLibraries>
    <PlatformToolset>
    </PlatformToolset>
    <CharacterSet>MultiByte</CharacterSet>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
    <ConfigurationType>Application</ConfigurationType>
    <UseDebugLibraries>false</UseDebugLibraries>
    <PlatformToolset>
    </PlatformToolset>
    <WholeProgramOptimization>true</WholeProgramOptimization>
    <CharacterSet>MultiByte</CharacterSet>
  </PropertyGroup>
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
  <ImportGroup Label="ExtensionSettings">
  </ImportGroup>
  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
  </ImportGroup>
  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
  </ImportGroup>
  <PropertyGroup Label="UserMacros" />
  <PropertyGroup />
  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
    <ClCompile>
      <WarningLevel>Level3</WarningLevel>
      <Optimization>Disabled</Optimization>
      <SDLCheck>true</SDLCheck>
     rectories)</AdditionalIncludeDirectories>
     Files)</ForcedIncludeFiles>
      <IgnoreStandardIncludePath>false</IgnoreStandardIncludePath>
     ions>
    </ClCompile>
    <Link>
      <GenerateDebugInformation>true</GenerateDebugInformation>
    </Link>
  </ItemDefinitionGroup>
  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
    <ClCompile>
      <WarningLevel>Level3</WarningLevel>
      <Optimization>Disabled</Optimization>
      <FunctionLevelLinking>true</FunctionLevelLinking>
      <IntrinsicFunctions>true</IntrinsicFunctions>
      <SDLCheck>true</SDLCheck>
     apTimer;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
     Files)</ForcedIncludeFiles>
      <WholeProgramOptimization>false</WholeProgramOptimization>
     H;__cplusplus=201103L;%(PreprocessorDefinitions)</PreprocessorDefinitions>
    </ClCompile>
    <Link>
      <GenerateDebugInformation>true</GenerateDebugInformation>
      <EnableCOMDATFolding>true</EnableCOMDATFolding>
      <OptimizeReferences>true</OptimizeReferences>
    </Link>
  </ItemDefinitionGroup>
  <ItemGroup>
    <ProjectCapability Include="VisualMicro" />
  </ItemGroup>
  <PropertyGroup>
    <DebuggerFlavor>VisualMicroDebugger</DebuggerFlavor>
  </PropertyGroup>
  <ItemGroup>
    <None Include="GPSLapTimer.ino">
      <FileType>CppCode</FileType>
    </None>
  </ItemGroup>
  <ItemGroup>
    <ClInclude Include="__vm\.GPSLapTimer.vsarduino.h" />
  </ItemGroup>
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
  <ImportGroup Label="ExtensionTargets">
  </ImportGroup>
</Project> 



  
Back to top
 
IP Logged
 
rgmorales1975
Newbies
*
Offline


Posts: 4
Joined: Jan 22nd, 2017
Re: Error while compiling "Unable to get output directory for this"
Reply #3 - Jan 22nd, 2017 at 9:20pm
Print Post  
vcxproj.filters

Code (HTML)
Select All
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <ItemGroup>
    <Filter Include="Source Files">
      <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
      <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
    </Filter>
    <Filter Include="Header Files">
      <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
      <Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
    </Filter>
    <Filter Include="Resource Files">
      <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
      g;wav;mfcribbon-ms</Extensions>
    </Filter>
  </ItemGroup>
  <ItemGroup>
    <None Include="GPSLapTimer.ino" />
  </ItemGroup>
  <ItemGroup>
    <ClInclude Include="__vm\.GPSLapTimer.vsarduino.h">
      <Filter>Header Files</Filter>
    </ClInclude>
  </ItemGroup>
</Project> 

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error while compiling "Unable to get output directory for this"
Reply #4 - Jan 22nd, 2017 at 9:40pm
Print Post  
Thanks for all the info. Is this vs2015?

Can please give version of visual studio from help>about?
Is this a new project? 
How did you create the project?


Thanks
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error while compiling "Unable to get output directory for this"
Reply #5 - Jan 22nd, 2017 at 9:47pm
Print Post  
I think I can see what could cause this. 

It's failing to find the selected configuration name in the current project properties. For example the Win32|debug configuration that might be selected for the solution on tool bar.

The message is just a message box and has been moved to an output window message to at least limit the annoyance.
  
Back to top
IP Logged
 
rgmorales1975
Newbies
*
Offline


Posts: 4
Joined: Jan 22nd, 2017
Re: Error while compiling "Unable to get output directory for this"
Reply #6 - Jan 22nd, 2017 at 11:19pm
Print Post  
I'm using the Visual Studio Community edition 2017 RC.

I will monitor and post here if I have the issue again.

This is a new project, created as Arduino Project using the new project dialog to create it.

Regards,

Rod
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error while compiling "Unable to get output directory for this"
Reply #7 - Jan 22nd, 2017 at 11:28pm
Print Post  
Thanks
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint