Orbiter-Forum  

Go Back   Orbiter-Forum > Orbiter Space Flight Simulator > Orbiter SDK
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

Orbiter SDK Orbiter software developers post your questions and answers about the SDK, the API interface, LUA, meshing, etc.

Reply
 
Thread Tools
Old 09-06-2018, 12:39 PM   #1
gattispilot
Addon Developer
 
gattispilot's Avatar
Default compling ssrms

So I am trying to make a rms solution. Mainly so I can adapt it for the shuttle 2016. but for other projects.


So getting the h and rc and cpp from here:
http://svn.code.sf.net/p/shuttleultr...itersdk/SSRMS/


I added to a new solution and tried to build.


I am getting 8 external external. But I can't seem to find where they are defined in the LEESystem h and SSRMS.h


Then when I try to edit the rc i get this error:




Not sure if they are somewhere in the SSU code?

RotateVector
GetRotMatrixZ
GetRotMatrixY
GetRotMatrixX
GetYZX_PYRAnglesFromMatrix
linterp
CalculateCameraRotationAngle



Code:
Error	29	error LNK2001: unresolved external symbol "void __cdecl  RotateVector(union VECTOR3 const &,union VECTOR3 const &,union  VECTOR3 &)" (?RotateVector@@YAXABTVECTOR3@@0AAT1@@Z)	 C:\Orbiter2016\Orbitersdk\samples\newarm\SSRMS.obj	newarm
Error	31	error LNK2001: unresolved external symbol "void __cdecl  GetRotMatrixZ(double,union MATRIX3 &)"  (?GetRotMatrixZ@@YAXNAATMATRIX3@@@Z)	 C:\Orbiter2016\Orbitersdk\samples\newarm\SSRMS.obj	newarm
Error	26	error LNK2001: unresolved external symbol "void __cdecl  GetRotMatrixY(double,union MATRIX3 &)"  (?GetRotMatrixY@@YAXNAATMATRIX3@@@Z)	 C:\Orbiter2016\Orbitersdk\samples\newarm\SSRMS.obj	newarm
Error	24	error LNK2001: unresolved external symbol "void __cdecl  GetRotMatrixX(double,union MATRIX3 &)"  (?GetRotMatrixX@@YAXNAATMATRIX3@@@Z)	 C:\Orbiter2016\Orbitersdk\samples\newarm\SSRMS.obj	newarm
Error	28	error LNK2001: unresolved external symbol "union VECTOR3  __cdecl RotateVector(union VECTOR3 const &,double,union VECTOR3  const &)" (?RotateVector@@YA?ATVECTOR3@@ABT1@N0@Z)	 C:\Orbiter2016\Orbitersdk\samples\newarm\SSRMS.obj	newarm
Error	25	error LNK2001: unresolved external symbol "union VECTOR3  __cdecl GetYZX_PYRAnglesFromMatrix(union MATRIX3 const &)"  (?GetYZX_PYRAnglesFromMatrix@@YA?ATVECTOR3@@ABTMAT  RIX3@@@Z)	 C:\Orbiter2016\Orbitersdk\samples\newarm\SSRMS.obj	newarm
Error	27	error LNK2001: unresolved external symbol "double __cdecl  linterp(double,double,double,double,double)" (?linterp@@YANNNNNN@Z)	 C:\Orbiter2016\Orbitersdk\samples\newarm\SSRMS.obj	newarm
Error	30	error LNK2001: unresolved external symbol "double __cdecl  CalculateCameraRotationAngle(union VECTOR3 &,union VECTOR3 const  &)" (?CalculateCameraRotationAngle@@YANAATVECTOR3@@ABT  1@@Z)	 C:\Orbiter2016\Orbitersdk\samples\newarm\SSRMS.obj	newarm
Error	32	error LNK1120: 8 unresolved externals	C:\Orbiter2016\Modules\newarm.dll	newarm


---------- Post added at 05:02 PM ---------- Previous post was at 07:15 AM ----------

Well I thought I found the issue. I needed UltraMath.h. I had it in my
C:\Orbiter2016\Orbitersdk\include folder.

But i added it to the solution but the same issue


Code:
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="12.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">
    <ProjectName>newarm</ProjectName>
    <ProjectGuid>{1A57C099-C6AF-43A7-8899-83608A6FF011}</ProjectGuid>
    <RootNamespace>MSL_ROVER</RootNamespace>
    <Keyword>Win32Proj</Keyword>
  </PropertyGroup>
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
    <ConfigurationType>DynamicLibrary</ConfigurationType>
    <PlatformToolset>v120</PlatformToolset>
    <CharacterSet>MultiByte</CharacterSet>
    <WholeProgramOptimization>true</WholeProgramOptimization>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
    <ConfigurationType>DynamicLibrary</ConfigurationType>
    <PlatformToolset>v120</PlatformToolset>
    <CharacterSet>MultiByte</CharacterSet>
  </PropertyGroup>
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
  <ImportGroup Label="ExtensionSettings">
  </ImportGroup>
  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
  </ImportGroup>
  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
  </ImportGroup>
  <PropertyGroup Label="UserMacros" />
  <PropertyGroup>
    <_ProjectFileVersion>12.0.21005.1</_ProjectFileVersion>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
    <OutDir>..\..\..\Modules\</OutDir>
    <IntDir>$(Configuration)\</IntDir>
    <LinkIncremental>true</LinkIncremental>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
    <OutDir>..\..\..\Modules\</OutDir>
    <LinkIncremental>false</LinkIncremental>
  </PropertyGroup>
  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
    <ClCompile>
      <Optimization>Disabled</Optimization>
      <AdditionalIncludeDirectories>C:\ORBITER2016\\Orbitersdk\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
      <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;E3VIP_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
      <MinimalRebuild>true</MinimalRebuild>
      <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
      <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
      <PrecompiledHeader />
      <WarningLevel>Level3</WarningLevel>
      <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
    </ClCompile>
    <Link>
      <AdditionalDependencies>orbiter.lib;orbitersdk.lib;orbitersoundsdk35.lib;%(AdditionalDependencies)</AdditionalDependencies>
      <AdditionalLibraryDirectories>C:\ORBITER2016\\Orbitersdk\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
      <IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
      <IgnoreSpecificDefaultLibraries>msvcrt.lib libcmt.lib;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
      <GenerateDebugInformation>true</GenerateDebugInformation>
      <SubSystem>Windows</SubSystem>
      <TargetMachine>MachineX86</TargetMachine>
    </Link>
  </ItemDefinitionGroup>
  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
    <ClCompile>
      <Optimization>MaxSpeed</Optimization>
      <IntrinsicFunctions>true</IntrinsicFunctions>
      <AdditionalIncludeDirectories>C:\ORBITER2016\Orbitersdk\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
      <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;E3VIP_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
      <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
      <FunctionLevelLinking>true</FunctionLevelLinking>
      <PrecompiledHeader />
      <WarningLevel>Level3</WarningLevel>
      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
    </ClCompile>
    <Link>
      <AdditionalDependencies>orbiter.lib;Orbitersdk.lib;%(AdditionalDependencies)</AdditionalDependencies>
      <OutputFile>./../../../Modules/newarm.dll</OutputFile>
      <AdditionalLibraryDirectories>C:\ORBITER2016\Orbitersdk\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
      <IgnoreSpecificDefaultLibraries>msvcrt;msvcprt;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
      <GenerateDebugInformation>true</GenerateDebugInformation>
      <SubSystem>Windows</SubSystem>
      <OptimizeReferences>true</OptimizeReferences>
      <EnableCOMDATFolding>true</EnableCOMDATFolding>
      <TargetMachine>MachineX86</TargetMachine>
    </Link>
  </ItemDefinitionGroup>
  <ItemGroup>
    <ClCompile Include="LEESystem.CPP" />
    <ClCompile Include="SSRMS.cpp" />
  </ItemGroup>
  <ItemGroup>
    <ClInclude Include="..\..\include\UltraMath.h" />
    <ClInclude Include="LEESystem.H" />
    <ClInclude Include="resource.h" />
    <ClInclude Include="SSRMS.h" />
  </ItemGroup>
  <ItemGroup>
    <Library Include="DlgCtrl.lib" />
  </ItemGroup>
  <ItemGroup>
    <ResourceCompile Include="newarm.rc" />
  </ItemGroup>
  <ItemGroup>
    <Image Include="Bitmaps\warning.bmp" />
  </ItemGroup>
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
  <ImportGroup Label="ExtensionTargets">
  </ImportGroup>
</Project>
Code:
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.21005.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "newarm", "newarm.vcxproj", "{1A57C099-C6AF-43A7-8899-83608A6FF011}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Win32 = Debug|Win32
		Release|Win32 = Release|Win32
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{1A57C099-C6AF-43A7-8899-83608A6FF011}.Debug|Win32.ActiveCfg = Debug|Win32
		{1A57C099-C6AF-43A7-8899-83608A6FF011}.Debug|Win32.Build.0 = Debug|Win32
		{1A57C099-C6AF-43A7-8899-83608A6FF011}.Release|Win32.ActiveCfg = Release|Win32
		{1A57C099-C6AF-43A7-8899-83608A6FF011}.Release|Win32.Build.0 = Release|Win32
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal


---------- Post added 09-06-18 at 05:25 AM ---------- Previous post was 09-05-18 at 05:02 PM ----------

Not sure if my setup is correct?


I do have UltraMath,... in the include folder

---------- Post added at 07:39 AM ---------- Previous post was at 05:25 AM ----------

So it seems I need to add libUltra to the solution. But not sure how to?


http://svn.code.sf.net/p/shuttleultr...rsdk/libUltra/

Last edited by gattispilot; 09-05-2018 at 10:23 PM.
gattispilot is online now   Reply With Quote
Old 09-09-2018, 11:08 AM   #2
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

So from what DAve S said told me I need to get all the files and add them into a folder and then try to build based off the SSrms solution?
The same for LibUltra. , right?


Are these files in a zip somewhere. The libUltra has a lot of files.

---------- Post added at 03:29 PM ---------- Previous post was at 07:52 AM ----------

So I redid the solution.
MORE ERRORS
Error 11 error C1083: Cannot open include file: 'ValveManager.h': No such file or directory C:\Orbiter2016\Orbitersdk\samples\libUltra\src\Val veManager.cpp 1 1 libUltra
Error 16 error C1083: Cannot open include file: 'orbitersdk.h': No such file or directory c:\orbiter2016\orbitersdk\samples\ssrms\SSRMS.h 5 1 SSRMS
Error 10 error C1083: Cannot open include file: 'OrbiterAPI.h': No such file or directory (src\UltraMath.cpp) C:\Orbiter2016\Orbitersdk\samples\libUltra\include \UltraMath.h 27 1 libUltra
Error 9 error C1083: Cannot open include file: 'orbiterapi.h': No such file or directory (src\StateVectorPropagator.cpp) c:\orbiter2016\orbitersdk\samples\libultra\include \StateVectorPropagator.h 5 1 libUltra
Error 7 error C1083: Cannot open include file: 'OrbiterAPI.h': No such file or directory (src\PIDControl.cpp) C:\Orbiter2016\Orbitersdk\samples\libUltra\include \UltraMath.h 27 1 libUltra
Error 6 error C1083: Cannot open include file: 'Orbiterapi.h': No such file or directory (src\PEG4Targeting.cpp) C:\Orbiter2016\Orbitersdk\samples\libUltra\include \PEG4Targeting.h 4 1 libUltra
Error 5 error C1083: Cannot open include file: 'Orbiterapi.h': No such file or directory (src\LambertBurnTargeting.cpp) C:\Orbiter2016\Orbitersdk\samples\libUltra\include \LambertBurnTargeting.h 4 1 libUltra
Error 14 error C1083: Cannot open include file: 'OrbiterAPI.h': No such file or directory (src\AerodynamicLookupTables.cpp) C:\Orbiter2016\Orbitersdk\samples\libUltra\include \UltraMath.h 27 1 libUltra
Error 3 error C1083: Cannot open include file: 'OrbiterAPI.h': No such file or directory (KOST\kost_shape.cpp) c:\orbiter2016\orbitersdk\samples\libultra\kost\ko st_settings.h 53 1 libUltra
Error 4 error C1083: Cannot open include file: 'OrbiterAPI.h': No such file or directory (KOST\kost_propagate.cpp) c:\orbiter2016\orbitersdk\samples\libultra\kost\ko st_settings.h 53 1 libUltra
Error 1 error C1083: Cannot open include file: 'OrbiterAPI.h': No such file or directory (KOST\kost_linalg.cpp) c:\orbiter2016\orbitersdk\samples\libultra\kost\ko st_settings.h 53 1 libUltra
Error 2 error C1083: Cannot open include file: 'OrbiterAPI.h': No such file or directory (KOST\kost_elements.cpp) c:\orbiter2016\orbitersdk\samples\libultra\kost\ko st_settings.h 53 1 libUltra
Error 8 error C1083: Cannot open include file: 'OrbiterAPI.h': No such file or directory C:\Orbiter2016\Orbitersdk\samples\libUltra\src\Shu ttleBus.cpp 5 1 libUltra
Error 12 error C1083: Cannot open include file: 'OrbiterAPI.h': No such file or directory C:\Orbiter2016\Orbitersdk\samples\libUltra\src\Dis creteBundleManager.cpp 2 1 libUltra
Error 13 error C1083: Cannot open include file: 'OrbiterAPI.h': No such file or directory C:\Orbiter2016\Orbitersdk\samples\libUltra\src\Dis creteBundle.cpp 7 1 libUltra
Error 15 error C1083: Cannot open include file: 'OrbiterAPI.h': No such file or directory C:\Orbiter2016\Orbitersdk\samples\libUltra\include \Subsystem.h 34 1 SSRMS




---------- Post added 09-08-18 at 06:43 AM ---------- Previous post was 09-07-18 at 03:29 PM ----------

So OrbiterAPI.h is in the include library. Does it need to be somewhere else. Need help on this.

---------- Post added 09-09-18 at 06:08 AM ---------- Previous post was 09-08-18 at 06:43 AM ----------

So I tried getting the 2017 Windows 10 SSU. When I ran the 2013 Sln for SSMRS. I get this error:

1>c:\ssu\orbitersdk\libultra\include\ultramath.h(2 7): fatal error C1083: Cannot open include file: 'OrbiterAPI.h': No such file or directory (compiling source file src\PIDControl.cpp)

Several cannot find OrbiterAPI.h
gattispilot is online now   Reply With Quote
Old 09-13-2018, 12:18 PM   #3
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

Well I at a lost. Not sure why the 2013 solution can not find the OrbiterAPI.h?

I tried making the SSU for 2017 and had a issue also not no luck on it.

1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Mic rosoft.Cpp.WindowsSDK.targets(46,5): error MSB8036: The Windows SDK version 10.0.15063.0 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution".
1>Done building project "libUltra_2017.vcxproj" -- FAILED.

I installed this but the same issue:
https://developer.microsoft.com/en-u...windows-10-sdk

So again at a lost. I might try just getting the things from the Ultralib I need to get it to work.

My goal is to get the translation part to work for the rms on the 2016 shuttle
gattispilot is online now   Reply With Quote
Thanked by:
Reply

  Orbiter-Forum > Orbiter Space Flight Simulator > Orbiter SDK


Thread Tools

Posting Rules
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


All times are GMT. The time now is 03:53 PM.

Quick Links Need Help?


About Us | Rules & Guidelines | TOS Policy | Privacy Policy

Orbiter-Forum is hosted at Orbithangar.com
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright 2007 - 2017, Orbiter-Forum.com. All rights reserved.