Skip to content
Snippets Groups Projects
Commit ed040def authored by Martin Rusek's avatar Martin Rusek
Browse files

change: removed SClinux project from repository

parent 2cdac255
No related branches found
No related tags found
No related merge requests found
CC = icc
CFLAGS = -std=c++0x -w -g
msa: main.o dtw.o pdtw.o lcss.o dataParser.o operations.o operationsomp.o help.o calcul.o print.o parameter.o
$(CC) $(CFLAGS) -fopenmp -o msa main.o dtw.o pdtw.o lcss.o dataParser.o -lstdc++fs operations.o operationsomp.o help.o calcul.o print.o parameter.o
main.o: main.cpp dtw.h lcss.h operations.h help.h dataParser.h templates.h
$(CC) $(CFLAGS) -c main.cpp -o main.o
dtw.o: dtw.cpp dtw.h node.h calcul.h help.h result.h warpPath.h print.h templates.h
$(CC) $(CFLAGS) -c dtw.cpp -o dtw.o
pdtw.o: dtw.cpp dtw.h node.h calcul.h help.h result.h warpPath.h print.h templates.h
$(CC) $(CFLAGS) -c dtw.cpp -o dtw.o
lcss.o: lcss.cpp lcss.h node.h calcul.h help.h result.h warpPath.h print.h templates.h
$(CC) $(CFLAGS) -c lcss.cpp -o lcss.o
dataParser.o: dataParser.cpp dataParser.h help.h
$(CC) $(CFLAGS) -c dataParser.cpp -lstdc++ -lstdc++fs -o dataParser.o
operations.o: operations.cpp operations.h dtw.h lcss.h templates.h
$(CC) $(CFLAGS) -c operations.cpp -o operations.o
operationsomp.o: operationsOmp.cpp operationsOmp.h dtw.h lcss.h templates.h
$(CC) $(CFLAGS) -fopenmp -c operationsOmp.cpp -o operationsomp.o
print.o: print.cpp print.h
$(CC) $(CFLAGS) -c print.cpp -o print.o
help.o: help.cpp help.h
$(CC) $(CFLAGS) -c help.cpp -o help.o
calcul.o: calcul.cpp calcul.h
$(CC) $(CFLAGS) -c calcul.cpp -lstdc++fs -o calcul.o
parameter.o: parameter.cpp parameter.h
$(CC) $(CFLAGS) -c parameter.cpp -o parameter.o
clean:
rm *.o
# -fopenmp needs to be used for operationsomp and target
# -lstdc++fs is static library needs to be used for experimental/filesystem include
#from c++17 filesystem should (??) be in standard std namespace without experimental needed
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|ARM">
<Configuration>Debug</Configuration>
<Platform>ARM</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|ARM">
<Configuration>Release</Configuration>
<Platform>ARM</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x86">
<Configuration>Debug</Configuration>
<Platform>x86</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x86">
<Configuration>Release</Configuration>
<Platform>x86</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<ItemGroup>
<ClCompile Include="main.cpp" />
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{968aae29-89f6-408c-a27f-435b9ead9f7e}</ProjectGuid>
<Keyword>Linux</Keyword>
<RootNamespace>SClinux</RootNamespace>
<MinimumVisualStudioVersion>15.0</MinimumVisualStudioVersion>
<ApplicationType>Linux</ApplicationType>
<ApplicationTypeRevision>1.0</ApplicationTypeRevision>
<TargetLinuxPlatform>Generic</TargetLinuxPlatform>
<LinuxProjectType>{D51BCBC9-82E9-4017-911E-C93873C4EA2B}</LinuxProjectType>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" Label="Configuration">
<UseDebugLibraries>true</UseDebugLibraries>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" Label="Configuration">
<UseDebugLibraries>false</UseDebugLibraries>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'" Label="Configuration">
<UseDebugLibraries>true</UseDebugLibraries>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'" Label="Configuration">
<UseDebugLibraries>false</UseDebugLibraries>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<UseDebugLibraries>true</UseDebugLibraries>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<UseDebugLibraries>false</UseDebugLibraries>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings" />
<ImportGroup Label="Shared">
<Import Project="..\SequenceComparison\SequenceComparison.vcxitems" Label="Shared" />
</ImportGroup>
<ImportGroup Label="PropertySheets" />
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<RemoteLdToolExe>g++</RemoteLdToolExe>
<IncludePath>$(IncludePath);C:\code\include\x86_64-linux-gnu;C:\code\include\c++\6;C:\code\include</IncludePath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<IncludePath>$(IncludePath);C:\code\include\x86_64-linux-gnu;C:\code\include\c++\6;C:\code\include</IncludePath>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
<ClCompile>
<CppLanguageStandard>Default</CppLanguageStandard>
<AdditionalOptions>-lstdc++fs -lstdc++ -std=c++0x -std=gnu++11 %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<AdditionalOptions>-std=c++0x -lstdc++fs -lstdc++ -std=gnu++11 %(AdditionalOptions)</AdditionalOptions>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
<ClCompile>
<CppLanguageStandard>Default</CppLanguageStandard>
<AdditionalOptions>-lstdc++fs -lstdc++ -std=c++0x -std=gnu++11 %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<AdditionalOptions>-std=c++0x -lstdc++fs -lstdc++ -std=gnu++11 %(AdditionalOptions)</AdditionalOptions>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<AdditionalOptions>-fopenmp %(AdditionalOptions)</AdditionalOptions>
<CLanguageStandard>c11</CLanguageStandard>
<CppLanguageStandard>c++1y</CppLanguageStandard>
<RuntimeTypeInfo>true</RuntimeTypeInfo>
</ClCompile>
<Link />
<Link>
<LibraryDependencies>stdc++fs;%(LibraryDependencies)</LibraryDependencies>
<AdditionalOptions>-fopenmp -std=c++0x %(AdditionalOptions)</AdditionalOptions>
</Link>
<CustomBuildStep>
<Command>
</Command>
<Outputs>
</Outputs>
</CustomBuildStep>
<RemotePreBuildEvent>
<Command>
</Command>
</RemotePreBuildEvent>
<PreBuildEvent>
<Command>
</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<CppLanguageStandard>gnu++1y</CppLanguageStandard>
<AdditionalOptions>-fopenmp -std=c++0x -w %(AdditionalOptions)</AdditionalOptions>
<CLanguageStandard>gnu11</CLanguageStandard>
<BrowseInformation>true</BrowseInformation>
</ClCompile>
<Link>
<AdditionalOptions>-fopenmp -std=c++0x %(AdditionalOptions)</AdditionalOptions>
<LibraryDependencies>stdc++fs</LibraryDependencies>
</Link>
<RemotePreBuildEvent>
<Command>
</Command>
</RemotePreBuildEvent>
<Bscmake>
<PreserveSbr>true</PreserveSbr>
</Bscmake>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'">
<ClCompile>
<CppLanguageStandard>Default</CppLanguageStandard>
<AdditionalOptions>-lstdc++fs -lstdc++ -std=c++0x -std=gnu++11 %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<AdditionalOptions>-std=c++0x -lstdc++fs -lstdc++ -std=gnu++11 %(AdditionalOptions)</AdditionalOptions>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'">
<ClCompile>
<CppLanguageStandard>Default</CppLanguageStandard>
<AdditionalOptions>-lstdc++fs -lstdc++ -std=c++0x -std=gnu++11 %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<AdditionalOptions>-std=c++0x -lstdc++fs -lstdc++ -std=gnu++11 %(AdditionalOptions)</AdditionalOptions>
</Link>
</ItemDefinitionGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets" />
</Project>
\ No newline at end of file
#include "stdafx.h"
#include "mains.h"
using namespace std;
int main(int argc, char **argv)
{
vector<string> args;
for (int i = 1; i < argc; i++)
args.push_back(argv[i]);
mains::entry_main(args);
return 0;
}
\ No newline at end of file
SClinux/readme/images/ArchOptions.gif

37.4 KiB

SClinux/readme/images/ChangeRemote.gif

671 KiB

SClinux/readme/images/ManageConnections.gif

798 KiB

SClinux/readme/images/OutputTypes.gif

118 KiB

SClinux/readme/images/debuggerexport.png

15.5 KiB

SClinux/readme/images/firstconnection.png

15.6 KiB

SClinux/readme/images/linker.png

17.1 KiB

SClinux/readme/images/postbuild.png

16.1 KiB

<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<link rel="stylesheet" type="text/css" href="stylesheet.css" media="screen">
<title>Getting Started</title>
</head>
<body>
<div class="container">
<div id="header">
<h1>Getting Started</h1>
<h2>Visual C++ for Linux Development extension</h2>
</div>
<table>
<tr>
<div id="main_content">
<td>
<div id="lpanel">
<h1>Setting up your project for Linux Development</h1>
<p>With this extension you can author C++ code for Linux servers, desktops and devices. You can manage your connections to these machines from within VS. VS will automatically copy and remote build your sources and can launch your application with the debugger. Our project system supports targeting specific architectures, including ARM.</p>
<img src="images\ArchOptions.gif"/>
<h1>Connecting to Linux</h1>
<h2>Prerequisites</h2>
<p>Today we only support building remotely on the Linux target machine. We are not limited by specific Linux distros but we do have dependencies on the presence of some tools. Specifically, we need openssh-server, g++, gdb and gdbserver. Use your favorite package manager to install them, e.g. on Debian based systems: sudo apt-get install openssh-server g++ gdb gdbserver</p>
<h2>First connection</h2>
<p>The first time you target a Linux machine you will be prompted for connection information. This is triggered by building the project.</p>
<img src="images\firstconnection.png"/>
<h2>Adding and removing connections</h2>
<p>To add a new connection, go to Tools > Options and search for Linux. From here you can add and remove connections.</p>
<img src="images\ManageConnections.gif"/>
<p>To change which connection a project is using go to the project properties remote settings and update the target machine.</p>
<img src="images\ChangeRemote.gif"/>
<h1>Project Properties</h1>
<p>All of the options necessary to control C++ compilation are exposed on the project properies pages. We'll cover a few specific to how things work for Linux. First under remote settings, you will see the remote root is set to ~/projects/ by default and that we are setting the remote project directory to match our project name in that location. </p>
<img src="images\OutputTypes.gif"/>
<p>Looking at the General settings for the project, you can see how our output and intermediate directories were configured. Additionally, you’ll see that this project was configured as an application – thus our executable is under bin/x64/Debug/ as ConsoleApplication1.out. Notice that for configuration types we also support static and dynamic libraries.</p>
<p>Add additional library dependencies on the Linker > Input property page.</p>
<img src="images\linker.png"/>
<p>You can pass additional pre launch commands to the debugger to do things like launch graphical apps on the remote linux machine.</p>
<img src="images\debuggerexport.png"/>
<p>You can also send post build events to control remote behavior, as in this example that exports a gpio pin for use without requiring the executable run as super user.</p>
<img src="images\postbuild.png"/>
</div>
</td>
<td>
<div id="rpanel">
<h1>Resources</h1>
<p>Check out the <a href="http://aka.ms/vslinuxext">VS Gallery VC++ for Linux Development page</a> where we will keep updates posted. You can also check out our <a href="https://blogs.msdn.microsoft.com/vcblog/2016/03/30/visual-c-for-linux-development">announcment blog post</a> for more in depth details on configuring the project properties.</p>
<p>Here are other utilities you will find useful in connection with this extension.</p>
<ul>
<li>Learn more about <a href="http://aka.ms/vsiot">IoT Development</a></li>
<li><a href="http://aka.ms/vsiotext">VC++ for IoT Development Tools</a></li>
<li><a href="https://github.com/Azure/azure-iot-sdks">Azure IoT SDK</a>, includes a C API for connecting small devices to the Azure IoT Hub</li>
</ul>
<h1>Give us feedback</h1>
<p><a href="http://aka.ms/vslinux-feedback">UserVoice</a></p>
</div>
</td>
</div>
</tr>
</table>
</div>
</body>
</html>
body {
margin: 0;
padding: 0;
border: 0;
color: #1E1E1E;
font-size: 13px;
font-family: "Segoe UI", Helvetica, Arial, sans-serif;
line-height: 1.45;
word-wrap: break-word;
}
/* General & 'Reset' Stuff */
.container {
width: 1100px;
margin: 0 auto;
}
section {
display: block;
margin: 0;
}
h1, h2, h3, h4, h5, h6 {
margin: 0;
}
table, tr {
width: 1100px;
padding: 0px;
vertical-align: top;
}
/* Header, <header>
header - container
h1 - project name
h2 - project description
*/
#header {
color: #FFF;
background: #68217a;
position:relative;
}
h1, h2 {
font-family: "Segoe UI Light", "Segoe UI", Helvetica, Arial, sans-serif;
line-height: 1;
margin: 0 18px;;
padding: 0;
}
#header h1 {
font-size: 3.4em;
padding-top: 18px;
font-weight: normal;
margin-left: 15px;
}
#header h2 {
font-size: 1.5em;
margin-top: 10px;
padding-bottom: 18px;
font-weight: normal;
}
#main_content {
width: 100%;
display: flex;
flex-direction: row;
}
h1, h2, h3, h4, h5, h6 {
font-weight: bolder;
}
#main_content h1 {
font-size: 1.8em;
margin-top: 34px;
}
#main_content h1:first-child {
margin-top: 30px;
}
#main_content h2 {
font-size: 1.8em;
}
p, ul {
margin: 11px 18px;
}
#main_content a {
color: #06C;
text-decoration: none;
}
ul {
margin-top: 13px;
margin-left: 18px;
padding-left: 0;
}
ul li {
margin-left: 18px;
padding-left: 0;
}
#lpanel {
width: 870px;
float: left;
}
#rpanel ul {
list-style-type: none;
}
#rpanel ul li {
line-height: 1.8em;
}
#rpanel {
background: #e7e7e7;
width: 230px;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment