MechJeb2

MechJeb2

4M Downloads

Compiling using linux: Assemblies not found?

stefanbeller opened this issue ยท 2 comments

commented

Hi,

so I try to compile using Ubuntu14.04; I already changed the first line in the Makefile to
KSPDIR := ${HOME}/KSP_linux
so it works for me. However when trying to compile I get:

mkdir -p build
resgen2 -usesourcepath MechJeb2/Properties/Resources.resx build/Resources.resources
Read in 6 resources from '/home/sb/OSS/MechJeb2/MechJeb2/Properties/Resources.resx'
Writing resource file...  Done.
gmcs -t:library -lib:/home/sb/KSP_linux/KSP_Data/Managed/ \
        -r:Assembly-CSharp,Assembly-CSharp-firstpass,UnityEngine \
        -out:build/MechJeb2.dll \
        MechJeb2/CelestialBodyExtensions.cs MechJeb2/CompatibilityChecker.cs MechJeb2/ComputerModule.cs MechJeb2/DisplayModule.cs MechJeb2/FuelFlowSimulation.cs MechJeb2/GLUtils.cs MechJeb2/GuiUtils.cs MechJeb2/InstallChecker.cs MechJeb2/LambertSolver.cs MechJeb2/MathExtensions.cs MechJeb2/MechJebAR202.cs MechJeb2/MechJebCore.cs MechJeb2/MechJebModuleAscentAutopilot.cs MechJeb2/MechJebModuleAscentGuidance.cs MechJeb2/MechJebModuleAscentPathEditor.cs MechJeb2/MechJebModuleAttitudeAdjustment.cs MechJeb2/MechJebModuleAttitudeController.cs MechJeb2/MechJebModuleCustomInfoWindow.cs MechJeb2/MechJebModuleDockingAutopilot.cs MechJeb2/MechJebModuleDockingGuidance.cs MechJeb2/MechJebModuleFlightRecorder.cs MechJeb2/MechJebModuleInfoItems.cs MechJeb2/MechJebModuleJoke.cs MechJeb2/MechJebModuleLandingAutopilot.cs MechJeb2/MechJebModuleLandingGuidance.cs MechJeb2/MechJebModuleLandingPredictions.cs MechJeb2/MechJebModuleManeuverPlanner.cs MechJeb2/MechJebModuleMenu.cs MechJeb2/MechJebModuleNodeEditor.cs MechJeb2/MechJebModuleNodeExecutor.cs MechJeb2/MechJebModuleRCSBalancer.cs MechJeb2/MechJebModuleRCSBalancerWindow.cs MechJeb2/MechJebModuleRCSController.cs MechJeb2/MechJebModuleRendezvousAutopilot.cs MechJeb2/MechJebModuleRendezvousAutopilotWindow.cs MechJeb2/MechJebModuleRendezvousGuidance.cs MechJeb2/MechJebModuleRoverController.cs MechJeb2/MechJebModuleRoverWindow.cs MechJeb2/MechJebModuleSettings.cs MechJeb2/MechJebModuleSmartASS.cs MechJeb2/MechJebModuleSpaceplaneAutopilot.cs MechJeb2/MechJebModuleSpaceplaneGuidance.cs MechJeb2/MechJebModuleStageStats.cs MechJeb2/MechJebModuleStagingController.cs MechJeb2/MechJebModuleTargetController.cs MechJeb2/MechJebModuleThrustController.cs MechJeb2/MechJebModuleThrustWindow.cs MechJeb2/MechJebModuleTranslatron.cs MechJeb2/MechJebModuleWarpController.cs MechJeb2/MechJebModuleWarpHelper.cs MechJeb2/MechJebModuleWaypointWindow.cs MechJeb2/MechJebPod.cs MechJeb2/ModExtensionDemo.cs MechJeb2/MuUtils.cs MechJeb2/OrbitalManeuverCalculator.cs MechJeb2/OrbitExtensions.cs MechJeb2/PartExtensions.cs MechJeb2/PartModuleExtensions.cs MechJeb2/PIDController.cs MechJeb2/RCSSolver.cs MechJeb2/ReentrySimulation.cs MechJeb2/SpeechBubble.cs MechJeb2/ToolbarWrapper.cs MechJeb2/Vector6.cs MechJeb2/VesselExtensions.cs MechJeb2/VesselState.cs MechJeb2/Properties/AssemblyInfo.cs MechJeb2/Properties/Resources.Designer.cs MechJeb2/alglib/alglibinternal.cs MechJeb2/alglib/alglibmisc.cs MechJeb2/alglib/ap.cs MechJeb2/alglib/diffequations.cs MechJeb2/alglib/linalg.cs MechJeb2/alglib/optimization.cs \
        -resource:build/Resources.resources,MuMech.Properties.Resources.resources
MechJeb2/MechJebModuleTargetController.cs(309,16): error CS0246: The type or namespace name `VesselTargetModes' could not be found. Are you missing an assembly reference?
Compilation failed: 1 error(s), 0 warnings
make: *** [build/MechJeb2.dll] Error 1
make: Target `all' not remade because of errors.

Any idea/hint how to approach this problem?

commented

Your KSP binaries are up to date ? VesselTargetModes was added in 23.5

commented

I bought KSP late in April via https://kerbalspaceprogram.com/kspstore/ so I believed I had the latest version. However I just had 23 instead of 23.5. Downloading now the newer version.

Thanks a lot for your help.