添加项目文件。

This commit is contained in:
ldh
2026-11-06 14:45:09 +08:00
parent fb76f2ed7d
commit 24cbecc2cc
3437 changed files with 895900 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
# 默认忽略的文件
/shelf/
/workspace.xml
# 基于编辑器的 HTTP 客户端请求
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
+2
View File
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<module classpath="CMake" type="CPP_MODULE" version="4" />
+7
View File
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="com.codeverse.userSettings.MarscodeWorkspaceAppSettingsState">
<option name="chatAppRouterInfo" value="builder/6953378f92c6325650ca2b01" />
<option name="progress" value="1.0" />
</component>
</project>
+18
View File
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="QtSettings">
<option name="myCurrentProfile" value="Debug-本地_QT5" />
<option name="mySettingsPerProfile">
<map>
<entry key="Debug-本地_QT5">
<value>
<PerProfileState>
<option name="myQmlPath" value="D:/QT/QT5.15.2/5.15.2/mingw81_64/qml" />
<option name="myQtBinPath" value="D:/QT/QT5.15.2/5.15.2/mingw81_64/bin" />
</PerProfileState>
</value>
</entry>
</map>
</option>
</component>
</project>
+28
View File
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="PublishConfigData" remoteFilesAllowedToDisappearOnAutoupload="false">
<serverData>
<paths name="远程主机_树莓派 (959dfcc0-99d8-48d3-a411-312e21448960)">
<serverdata>
<mappings>
<mapping local="$PROJECT_DIR$" web="/" />
</mappings>
</serverdata>
</paths>
<paths name="远程主机_树莓派 (cafefa6a-72f6-49e7-97c0-56c09f865db8)">
<serverdata>
<mappings>
<mapping local="$PROJECT_DIR$" web="/" />
</mappings>
</serverdata>
</paths>
<paths name="远程主机_虚拟机 (3b9faf81-fc96-4031-a9f5-e9484c46f18d)">
<serverdata>
<mappings>
<mapping local="$PROJECT_DIR$" web="/" />
</mappings>
</serverdata>
</paths>
</serverData>
</component>
</project>
+251
View File
@@ -0,0 +1,251 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="BackendCodeEditorSettings">
<option name="/Default/CodeInspection/GeneratedCode/GeneratedCodeRegions/=Component_0020Designer_0020generated_0020code/@EntryIndexedValue" value="Component Designer generated code" type="string" />
<option name="/Default/CodeInspection/GeneratedCode/GeneratedCodeRegions/=Designer_0020generated_0020code/@EntryIndexedValue" value="Designer generated code" type="string" />
<option name="/Default/CodeInspection/GeneratedCode/GeneratedCodeRegions/=Web_0020Form_0020Designer_0020generated_0020code/@EntryIndexedValue" value="Web Form Designer generated code" type="string" />
<option name="/Default/CodeInspection/GeneratedCode/GeneratedCodeRegions/=Windows_0020Form_0020Designer_0020generated_0020code/@EntryIndexedValue" value="Windows Form Designer generated code" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CDeclarationWithImplicitIntType/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CommentTypo/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=ConstevalIfIsAlwaysConstant/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppAbstractClassWithoutSpecifier/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppAbstractFinalClass/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppAbstractVirtualFunctionCallInCtor/@EntryIndexedValue" value="ERROR" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppAccessSpecifierWithNoDeclarations/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppAwaiterTypeIsNotClass/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppBooleanIncrementExpression/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppBoostFormatBadCode/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppBoostFormatLegacyCode/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppBoostFormatMixedArgs/@EntryIndexedValue" value="ERROR" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppBoostFormatTooFewArgs/@EntryIndexedValue" value="ERROR" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppBoostFormatTooManyArgs/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppCStyleCast/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppCVQualifierCanNotBeAppliedToReference/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppClassCanBeFinal/@EntryIndexedValue" value="HINT" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppClassIsIncomplete/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppClassNeedsConstructorBecauseOfUninitializedMember/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppClassNeverUsed/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppCompileTimeConstantCanBeReplacedWithBooleanConstant/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppConceptNeverUsed/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppConditionalExpressionCanBeSimplified/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppConstParameterInDeclaration/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppConstValueFunctionReturnType/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppCoroutineCallResolveError/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFAArrayIndexOutOfBounds/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFAConstantConditions/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFAConstantFunctionResult/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFAConstantParameter/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFADeletedPointer/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFAEndlessLoop/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFAInfiniteRecursion/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFAInvalidatedMemory/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFALocalValueEscapesFunction/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFALocalValueEscapesScope/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFALoopConditionNotUpdated/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFAMemoryLeak/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFANotInitializedField/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFANullDereference/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFATimeOver/@EntryIndexedValue" value="HINT" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFAUnreachableCode/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFAUnreachableFunctionCall/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFAUnreadVariable/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFAUnusedValue/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDeclarationHidesLocal/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDeclarationHidesUncapturedLocal/@EntryIndexedValue" value="HINT" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDeclarationSpecifierWithoutDeclarators/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDeclaratorDisambiguatedAsFunction/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDeclaratorNeverUsed/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDeclaratorUsedBeforeInitialization/@EntryIndexedValue" value="ERROR" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDefaultCaseNotHandledInSwitchStatement/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDefaultInitializationWithNoUserConstructor/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDefaultIsUsedAsIdentifier/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDefaultedSpecialMemberFunctionIsImplicitlyDeleted/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDeletingVoidPointer/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDependentTemplateWithoutTemplateKeyword/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDependentTypeWithoutTypenameKeyword/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDeprecatedEntity/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDeprecatedOverridenMethod/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDeprecatedRegisterStorageClassSpecifier/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDereferenceOperatorLimitExceeded/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDiscardedPostfixOperatorResult/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDoxygenSyntaxError/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDoxygenUndocumentedParameter/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDoxygenUnresolvedReference/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEmptyDeclaration/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEnforceCVQualifiersOrder/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEnforceCVQualifiersPlacement/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEnforceDoStatementBraces/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEnforceForStatementBraces/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEnforceFunctionDeclarationStyle/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEnforceIfStatementBraces/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEnforceNestedNamespacesStyle/@EntryIndexedValue" value="HINT" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEnforceOverridingDestructorStyle/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEnforceOverridingFunctionStyle/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEnforceTypeAliasCodeStyle/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEnforceWhileStatementBraces/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEntityAssignedButNoRead/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEntityUsedOnlyInUnevaluatedContext/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEnumeratorNeverUsed/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEqualOperandsInBinaryExpression/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEvaluationFailure/@EntryIndexedValue" value="ERROR" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppExplicitSpecializationInNonNamespaceScope/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppExpressionWithoutSideEffects/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppFinalFunctionInFinalClass/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppFinalNonOverridingVirtualFunction/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppForLoopCanBeReplacedWithWhile/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppForwardEnumDeclarationWithoutUnderlyingType/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppFunctionDoesntReturnValue/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppFunctionIsNotImplemented/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppFunctionResultShouldBeUsed/@EntryIndexedValue" value="HINT" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppFunctionalStyleCast/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppHeaderHasBeenAlreadyIncluded/@EntryIndexedValue" value="HINT" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppHiddenFunction/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppHidingFunction/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppIdenticalOperandsInBinaryExpression/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppIfCanBeReplacedByConstexprIf/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppImplicitDefaultConstructorNotAvailable/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppIncompatiblePointerConversion/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppIncompleteSwitchStatement/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppInconsistentNaming/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppIntegralToPointerConversion/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppInvalidLineContinuation/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppJoinDeclarationAndAssignment/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppLambdaCaptureNeverUsed/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppLocalVariableMayBeConst/@EntryIndexedValue" value="HINT" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppLocalVariableMightNotBeInitialized/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppLocalVariableWithNonTrivialDtorIsNeverUsed/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppLongFloat/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMemberFunctionMayBeConst/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMemberFunctionMayBeStatic/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMemberInitializersOrder/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMismatchedClassTags/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMissingIncludeGuard/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMissingKeywordThrow/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMsExtAddressOfClassRValue/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMsExtBindingRValueToLvalueReference/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMsExtCopyElisionInCopyInitDeclarator/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMsExtDoubleUserConversionInCopyInit/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMsExtNotInitializedStaticConstLocalVar/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMsExtReinterpretCastFromNullptr/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMultiCharacterLiteral/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMultiCharacterWideLiteral/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMustBePublicVirtualToImplementInterface/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMutableSpecifierOnReferenceMember/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppNoDiscardExpression/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppNodiscardFunctionWithoutReturnValue/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppNonExceptionSafeResourceAcquisition/@EntryIndexedValue" value="HINT" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppNonExplicitConversionOperator/@EntryIndexedValue" value="HINT" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppNonExplicitConvertingConstructor/@EntryIndexedValue" value="HINT" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppNonInlineFunctionDefinitionInHeaderFile/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppNonInlineVariableDefinitionInHeaderFile/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppNotAllPathsReturnValue/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppObjectMemberMightNotBeInitialized/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppOutParameterMustBeWritten/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppParameterMayBeConst/@EntryIndexedValue" value="HINT" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppParameterMayBeConstPtrOrRef/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppParameterNamesMismatch/@EntryIndexedValue" value="HINT" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppParameterNeverUsed/@EntryIndexedValue" value="HINT" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppPassValueParameterByConstReference/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppPointerConversionDropsQualifiers/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppPointerToIntegralConversion/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppPolymorphicClassWithNonVirtualPublicDestructor/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppPossiblyErroneousEmptyStatements/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppPossiblyUninitializedMember/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppPossiblyUnintendedObjectSlicing/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppPrecompiledHeaderIsNotIncluded/@EntryIndexedValue" value="ERROR" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppPrecompiledHeaderNotFound/@EntryIndexedValue" value="ERROR" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppPrintfBadFormat/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppPrintfExtraArg/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppPrintfMissedArg/@EntryIndexedValue" value="ERROR" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppPrintfRiskyFormat/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppPrivateSpecialMemberFunctionIsNotImplemented/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRangeBasedForIncompatibleReference/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedefinitionOfDefaultArgumentInOverrideFunction/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantAccessSpecifier/@EntryIndexedValue" value="HINT" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantBaseClassAccessSpecifier/@EntryIndexedValue" value="HINT" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantBaseClassInitializer/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantBooleanExpressionArgument/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantCastExpression/@EntryIndexedValue" value="HINT" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantComplexityInComparison/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantConditionalExpression/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantConstSpecifier/@EntryIndexedValue" value="HINT" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantControlFlowJump/@EntryIndexedValue" value="HINT" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantDereferencingAndTakingAddress/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantElaboratedTypeSpecifier/@EntryIndexedValue" value="HINT" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantElseKeyword/@EntryIndexedValue" value="HINT" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantElseKeywordInsideCompoundStatement/@EntryIndexedValue" value="HINT" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantEmptyDeclaration/@EntryIndexedValue" value="HINT" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantEmptyStatement/@EntryIndexedValue" value="HINT" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantExportKeyword/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantFwdClassOrEnumSpecifier/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantInlineSpecifier/@EntryIndexedValue" value="HINT" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantLambdaParameterList/@EntryIndexedValue" value="HINT" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantMemberInitializer/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantNamespaceDefinition/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantParentheses/@EntryIndexedValue" value="HINT" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantQualifier/@EntryIndexedValue" value="HINT" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantQualifierADL/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantStaticSpecifierOnMemberAllocationFunction/@EntryIndexedValue" value="HINT" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantStaticSpecifierOnThreadLocalLocalVariable/@EntryIndexedValue" value="HINT" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantTemplateArguments/@EntryIndexedValue" value="HINT" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantTemplateKeyword/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantTypenameKeyword/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantVoidArgumentList/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantZeroInitializerInAggregateInitialization/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppReinterpretCastFromVoidPtr/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRemoveRedundantBraces/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppReplaceMemsetWithZeroInitialization/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppReplaceTieWithStructuredBinding/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppReturnNoValueInNonVoidFunction/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppSmartPointerVsMakeFunction/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppSomeObjectMembersMightNotBeInitialized/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppSpecialFunctionWithoutNoexceptSpecification/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppStaticAssertFailure/@EntryIndexedValue" value="ERROR" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppStaticDataMemberInUnnamedStruct/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppStaticSpecifierOnAnonymousNamespaceMember/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppStringLiteralToCharPointerConversion/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppTabsAreDisallowed/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppTemplateArgumentsCanBeDeduced/@EntryIndexedValue" value="HINT" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppTemplateParameterNeverUsed/@EntryIndexedValue" value="HINT" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppTemplateParameterShadowing/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppThrowExpressionCanBeReplacedWithRethrow/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppTooWideScope/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppTooWideScopeInitStatement/@EntryIndexedValue" value="HINT" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppTypeAliasNeverUsed/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUninitializedDependentBaseClass/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUninitializedNonStaticDataMember/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUnionMemberOfReferenceType/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUnmatchedPragmaEndRegionDirective/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUnmatchedPragmaRegionDirective/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUnnamedNamespaceInHeaderFile/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUnnecessaryWhitespace/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUnsignedZeroComparison/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUnusedIncludeDirective/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUseAlgorithmWithCount/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUseAssociativeContains/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUseAuto/@EntryIndexedValue" value="HINT" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUseAutoForNumeric/@EntryIndexedValue" value="HINT" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUseElementsView/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUseEraseAlgorithm/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUseFamiliarTemplateSyntaxForGenericLambdas/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUseRangeAlgorithm/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUseStdSize/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUseStructuredBinding/@EntryIndexedValue" value="HINT" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUseTypeTraitAlias/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUserDefinedLiteralSuffixDoesNotStartWithUnderscore/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUsingResultOfAssignmentAsCondition/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppVariableCanBeMadeConstexpr/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppVirtualFunctionCallInsideCtor/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppVirtualFunctionInFinalClass/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppVolatileParameterInDeclaration/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppWarningDirective/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppWrongIncludesOrder/@EntryIndexedValue" value="HINT" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppWrongSlashesInIncludeDirective/@EntryIndexedValue" value="HINT" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppZeroConstantCanBeReplacedWithNullptr/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppZeroValuedExpressionUsedAsNullPointer/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=IdentifierTypo/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=IfStdIsConstantEvaluatedCanBeReplaced/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=StdIsConstantEvaluatedWillAlwaysEvaluateToConstant/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=StringLiteralTypo/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
</component>
</project>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CMakePythonSetting">
<option name="pythonIntegrationState" value="YES" />
</component>
<component name="CMakeWorkspace" PROJECT_DIR="$PROJECT_DIR$" />
<component name="WestSettings"><![CDATA[{}]]></component>
</project>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/1208_test_jixiebi_01.iml" filepath="$PROJECT_DIR$/.idea/1208_test_jixiebi_01.iml" />
</modules>
</component>
</project>
Generated
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
+6
View File
@@ -0,0 +1,6 @@
{
"$schema": "https://download.qt.io/official_releases/qtcreator/latest/installer_source/jsonschemas/project.json",
"files.exclude": [
".qtcreator/project.json.user"
]
}
+746
View File
@@ -0,0 +1,746 @@
cmake_minimum_required(VERSION 3.16)
# ===========================================================================
# CavityLIBS —— 腔体 LIBS 系统
#
# 本工程不再写死 Qt / Qwt / ARIS 的安装路径(原来固定为 D:/QT、D:/qwt、
# D:/aris,换机器后必然配置失败):
#
# * Qt —— 由构建套件(CMakePresets 里的 CMAKE_PREFIX_PATH)或命令行
# -DCMAKE_PREFIX_PATH=<Qt 目录> 提供;
# * Qwt —— 依次在 third_party、环境变量 QWT_ROOT、常见安装位置中查找,
# **按编译器挑选库形式**:
# MinGW -> lib/libqwt.a (GCC 编译的 qwt)
# MSVC -> lib/qwt.lib (VS 编译的 qwt,见 VS2026 说明)
# Qwt 是 C++ 库,必须与主程序用同一个编译器编译,混用无法链接;
# * ARIS —— 同样自动查找(MinGW 用 libaris.dll.a,MSVC 用 libaris.lib);
# 找不到与目标匹配的 SDK 时回退到 third_party/aris-stub 兼容桩;
# * libusb 头文件用于 ARIS 头文件包含,运行库在部署阶段复制。
#
# 支持的套件:
# * Visual Studio 2026 / MSVC x64(推荐,见 README-VS2026-构建运行.md)
# * Qt Creator + MinGW(原方案,需要 G: 盘那套 Qt mingw 和 qwt)
# ===========================================================================
project(CavityLIBS LANGUAGES CXX)
# ---------------------------------------------------------------------------
# 基本编译设置
# ---------------------------------------------------------------------------
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
# 自动处理 Qt 的 MOC / UIC / RCC
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# 可执行文件统一输出到 <build>/bin,DLL 和运行数据也部署到这里
set(CAVITY_BIN_DIR "${CMAKE_BINARY_DIR}/bin")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CAVITY_BIN_DIR}")
foreach(_cfg DEBUG RELEASE RELWITHDEBINFO MINSIZEREL)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_${_cfg} "${CAVITY_BIN_DIR}")
endforeach()
# 目标位数 / 位数标签 / 工具链标签
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(CAVITY_BITS 64)
set(CAVITY_TAG "x64")
else()
set(CAVITY_BITS 32)
set(CAVITY_TAG "x86")
endif()
if(MSVC)
set(CAVITY_MSVC ON)
set(CAVITY_TOOLCHAIN "MSVC")
else()
set(CAVITY_MSVC OFF)
set(CAVITY_TOOLCHAIN "GCC")
endif()
message(STATUS "CavityLIBS: 目标为 ${CAVITY_BITS} 位程序(${CAVITY_TAG}),工具链 ${CAVITY_TOOLCHAIN}")
# ---------------------------------------------------------------------------
# MSVC 专用编译设置
#
# 1) /utf-8
# 源码是 UTF-8(多数没有 BOM),中文字面量必须按 UTF-8 解析;否则 MSVC 会
# 按 CP936 读,中文字符的第二字节 0x5C 会被当作行尾续行符,报
# “字符串字面量中的换行符(C2001)” 之类的错误。
# 2) /FI 兼容层
# Qt 5.15.2 的 qvector.h / qlist.h 用到 stdext::make_checked_array_iterator,
# 这个辅助函数在新版 MSVC(VS2022 后期 / VS2026)的 STL 里已被删除,
# 不补回则任何包含 Qt 容器的源文件都无法编译。见 compat/qt5_msvc_compat.h。
# 3) 关闭依赖 CRT 安全警告、补上 M_PI 等数学常量。
# ---------------------------------------------------------------------------
function(cavity_apply_toolchain_settings target)
if(CAVITY_MSVC)
target_compile_options(${target} PRIVATE
/utf-8
"/FI${CMAKE_CURRENT_SOURCE_DIR}/compat/qt5_msvc_compat.h"
/Zc:__cplusplus
/Zc:preprocessor
/wd4819 # 厂商头文件里的 GBK 注释
/wd4828
/wd4996)
target_compile_definitions(${target} PRIVATE
_CRT_SECURE_NO_WARNINGS
_USE_MATH_DEFINES
NOMINMAX
UNICODE
_UNICODE
WIN32_LEAN_AND_MEAN)
if(CMAKE_GENERATOR MATCHES "Visual Studio")
target_compile_options(${target} PRIVATE /MP)
endif()
endif()
endfunction()
# ---------------------------------------------------------------------------
# 工具函数:读取 PE 文件的 Machine 字段,返回 x86 / x64 / 空
# 用于在配置阶段发现“32 位编译器配 64 位库”这类问题,给出明确提示
# ---------------------------------------------------------------------------
function(cavity_pe_machine dll_path out_var)
set(_machine "")
if(EXISTS "${dll_path}")
file(READ "${dll_path}" _lfanew OFFSET 60 LIMIT 4 HEX)
string(LENGTH "${_lfanew}" _len)
if(_len EQUAL 8)
string(SUBSTRING "${_lfanew}" 0 2 _b0)
string(SUBSTRING "${_lfanew}" 2 2 _b1)
string(SUBSTRING "${_lfanew}" 4 2 _b2)
string(SUBSTRING "${_lfanew}" 6 2 _b3)
math(EXPR _offset "0x${_b3}${_b2}${_b1}${_b0}")
math(EXPR _machine_offset "${_offset} + 4")
file(READ "${dll_path}" _machine_hex OFFSET ${_machine_offset} LIMIT 2 HEX)
string(SUBSTRING "${_machine_hex}" 0 2 _m0)
string(SUBSTRING "${_machine_hex}" 2 2 _m1)
math(EXPR _value "0x${_m1}${_m0}")
if(_value EQUAL 34404) # 0x8664
set(_machine "x64")
elseif(_value EQUAL 332) # 0x014c
set(_machine "x86")
endif()
endif()
endif()
set(${out_var} "${_machine}" PARENT_SCOPE)
endfunction()
# ---------------------------------------------------------------------------
# Qt
# ---------------------------------------------------------------------------
find_package(Qt5 5.15 REQUIRED COMPONENTS Core Widgets Gui SerialPort Sql)
# 校验 Qt 的位数与当前编译器是否一致
set(_qt_core_dll "")
foreach(_prop IMPORTED_LOCATION IMPORTED_LOCATION_RELEASE IMPORTED_LOCATION_DEBUG)
get_target_property(_prop_value Qt5::Core ${_prop})
if(_prop_value AND EXISTS "${_prop_value}")
set(_qt_core_dll "${_prop_value}")
break()
endif()
endforeach()
if(_qt_core_dll)
cavity_pe_machine("${_qt_core_dll}" _qt_machine)
if(_qt_machine AND NOT _qt_machine STREQUAL "${CAVITY_TAG}")
message(FATAL_ERROR
"Qt 与编译器位数不一致:\n"
" 当前编译器:${CAVITY_BITS} 位(${CAVITY_TOOLCHAIN} ${CMAKE_CXX_COMPILER})\n"
" Qt5Core :${_qt_core_dll} [${_qt_machine}]\n"
"请在 CMakePresets 里选择与 Qt 位数一致的套件,"
"或在命令行传入 -DCMAKE_PREFIX_PATH=<对应位数的 Qt 目录>。")
endif()
endif()
# Qt 运行库目录(部署阶段复制 DLL / 插件用)
get_filename_component(_qt_bin_dir "${Qt5Core_DIR}/../../../bin" ABSOLUTE)
# ---------------------------------------------------------------------------
# Qwt
# Qwt 是 C++ 库:MSVC 只能用 MSVC 编译的 qwt,MinGW 只能用 GCC 编译的 qwt。
# 库文件名因此按工具链区分。
# ---------------------------------------------------------------------------
set(QWT_ROOT "" CACHE PATH "Qwt 根目录(包含 include/ 或 src/ 以及 lib/)")
if(CAVITY_MSVC)
set(_qwt_lib_names_release qwt.lib)
set(_qwt_lib_names_debug qwtd.lib)
set(_qwt_candidates
"${CMAKE_CURRENT_SOURCE_DIR}/third_party/qwt-6.2.0-msvc"
"$ENV{QWT_ROOT}"
"${CMAKE_CURRENT_SOURCE_DIR}/msvc-deps/qwt-6.2.0"
"D:/qwt/qwt-6.2.0-msvc"
"C:/Qwt-6.2.0")
else()
set(_qwt_lib_names_release libqwt.a)
set(_qwt_lib_names_debug libqwtd.a)
set(_qwt_candidates
"${CMAKE_CURRENT_SOURCE_DIR}/third_party/qwt-6.3.0-mingw${CAVITY_BITS}"
"$ENV{QWT_ROOT}"
"G:/qt/Qt/mylib/qwt-6.3.0"
"D:/qwt/qwt-6.3.0"
"C:/Qwt-6.3.0"
"E:/perfessional/QT/install/qwt-6.3.0")
endif()
if(NOT QWT_ROOT)
foreach(_cand IN LISTS _qwt_candidates)
if(NOT _cand)
continue()
endif()
# 头文件目录:优先 <root>/include,其次 <root>/src(qwt 源码树)
set(_qwt_headers "")
if(EXISTS "${_cand}/include/qwt_plot.h")
set(_qwt_headers "${_cand}/include")
elseif(EXISTS "${_cand}/src/qwt_plot.h")
set(_qwt_headers "${_cand}/src")
endif()
# 库文件:必须是对应工具链的形式
set(_qwt_lib_found "")
foreach(_libname IN LISTS _qwt_lib_names_release)
if(EXISTS "${_cand}/lib/${_libname}")
set(_qwt_lib_found "${_cand}/lib/${_libname}")
break()
endif()
endforeach()
if(NOT _qwt_headers OR NOT _qwt_lib_found)
continue()
endif()
# 位数校验:优先看 qwt.dll / qwtd.dll 的 PE 头
set(_arch_ok TRUE)
foreach(_qwt_dll qwt.dll qwtd.dll)
if(EXISTS "${_cand}/lib/${_qwt_dll}")
cavity_pe_machine("${_cand}/lib/${_qwt_dll}" _qwt_machine)
if(_qwt_machine AND NOT _qwt_machine STREQUAL "${CAVITY_TAG}")
set(_arch_ok FALSE)
endif()
break()
endif()
endforeach()
if(_arch_ok)
set(QWT_ROOT "${_cand}")
break()
endif()
endforeach()
endif()
if(NOT QWT_ROOT)
if(CAVITY_MSVC)
message(FATAL_ERROR
"找不到 MSVC 版 Qwt(需要 lib/qwt.lib 与 qwt_*.h 头文件)。\n"
"Qwt 是 C++ 库,必须用与本工程相同的编译器编译:\n"
" 1) 用 msvc-deps/build-qwt2.bat 现场编译(源码 msvc-deps/qwt-6.2.0);\n"
" 2) 把生成的 lib/qwt.lib、lib/qwt.dll、lib/qwtd.lib、lib/qwtd.dll\n"
" 和 src/*.h 放到 third_party/qwt-6.2.0-msvc 下;\n"
" 3) 或用 -DQWT_ROOT=<Qwt 根目录> 指定。")
else()
message(FATAL_ERROR
"找不到 ${CAVITY_BITS} 位 Qwt(需要 lib/libqwt.a 与 qwt_*.h 头文件)。\n"
"可以用 -DQWT_ROOT=<Qwt 根目录> 指定,或设置环境变量 QWT_ROOT。")
endif()
endif()
if(EXISTS "${QWT_ROOT}/include/qwt_plot.h")
set(QWT_INCLUDE_DIR "${QWT_ROOT}/include")
else()
set(QWT_INCLUDE_DIR "${QWT_ROOT}/src")
endif()
set(QWT_LIB_DIR "${QWT_ROOT}/lib")
message(STATUS "Qwt: ${QWT_ROOT}")
# Release / Debug 两套库:qwt 在 Debug 下生成 qwtd,MinGW 下是 libqwtd.a。
# 只有在 Qt 自身也提供 Debug 运行库时才用 Debug 版 qwt(否则 MSVC 的
# debug/release CRT 混用会在运行期崩溃)。
set(_qwt_lib_release "")
set(_qwt_lib_debug "")
foreach(_libname IN LISTS _qwt_lib_names_release)
if(EXISTS "${QWT_LIB_DIR}/${_libname}")
set(_qwt_lib_release "${QWT_LIB_DIR}/${_libname}")
break()
endif()
endforeach()
foreach(_libname IN LISTS _qwt_lib_names_debug)
if(EXISTS "${QWT_LIB_DIR}/${_libname}")
set(_qwt_lib_debug "${QWT_LIB_DIR}/${_libname}")
break()
endif()
endforeach()
set(_qwt_dll_release "${QWT_LIB_DIR}/qwt.dll")
set(_qwt_dll_debug "${QWT_LIB_DIR}/qwtd.dll")
if(NOT EXISTS "${_qt_bin_dir}/Qt5Cored.dll" OR NOT _qwt_lib_debug)
# 没有 Debug 版 Qt / qwt:Debug 配置也统一用 release 版(带符号即可)
set(_qwt_lib_debug "${_qwt_lib_release}")
set(_qwt_dll_debug "${_qwt_dll_release}")
endif()
set(QWT_LIB "$<IF:$<CONFIG:Debug>,${_qwt_lib_debug},${_qwt_lib_release}>")
set(QWT_RUNTIME_DLL "$<IF:$<CONFIG:Debug>,${_qwt_dll_debug},${_qwt_dll_release}>")
# ---------------------------------------------------------------------------
# ARIS 光谱仪 SDK
# 注意:厂商只提供 MinGW 编译的 libaris.dll(导出的是 GCC 名字修饰的 C++
# 符号,且要求继承它的回调类)。MSVC 无法链接这种库,所以 MSVC 目标下
# 只能使用项目内置的兼容桩(界面/算法可用,不驱动硬件)。
# ---------------------------------------------------------------------------
set(ARIS_ROOT "" CACHE PATH "ARIS SDK 根目录(包含 include/ 与 lib/ 导入库)")
set(ARIS_INCLUDE_DIR "" CACHE PATH "ARIS 头文件目录(通常无需手动指定)")
option(CAVITY_ALLOW_ARIS_STUB
"找不到与目标位数/工具链匹配的 ARIS SDK 时,使用内置兼容桩(仅界面/算法,无光谱仪硬件)"
ON)
if(CAVITY_MSVC)
set(_aris_lib_names libaris.lib aris.lib)
else()
set(_aris_lib_names libaris.dll.a)
endif()
if(NOT ARIS_ROOT)
set(_aris_candidates
"${CMAKE_CURRENT_SOURCE_DIR}/third_party/aris-${CAVITY_TOOLCHAIN}"
"${CMAKE_CURRENT_SOURCE_DIR}/third_party/aris-mingw${CAVITY_BITS}"
"$ENV{ARIS_ROOT}"
"G:/qt/Qt/mylib/aris_0411"
"D:/aris/aris")
foreach(_cand IN LISTS _aris_candidates)
if(NOT _cand)
continue()
endif()
if(NOT EXISTS "${_cand}/include/ziolinkprotocol.h")
continue()
endif()
set(_aris_lib_found "")
foreach(_libname IN LISTS _aris_lib_names)
if(EXISTS "${_cand}/lib/${_libname}")
set(_aris_lib_found "${_cand}/lib/${_libname}")
break()
endif()
endforeach()
if(NOT _aris_lib_found)
continue()
endif()
if(EXISTS "${_cand}/bin/libaris.dll")
cavity_pe_machine("${_cand}/bin/libaris.dll" _aris_machine)
if(_aris_machine AND NOT _aris_machine STREQUAL "${CAVITY_TAG}")
continue()
endif()
endif()
set(ARIS_ROOT "${_cand}")
break()
endforeach()
endif()
# 头文件目录(兼容桩也需要,头文件本身与位数无关)
if(NOT ARIS_INCLUDE_DIR)
set(_aris_include_candidates
"${ARIS_ROOT}/include"
"${CMAKE_CURRENT_SOURCE_DIR}/third_party/aris/include"
"G:/qt/Qt/mylib/aris_0411/include"
"D:/aris/aris/include")
foreach(_cand IN LISTS _aris_include_candidates)
if(_cand AND EXISTS "${_cand}/ziolinkprotocol.h")
set(ARIS_INCLUDE_DIR "${_cand}")
break()
endif()
endforeach()
endif()
if(NOT ARIS_INCLUDE_DIR)
message(FATAL_ERROR
"找不到 ARIS 头文件(ziolinkprotocol.h / spectrometerdevice.h)。\n"
"请用 -DARIS_INCLUDE_DIR=<目录> 或 -DARIS_ROOT=<SDK 根目录> 指定。")
endif()
# ---------------------------------------------------------------------------
# ARIS 桥接 DLL(MSVC 专用)
# MSVC 无法直接链接厂商的 GCC 版 libaris.dll,改用 third_party/aris-bridge
# 里由 MinGW 编译的 aris_bridge.dll(纯 C 接口,运行时 LoadLibrary)。
# ---------------------------------------------------------------------------
option(CAVITY_USE_ARIS_BRIDGE "MSVC 构建通过 aris_bridge.dll 使用真实 ARIS SDK" ON)
set(CAVITY_ARIS_BRIDGE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/third_party/aris-bridge"
CACHE PATH "ARIS 桥接目录(bin/aris_bridge.dll、vendor/libaris.dll、runtime/*.dll)")
set(CAVITY_ARIS_BRIDGE OFF)
if(CAVITY_MSVC AND CAVITY_USE_ARIS_BRIDGE AND EXISTS "${CAVITY_ARIS_BRIDGE_DIR}/bin/aris_bridge.dll")
set(CAVITY_ARIS_BRIDGE ON)
endif()
set(CAVITY_USING_ARIS_STUB OFF)
if(CAVITY_ARIS_BRIDGE)
# 桥接模式:不需要 SDK 导入库,也不用兼容桩
message(STATUS "ARIS SDK: 通过桥接 DLL 使用真实 SDK(${CAVITY_ARIS_BRIDGE_DIR}/bin/aris_bridge.dll)")
elseif(ARIS_ROOT)
set(ARIS_LIB "")
foreach(_libname IN LISTS _aris_lib_names)
if(EXISTS "${ARIS_ROOT}/lib/${_libname}")
set(ARIS_LIB "${ARIS_ROOT}/lib/${_libname}")
break()
endif()
endforeach()
set(ARIS_RUNTIME_DLL "${ARIS_ROOT}/bin/libaris.dll")
if(NOT EXISTS "${ARIS_RUNTIME_DLL}")
set(ARIS_RUNTIME_DLL "")
endif()
message(STATUS "ARIS SDK: ${ARIS_ROOT}")
elseif(CAVITY_ALLOW_ARIS_STUB)
set(CAVITY_USING_ARIS_STUB ON)
if(CAVITY_MSVC)
message(WARNING
"未找到 MSVC 版 ARIS SDK,将使用内置兼容桩(aris_stub.dll)。\n"
" 厂商 SDK 只有 MinGW 编译的 libaris.dll(GCC 名字修饰的 C++ 符号),\n"
" MSVC 无法链接;因此 MSVC 目标下无法驱动光谱仪硬件。\n"
" 界面、寻峰/元素分析算法、串口、数据库功能均正常。\n"
" 确实需要硬件时,请用 MinGW 工具链构建(见 README-构建运行.md)。")
else()
message(WARNING
"未找到 ${CAVITY_BITS} 位 ARIS SDK(libaris.dll.a),将使用内置兼容桩。\n"
" 程序可以正常编译、启动和调试界面,但不会检测到光谱仪硬件。\n"
" 若拿到 ${CAVITY_BITS} 位 ARIS SDK,请用 -DARIS_ROOT=<SDK 根目录> 指定,\n"
" 或把 SDK 放到 third_party/aris-mingw${CAVITY_BITS}/。")
endif()
else()
message(FATAL_ERROR
"未找到匹配的 ARIS SDK 导入库(${_aris_lib_names})。\n"
"请用 -DARIS_ROOT=<SDK 根目录> 指定,或允许使用兼容桩:-DCAVITY_ALLOW_ARIS_STUB=ON")
endif()
# ---------------------------------------------------------------------------
# libusb(ARIS 头文件依赖 libusb-1.0/libusb.h;运行库在部署阶段复制)
# ---------------------------------------------------------------------------
set(LIBUSB_INCLUDE_DIR "" CACHE PATH "libusb 头文件目录(其下应有 libusb-1.0/libusb.h)")
if(NOT LIBUSB_INCLUDE_DIR)
set(_libusb_candidates
"${CMAKE_CURRENT_SOURCE_DIR}/third_party/libusb-1.0/include"
"${CMAKE_CURRENT_SOURCE_DIR}/third_party/libusb/include"
"G:/qt/Qt/mylib/libusb_x64-windows/include"
"D:/aris/libusb_x64-windows/include")
foreach(_cand IN LISTS _libusb_candidates)
if(_cand AND EXISTS "${_cand}/libusb-1.0/libusb.h")
set(LIBUSB_INCLUDE_DIR "${_cand}")
break()
endif()
endforeach()
endif()
if(NOT LIBUSB_INCLUDE_DIR)
message(FATAL_ERROR
"找不到 libusb 头文件(libusb-1.0/libusb.h),ARIS 头文件需要它。\n"
"请用 -DLIBUSB_INCLUDE_DIR=<目录> 指定。")
endif()
# libusb 运行库:只在链接真实 ARIS SDK 时需要
set(LIBUSB_RUNTIME_DLL "")
if(NOT CAVITY_USING_ARIS_STUB)
set(_libusb_dll_candidates
"${CMAKE_CURRENT_SOURCE_DIR}/Libs/libusb-1.0.dll"
"G:/qt/Qt/mylib/libusb_x64-windows/bin/libusb-1.0.dll")
foreach(_cand IN LISTS _libusb_dll_candidates)
if(_cand AND EXISTS "${_cand}")
cavity_pe_machine("${_cand}" _libusb_machine)
if(NOT _libusb_machine OR _libusb_machine STREQUAL "${CAVITY_TAG}")
set(LIBUSB_RUNTIME_DLL "${_cand}")
break()
endif()
endif()
endforeach()
endif()
# ---------------------------------------------------------------------------
# 程序与依赖
# ---------------------------------------------------------------------------
add_executable(CavityLIBS
main.cpp
mainwindow.cpp
mainwindow.h
mainwindow.ui
probe_tube.cpp
probe_tube.h
computer.cpp
computer.h
Spectrometer/devicemanager.cpp
Spectrometer/devicemanager.h
Spectrometer/algorithmanalysis.cpp
Spectrometer/algorithmanalysis.h
Spectrometer/elementanalysis.cpp
Spectrometer/elementanalysis.h
Spectrometer/specpeakservice.cpp
Spectrometer/specpeakservice.h
Spectrometer/spectrumalgorithm.cpp
Spectrometer/spectrumalgorithm.h
Spectrometer/spectrometer.cpp
Spectrometer/spectrometer.h
Spectrometer/arisbridge.h
Spectrometer/arisbridge.cpp
Public/util.cpp
Public/util.h
Public/crc16util.cpp
Public/crc16util.h
Public/type.h
Public/avaspec.h
Public/sqliteutil.cpp
Public/sqliteutil.h
PeakSearching/peakfinder.cpp
PeakSearching/peakfinder.h
Public/clickable_line_edit.h
)
target_include_directories(CavityLIBS PRIVATE
"${CMAKE_CURRENT_SOURCE_DIR}"
"${QWT_INCLUDE_DIR}"
"${ARIS_INCLUDE_DIR}"
"${LIBUSB_INCLUDE_DIR}")
# GUI 程序:不要系统自动附带的控制台窗口。
# main.cpp 会在需要时自己创建一个“运行日志”控制台(独立窗口,实时显示指令/应答),
# 而从 Qt Creator / Visual Studio 或命令行重定向运行时则沿用已有的管道/控制台。
set_target_properties(CavityLIBS PROPERTIES WIN32_EXECUTABLE TRUE)
# Qwt 以 DLL 方式构建,使用方需要 QWT_DLL
target_compile_definitions(CavityLIBS PRIVATE QWT_DLL)
# MSVC:/utf-8 + Qt 5.15 兼容层(MinGW 下不做任何事)
cavity_apply_toolchain_settings(CavityLIBS)
# 桥接模式:定义 CAVITY_USE_ARIS_BRIDGE,并加入纯 C 头文件目录
if(CAVITY_ARIS_BRIDGE)
target_compile_definitions(CavityLIBS PRIVATE CAVITY_USE_ARIS_BRIDGE)
target_include_directories(CavityLIBS PRIVATE "${CAVITY_ARIS_BRIDGE_DIR}/src")
endif()
target_link_libraries(CavityLIBS PRIVATE
Qt5::Core
Qt5::Widgets
Qt5::Gui
Qt5::SerialPort
Qt5::Sql
"${QWT_LIB}")
if(CAVITY_USING_ARIS_STUB)
# 用真实的 ARIS 头文件编译一个空实现的替身 DLL,接口与正式 SDK 一致
add_library(aris_stub SHARED third_party/aris-stub/aris_stub.cpp)
target_include_directories(aris_stub PRIVATE
"${ARIS_INCLUDE_DIR}"
"${LIBUSB_INCLUDE_DIR}")
target_compile_definitions(aris_stub PRIVATE ARIS_LIBRARY)
cavity_apply_toolchain_settings(aris_stub)
set_target_properties(aris_stub PROPERTIES
PREFIX ""
OUTPUT_NAME "aris_stub")
target_link_libraries(CavityLIBS PRIVATE aris_stub)
elseif(ARIS_LIB)
target_link_libraries(CavityLIBS PRIVATE "${ARIS_LIB}")
endif()
if(CAVITY_MSVC)
# devicemanager.cpp 直接包含 winsock2.h(GCC 会自动带上,MSVC 需要显式链接)
target_link_libraries(CavityLIBS PRIVATE ws2_32)
endif()
# ---------------------------------------------------------------------------
# 运行环境部署:把 DLL、Qt 插件和运行数据复制到 <build>/bin
# ---------------------------------------------------------------------------
option(CAVITY_DEPLOY_RUNTIME "构建后自动部署运行库与数据文件" ON)
if(CAVITY_DEPLOY_RUNTIME)
# ---- 第三方库 -------------------------------------------------------
set(_deploy_dlls "${QWT_RUNTIME_DLL}")
if(CAVITY_ARIS_BRIDGE)
# 桥接 DLL + 厂商 libaris.dll + libusb + MinGW 运行库(GCC 8.3)
list(APPEND _deploy_dlls "${CAVITY_ARIS_BRIDGE_DIR}/bin/aris_bridge.dll")
if(EXISTS "${CAVITY_ARIS_BRIDGE_DIR}/vendor/libaris.dll")
list(APPEND _deploy_dlls "${CAVITY_ARIS_BRIDGE_DIR}/vendor/libaris.dll")
endif()
if(EXISTS "${CAVITY_ARIS_BRIDGE_DIR}/vendor/libusb-1.0.dll")
list(APPEND _deploy_dlls "${CAVITY_ARIS_BRIDGE_DIR}/vendor/libusb-1.0.dll")
endif()
file(GLOB _aris_bridge_runtime "${CAVITY_ARIS_BRIDGE_DIR}/runtime/*.dll")
list(APPEND _deploy_dlls ${_aris_bridge_runtime})
elseif(CAVITY_USING_ARIS_STUB)
list(APPEND _deploy_dlls "$<TARGET_FILE:aris_stub>")
else()
if(ARIS_RUNTIME_DLL)
list(APPEND _deploy_dlls "${ARIS_RUNTIME_DLL}")
endif()
if(LIBUSB_RUNTIME_DLL)
list(APPEND _deploy_dlls "${LIBUSB_RUNTIME_DLL}")
endif()
endif()
# ---- Qt 运行库 -------------------------------------------------------
# Debug 配置要用带 d 后缀的 DLL(MSVC 下 Debug/Release CRT 不能混用),
# 与 Qwt 的 qwt.dll / qwtd.dll 选择保持一致。
foreach(_name Qt5Core Qt5Gui Qt5Widgets Qt5SerialPort Qt5Sql Qt5OpenGL Qt5Svg)
set(_dll_release "${_qt_bin_dir}/${_name}.dll")
set(_dll_debug "${_qt_bin_dir}/${_name}d.dll")
if(EXISTS "${_dll_release}" AND EXISTS "${_dll_debug}")
list(APPEND _deploy_dlls "$<IF:$<CONFIG:Debug>,${_dll_debug},${_dll_release}>")
elseif(EXISTS "${_dll_release}")
list(APPEND _deploy_dlls "${_dll_release}")
endif()
endforeach()
# ANGLE / D3D 运行库(没有 OpenGL 驱动时的回退方案),存在才复制
foreach(_name libEGL libGLESv2 d3dcompiler_47)
if(EXISTS "${_qt_bin_dir}/${_name}.dll")
list(APPEND _deploy_dlls "${_qt_bin_dir}/${_name}.dll")
endif()
endforeach()
# ---- MSVC 运行库(vcruntime140 / msvcp140)--------------------------
# 目标机没装 VC++ 运行库时,缺这几个 DLL 会直接 0xC0000135 启动失败
if(CAVITY_MSVC)
# 可能的 Redist 根:环境变量(VS 开发者命令行里才有)或从 cl.exe 路径推算
set(_vc_redist_roots "")
if(DEFINED ENV{VCToolsRedistDir})
file(TO_CMAKE_PATH "$ENV{VCToolsRedistDir}" _vc_redist_root)
list(APPEND _vc_redist_roots "${_vc_redist_root}")
endif()
# <VS>/VC/Tools/MSVC/<ver>/bin/Hostx64/x64/cl.exe
# -> 上溯到 <VS>/VC/Tools,再上一级是 <VS>/VC
get_filename_component(_msvc_dir "${CMAKE_CXX_COMPILER}" DIRECTORY)
foreach(_up RANGE 1 4)
get_filename_component(_msvc_dir "${_msvc_dir}" DIRECTORY)
endforeach()
get_filename_component(_vc_dir "${_msvc_dir}" DIRECTORY)
list(APPEND _vc_redist_roots "${_vc_dir}/Redist/MSVC")
# 在 Redist 根下找 x64/Microsoft.VC*.CRT(里面才是 vcruntime140*.dll)
set(_vc_redist_dir "")
foreach(_root IN LISTS _vc_redist_roots)
if(NOT _root)
continue()
endif()
if(EXISTS "${_root}/vcruntime140.dll")
set(_vc_redist_dir "${_root}")
break()
endif()
file(GLOB _vc_redist_candidates "${_root}/x64/Microsoft.VC*.CRT")
if(NOT _vc_redist_candidates)
file(GLOB _vc_redist_candidates "${_root}/*/x64/Microsoft.VC*.CRT")
endif()
if(_vc_redist_candidates)
list(SORT _vc_redist_candidates ORDER DESCENDING)
list(GET _vc_redist_candidates 0 _vc_redist_dir)
break()
endif()
endforeach()
if(_vc_redist_dir)
foreach(_name vcruntime140 vcruntime140_1 msvcp140)
if(EXISTS "${_vc_redist_dir}/${_name}.dll")
list(APPEND _deploy_dlls "${_vc_redist_dir}/${_name}.dll")
endif()
endforeach()
message(STATUS "MSVC 运行库: ${_vc_redist_dir}")
else()
message(STATUS "MSVC 运行库: 未找到 Redist 目录(目标机需自行安装 VC++ 运行库)")
endif()
endif()
foreach(_dll IN LISTS _deploy_dlls)
add_custom_command(TARGET CavityLIBS POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${_dll}" "$<TARGET_FILE_DIR:CavityLIBS>"
COMMENT "部署运行库: ${_dll}")
endforeach()
# ---- Qt 插件 ---------------------------------------------------------
get_filename_component(_qt_plugins_dir "${_qt_bin_dir}/../plugins" ABSOLUTE)
foreach(_plugin platforms/qwindows
sqldrivers/qsqlite
styles/qwindowsvistastyle
imageformats/qico
imageformats/qsvg)
get_filename_component(_plugin_dir "${_plugin}" DIRECTORY)
get_filename_component(_plugin_name "${_plugin}" NAME)
set(_plugin_release "${_qt_plugins_dir}/${_plugin}.dll")
set(_plugin_debug "${_qt_plugins_dir}/${_plugin}d.dll")
if(EXISTS "${_plugin_release}" AND EXISTS "${_plugin_debug}")
set(_plugin_file "$<IF:$<CONFIG:Debug>,${_plugin_debug},${_plugin_release}>")
elseif(EXISTS "${_plugin_release}")
set(_plugin_file "${_plugin_release}")
else()
continue()
endif()
add_custom_command(TARGET CavityLIBS POST_BUILD
COMMAND ${CMAKE_COMMAND} -E make_directory
"$<TARGET_FILE_DIR:CavityLIBS>/${_plugin_dir}"
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${_plugin_file}"
"$<TARGET_FILE_DIR:CavityLIBS>/${_plugin_dir}/${_plugin_name}$<IF:$<CONFIG:Debug>,d,>.dll"
COMMENT "部署 Qt 插件: ${_plugin}")
endforeach()
# ---- MinGW 运行库(只有 GCC 构建才需要)-----------------------------
if(NOT CAVITY_MSVC)
get_filename_component(_mingw_bin "${CMAKE_CXX_COMPILER}" DIRECTORY)
foreach(_name libgcc_s_seh-1 libgcc_s_dw2-1 libstdc++-6 libwinpthread-1)
if(EXISTS "${_mingw_bin}/${_name}.dll")
list(APPEND _deploy_dlls "${_mingw_bin}/${_name}.dll")
add_custom_command(TARGET CavityLIBS POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${_mingw_bin}/${_name}.dll"
"$<TARGET_FILE_DIR:CavityLIBS>"
COMMENT "部署 MinGW 运行库: ${_name}.dll")
endif()
endforeach()
endif()
# ---- 运行数据 -------------------------------------------------------
# 程序按工作目录/程序目录读取这些文件(代码里还有 "<exe>/../Data" 的写法),
# 因此 bin 下放一份,<build> 根目录也放一份。
foreach(_res Data SQL wavelength_calibrated_files)
add_custom_command(TARGET CavityLIBS POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
"${CMAKE_CURRENT_SOURCE_DIR}/${_res}"
"$<TARGET_FILE_DIR:CavityLIBS>/${_res}"
COMMENT "部署数据目录: ${_res}")
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${_res}")
add_custom_command(TARGET CavityLIBS POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
"${CMAKE_CURRENT_SOURCE_DIR}/${_res}"
"${CMAKE_BINARY_DIR}/${_res}"
COMMENT "部署 ../${_res}")
endif()
endforeach()
add_custom_command(TARGET CavityLIBS POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${CMAKE_CURRENT_SOURCE_DIR}/app_icon.ico"
"$<TARGET_FILE_DIR:CavityLIBS>"
COMMENT "部署图标 app_icon.ico")
# 打包到目标机时用的启动脚本(放在 exe 同目录,双击即可)
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/scripts/Run-CavityLIBS.bat")
add_custom_command(TARGET CavityLIBS POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${CMAKE_CURRENT_SOURCE_DIR}/scripts/Run-CavityLIBS.bat"
"$<TARGET_FILE_DIR:CavityLIBS>"
COMMENT "部署启动脚本 Run-CavityLIBS.bat")
endif()
endif()
# ---------------------------------------------------------------------------
# Visual Studio 里直接按 F5 调试:把工作目录设到 bin(Data / SQL 都在那),
# 并把 Qt、qwt 所在目录加进 PATH,避免“找不到 DLL”。
# ---------------------------------------------------------------------------
if(CAVITY_MSVC)
set_target_properties(CavityLIBS PROPERTIES
VS_DEBUGGER_WORKING_DIRECTORY "$<TARGET_FILE_DIR:CavityLIBS>"
VS_DEBUGGER_ENVIRONMENT "PATH=${_qt_bin_dir};${QWT_LIB_DIR};%PATH%")
endif()
+710
View File
@@ -0,0 +1,710 @@
cmake_minimum_required(VERSION 3.16)
# ===========================================================================
# CavityLIBS —— 腔体 LIBS 系统
#
# 本工程不再写死 Qt / Qwt / ARIS 的安装路径(原来固定为 D:/QT、D:/qwt、
# D:/aris,换机器后必然配置失败):
#
# * Qt —— 由构建套件(CMakePresets 里的 CMAKE_PREFIX_PATH)或命令行
# -DCMAKE_PREFIX_PATH=<Qt 目录> 提供;
# * Qwt —— 依次在 third_party、环境变量 QWT_ROOT、常见安装位置中查找,
# **按编译器挑选库形式**:
# MinGW -> lib/libqwt.a (GCC 编译的 qwt)
# MSVC -> lib/qwt.lib (VS 编译的 qwt,见 VS2026 说明)
# Qwt 是 C++ 库,必须与主程序用同一个编译器编译,混用无法链接;
# * ARIS —— 同样自动查找(MinGW 用 libaris.dll.a,MSVC 用 libaris.lib);
# 找不到与目标匹配的 SDK 时回退到 third_party/aris-stub 兼容桩;
# * libusb 头文件用于 ARIS 头文件包含,运行库在部署阶段复制。
#
# 支持的套件:
# * Visual Studio 2026 / MSVC x64(推荐,见 README-VS2026-构建运行.md)
# * Qt Creator + MinGW(原方案,需要 G: 盘那套 Qt mingw 和 qwt)
# ===========================================================================
project(CavityLIBS LANGUAGES CXX)
# ---------------------------------------------------------------------------
# 基本编译设置
# ---------------------------------------------------------------------------
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
# 自动处理 Qt 的 MOC / UIC / RCC
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# 可执行文件统一输出到 <build>/bin,DLL 和运行数据也部署到这里
set(CAVITY_BIN_DIR "${CMAKE_BINARY_DIR}/bin")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CAVITY_BIN_DIR}")
foreach(_cfg DEBUG RELEASE RELWITHDEBINFO MINSIZEREL)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_${_cfg} "${CAVITY_BIN_DIR}")
endforeach()
# 目标位数 / 位数标签 / 工具链标签
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(CAVITY_BITS 64)
set(CAVITY_TAG "x64")
else()
set(CAVITY_BITS 32)
set(CAVITY_TAG "x86")
endif()
if(MSVC)
set(CAVITY_MSVC ON)
set(CAVITY_TOOLCHAIN "MSVC")
else()
set(CAVITY_MSVC OFF)
set(CAVITY_TOOLCHAIN "GCC")
endif()
message(STATUS "CavityLIBS: 目标为 ${CAVITY_BITS} 位程序(${CAVITY_TAG}),工具链 ${CAVITY_TOOLCHAIN}")
# ---------------------------------------------------------------------------
# MSVC 专用编译设置
#
# 1) /utf-8
# 源码是 UTF-8(多数没有 BOM),中文字面量必须按 UTF-8 解析;否则 MSVC 会
# 按 CP936 读,中文字符的第二字节 0x5C 会被当作行尾续行符,报
# “字符串字面量中的换行符(C2001)” 之类的错误。
# 2) /FI 兼容层
# Qt 5.15.2 的 qvector.h / qlist.h 用到 stdext::make_checked_array_iterator,
# 这个辅助函数在新版 MSVC(VS2022 后期 / VS2026)的 STL 里已被删除,
# 不补回则任何包含 Qt 容器的源文件都无法编译。见 compat/qt5_msvc_compat.h。
# 3) 关闭依赖 CRT 安全警告、补上 M_PI 等数学常量。
# ---------------------------------------------------------------------------
function(cavity_apply_toolchain_settings target)
if(CAVITY_MSVC)
target_compile_options(${target} PRIVATE
/utf-8
"/FI${CMAKE_CURRENT_SOURCE_DIR}/compat/qt5_msvc_compat.h"
/Zc:__cplusplus
/Zc:preprocessor
/wd4819 # 厂商头文件里的 GBK 注释
/wd4828
/wd4996)
target_compile_definitions(${target} PRIVATE
_CRT_SECURE_NO_WARNINGS
_USE_MATH_DEFINES
NOMINMAX
UNICODE
_UNICODE
WIN32_LEAN_AND_MEAN)
if(CMAKE_GENERATOR MATCHES "Visual Studio")
target_compile_options(${target} PRIVATE /MP)
endif()
endif()
endfunction()
# ---------------------------------------------------------------------------
# 工具函数:读取 PE 文件的 Machine 字段,返回 x86 / x64 / 空
# 用于在配置阶段发现“32 位编译器配 64 位库”这类问题,给出明确提示
# ---------------------------------------------------------------------------
function(cavity_pe_machine dll_path out_var)
set(_machine "")
if(EXISTS "${dll_path}")
file(READ "${dll_path}" _lfanew OFFSET 60 LIMIT 4 HEX)
string(LENGTH "${_lfanew}" _len)
if(_len EQUAL 8)
string(SUBSTRING "${_lfanew}" 0 2 _b0)
string(SUBSTRING "${_lfanew}" 2 2 _b1)
string(SUBSTRING "${_lfanew}" 4 2 _b2)
string(SUBSTRING "${_lfanew}" 6 2 _b3)
math(EXPR _offset "0x${_b3}${_b2}${_b1}${_b0}")
math(EXPR _machine_offset "${_offset} + 4")
file(READ "${dll_path}" _machine_hex OFFSET ${_machine_offset} LIMIT 2 HEX)
string(SUBSTRING "${_machine_hex}" 0 2 _m0)
string(SUBSTRING "${_machine_hex}" 2 2 _m1)
math(EXPR _value "0x${_m1}${_m0}")
if(_value EQUAL 34404) # 0x8664
set(_machine "x64")
elseif(_value EQUAL 332) # 0x014c
set(_machine "x86")
endif()
endif()
endif()
set(${out_var} "${_machine}" PARENT_SCOPE)
endfunction()
# ---------------------------------------------------------------------------
# Qt
# ---------------------------------------------------------------------------
find_package(Qt5 5.15 REQUIRED COMPONENTS Core Widgets Gui SerialPort Sql)
# 校验 Qt 的位数与当前编译器是否一致
set(_qt_core_dll "")
foreach(_prop IMPORTED_LOCATION IMPORTED_LOCATION_RELEASE IMPORTED_LOCATION_DEBUG)
get_target_property(_prop_value Qt5::Core ${_prop})
if(_prop_value AND EXISTS "${_prop_value}")
set(_qt_core_dll "${_prop_value}")
break()
endif()
endforeach()
if(_qt_core_dll)
cavity_pe_machine("${_qt_core_dll}" _qt_machine)
if(_qt_machine AND NOT _qt_machine STREQUAL "${CAVITY_TAG}")
message(FATAL_ERROR
"Qt 与编译器位数不一致:\n"
" 当前编译器:${CAVITY_BITS} 位(${CAVITY_TOOLCHAIN} ${CMAKE_CXX_COMPILER})\n"
" Qt5Core :${_qt_core_dll} [${_qt_machine}]\n"
"请在 CMakePresets 里选择与 Qt 位数一致的套件,"
"或在命令行传入 -DCMAKE_PREFIX_PATH=<对应位数的 Qt 目录>。")
endif()
endif()
# Qt 运行库目录(部署阶段复制 DLL / 插件用)
get_filename_component(_qt_bin_dir "${Qt5Core_DIR}/../../../bin" ABSOLUTE)
# ---------------------------------------------------------------------------
# Qwt
# Qwt 是 C++ 库:MSVC 只能用 MSVC 编译的 qwt,MinGW 只能用 GCC 编译的 qwt。
# 库文件名因此按工具链区分。
# ---------------------------------------------------------------------------
set(QWT_ROOT "" CACHE PATH "Qwt 根目录(包含 include/ 或 src/ 以及 lib/)")
if(CAVITY_MSVC)
set(_qwt_lib_names_release qwt.lib)
set(_qwt_lib_names_debug qwtd.lib)
set(_qwt_candidates
"${CMAKE_CURRENT_SOURCE_DIR}/third_party/qwt-6.2.0-msvc"
"$ENV{QWT_ROOT}"
"${CMAKE_CURRENT_SOURCE_DIR}/msvc-deps/qwt-6.2.0"
"D:/qwt/qwt-6.2.0-msvc"
"C:/Qwt-6.2.0")
else()
set(_qwt_lib_names_release libqwt.a)
set(_qwt_lib_names_debug libqwtd.a)
set(_qwt_candidates
"${CMAKE_CURRENT_SOURCE_DIR}/third_party/qwt-6.3.0-mingw${CAVITY_BITS}"
"$ENV{QWT_ROOT}"
"G:/qt/Qt/mylib/qwt-6.3.0"
"D:/qwt/qwt-6.3.0"
"C:/Qwt-6.3.0"
"E:/perfessional/QT/install/qwt-6.3.0")
endif()
if(NOT QWT_ROOT)
foreach(_cand IN LISTS _qwt_candidates)
if(NOT _cand)
continue()
endif()
# 头文件目录:优先 <root>/include,其次 <root>/src(qwt 源码树)
set(_qwt_headers "")
if(EXISTS "${_cand}/include/qwt_plot.h")
set(_qwt_headers "${_cand}/include")
elseif(EXISTS "${_cand}/src/qwt_plot.h")
set(_qwt_headers "${_cand}/src")
endif()
# 库文件:必须是对应工具链的形式
set(_qwt_lib_found "")
foreach(_libname IN LISTS _qwt_lib_names_release)
if(EXISTS "${_cand}/lib/${_libname}")
set(_qwt_lib_found "${_cand}/lib/${_libname}")
break()
endif()
endforeach()
if(NOT _qwt_headers OR NOT _qwt_lib_found)
continue()
endif()
# 位数校验:优先看 qwt.dll / qwtd.dll 的 PE 头
set(_arch_ok TRUE)
foreach(_qwt_dll qwt.dll qwtd.dll)
if(EXISTS "${_cand}/lib/${_qwt_dll}")
cavity_pe_machine("${_cand}/lib/${_qwt_dll}" _qwt_machine)
if(_qwt_machine AND NOT _qwt_machine STREQUAL "${CAVITY_TAG}")
set(_arch_ok FALSE)
endif()
break()
endif()
endforeach()
if(_arch_ok)
set(QWT_ROOT "${_cand}")
break()
endif()
endforeach()
endif()
if(NOT QWT_ROOT)
if(CAVITY_MSVC)
message(FATAL_ERROR
"找不到 MSVC 版 Qwt(需要 lib/qwt.lib 与 qwt_*.h 头文件)。\n"
"Qwt 是 C++ 库,必须用与本工程相同的编译器编译:\n"
" 1) 用 msvc-deps/build-qwt2.bat 现场编译(源码 msvc-deps/qwt-6.2.0);\n"
" 2) 把生成的 lib/qwt.lib、lib/qwt.dll、lib/qwtd.lib、lib/qwtd.dll\n"
" 和 src/*.h 放到 third_party/qwt-6.2.0-msvc 下;\n"
" 3) 或用 -DQWT_ROOT=<Qwt 根目录> 指定。")
else()
message(FATAL_ERROR
"找不到 ${CAVITY_BITS} 位 Qwt(需要 lib/libqwt.a 与 qwt_*.h 头文件)。\n"
"可以用 -DQWT_ROOT=<Qwt 根目录> 指定,或设置环境变量 QWT_ROOT。")
endif()
endif()
if(EXISTS "${QWT_ROOT}/include/qwt_plot.h")
set(QWT_INCLUDE_DIR "${QWT_ROOT}/include")
else()
set(QWT_INCLUDE_DIR "${QWT_ROOT}/src")
endif()
set(QWT_LIB_DIR "${QWT_ROOT}/lib")
message(STATUS "Qwt: ${QWT_ROOT}")
# Release / Debug 两套库:qwt 在 Debug 下生成 qwtd,MinGW 下是 libqwtd.a。
# 只有在 Qt 自身也提供 Debug 运行库时才用 Debug 版 qwt(否则 MSVC 的
# debug/release CRT 混用会在运行期崩溃)。
set(_qwt_lib_release "")
set(_qwt_lib_debug "")
foreach(_libname IN LISTS _qwt_lib_names_release)
if(EXISTS "${QWT_LIB_DIR}/${_libname}")
set(_qwt_lib_release "${QWT_LIB_DIR}/${_libname}")
break()
endif()
endforeach()
foreach(_libname IN LISTS _qwt_lib_names_debug)
if(EXISTS "${QWT_LIB_DIR}/${_libname}")
set(_qwt_lib_debug "${QWT_LIB_DIR}/${_libname}")
break()
endif()
endforeach()
set(_qwt_dll_release "${QWT_LIB_DIR}/qwt.dll")
set(_qwt_dll_debug "${QWT_LIB_DIR}/qwtd.dll")
if(NOT EXISTS "${_qt_bin_dir}/Qt5Cored.dll" OR NOT _qwt_lib_debug)
# 没有 Debug 版 Qt / qwt:Debug 配置也统一用 release 版(带符号即可)
set(_qwt_lib_debug "${_qwt_lib_release}")
set(_qwt_dll_debug "${_qwt_dll_release}")
endif()
set(QWT_LIB "$<IF:$<CONFIG:Debug>,${_qwt_lib_debug},${_qwt_lib_release}>")
set(QWT_RUNTIME_DLL "$<IF:$<CONFIG:Debug>,${_qwt_dll_debug},${_qwt_dll_release}>")
# ---------------------------------------------------------------------------
# ARIS 光谱仪 SDK
# 注意:厂商只提供 MinGW 编译的 libaris.dll(导出的是 GCC 名字修饰的 C++
# 符号,且要求继承它的回调类)。MSVC 无法链接这种库,所以 MSVC 目标下
# 只能使用项目内置的兼容桩(界面/算法可用,不驱动硬件)。
# ---------------------------------------------------------------------------
set(ARIS_ROOT "" CACHE PATH "ARIS SDK 根目录(包含 include/ 与 lib/ 导入库)")
set(ARIS_INCLUDE_DIR "" CACHE PATH "ARIS 头文件目录(通常无需手动指定)")
option(CAVITY_ALLOW_ARIS_STUB
"找不到与目标位数/工具链匹配的 ARIS SDK 时,使用内置兼容桩(仅界面/算法,无光谱仪硬件)"
ON)
if(CAVITY_MSVC)
set(_aris_lib_names libaris.lib aris.lib)
else()
set(_aris_lib_names libaris.dll.a)
endif()
if(NOT ARIS_ROOT)
set(_aris_candidates
"${CMAKE_CURRENT_SOURCE_DIR}/third_party/aris-${CAVITY_TOOLCHAIN}"
"${CMAKE_CURRENT_SOURCE_DIR}/third_party/aris-mingw${CAVITY_BITS}"
"$ENV{ARIS_ROOT}"
"G:/qt/Qt/mylib/aris_0411"
"D:/aris/aris")
foreach(_cand IN LISTS _aris_candidates)
if(NOT _cand)
continue()
endif()
if(NOT EXISTS "${_cand}/include/ziolinkprotocol.h")
continue()
endif()
set(_aris_lib_found "")
foreach(_libname IN LISTS _aris_lib_names)
if(EXISTS "${_cand}/lib/${_libname}")
set(_aris_lib_found "${_cand}/lib/${_libname}")
break()
endif()
endforeach()
if(NOT _aris_lib_found)
continue()
endif()
if(EXISTS "${_cand}/bin/libaris.dll")
cavity_pe_machine("${_cand}/bin/libaris.dll" _aris_machine)
if(_aris_machine AND NOT _aris_machine STREQUAL "${CAVITY_TAG}")
continue()
endif()
endif()
set(ARIS_ROOT "${_cand}")
break()
endforeach()
endif()
# 头文件目录(兼容桩也需要,头文件本身与位数无关)
if(NOT ARIS_INCLUDE_DIR)
set(_aris_include_candidates
"${ARIS_ROOT}/include"
"${CMAKE_CURRENT_SOURCE_DIR}/third_party/aris/include"
"G:/qt/Qt/mylib/aris_0411/include"
"D:/aris/aris/include")
foreach(_cand IN LISTS _aris_include_candidates)
if(_cand AND EXISTS "${_cand}/ziolinkprotocol.h")
set(ARIS_INCLUDE_DIR "${_cand}")
break()
endif()
endforeach()
endif()
if(NOT ARIS_INCLUDE_DIR)
message(FATAL_ERROR
"找不到 ARIS 头文件(ziolinkprotocol.h / spectrometerdevice.h)。\n"
"请用 -DARIS_INCLUDE_DIR=<目录> 或 -DARIS_ROOT=<SDK 根目录> 指定。")
endif()
set(CAVITY_USING_ARIS_STUB OFF)
if(ARIS_ROOT)
set(ARIS_LIB "")
foreach(_libname IN LISTS _aris_lib_names)
if(EXISTS "${ARIS_ROOT}/lib/${_libname}")
set(ARIS_LIB "${ARIS_ROOT}/lib/${_libname}")
break()
endif()
endforeach()
set(ARIS_RUNTIME_DLL "${ARIS_ROOT}/bin/libaris.dll")
if(NOT EXISTS "${ARIS_RUNTIME_DLL}")
set(ARIS_RUNTIME_DLL "")
endif()
message(STATUS "ARIS SDK: ${ARIS_ROOT}")
elseif(CAVITY_ALLOW_ARIS_STUB)
set(CAVITY_USING_ARIS_STUB ON)
if(CAVITY_MSVC)
message(WARNING
"未找到 MSVC 版 ARIS SDK,将使用内置兼容桩(aris_stub.dll)。\n"
" 厂商 SDK 只有 MinGW 编译的 libaris.dll(GCC 名字修饰的 C++ 符号),\n"
" MSVC 无法链接;因此 MSVC 目标下无法驱动光谱仪硬件。\n"
" 界面、寻峰/元素分析算法、串口、数据库功能均正常。\n"
" 确实需要硬件时,请用 MinGW 工具链构建(见 README-构建运行.md)。")
else()
message(WARNING
"未找到 ${CAVITY_BITS} 位 ARIS SDK(libaris.dll.a),将使用内置兼容桩。\n"
" 程序可以正常编译、启动和调试界面,但不会检测到光谱仪硬件。\n"
" 若拿到 ${CAVITY_BITS} 位 ARIS SDK,请用 -DARIS_ROOT=<SDK 根目录> 指定,\n"
" 或把 SDK 放到 third_party/aris-mingw${CAVITY_BITS}/。")
endif()
else()
message(FATAL_ERROR
"未找到匹配的 ARIS SDK 导入库(${_aris_lib_names})。\n"
"请用 -DARIS_ROOT=<SDK 根目录> 指定,或允许使用兼容桩:-DCAVITY_ALLOW_ARIS_STUB=ON")
endif()
# ---------------------------------------------------------------------------
# libusb(ARIS 头文件依赖 libusb-1.0/libusb.h;运行库在部署阶段复制)
# ---------------------------------------------------------------------------
set(LIBUSB_INCLUDE_DIR "" CACHE PATH "libusb 头文件目录(其下应有 libusb-1.0/libusb.h)")
if(NOT LIBUSB_INCLUDE_DIR)
set(_libusb_candidates
"${CMAKE_CURRENT_SOURCE_DIR}/third_party/libusb-1.0/include"
"${CMAKE_CURRENT_SOURCE_DIR}/third_party/libusb/include"
"G:/qt/Qt/mylib/libusb_x64-windows/include"
"D:/aris/libusb_x64-windows/include")
foreach(_cand IN LISTS _libusb_candidates)
if(_cand AND EXISTS "${_cand}/libusb-1.0/libusb.h")
set(LIBUSB_INCLUDE_DIR "${_cand}")
break()
endif()
endforeach()
endif()
if(NOT LIBUSB_INCLUDE_DIR)
message(FATAL_ERROR
"找不到 libusb 头文件(libusb-1.0/libusb.h),ARIS 头文件需要它。\n"
"请用 -DLIBUSB_INCLUDE_DIR=<目录> 指定。")
endif()
# libusb 运行库:只在链接真实 ARIS SDK 时需要
set(LIBUSB_RUNTIME_DLL "")
if(NOT CAVITY_USING_ARIS_STUB)
set(_libusb_dll_candidates
"${CMAKE_CURRENT_SOURCE_DIR}/Libs/libusb-1.0.dll"
"G:/qt/Qt/mylib/libusb_x64-windows/bin/libusb-1.0.dll")
foreach(_cand IN LISTS _libusb_dll_candidates)
if(_cand AND EXISTS "${_cand}")
cavity_pe_machine("${_cand}" _libusb_machine)
if(NOT _libusb_machine OR _libusb_machine STREQUAL "${CAVITY_TAG}")
set(LIBUSB_RUNTIME_DLL "${_cand}")
break()
endif()
endif()
endforeach()
endif()
# ---------------------------------------------------------------------------
# 程序与依赖
# ---------------------------------------------------------------------------
add_executable(CavityLIBS
main.cpp
mainwindow.cpp
mainwindow.h
mainwindow.ui
probe_tube.cpp
probe_tube.h
computer.cpp
computer.h
Spectrometer/devicemanager.cpp
Spectrometer/devicemanager.h
Spectrometer/algorithmanalysis.cpp
Spectrometer/algorithmanalysis.h
Spectrometer/elementanalysis.cpp
Spectrometer/elementanalysis.h
Spectrometer/specpeakservice.cpp
Spectrometer/specpeakservice.h
Spectrometer/spectrumalgorithm.cpp
Spectrometer/spectrumalgorithm.h
Spectrometer/spectrometer.cpp
Spectrometer/spectrometer.h
Public/util.cpp
Public/util.h
Public/crc16util.cpp
Public/crc16util.h
Public/type.h
Public/avaspec.h
Public/sqliteutil.cpp
Public/sqliteutil.h
PeakSearching/peakfinder.cpp
PeakSearching/peakfinder.h
Public/clickable_line_edit.h
)
target_include_directories(CavityLIBS PRIVATE
"${CMAKE_CURRENT_SOURCE_DIR}"
"${QWT_INCLUDE_DIR}"
"${ARIS_INCLUDE_DIR}"
"${LIBUSB_INCLUDE_DIR}")
# GUI 程序:不要系统自动附带的控制台窗口。
# main.cpp 会在需要时自己创建一个“运行日志”控制台(独立窗口,实时显示指令/应答),
# 而从 Qt Creator / Visual Studio 或命令行重定向运行时则沿用已有的管道/控制台。
set_target_properties(CavityLIBS PROPERTIES WIN32_EXECUTABLE TRUE)
# Qwt 以 DLL 方式构建,使用方需要 QWT_DLL
target_compile_definitions(CavityLIBS PRIVATE QWT_DLL)
# MSVC:/utf-8 + Qt 5.15 兼容层(MinGW 下不做任何事)
cavity_apply_toolchain_settings(CavityLIBS)
target_link_libraries(CavityLIBS PRIVATE
Qt5::Core
Qt5::Widgets
Qt5::Gui
Qt5::SerialPort
Qt5::Sql
"${QWT_LIB}")
if(CAVITY_USING_ARIS_STUB)
# 用真实的 ARIS 头文件编译一个空实现的替身 DLL,接口与正式 SDK 一致
add_library(aris_stub SHARED third_party/aris-stub/aris_stub.cpp)
target_include_directories(aris_stub PRIVATE
"${ARIS_INCLUDE_DIR}"
"${LIBUSB_INCLUDE_DIR}")
target_compile_definitions(aris_stub PRIVATE ARIS_LIBRARY)
cavity_apply_toolchain_settings(aris_stub)
set_target_properties(aris_stub PROPERTIES
PREFIX ""
OUTPUT_NAME "aris_stub")
target_link_libraries(CavityLIBS PRIVATE aris_stub)
else()
target_link_libraries(CavityLIBS PRIVATE "${ARIS_LIB}")
endif()
if(CAVITY_MSVC)
# devicemanager.cpp 直接包含 winsock2.h(GCC 会自动带上,MSVC 需要显式链接)
target_link_libraries(CavityLIBS PRIVATE ws2_32)
endif()
# ---------------------------------------------------------------------------
# 运行环境部署:把 DLL、Qt 插件和运行数据复制到 <build>/bin
# ---------------------------------------------------------------------------
option(CAVITY_DEPLOY_RUNTIME "构建后自动部署运行库与数据文件" ON)
if(CAVITY_DEPLOY_RUNTIME)
# ---- 第三方库 -------------------------------------------------------
set(_deploy_dlls "${QWT_RUNTIME_DLL}")
if(CAVITY_USING_ARIS_STUB)
list(APPEND _deploy_dlls "$<TARGET_FILE:aris_stub>")
else()
if(ARIS_RUNTIME_DLL)
list(APPEND _deploy_dlls "${ARIS_RUNTIME_DLL}")
endif()
if(LIBUSB_RUNTIME_DLL)
list(APPEND _deploy_dlls "${LIBUSB_RUNTIME_DLL}")
endif()
endif()
# ---- Qt 运行库 -------------------------------------------------------
# Debug 配置要用带 d 后缀的 DLL(MSVC 下 Debug/Release CRT 不能混用),
# 与 Qwt 的 qwt.dll / qwtd.dll 选择保持一致。
foreach(_name Qt5Core Qt5Gui Qt5Widgets Qt5SerialPort Qt5Sql Qt5OpenGL Qt5Svg)
set(_dll_release "${_qt_bin_dir}/${_name}.dll")
set(_dll_debug "${_qt_bin_dir}/${_name}d.dll")
if(EXISTS "${_dll_release}" AND EXISTS "${_dll_debug}")
list(APPEND _deploy_dlls "$<IF:$<CONFIG:Debug>,${_dll_debug},${_dll_release}>")
elseif(EXISTS "${_dll_release}")
list(APPEND _deploy_dlls "${_dll_release}")
endif()
endforeach()
# ANGLE / D3D 运行库(没有 OpenGL 驱动时的回退方案),存在才复制
foreach(_name libEGL libGLESv2 d3dcompiler_47)
if(EXISTS "${_qt_bin_dir}/${_name}.dll")
list(APPEND _deploy_dlls "${_qt_bin_dir}/${_name}.dll")
endif()
endforeach()
# ---- MSVC 运行库(vcruntime140 / msvcp140)--------------------------
# 目标机没装 VC++ 运行库时,缺这几个 DLL 会直接 0xC0000135 启动失败
if(CAVITY_MSVC)
# 可能的 Redist 根:环境变量(VS 开发者命令行里才有)或从 cl.exe 路径推算
set(_vc_redist_roots "")
if(DEFINED ENV{VCToolsRedistDir})
file(TO_CMAKE_PATH "$ENV{VCToolsRedistDir}" _vc_redist_root)
list(APPEND _vc_redist_roots "${_vc_redist_root}")
endif()
# <VS>/VC/Tools/MSVC/<ver>/bin/Hostx64/x64/cl.exe
# -> 上溯到 <VS>/VC/Tools,再上一级是 <VS>/VC
get_filename_component(_msvc_dir "${CMAKE_CXX_COMPILER}" DIRECTORY)
foreach(_up RANGE 1 4)
get_filename_component(_msvc_dir "${_msvc_dir}" DIRECTORY)
endforeach()
get_filename_component(_vc_dir "${_msvc_dir}" DIRECTORY)
list(APPEND _vc_redist_roots "${_vc_dir}/Redist/MSVC")
# 在 Redist 根下找 x64/Microsoft.VC*.CRT(里面才是 vcruntime140*.dll)
set(_vc_redist_dir "")
foreach(_root IN LISTS _vc_redist_roots)
if(NOT _root)
continue()
endif()
if(EXISTS "${_root}/vcruntime140.dll")
set(_vc_redist_dir "${_root}")
break()
endif()
file(GLOB _vc_redist_candidates "${_root}/x64/Microsoft.VC*.CRT")
if(NOT _vc_redist_candidates)
file(GLOB _vc_redist_candidates "${_root}/*/x64/Microsoft.VC*.CRT")
endif()
if(_vc_redist_candidates)
list(SORT _vc_redist_candidates ORDER DESCENDING)
list(GET _vc_redist_candidates 0 _vc_redist_dir)
break()
endif()
endforeach()
if(_vc_redist_dir)
foreach(_name vcruntime140 vcruntime140_1 msvcp140)
if(EXISTS "${_vc_redist_dir}/${_name}.dll")
list(APPEND _deploy_dlls "${_vc_redist_dir}/${_name}.dll")
endif()
endforeach()
message(STATUS "MSVC 运行库: ${_vc_redist_dir}")
else()
message(STATUS "MSVC 运行库: 未找到 Redist 目录(目标机需自行安装 VC++ 运行库)")
endif()
endif()
foreach(_dll IN LISTS _deploy_dlls)
add_custom_command(TARGET CavityLIBS POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${_dll}" "$<TARGET_FILE_DIR:CavityLIBS>"
COMMENT "部署运行库: ${_dll}")
endforeach()
# ---- Qt 插件 ---------------------------------------------------------
get_filename_component(_qt_plugins_dir "${_qt_bin_dir}/../plugins" ABSOLUTE)
foreach(_plugin platforms/qwindows
sqldrivers/qsqlite
styles/qwindowsvistastyle
imageformats/qico
imageformats/qsvg)
get_filename_component(_plugin_dir "${_plugin}" DIRECTORY)
get_filename_component(_plugin_name "${_plugin}" NAME)
set(_plugin_release "${_qt_plugins_dir}/${_plugin}.dll")
set(_plugin_debug "${_qt_plugins_dir}/${_plugin}d.dll")
if(EXISTS "${_plugin_release}" AND EXISTS "${_plugin_debug}")
set(_plugin_file "$<IF:$<CONFIG:Debug>,${_plugin_debug},${_plugin_release}>")
elseif(EXISTS "${_plugin_release}")
set(_plugin_file "${_plugin_release}")
else()
continue()
endif()
add_custom_command(TARGET CavityLIBS POST_BUILD
COMMAND ${CMAKE_COMMAND} -E make_directory
"$<TARGET_FILE_DIR:CavityLIBS>/${_plugin_dir}"
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${_plugin_file}"
"$<TARGET_FILE_DIR:CavityLIBS>/${_plugin_dir}/${_plugin_name}$<IF:$<CONFIG:Debug>,d,>.dll"
COMMENT "部署 Qt 插件: ${_plugin}")
endforeach()
# ---- MinGW 运行库(只有 GCC 构建才需要)-----------------------------
if(NOT CAVITY_MSVC)
get_filename_component(_mingw_bin "${CMAKE_CXX_COMPILER}" DIRECTORY)
foreach(_name libgcc_s_seh-1 libgcc_s_dw2-1 libstdc++-6 libwinpthread-1)
if(EXISTS "${_mingw_bin}/${_name}.dll")
list(APPEND _deploy_dlls "${_mingw_bin}/${_name}.dll")
add_custom_command(TARGET CavityLIBS POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${_mingw_bin}/${_name}.dll"
"$<TARGET_FILE_DIR:CavityLIBS>"
COMMENT "部署 MinGW 运行库: ${_name}.dll")
endif()
endforeach()
endif()
# ---- 运行数据 -------------------------------------------------------
# 程序按工作目录/程序目录读取这些文件(代码里还有 "<exe>/../Data" 的写法),
# 因此 bin 下放一份,<build> 根目录也放一份。
foreach(_res Data SQL wavelength_calibrated_files)
add_custom_command(TARGET CavityLIBS POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
"${CMAKE_CURRENT_SOURCE_DIR}/${_res}"
"$<TARGET_FILE_DIR:CavityLIBS>/${_res}"
COMMENT "部署数据目录: ${_res}")
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${_res}")
add_custom_command(TARGET CavityLIBS POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
"${CMAKE_CURRENT_SOURCE_DIR}/${_res}"
"${CMAKE_BINARY_DIR}/${_res}"
COMMENT "部署 ../${_res}")
endif()
endforeach()
add_custom_command(TARGET CavityLIBS POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${CMAKE_CURRENT_SOURCE_DIR}/app_icon.ico"
"$<TARGET_FILE_DIR:CavityLIBS>"
COMMENT "部署图标 app_icon.ico")
# 打包到目标机时用的启动脚本(放在 exe 同目录,双击即可)
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/scripts/Run-CavityLIBS.bat")
add_custom_command(TARGET CavityLIBS POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${CMAKE_CURRENT_SOURCE_DIR}/scripts/Run-CavityLIBS.bat"
"$<TARGET_FILE_DIR:CavityLIBS>"
COMMENT "部署启动脚本 Run-CavityLIBS.bat")
endif()
endif()
# ---------------------------------------------------------------------------
# Visual Studio 里直接按 F5 调试:把工作目录设到 bin(Data / SQL 都在那),
# 并把 Qt、qwt 所在目录加进 PATH,避免“找不到 DLL”。
# ---------------------------------------------------------------------------
if(CAVITY_MSVC)
set_target_properties(CavityLIBS PROPERTIES
VS_DEBUGGER_WORKING_DIRECTORY "$<TARGET_FILE_DIR:CavityLIBS>"
VS_DEBUGGER_ENVIRONMENT "PATH=${_qt_bin_dir};${QWT_LIB_DIR};%PATH%")
endif()
+492
View File
@@ -0,0 +1,492 @@
cmake_minimum_required(VERSION 3.16)
# ===========================================================================
# CavityLIBS —— 腔体 LIBS 系统
#
# 本工程不再写死 Qt / Qwt / ARIS 的安装路径(原来固定为 D:/QT、D:/qwt、
# D:/aris,换机器后必然配置失败):
#
# * Qt —— 由 Qt Creator 的构建套件(套件会自动传 -DCMAKE_PREFIX_PATH)
# 或命令行 -DCMAKE_PREFIX_PATH=<Qt 目录> 提供;
# * Qwt —— 依次在 third_party、环境变量 QWT_ROOT、常见安装位置中查找,
# 并校验库的位数与当前编译器一致;
# * ARIS —— 同样自动查找;若目标为 32 位且本机没有 32 位 ARIS SDK,
# 自动回退到 third_party/aris-stub 中的兼容桩(见 README-构建运行.md);
# * libusb 头文件用于 ARIS 头文件包含,运行库在部署阶段复制。
#
# 支持的套件:Desktop Qt 5.15.2 MinGW 32-bit / 64-bit(MinGW 8.1.0)
# ===========================================================================
project(CavityLIBS LANGUAGES CXX)
# ---------------------------------------------------------------------------
# 基本编译设置
# ---------------------------------------------------------------------------
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
# 自动处理 Qt 的 MOC / UIC / RCC
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# 可执行文件统一输出到 <build>/bin,DLL 和运行数据也部署到这里
set(CAVITY_BIN_DIR "${CMAKE_BINARY_DIR}/bin")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CAVITY_BIN_DIR}")
foreach(_cfg DEBUG RELEASE RELWITHDEBINFO MINSIZEREL)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_${_cfg} "${CAVITY_BIN_DIR}")
endforeach()
# 目标位数 / 位数标签
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(CAVITY_BITS 64)
set(CAVITY_TAG "x64")
else()
set(CAVITY_BITS 32)
set(CAVITY_TAG "x86")
endif()
message(STATUS "CavityLIBS: 目标为 ${CAVITY_BITS} 位程序(${CAVITY_TAG})")
# ---------------------------------------------------------------------------
# 工具函数:读取 PE 文件的 Machine 字段,返回 x86 / x64 / 空
# 用于在配置阶段发现“32 位编译器配 64 位库”这类问题,给出明确提示
# ---------------------------------------------------------------------------
function(cavity_pe_machine dll_path out_var)
set(_machine "")
if(EXISTS "${dll_path}")
file(READ "${dll_path}" _lfanew OFFSET 60 LIMIT 4 HEX)
string(LENGTH "${_lfanew}" _len)
if(_len EQUAL 8)
string(SUBSTRING "${_lfanew}" 0 2 _b0)
string(SUBSTRING "${_lfanew}" 2 2 _b1)
string(SUBSTRING "${_lfanew}" 4 2 _b2)
string(SUBSTRING "${_lfanew}" 6 2 _b3)
math(EXPR _offset "0x${_b3}${_b2}${_b1}${_b0}")
math(EXPR _machine_offset "${_offset} + 4")
file(READ "${dll_path}" _machine_hex OFFSET ${_machine_offset} LIMIT 2 HEX)
string(SUBSTRING "${_machine_hex}" 0 2 _m0)
string(SUBSTRING "${_machine_hex}" 2 2 _m1)
math(EXPR _value "0x${_m1}${_m0}")
if(_value EQUAL 34404) # 0x8664
set(_machine "x64")
elseif(_value EQUAL 332) # 0x014c
set(_machine "x86")
endif()
endif()
endif()
set(${out_var} "${_machine}" PARENT_SCOPE)
endfunction()
# ---------------------------------------------------------------------------
# Qt
# ---------------------------------------------------------------------------
find_package(Qt5 5.15 REQUIRED COMPONENTS Core Widgets Gui SerialPort Sql)
# 校验 Qt 的位数与当前编译器是否一致
set(_qt_core_dll "")
foreach(_prop IMPORTED_LOCATION IMPORTED_LOCATION_RELEASE IMPORTED_LOCATION_DEBUG)
get_target_property(_prop_value Qt5::Core ${_prop})
if(_prop_value AND EXISTS "${_prop_value}")
set(_qt_core_dll "${_prop_value}")
break()
endif()
endforeach()
if(_qt_core_dll)
cavity_pe_machine("${_qt_core_dll}" _qt_machine)
if(_qt_machine AND NOT _qt_machine STREQUAL "${CAVITY_TAG}")
message(FATAL_ERROR
"Qt 与编译器位数不一致:\n"
" 当前编译器:${CAVITY_BITS} 位(MinGW ${CMAKE_CXX_COMPILER})\n"
" Qt5Core :${_qt_core_dll} [${_qt_machine}]\n"
"请在 Qt Creator 中选择与 Qt 位数一致的 MinGW 套件,"
"或在命令行传入 -DCMAKE_PREFIX_PATH=<对应位数的 Qt 目录>。")
endif()
endif()
# Qt 运行库目录(部署阶段复制 DLL / 插件用)
get_filename_component(_qt_bin_dir "${Qt5Core_DIR}/../../../bin" ABSOLUTE)
# ---------------------------------------------------------------------------
# Qwt 6.3
# ---------------------------------------------------------------------------
set(QWT_ROOT "" CACHE PATH "Qwt 6.3 根目录(包含 include/ 或 src/ 以及 lib/)")
if(NOT QWT_ROOT)
set(_qwt_candidates
"${CMAKE_CURRENT_SOURCE_DIR}/third_party/qwt-6.3.0-mingw${CAVITY_BITS}"
"$ENV{QWT_ROOT}"
"G:/qt/Qt/mylib/qwt-6.3.0"
"D:/qwt/qwt-6.3.0"
"C:/Qwt-6.3.0"
"E:/perfessional/QT/install/qwt-6.3.0")
foreach(_cand IN LISTS _qwt_candidates)
if(NOT _cand)
continue()
endif()
set(_qwt_headers "")
if(EXISTS "${_cand}/src/qwt_plot.h")
set(_qwt_headers "${_cand}/src")
elseif(EXISTS "${_cand}/include/qwt_plot.h")
set(_qwt_headers "${_cand}/include")
endif()
if(NOT _qwt_headers OR NOT EXISTS "${_cand}/lib/libqwt.a")
continue()
endif()
# 位数校验:优先看 qwt.dll 的 PE 头
set(_arch_ok TRUE)
foreach(_qwt_dll qwt.dll qwtd.dll)
if(EXISTS "${_cand}/lib/${_qwt_dll}")
cavity_pe_machine("${_cand}/lib/${_qwt_dll}" _qwt_machine)
if(_qwt_machine AND NOT _qwt_machine STREQUAL "${CAVITY_TAG}")
set(_arch_ok FALSE)
endif()
break()
endif()
endforeach()
if(_arch_ok)
set(QWT_ROOT "${_cand}")
break()
endif()
endforeach()
endif()
if(NOT QWT_ROOT)
message(FATAL_ERROR
"找不到 ${CAVITY_BITS} 位 Qwt 6.3(需要 lib/libqwt.a 与 qwt_*.h 头文件)。\n"
"可以用 -DQWT_ROOT=<Qwt 根目录> 指定,或设置环境变量 QWT_ROOT。\n"
"32 位版已随工程放在 third_party/qwt-6.3.0-mingw32。")
endif()
if(EXISTS "${QWT_ROOT}/src/qwt_plot.h")
set(QWT_INCLUDE_DIR "${QWT_ROOT}/src")
else()
set(QWT_INCLUDE_DIR "${QWT_ROOT}/include")
endif()
set(QWT_LIB_DIR "${QWT_ROOT}/lib")
message(STATUS "Qwt: ${QWT_ROOT}")
# 只有 Qt 自身提供 Debug 版 DLL(Qt5Cored.dll)时才使用 qwtd,
# 否则统一用 release 版 qwt(本机 Qt 5.15.2 为 release + 独立 .debug 符号)
if(EXISTS "${_qt_bin_dir}/Qt5Cored.dll" AND EXISTS "${QWT_LIB_DIR}/libqwtd.a")
set(_qwt_lib_debug "${QWT_LIB_DIR}/libqwtd.a")
set(_qwt_dll_debug "${QWT_LIB_DIR}/qwtd.dll")
else()
set(_qwt_lib_debug "${QWT_LIB_DIR}/libqwt.a")
set(_qwt_dll_debug "${QWT_LIB_DIR}/qwt.dll")
endif()
set(QWT_LIB "$<IF:$<CONFIG:Debug>,${_qwt_lib_debug},${QWT_LIB_DIR}/libqwt.a>")
set(QWT_RUNTIME_DLL "$<IF:$<CONFIG:Debug>,${_qwt_dll_debug},${QWT_LIB_DIR}/qwt.dll>")
# ---------------------------------------------------------------------------
# ARIS 光谱仪 SDK
# ---------------------------------------------------------------------------
set(ARIS_ROOT "" CACHE PATH "ARIS SDK 根目录(包含 include/ 与 lib/libaris.dll.a)")
set(ARIS_INCLUDE_DIR "" CACHE PATH "ARIS 头文件目录(通常无需手动指定)")
option(CAVITY_ALLOW_ARIS_STUB
"找不到与目标位数匹配的 ARIS SDK 时,使用内置兼容桩(仅界面/算法,无光谱仪硬件)"
ON)
if(NOT ARIS_ROOT)
set(_aris_candidates
"${CMAKE_CURRENT_SOURCE_DIR}/third_party/aris-mingw${CAVITY_BITS}"
"$ENV{ARIS_ROOT}"
"G:/qt/Qt/mylib/aris_0411"
"D:/aris/aris")
foreach(_cand IN LISTS _aris_candidates)
if(NOT _cand)
continue()
endif()
if(NOT EXISTS "${_cand}/include/ziolinkprotocol.h"
OR NOT EXISTS "${_cand}/lib/libaris.dll.a")
continue()
endif()
if(EXISTS "${_cand}/bin/libaris.dll")
cavity_pe_machine("${_cand}/bin/libaris.dll" _aris_machine)
if(_aris_machine AND NOT _aris_machine STREQUAL "${CAVITY_TAG}")
continue()
endif()
endif()
set(ARIS_ROOT "${_cand}")
break()
endforeach()
endif()
# 头文件目录(兼容桩也需要,头文件本身与位数无关)
if(NOT ARIS_INCLUDE_DIR)
set(_aris_include_candidates
"${ARIS_ROOT}/include"
"${CMAKE_CURRENT_SOURCE_DIR}/third_party/aris/include"
"G:/qt/Qt/mylib/aris_0411/include"
"D:/aris/aris/include")
foreach(_cand IN LISTS _aris_include_candidates)
if(_cand AND EXISTS "${_cand}/ziolinkprotocol.h")
set(ARIS_INCLUDE_DIR "${_cand}")
break()
endif()
endforeach()
endif()
if(NOT ARIS_INCLUDE_DIR)
message(FATAL_ERROR
"找不到 ARIS 头文件(ziolinkprotocol.h / spectrometerdevice.h)。\n"
"请用 -DARIS_INCLUDE_DIR=<目录> 或 -DARIS_ROOT=<SDK 根目录> 指定。")
endif()
set(CAVITY_USING_ARIS_STUB OFF)
if(ARIS_ROOT)
set(ARIS_LIB "${ARIS_ROOT}/lib/libaris.dll.a")
set(ARIS_RUNTIME_DLL "${ARIS_ROOT}/bin/libaris.dll")
if(NOT EXISTS "${ARIS_RUNTIME_DLL}")
set(ARIS_RUNTIME_DLL "")
endif()
message(STATUS "ARIS SDK: ${ARIS_ROOT}")
elseif(CAVITY_ALLOW_ARIS_STUB)
set(CAVITY_USING_ARIS_STUB ON)
message(WARNING
"未找到 ${CAVITY_BITS} 位 ARIS SDK(libaris.dll.a),将使用内置兼容桩。\n"
" 程序可以正常编译、启动和调试界面,但不会检测到光谱仪硬件。\n"
" 若拿到 ${CAVITY_BITS} 位 ARIS SDK,请用 -DARIS_ROOT=<SDK 根目录> 指定,\n"
" 或把 SDK 放到 third_party/aris-mingw${CAVITY_BITS}/。")
else()
message(FATAL_ERROR
"未找到 ${CAVITY_BITS} 位 ARIS SDK(libaris.dll.a)。\n"
"请用 -DARIS_ROOT=<SDK 根目录> 指定,或允许使用兼容桩:-DCAVITY_ALLOW_ARIS_STUB=ON")
endif()
# ---------------------------------------------------------------------------
# libusb(ARIS 头文件依赖 libusb-1.0/libusb.h;运行库在部署阶段复制)
# ---------------------------------------------------------------------------
set(LIBUSB_INCLUDE_DIR "" CACHE PATH "libusb 头文件目录(其下应有 libusb-1.0/libusb.h)")
if(NOT LIBUSB_INCLUDE_DIR)
set(_libusb_candidates
"${CMAKE_CURRENT_SOURCE_DIR}/third_party/libusb-1.0/include"
"${CMAKE_CURRENT_SOURCE_DIR}/third_party/libusb/include"
"G:/qt/Qt/mylib/libusb_x64-windows/include"
"D:/aris/libusb_x64-windows/include")
foreach(_cand IN LISTS _libusb_candidates)
if(_cand AND EXISTS "${_cand}/libusb-1.0/libusb.h")
set(LIBUSB_INCLUDE_DIR "${_cand}")
break()
endif()
endforeach()
endif()
if(NOT LIBUSB_INCLUDE_DIR)
message(FATAL_ERROR
"找不到 libusb 头文件(libusb-1.0/libusb.h),ARIS 头文件需要它。\n"
"请用 -DLIBUSB_INCLUDE_DIR=<目录> 指定。")
endif()
# libusb 运行库:只在链接真实 ARIS SDK 时需要
set(LIBUSB_RUNTIME_DLL "")
if(NOT CAVITY_USING_ARIS_STUB)
set(_libusb_dll_candidates
"${CMAKE_CURRENT_SOURCE_DIR}/Libs/libusb-1.0.dll"
"G:/qt/Qt/mylib/libusb_x64-windows/bin/libusb-1.0.dll")
foreach(_cand IN LISTS _libusb_dll_candidates)
if(_cand AND EXISTS "${_cand}")
cavity_pe_machine("${_cand}" _libusb_machine)
if(NOT _libusb_machine OR _libusb_machine STREQUAL "${CAVITY_TAG}")
set(LIBUSB_RUNTIME_DLL "${_cand}")
break()
endif()
endif()
endforeach()
endif()
# ---------------------------------------------------------------------------
# 程序与依赖
# ---------------------------------------------------------------------------
add_executable(CavityLIBS
main.cpp
mainwindow.cpp
mainwindow.h
mainwindow.ui
probe_tube.cpp
probe_tube.h
computer.cpp
computer.h
Spectrometer/devicemanager.cpp
Spectrometer/devicemanager.h
Spectrometer/algorithmanalysis.cpp
Spectrometer/algorithmanalysis.h
Spectrometer/elementanalysis.cpp
Spectrometer/elementanalysis.h
Spectrometer/specpeakservice.cpp
Spectrometer/specpeakservice.h
Spectrometer/spectrumalgorithm.cpp
Spectrometer/spectrumalgorithm.h
Spectrometer/spectrometer.cpp
Spectrometer/spectrometer.h
Public/util.cpp
Public/util.h
Public/crc16util.cpp
Public/crc16util.h
Public/type.h
Public/avaspec.h
Public/sqliteutil.cpp
Public/sqliteutil.h
PeakSearching/peakfinder.cpp
PeakSearching/peakfinder.h
Public/clickable_line_edit.h
)
target_include_directories(CavityLIBS PRIVATE
"${CMAKE_CURRENT_SOURCE_DIR}"
"${QWT_INCLUDE_DIR}"
"${ARIS_INCLUDE_DIR}"
"${LIBUSB_INCLUDE_DIR}")
# GUI 程序:不要系统自动附带的控制台窗口。
# main.cpp 会在需要时自己创建一个“运行日志”控制台(独立窗口,实时显示指令/应答),
# 而从 Qt Creator 或命令行重定向运行时则沿用已有的管道/控制台。
set_target_properties(CavityLIBS PROPERTIES WIN32_EXECUTABLE TRUE)
# Qwt 以 DLL 方式构建,使用方需要 QWT_DLL
target_compile_definitions(CavityLIBS PRIVATE QWT_DLL)
target_link_libraries(CavityLIBS PRIVATE
Qt5::Core
Qt5::Widgets
Qt5::Gui
Qt5::SerialPort
Qt5::Sql
"${QWT_LIB}")
if(CAVITY_USING_ARIS_STUB)
# 用真实的 ARIS 头文件编译一个空实现的替身 DLL,接口与正式 SDK 一致
add_library(aris_stub SHARED third_party/aris-stub/aris_stub.cpp)
target_include_directories(aris_stub PRIVATE
"${ARIS_INCLUDE_DIR}"
"${LIBUSB_INCLUDE_DIR}")
target_compile_definitions(aris_stub PRIVATE ARIS_LIBRARY)
set_target_properties(aris_stub PROPERTIES
PREFIX ""
OUTPUT_NAME "aris_stub")
target_link_libraries(CavityLIBS PRIVATE aris_stub)
else()
target_link_libraries(CavityLIBS PRIVATE "${ARIS_LIB}")
endif()
# ---------------------------------------------------------------------------
# 运行环境部署:把 DLL、Qt 插件和运行数据复制到 <build>/bin
# ---------------------------------------------------------------------------
option(CAVITY_DEPLOY_RUNTIME "构建后自动部署运行库与数据文件" ON)
if(CAVITY_DEPLOY_RUNTIME)
set(_deploy_dlls "${QWT_RUNTIME_DLL}")
if(CAVITY_USING_ARIS_STUB)
list(APPEND _deploy_dlls "$<TARGET_FILE:aris_stub>")
else()
if(ARIS_RUNTIME_DLL)
list(APPEND _deploy_dlls "${ARIS_RUNTIME_DLL}")
endif()
if(LIBUSB_RUNTIME_DLL)
list(APPEND _deploy_dlls "${LIBUSB_RUNTIME_DLL}")
endif()
endif()
foreach(_dll IN LISTS _deploy_dlls)
add_custom_command(TARGET CavityLIBS POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${_dll}" "$<TARGET_FILE_DIR:CavityLIBS>"
COMMENT "部署运行库: ${_dll}")
endforeach()
# 运行数据(程序按工作目录/程序目录读取这些文件)
foreach(_res Data SQL wavelength_calibrated_files)
add_custom_command(TARGET CavityLIBS POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
"${CMAKE_CURRENT_SOURCE_DIR}/${_res}"
"$<TARGET_FILE_DIR:CavityLIBS>/${_res}"
COMMENT "部署数据目录: ${_res}")
endforeach()
add_custom_command(TARGET CavityLIBS POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${CMAKE_CURRENT_SOURCE_DIR}/app_icon.ico"
"$<TARGET_FILE_DIR:CavityLIBS>"
COMMENT "部署图标 app_icon.ico")
# 打包到目标机时用的启动脚本(放在 exe 同目录,双击即可)
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/scripts/Run-CavityLIBS.bat")
add_custom_command(TARGET CavityLIBS POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${CMAKE_CURRENT_SOURCE_DIR}/scripts/Run-CavityLIBS.bat"
"$<TARGET_FILE_DIR:CavityLIBS>"
COMMENT "部署启动脚本 Run-CavityLIBS.bat")
endif()
# 代码里还有 "<exe>/../Data" 的写法,因此在上层目录再放一份 Data
add_custom_command(TARGET CavityLIBS POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
"${CMAKE_CURRENT_SOURCE_DIR}/Data"
"${CMAKE_BINARY_DIR}/Data"
COMMENT "部署 ../Data")
# ---- Qt 运行库 -------------------------------------------------------
# 直接从 Qt 安装目录复制。本机的 Qt 5.15.2 是 release + 独立 .debug 符号,
# windeployqt 会把插件误判成 debug 而拒绝部署,所以这里显式复制。
foreach(_name Qt5Core Qt5Gui Qt5Widgets Qt5SerialPort Qt5Sql Qt5OpenGL Qt5Svg)
if(EXISTS "${_qt_bin_dir}/${_name}.dll")
add_custom_command(TARGET CavityLIBS POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${_qt_bin_dir}/${_name}.dll"
"$<TARGET_FILE_DIR:CavityLIBS>"
COMMENT "部署 Qt 运行库: ${_name}.dll")
endif()
endforeach()
# ANGLE / D3D 运行库(没有 OpenGL 驱动时的回退方案),存在才复制
foreach(_name libEGL libGLESv2 d3dcompiler_47)
if(EXISTS "${_qt_bin_dir}/${_name}.dll")
add_custom_command(TARGET CavityLIBS POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${_qt_bin_dir}/${_name}.dll"
"$<TARGET_FILE_DIR:CavityLIBS>"
COMMENT "部署 Qt 运行库: ${_name}.dll")
endif()
endforeach()
# ---- Qt 插件 ---------------------------------------------------------
get_filename_component(_qt_plugins_dir "${_qt_bin_dir}/../plugins" ABSOLUTE)
foreach(_plugin platforms/qwindows.dll
sqldrivers/qsqlite.dll
styles/qwindowsvistastyle.dll
imageformats/qico.dll
imageformats/qsvg.dll)
if(EXISTS "${_qt_plugins_dir}/${_plugin}")
get_filename_component(_plugin_dir "${_plugin}" DIRECTORY)
add_custom_command(TARGET CavityLIBS POST_BUILD
COMMAND ${CMAKE_COMMAND} -E make_directory
"$<TARGET_FILE_DIR:CavityLIBS>/${_plugin_dir}"
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${_qt_plugins_dir}/${_plugin}"
"$<TARGET_FILE_DIR:CavityLIBS>/${_plugin}"
COMMENT "部署 Qt 插件: ${_plugin}")
endif()
endforeach()
# ---- MinGW 运行库 ----------------------------------------------------
get_filename_component(_mingw_bin "${CMAKE_CXX_COMPILER}" DIRECTORY)
foreach(_name libgcc_s_seh-1 libgcc_s_dw2-1 libstdc++-6 libwinpthread-1)
if(EXISTS "${_mingw_bin}/${_name}.dll")
add_custom_command(TARGET CavityLIBS POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${_mingw_bin}/${_name}.dll"
"$<TARGET_FILE_DIR:CavityLIBS>"
COMMENT "部署 MinGW 运行库: ${_name}.dll")
endif()
endforeach()
endif()
+80
View File
@@ -0,0 +1,80 @@
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 21,
"patch": 0
},
"configurePresets": [
{
"name": "base",
"hidden": true,
"generator": "Ninja",
"architecture": {
"strategy": "external",
"value": "x64"
},
"cacheVariables": {
"CMAKE_PREFIX_PATH": "D:/util/qt-src/install"
}
},
{
"name": "msvc-x64-debug",
"displayName": "MSVC x64 Debug (VS2026)",
"description": "Visual Studio 2026 / MSVC x64,Debug 构建(Qwt 用 qwtd,ARIS 用兼容桩)",
"inherits": "base",
"binaryDir": "${sourceDir}/out/build/msvc-x64-debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "msvc-x64-release",
"displayName": "MSVC x64 Release (VS2026)",
"description": "Visual Studio 2026 / MSVC x64,Release 构建(Qwt 用 qwt,ARIS 用兼容桩)",
"inherits": "base",
"binaryDir": "${sourceDir}/out/build/msvc-x64-release",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "vs2026-x64",
"displayName": "Visual Studio 2026 solution (x64)",
"description": "生成 .sln / .vcxproj,可直接用 VS2026 打开解决方案",
"generator": "Visual Studio 18 2026",
"architecture": {
"strategy": "set",
"value": "x64"
},
"binaryDir": "${sourceDir}/out/build/vs2026-x64",
"cacheVariables": {
"CMAKE_PREFIX_PATH": "D:/util/qt-src/install"
}
}
],
"buildPresets": [
{
"name": "msvc-x64-debug",
"displayName": "构建 Debug",
"configurePreset": "msvc-x64-debug"
},
{
"name": "msvc-x64-release",
"displayName": "构建 Release",
"configurePreset": "msvc-x64-release"
},
{
"name": "vs2026-x64-debug",
"displayName": "构建 Debug (VS 解决方案)",
"configurePreset": "vs2026-x64",
"configuration": "Debug"
},
{
"name": "vs2026-x64-release",
"displayName": "构建 Release (VS 解决方案)",
"configurePreset": "vs2026-x64",
"configuration": "Release"
}
]
}
+22
View File
@@ -0,0 +1,22 @@
{
"version": 3,
"configurePresets": [
{
"hidden": true,
"name": "Qt",
"cacheVariables": {
"CMAKE_PREFIX_PATH": "$env{QTDIR}"
},
"vendor": {
"qt-project.org/Qt": {
"checksum": "wVa86FgEkvdCTVp1/nxvrkaemJc="
}
}
}
],
"vendor": {
"qt-project.org/Presets": {
"checksum": "67SmY24ZeVbebyKD0fGfIzb/bGI="
}
}
}
+8
View File
@@ -0,0 +1,8 @@
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 21,
"patch": 0
}
}
+60
View File
@@ -0,0 +1,60 @@
{
"version": 3,
"configurePresets": [
{
"hidden": false,
"name": "Qt-Debug",
"inherits": "Qt-Default",
"binaryDir": "${sourceDir}/out/build/debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CXX_FLAGS": "-DQT_QML_DEBUG"
},
"environment": {
"QML_DEBUG_ARGS": "-qmljsdebugger=file:{50736363-6167-4235-b466-a2802d650be3},block"
}
},
{
"hidden": false,
"name": "Qt-Release",
"inherits": "Qt-Default",
"binaryDir": "${sourceDir}/out/build/release",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"hidden": true,
"name": "Qt-Default",
"inherits": "Qt5.15.2-Custom",
"vendor": {
"qt-project.org/Default": {
"checksum": "W6vkQYdKZfha+sy06SapT65Bing="
}
}
},
{
"hidden": true,
"name": "Qt5.15.2-Custom",
"inherits": "Qt",
"environment": {
"QTDIR": "D:/util/qt-src/install"
},
"architecture": {
"strategy": "external",
"value": "x64"
},
"generator": "Ninja",
"vendor": {
"qt-project.org/Version": {
"checksum": "c2sWuJpW62C4fI4J9YaTuRmU3es="
}
}
}
],
"vendor": {
"qt-project.org/Presets": {
"checksum": "f2zhvofG+WvLxlgEV4IKZI4oM2w="
}
}
}
+10945
View File
File diff suppressed because it is too large Load Diff
+10945
View File
File diff suppressed because it is too large Load Diff
+10945
View File
File diff suppressed because it is too large Load Diff
+10945
View File
File diff suppressed because it is too large Load Diff
+10945
View File
File diff suppressed because it is too large Load Diff
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
+403
View File
@@ -0,0 +1,403 @@
#include "PeakFinder.h"
#include <QDebug>
#include <algorithm>
#include <functional>
PeakFinder::PeakDetectionResult PeakFinder::DetectPeaks(const QVector<float>& wavelengthsNm,
const QVector<float>& intensities, const QVector<ElementTarget>& targets, const Options& options)
{
PeakDetectionResult result;
if (wavelengthsNm.isEmpty() || intensities.isEmpty() ||
wavelengthsNm.size() != intensities.size())
{
result.warnings.append("光谱数据为空或长度不匹配");
return result;
}
// Baseline correction (simple rolling min + smoothing)
auto corrected = baselineCorrect(intensities, std::max(11, options.SmoothingWindow * 3));
// Precompute second derivative for peak finding
auto secondDeriv = secondDerivative(corrected);
// Build quick index for wavelength -> index via binary search
int n = wavelengthsNm.size();
if (targets.isEmpty()) {
// If no targets provided, detect general peaks across spectrum
auto genericPeaks = findLocalMaxima(wavelengthsNm, corrected, secondDeriv,
QPair<int, int>(-1, -1), options);
result.peaks = genericPeaks;
return result;
}
for (const auto& t : targets) {
for (auto tw : t.characteristicWavelengthsNm) {
double wmin = tw - options.ToleranceNm;
double wmax = tw + options.ToleranceNm;
int i0 = lowerBound(wavelengthsNm, static_cast<float>(wmin));
int i1 = upperBound(wavelengthsNm, static_cast<float>(wmax));
i0 = std::max(0, i0);
i1 = std::min(n - 1, i1);
if (i1 <= i0) {
result.warnings.append(QString("[%1] %2nm 未在容差范围内找到数据窗口")
.arg(t.name).arg(tw, 0, 'f', 3));
continue;
}
auto peaks = findLocalMaxima(wavelengthsNm, corrected, secondDeriv,
QPair<int, int>(i0, i1), options);
if (peaks.isEmpty()) {
result.warnings.append(QString("[%1] 未检测到 %2nm 特征峰")
.arg(t.name).arg(tw, 0, 'f', 3));
} else {
for (auto& p : peaks) {
p.elementName = t.name;
p.targetWavelengthNm = tw;
p.matched = std::abs(p.wavelengthNm - tw) <= options.ToleranceNm;
}
result.peaks.append(peaks);
}
}
}
return result;
}
QList<PeakFinder::PeakInfo> PeakFinder::findLocalMaxima(const QVector<float>& w,
const QVector<float>& y,
const QVector<float>& y2,
QPair<int, int> window,
const Options& options)
{
QList<PeakInfo> peaks;
int start = (window.first >= 0) ? window.first : 1;
int end = (window.second >= 0) ? window.second : (y.size() - 2);
// Simple local maxima detection and refinement
for (int i = start; i <= end; i++) {
float ym1 = y[i - 1];
float yi = y[i];
float yp1 = y[i + 1];
if (yi > ym1 && yi >= yp1) { // local max
// Robust prominence using local valley scan on both sides
float leftValley = scanLocalValleyLeft(y, i);
float rightValley = scanLocalValleyRight(y, i);
float localBase = std::max(leftValley, rightValley);
float prominence = yi - localBase;
if (options.MinProminence > 0 && prominence < options.MinProminence)
continue;
// Enforce negative curvature if enabled
if (options.UseSecondDerivative) {
float curv = (i >= 1 && i < y2.size() - 1) ? -y2[i] : 0.0f;
if (curv < static_cast<float>(options.MinCurvature))
continue;
}
// Quadratic interpolation for sub-sample peak position
double denom = (ym1 - 2 * yi + yp1);
double delta = (std::abs(denom) < 1e-9) ? 0 : 0.5 * (ym1 - yp1) / denom;
int iPeak = i;
double xPeakNm = interpolateX(w, iPeak, delta);
double yPeak = interpolateY(y, iPeak, delta);
// Estimate FWHM by scanning HalfMaxFraction crossings
double half = yPeak * options.HalfMaxFraction;
double wlLeft = scanHalfWidthLeft(w, y, iPeak, half);
double wlRight = scanHalfWidthRight(w, y, iPeak, half);
double fwhm = (wlRight > wlLeft && wlLeft > 0) ? (wlRight - wlLeft) : 0;
// Width checks in pixels and skew ratio
int leftPx = countLeftPixelsAbove(y, iPeak, half);
int rightPx = countRightPixelsAbove(y, iPeak, half);
int widthPx = leftPx + rightPx;
if (widthPx < options.MinWidthPixels)
continue; // reject narrow noise spikes
double skewRatio = (rightPx > 0 && leftPx > 0) ?
(std::max(rightPx, leftPx) / static_cast<double>(std::max(1, std::min(rightPx, leftPx)))) :
options.MaxSkewRatio;
if (skewRatio > options.MaxSkewRatio)
continue; // highly skewed slopes likely false
// Area estimate: trapezoidal around peak until it drops below 10% of peak
double area = integrateAroundPeak(w, y, iPeak, yPeak * 0.1);
PeakInfo peak;
peak.wavelengthNm = xPeakNm;
peak.intensity = yPeak;
peak.fwhmNm = fwhm;
peak.area = area;
peak.matched = false;
peaks.append(peak);
}
}
return peaks;
}
double PeakFinder::interpolateX(const QVector<float>& w, int i, double delta)
{
// linear interpolation in wavelength grid around i + delta (delta in [-0.5,0.5])
int i0 = std::max(0, std::min(w.size() - 2, i));
double x0 = w[i0];
double x1 = w[i0 + 1];
return x0 + (x1 - x0) * delta;
}
double PeakFinder::interpolateY(const QVector<float>& y, int i, double delta)
{
// quadratic interpolation
double ym1 = y[i - 1];
double yi = y[i];
double yp1 = y[i + 1];
return yi - 0.25 * (ym1 - yp1) * delta; // approximation
}
double PeakFinder::scanHalfWidthLeft(const QVector<float>& w, const QVector<float>& y,
int iPeak, double half)
{
double crossing = -1;
for (int i = iPeak; i > 0; i--) {
if (y[i] < half) {
// linear interpolate between i and i+1
double t = (half - y[i]) / (y[i + 1] - y[i]);
crossing = w[i] + (w[i + 1] - w[i]) * t;
break;
}
}
return crossing;
}
double PeakFinder::scanHalfWidthRight(const QVector<float>& w, const QVector<float>& y,
int iPeak, double half)
{
double crossing = -1;
for (int i = iPeak; i < y.size() - 1; i++) {
if (y[i] < half) {
double t = (half - y[i - 1]) / (y[i] - y[i - 1]);
crossing = w[i - 1] + (w[i] - w[i - 1]) * t;
break;
}
}
return crossing;
}
float PeakFinder::scanLocalValleyLeft(const QVector<float>& y, int iPeak)
{
float valley = y[iPeak];
float last = y[iPeak];
for (int i = iPeak - 1; i >= 0; i--) {
float yi = y[i];
valley = std::min(valley, yi);
// stop when trend reverses (start rising again)
if (yi > last) break;
last = yi;
}
return valley;
}
float PeakFinder::scanLocalValleyRight(const QVector<float>& y, int iPeak)
{
float valley = y[iPeak];
float last = y[iPeak];
for (int i = iPeak + 1; i < y.size(); i++) {
float yi = y[i];
valley = std::min(valley, yi);
if (yi > last) break; // trend reverses
last = yi;
}
return valley;
}
int PeakFinder::countLeftPixelsAbove(const QVector<float>& y, int iPeak, double thr)
{
int c = 0;
for (int i = iPeak; i >= 0 && y[i] >= thr; i--) c++;
return std::max(0, c - 1);
}
int PeakFinder::countRightPixelsAbove(const QVector<float>& y, int iPeak, double thr)
{
int c = 0;
for (int i = iPeak; i < y.size() && y[i] >= thr; i++) c++;
return std::max(0, c - 1);
}
double PeakFinder::integrateAroundPeak(const QVector<float>& w, const QVector<float>& y,
int iPeak, double threshold)
{
int i0 = iPeak, i1 = iPeak;
while (i0 > 0 && y[i0] > threshold) i0--;
while (i1 < y.size() - 1 && y[i1] > threshold) i1++;
double area = 0;
for (int i = std::max(0, i0); i < std::min(y.size() - 1, i1); i++) {
double dx = w[i + 1] - w[i];
area += 0.5 * (y[i] + y[i + 1]) * dx;
}
return area;
}
QVector<float> PeakFinder::baselineCorrect(const QVector<float>& y, int window)
{
// rolling minimum followed by moving average smoothing
int n = y.size();
QVector<float> baseline(n);
int hw = std::max(1, window / 2);
for (int i = 0; i < n; i++) {
int i0 = std::max(0, i - hw);
int i1 = std::min(n - 1, i + hw);
float m = std::numeric_limits<float>::max();
for (int j = i0; j <= i1; j++)
m = std::min(m, y[j]);
baseline[i] = m;
}
QVector<float> corrected(n);
for (int i = 0; i < n; i++)
corrected[i] = std::max(0.0f, y[i] - baseline[i]);
if (window > 1) {
corrected = movingAverage(corrected, std::max(3, window / 2));
}
return corrected;
}
QVector<float> PeakFinder::movingAverage(const QVector<float>& y, int w)
{
int n = y.size();
QVector<float> outy(n);
int hw = std::max(1, w / 2);
for (int i = 0; i < n; i++) {
int i0 = std::max(0, i - hw);
int i1 = std::min(n - 1, i + hw);
double sum = 0;
int cnt = 0;
for (int j = i0; j <= i1; j++) {
sum += y[j];
cnt++;
}
outy[i] = static_cast<float>(sum / std::max(1, cnt));
}
return outy;
}
QVector<float> PeakFinder::secondDerivative(const QVector<float>& y)
{
int n = y.size();
QVector<float> y2(n);
if (n < 3) return y2;
y2[0] = 0;
y2[n - 1] = 0;
for (int i = 1; i < n - 1; i++)
y2[i] = y[i - 1] - 2 * y[i] + y[i + 1];
return y2;
}
int PeakFinder::lowerBound(const QVector<float>& arr, float value)
{
int l = 0, r = arr.size();
while (l < r) {
int m = (l + r) / 2;
if (arr[m] < value)
l = m + 1;
else
r = m;
}
return l;
}
int PeakFinder::upperBound(const QVector<float>& arr, float value)
{
int l = 0, r = arr.size();
while (l < r) {
int m = (l + r) / 2;
if (arr[m] <= value)
l = m + 1;
else
r = m;
}
return l;
}
double PeakFinder::median(QVector<double> values)
{
if (values.isEmpty())
return std::numeric_limits<double>::quiet_NaN();
std::sort(values.begin(), values.end());
int n = values.size();
if (n % 2 == 1)
return values[n / 2];
return 0.5 * (values[n / 2 - 1] + values[n / 2]);
}
double PeakFinder::computeSNR(const QVector<double>& y, int peakStart, int peakEnd,
int bgStart, int bgEnd, double epsilon)
{
if (y.isEmpty())
throw std::invalid_argument("光谱数组为空");
int n = y.size();
if (peakStart < 0 || peakEnd > n || peakStart >= peakEnd)
throw std::out_of_range("峰区间索引不合法");
if (bgStart < 0 || bgEnd > n || bgStart >= bgEnd)
throw std::out_of_range("背景区间索引不合法");
int peakCount = peakEnd - peakStart;
int bgCount = bgEnd - bgStart;
if (peakCount < 1)
throw std::invalid_argument("峰区间长度不足");
if (bgCount < 2)
throw std::invalid_argument("背景区间长度不足");
// Filter valid values
QVector<double> peakValues, bgValues;
for (int i = peakStart; i < peakEnd; i++) {
if (!std::isnan(y[i]) && !std::isinf(y[i]))
peakValues.append(y[i]);
}
for (int i = bgStart; i < bgEnd; i++) {
if (!std::isnan(y[i]) && !std::isinf(y[i]))
bgValues.append(y[i]);
}
if (peakValues.isEmpty() || bgValues.size() < 2)
return std::numeric_limits<double>::quiet_NaN();
double signal = *std::max_element(peakValues.begin(), peakValues.end());
double bgMean = std::accumulate(bgValues.begin(), bgValues.end(), 0.0) / bgValues.size();
double medianVal = median(bgValues);
double bgVar = 0;
for (auto v : bgValues)
bgVar += std::pow(v - medianVal, 2);
bgVar /= bgValues.size();
double bgStd = std::sqrt(std::max(0.0, bgVar));
// Debug output
qDebug() << "signal=" << signal << ", bgMean=" << bgMean << ", bgStd=" << bgStd;
double denom = std::max(bgStd, epsilon);
return (signal - bgMean) / denom;
}
+112
View File
@@ -0,0 +1,112 @@
#ifndef PEAKFINDER_H
#define PEAKFINDER_H
#include <QObject>
#include <QVector>
#include <QString>
#include <QList>
#include <cmath>
#include <algorithm>
class PeakFinder : public QObject
{
Q_OBJECT
public:
struct Options {
double ToleranceNm; // 允许的波长误差 nm
bool UseGaussianFit; // 是否使用高斯拟合
int SmoothingWindow; // 滤波窗口大小
double MinProminence; // 最小突起高度
int MinWidthPixels; // 最小宽度像素
bool UseSecondDerivative; // 是否使用二阶导数
double MinCurvature; // 最小曲率
double HalfMaxFraction; // 半最大高度比例
double MaxSkewRatio; // 最大偏斜比
// 添加构造函数来提供默认值
Options() :
ToleranceNm(0.5),
UseGaussianFit(false),
SmoothingWindow(5),
MinProminence(0),
MinWidthPixels(2),
UseSecondDerivative(true),
MinCurvature(0),
HalfMaxFraction(0.5),
MaxSkewRatio(6.0)
{}
};
// 元素目标
struct ElementTarget {
QString name;
QVector<double> characteristicWavelengthsNm;
};
// 峰值信息
struct PeakInfo {
double wavelengthNm = 0;
double intensity = 0;
double fwhmNm = 0;
double area = 0;
QString elementName;
double targetWavelengthNm = 0;
bool matched = false;
};
// 峰值检测结果
struct PeakDetectionResult {
QList<PeakInfo> peaks;
QVector<QString> warnings;
};
// 检测峰值
static PeakDetectionResult DetectPeaks(
const QVector<float>& wavelengthsNm,
const QVector<float>& intensities,
const QVector<ElementTarget>& targets,
const Options& options = Options()
);
// 计算信噪比
static double computeSNR(const QVector<double>& y, int peakStart, int peakEnd,
int bgStart, int bgEnd, double epsilon = 1e-9);
private:
// 辅助函数, 用于计算基线修正
static QVector<float> baselineCorrect(const QVector<float>& y, int window);
// 辅助函数, 用于计算移动平均
static QVector<float> movingAverage(const QVector<float>& y, int w);
// 辅助函数, 用于计算二阶导数
static QVector<float> secondDerivative(const QVector<float>& y);
// 辅助函数, 用于查找局部极大值
static QList<PeakInfo> findLocalMaxima(const QVector<float>& w, const QVector<float>& y,
const QVector<float>& y2, QPair<int, int> window,
const Options& options);
// 辅助函数, 用于插值计算峰值位置
static double interpolateX(const QVector<float>& w, int i, double delta);
// 辅助函数, 用于插值计算峰值高度
static double interpolateY(const QVector<float>& y, int i, double delta);
// 辅助函数, 用于扫描半宽度左侧
static double scanHalfWidthLeft(const QVector<float>& w, const QVector<float>& y,
int iPeak, double half);
// 辅助函数, 用于扫描半宽度右侧
static double scanHalfWidthRight(const QVector<float>& w, const QVector<float>& y,
int iPeak, double half);
// 辅助函数, 用于扫描局部谷值左侧
static float scanLocalValleyLeft(const QVector<float>& y, int iPeak);
// 辅助函数, 用于扫描局部谷值右侧
static float scanLocalValleyRight(const QVector<float>& y, int iPeak);
// 辅助函数, 用于计算像素数
static int countLeftPixelsAbove(const QVector<float>& y, int iPeak, double thr);
// 辅助函数, 用于计算像素数
static int countRightPixelsAbove(const QVector<float>& y, int iPeak, double thr);
// 辅助函数, 用于计算峰面积
static double integrateAroundPeak(const QVector<float>& w, const QVector<float>& y,
int iPeak, double threshold);
// 辅助函数, 用于查找数组中的下界索引
static int lowerBound(const QVector<float>& arr, float value);
// 辅助函数, 用于查找数组中的上界索引
static int upperBound(const QVector<float>& arr, float value);
// 辅助函数, 用于计算数组的中位数
static double median(QVector<double> values);
};
#endif // PEAKFINDER_H
+1605
View File
File diff suppressed because it is too large Load Diff
+28
View File
@@ -0,0 +1,28 @@
//
// Created by Administrator on 2026/1/21.
//
#ifndef CLICKABLE_LINE_EDIT_H
#define CLICKABLE_LINE_EDIT_H
#include <QLineEdit>
#include <QMouseEvent>
class ClickableLineEdit : public QLineEdit {
Q_OBJECT
public:
ClickableLineEdit(QWidget *parent = nullptr) : QLineEdit(parent) {}
signals:
void clicked();
protected:
void mousePressEvent(QMouseEvent *event) override {
QLineEdit::mousePressEvent(event);
if (event->button() == Qt::LeftButton) {
emit clicked(); // 发射自定义信号
}
}
};
#endif //CLICKABLE_LINE_EDIT_H
+135
View File
@@ -0,0 +1,135 @@
#include "crc16util.h"
#include <iostream>
#include <cstdint>
#include <string>
#include <sstream>
#include <vector>
#include <iomanip>
#include <cctype>
Crc16Util::Crc16Util()
{
}
// 计算Modbus CRC16校验值
uint16_t calculateCRC16(const uint8_t* data, size_t length) {
uint16_t crc = 0xFFFF;
for (size_t i = 0; i < length; ++i) {
crc ^= static_cast<uint16_t>(data[i]);
for (size_t j = 0; j < 8; ++j) {
if ((crc & 0x0001) != 0) {
crc >>= 1;
crc ^= 0xA001;
}
else {
crc >>= 1;
}
}
}
return crc;
}
uint8_t hexToUint8(const std::string& hexStr) {
// 检查字符串长度
if (hexStr.length() < 2) {
return 0;
}
// 检查字符是否有效
char c1 = hexStr[0];
char c2 = hexStr[1];
// 转换为大写并验证是否为有效的十六进制字符
c1 = toupper(c1);
c2 = toupper(c2);
if (!((c1 >= '0' && c1 <= '9') || (c1 >= 'A' && c1 <= 'F')) ||
!((c2 >= '0' && c2 <= '9') || (c2 >= 'A' && c2 <= 'F'))) {
return 0;
}
uint8_t highNibble = (c1 >= 'A') ? (c1 - 'A' + 10) : (c1 - '0');
uint8_t lowNibble = (c2 >= 'A') ? (c2 - 'A' + 10) : (c2 - '0');
return (highNibble << 4) | lowNibble;
}
std::vector<uint8_t> splitAndConvertToHex(const std::string& input) {
std::vector<uint8_t> result;
// 检查输入字符串是否为空
if (input.empty()) {
return result;
}
std::stringstream ss(input);
std::string token;
while (ss >> token) {
// 检查token是否有效(至少2个字符)
if (token.length() >= 2) {
try {
uint8_t value = hexToUint8(token);
result.push_back(value);
} catch (...) {
// 如果转换失败,跳过这个token
continue;
}
}
}
return result;
}
std::string Crc16Util::getCRC16(std::string cmdHex){
// 添加空字符串检查
if (cmdHex.empty()) {
return "0000";
}
std::vector<uint8_t> hexArray = splitAndConvertToHex(cmdHex);
// 检查转换后的数组是否为空
if (hexArray.empty()) {
return "0000";
}
uint8_t* data = hexArray.data();
size_t size = hexArray.size();
// 计算CRC16校验值
uint16_t crc = calculateCRC16(data, size);
// 交换高低字节
uint16_t swappedCRC = ((crc & 0xFF) << 8) | ((crc & 0xFF00) >> 8);
std::stringstream ss;
ss << std::hex << std::setw(4) << std::setfill('0') << swappedCRC;
// 确保返回的字符串不为空
std::string result = ss.str();
if (result.empty()) {
return "0000";
}
return result;
// uint8_t data[] = { 0x5A, 0x01, 0x01, 0xA1, 0x01 };
// // 计算CRC16校验值
// uint16_t crc = calculateCRC16(data, sizeof(data));
// // 交换高低字节
// uint16_t swappedCRC = ((crc & 0xFF) << 8) | ((crc & 0xFF00) >> 8);
// // 输出校验值
// std::cout << "CRC16: 0x" << std::hex << swappedCRC << std::endl;
// return "";
}
+13
View File
@@ -0,0 +1,13 @@
#ifndef CRC16UTIL_H
#define CRC16UTIL_H
#include <string>
using namespace std;
class Crc16Util
{
public:
Crc16Util();
static string getCRC16(string cmdHex);
};
#endif // CRC16UTIL_H
+439
View File
@@ -0,0 +1,439 @@
#include <QDebug>
#include "sqliteutil.h"
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QList>
#include <QVariant>
#include <QSqlQueryModel>
#include <QSqlRecord>
#include <QSqlError>
#include <QApplication>
#include <QDir>
QSqlDatabase SqliteUtil::m_db ;
QString SqliteUtil::m_strDatabase = "SQL/1208_02_jixiebi.db";
SqliteUtil::SqliteUtil()
{
}
bool SqliteUtil::createConnection(const QString &database)
{
//与数据库建立连接
if (QSqlDatabase::contains("qt_sql_default_connection"))
{
m_db = QSqlDatabase::database("qt_sql_default_connection");
}
else
{
// 修复:使用一致的连接名称
m_db = QSqlDatabase::addDatabase("QSQLITE", "qt_sql_default_connection");
}
//设置数据库名
m_db.setDatabaseName(database);
//打开数据库
if (!m_db.open())
{
qDebug() << "打开数据库失败!" << m_db.lastError().text();
return false;
}
qDebug() << "数据库连接成功:" << database;
return true;
}
bool SqliteUtil::ExecuteRecord(const QString& strQuery)
{
if(!m_db.isOpen())
{
if(!createConnection(m_strDatabase))
{
qDebug() << "在ExecuteRecord中创建数据库连接失败!" << m_db.lastError().text();
return false;
}
}
QSqlQuery query(m_db);
query.prepare(strQuery);
if(query.exec()){
return true;
}
qDebug() << "查询执行失败!" << query.lastError().text() << "SQL:" << strQuery;
return false;
}
QSqlRecord SqliteUtil::ExecuteRecord(const QString& strQuery, QList<QVariant> lstParameter)
{
if(!m_db.isOpen())
{
if(!createConnection(m_strDatabase))
{
qDebug() << "在ExecuteRecord中创建数据库连接失败!" << m_db.lastError().text();
return QSqlRecord();
}
}
QSqlQuery query(m_db);
query.prepare(strQuery);
for(int i = 0; i < lstParameter.size(); i++)
{
query.bindValue(i, lstParameter.at(i));
}
if(query.exec())
{
if(query.next())
{
return query.record();
}
qDebug() << "查询执行失败!未找到记录!" << strQuery;
return QSqlRecord();
}
qDebug() << "查询执行失败!" << query.lastError().text() << "SQL:" << strQuery;
return QSqlRecord();
}
QSqlRecord SqliteUtil::ExecuteRecord(const QString& strQuery, QVariant Parameter)
{
if(!m_db.isOpen())
{
if(!createConnection(m_strDatabase))
{
qDebug() << "在ExecuteRecord中创建数据库连接失败!" << m_db.lastError().text();
return QSqlRecord();
}
}
QSqlQuery query(m_db);
query.prepare(strQuery);
query.bindValue(0, Parameter);
if(query.exec())
{
if(query.next())
{
return query.record();
}
qDebug() << "查询执行失败!未找到记录!" << strQuery;
return QSqlRecord();
}
qDebug() << "查询执行失败!" << query.lastError().text() << "SQL:" << strQuery;
return QSqlRecord();
}
QSqlQuery SqliteUtil::ExecuteSqlQuery(const QString& strQuery, QList<QVariant> lstParameter)
{
if(!m_db.isOpen())
{
if(!createConnection(m_strDatabase))
{
qDebug() << "在ExecuteSqlQuery中创建数据库连接失败!" << m_db.lastError().text();
return QSqlQuery();
}
}
QSqlQuery query(m_db);
query.prepare(strQuery);
query.setForwardOnly(true);
for(int i = 0; i < lstParameter.size(); i++)
{
query.bindValue(i, lstParameter.at(i));
}
if(!query.exec())
{
qDebug() << "查询执行失败!" << query.lastError().text() << "SQL:" << strQuery;
}
return query;
}
QSqlQuery SqliteUtil::ExecuteSqlQuery(const QString& strQuery, QVariant Parameter)
{
if(!m_db.isOpen())
{
if(!createConnection(m_strDatabase))
{
qDebug() << "在ExecuteSqlQuery中创建数据库连接失败!" << m_db.lastError().text();
return QSqlQuery();
}
}
QSqlQuery query(m_db);
query.setForwardOnly(true);
query.prepare(strQuery);
query.bindValue(0, Parameter);
if(!query.exec())
{
qDebug() << "查询执行失败!" << query.lastError().text() << "SQL:" << strQuery;
}
return query;
}
QSqlQuery SqliteUtil::ExecuteSqlQuery(const QString& strQuery)
{
if(!m_db.isOpen())
{
if(!createConnection(m_strDatabase))
{
qDebug() << "在ExecuteSqlQuery中创建数据库连接失败!" << m_db.lastError().text();
return QSqlQuery();
}
}
QSqlQuery query(m_db);
query.prepare(strQuery);
query.setForwardOnly(true);
if(!query.exec())
{
qDebug() << "查询执行失败!" << query.lastError().text() << "SQL:" << strQuery;
}
return query;
}
int SqliteUtil::ExecuteInt(const QString& strQuery)
{
if(!m_db.isOpen())
{
if(!createConnection(m_strDatabase))
{
qDebug() << "在ExecuteInt中创建数据库连接失败!" << m_db.lastError().text();
return -1;
}
}
QSqlQuery query(m_db);
query.prepare(strQuery);
if(query.exec())
{
if(query.next())
{
return query.value(0).toInt();
}
qDebug() << "查询执行失败!未找到记录!" << strQuery;
return -1;
}
qDebug() << "查询执行失败!" << query.lastError().text() << "SQL:" << strQuery;
return -1;
}
int SqliteUtil::ExecuteInt(const QString& strQuery, QList<QVariant> lstParameter)
{
if(!m_db.isOpen())
{
if(!createConnection(m_strDatabase))
{
qDebug() << "在ExecuteInt中创建数据库连接失败!" << m_db.lastError().text();
return -1;
}
}
QSqlQuery query(m_db);
query.prepare(strQuery);
for(int i = 0; i < lstParameter.size(); i++)
{
query.bindValue(i, lstParameter.at(i));
}
if(query.exec())
{
if(query.next())
{
return query.value(0).toInt();
}
qDebug() << "查询执行失败!未找到记录!" << strQuery;
return -1;
}
qDebug() << "查询执行失败!" << query.lastError().text() << "SQL:" << strQuery;
return -1;
}
int SqliteUtil::ExecuteInt(const QString& strQuery, QVariant Parameter)
{
if(!m_db.isOpen())
{
if(!createConnection(m_strDatabase))
{
qDebug() << "在ExecuteInt中创建数据库连接失败!" << m_db.lastError().text();
return -1;
}
}
QSqlQuery query(m_db);
query.prepare(strQuery);
query.bindValue(0, Parameter);
if(query.exec())
{
if(query.next())
{
return query.value(0).toInt();
}
qDebug() << "查询执行失败!未找到记录!" << strQuery;
return -1;
}
qDebug() << "查询执行失败!" << query.lastError().text() << "SQL:" << strQuery;
return -1;
}
bool SqliteUtil::Execute(const QString& strQuery)
{
if(!m_db.isOpen())
{
if(!createConnection(m_strDatabase))
{
qDebug() << "Failed to create database connection in Execute";
return false;
}
}
QSqlQuery query(m_db);
if(query.exec(strQuery))
{
return true;
}
qDebug() << "查询执行失败!" << query.lastError().text() << "SQL:" << strQuery;
return false;
}
bool SqliteUtil::Execute(const QString& strQuery, QVariant Parameter)
{
if(!m_db.isOpen())
{
if(!createConnection(m_strDatabase))
{
qDebug() << "在Execute中创建数据库连接失败!" << m_db.lastError().text();
return false;
}
}
QSqlQuery query(m_db);
query.prepare(strQuery);
query.bindValue(0, Parameter);
if(query.exec())
{
return true;
}
qDebug() << "查询执行失败!" << query.lastError().text() << "SQL:" << strQuery;
return false;
}
bool SqliteUtil::Execute(const QString& strQuery, QList<QVariant> lstParameter)
{
if(!m_db.isOpen())
{
if(!createConnection(m_strDatabase))
{
qDebug() << "在Execute中创建数据库连接失败!" << m_db.lastError().text();
return false;
}
}
QSqlQuery query(m_db);
query.prepare(strQuery);
for(int i = 0; i < lstParameter.size(); i++)
{
query.bindValue(i, lstParameter.at(i));
}
if(query.exec())
{
return true;
}
qDebug() << "查询执行失败!" << query.lastError().text() << "SQL:" << strQuery;
return false;
}
QString SqliteUtil::ExecuteString(const QString& strQuery)
{
if(!m_db.isOpen())
{
if(!createConnection(m_strDatabase))
{
qDebug() << "在ExecuteString中创建数据库连接失败!" << m_db.lastError().text();
return QString();
}
}
QSqlQuery query(m_db);
query.prepare(strQuery);
if(query.exec())
{
if(query.next())
{
return query.value(0).toString();
}
qDebug() << "查询执行失败!未找到记录!" << strQuery;
return QString();
}
qDebug() << "查询执行失败!" << query.lastError().text() << "SQL:" << strQuery;
return QString();
}
void SqliteUtil::ExecuteQueryModel(QSqlQueryModel *p_queryModel, const QString& strQuery)
{
if(!m_db.isOpen())
{
if(!createConnection(m_strDatabase))
{
qDebug() << "在ExecuteQueryModel中创建数据库连接失败!" << m_db.lastError().text();
return;
}
}
if(p_queryModel == nullptr)
{
qDebug() << "在ExecuteQueryModel中查询模型指针为空!" << strQuery;
return;
}
p_queryModel->setQuery(strQuery, m_db);
if(p_queryModel->lastError().isValid())
{
qDebug() << "在ExecuteQueryModel中查询模型执行失败!" << p_queryModel->lastError().text() << "SQL:" << strQuery;
}
}
void SqliteUtil::ExecuteQueryModel(QSqlQueryModel *p_queryModel, const QString& strQuery,
QList<QVariant> lstParameter)
{
if(!m_db.isOpen())
{
if(!createConnection(m_strDatabase))
{
qDebug() << "在ExecuteQueryModel中创建数据库连接失败!" << m_db.lastError().text();
return;
}
}
if(p_queryModel == nullptr)
{
qDebug() << "在ExecuteQueryModel中查询模型指针为空!" << strQuery;
return;
}
QSqlQuery query(m_db);
query.prepare(strQuery);
for(int i = 0; i < lstParameter.size(); i++)
{
query.bindValue(i, lstParameter.at(i));
}
if(query.exec())
{
p_queryModel->setQuery(query);
if(p_queryModel->lastError().isValid())
{
qDebug() << "在ExecuteQueryModel中查询模型执行失败!" << p_queryModel->lastError().text() << "SQL:" << strQuery;
}
}
else
{
qDebug() << "在ExecuteQueryModel中查询模型执行失败!" << query.lastError().text() << "SQL:" << strQuery;
}
}
void SqliteUtil::ExecuteQueryModel(QSqlQueryModel *p_queryModel, const QString& strQuery, QVariant Parameter)
{
if(!m_db.isOpen())
{
if(!createConnection(m_strDatabase))
{
qDebug() << "在ExecuteQueryModel中创建数据库连接失败!" << m_db.lastError().text();
return;
}
}
if(p_queryModel == nullptr)
{
qDebug() << "在ExecuteQueryModel中查询模型指针为空!" << strQuery;
return;
}
QSqlQuery query(m_db);
query.prepare(strQuery);
query.bindValue(0, Parameter);
if(query.exec())
{
p_queryModel->setQuery(query);
if(p_queryModel->lastError().isValid())
{
qDebug() << "在ExecuteQueryModel中查询模型执行失败!" << p_queryModel->lastError().text() << "SQL:" << strQuery;
}
} else {
qDebug() << "在ExecuteQueryModel中查询模型执行失败!" << query.lastError().text() << "SQL:" << strQuery;
}
}
+52
View File
@@ -0,0 +1,52 @@
#ifndef SQLITEUTIL_H
#define SQLITEUTIL_H
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QList>
#include <QVariant>
#include <QSqlQueryModel>
class SqliteUtil
{
public:
SqliteUtil();
static bool createConnection(const QString& strConn);
static bool ExecuteRecord(const QString& strQuery);
static QSqlRecord ExecuteRecord(const QString& strQuery, QList<QVariant> lstParameter);
static QSqlRecord ExecuteRecord(const QString& strQuery, QVariant Parameter);
static QSqlQuery ExecuteSqlQuery(const QString& strQuery, QList<QVariant> lstParameter);
static QSqlQuery ExecuteSqlQuery(const QString& strQuery, QVariant Parameter);
static QSqlQuery ExecuteSqlQuery(const QString& strQuery);
static int ExecuteInt(const QString& strQuery);
static int ExecuteInt(const QString& strQuery, QList<QVariant> lstParameter);
static int ExecuteInt(const QString& strQuery, QVariant Parameter);
static bool Execute(const QString& strQuery);
static bool Execute(const QString& strQuery, QVariant Parameter);
static bool Execute(const QString& strQuery, QList<QVariant> lstParameter);
static QString ExecuteString(const QString& strQuery);
static void ExecuteQueryModel(QSqlQueryModel *p_queryModel, const QString& strQuery);
static void ExecuteQueryModel(QSqlQueryModel *p_queryModel, const QString& strQuery,
QList<QVariant> lstParameter);
static void ExecuteQueryModel(QSqlQueryModel *p_queryModel, const QString& strQuery, QVariant Parameter);
private:
static QSqlDatabase m_db;
static QString m_strDatabase;
};
#endif // SQLITEUTIL_H
+21
View File
@@ -0,0 +1,21 @@
#ifndef TYPE_H_
#define TYPE_H_
typedef signed char int8;
typedef unsigned char uint8;
typedef signed short int16;
typedef unsigned short uint16;
typedef unsigned int uint32;
typedef signed int int32;
typedef struct {
double start;
double end;
}Interval;
typedef struct {
int iIndex;
int iStart;
}HandleIndex;
#define MAX_NR_DEVICES 2
#define MAX_DATA_LEN 2048
#endif
+124
View File
@@ -0,0 +1,124 @@
#include "util.h"
#include <QMessageBox>
#include <QWidget>
#include <QTime>
#include <QEventLoop>
#include <QCoreApplication>
#include <sstream>
#include <cmath>
#include <QBuffer>
#include <QFile>
#include <qrandom.h>
#include <QTextStream>
using namespace std;
Util::Util()
{
}
void Util::WriteLog(string logInfo)
{
Util::Assert(false);
}
void Util::MessageBox(QWidget *parentWnd, std::string msg, std::string title /*= "信息"*/)
{
QMessageBox::information(parentWnd, ToQstr(title), ToQstr(msg), QMessageBox::Ok, QMessageBox::NoButton);
}
QString Util::ToQstr(std::string str)
{
return QString::fromStdString(str);
}
string Util::ToStdStr(QString str /*= "默认的参数:你好2 helloworld *&……%¥#@!"*/)
{
return string(str.toLocal8Bit());
}
bool Util::IsEqual(double a, double b) //比较两个浮点数使否相等
{
return fabs(a - b) <= EPSLON;
}
void Util::delay(int ms) //延迟指定的ms毫秒数
{
QTime dieTime = QTime::currentTime().addMSecs(ms);
while (QTime::currentTime() < dieTime)
QCoreApplication::processEvents(QEventLoop::AllEvents, 100);
}
QString Util::GetId()
{
qsrand(QTime(0,0,0).secsTo(QTime::currentTime()));
QDateTime currentTime = QDateTime::currentDateTime();
QString currentTimeStr = currentTime.toString("yyyyMMddhhmmss");
int n = qrand() % 10;
//QString random = QString("%1").arg(n,6,10,QLatin1Char('0'));
return currentTimeStr + QString::number(n);
}
//i要转化的十进制整数,width转化后的宽度,位数不足则补0
std::string Util::Dec2Hex(int i, int width)
{
std::stringstream ioss; //定义字符串流
std::string s_temp; //存放转化后字符
ioss << std::hex << i; //以十六制形式输出
ioss >> s_temp;
if(width > s_temp.size())
{
std::string s_0(width - s_temp.size(), '0'); //位数不够则补0
s_temp = s_0 + s_temp; //合并
}
std::string s = s_temp.substr(s_temp.length() - width, s_temp.length()); //取右width位
transform(s.begin(), s.end(), s.begin(), ::toupper);
return s;
}
QString Util::Img2base64(QImage& image){
// 将 QImage 写入 QByteArray
QByteArray byteArray;
QBuffer buffer(&byteArray);
buffer.open(QIODevice::WriteOnly);
image.save(&buffer, "JPEG"); // 保存为 PNG 格式,您也可以选择其他格式
buffer.close();
// 将 QByteArray 转换为 Base64 编码的字符串
QString base64Str = byteArray.toBase64();
return base64Str;
}
std::string Util::Byte2Hex(unsigned char* bytes, int bytelength)
{
string str("");
string str2("0123456789abcdef");
for (int i=0;i<bytelength;i++) {
int b;
b = 0x0f&(bytes[i]>>4);
char s1 = str2.at(b);
str.append(1,str2.at(b));
b = 0x0f & bytes[i];
str.append(1,str2.at(b));
char s2 = str2.at(b);
}
return str;
}
// 生成11位随机数
qint64 Util::generate11DigitRandomNumber() {
qint64 min = 10000000000LL; // 11位最小值
qint64 max = 99999999999LL; // 11位最大值
qint64 range = max - min + 1;
qint64 randNum = QRandomGenerator::global()->generate64() % range + min;
return randNum;
}
+56
View File
@@ -0,0 +1,56 @@
#ifndef UTIL_H
#define UTIL_H
#include <string>
#include <QString>
#include <vector>
#include <QImage>
#define ARM_RUN true /* shi fou zai ARM shang yun xing*/
#if (ARM_RUN)
#include <assert.h>
#define ASSERT(x) assert(x)
#else
#define ASSERT(x) _ASSERT(x)
#endif
#define EPSLON 1E-6
#define COUNT_ARRAY(Array) (sizeof(Array)/sizeof(Array[0])) /*计算数组长度*/
#define DEL_PTR_S(pData) { try { if (pData) { delete (pData); (pData) = NULL; } } catch (...) { ASSERT(false); } ASSERT(NULL ==(pData)); } /* 安全删除指针 */
#define DEL_ARRAY_S(pData) { try { if (pData) { delete[] (pData); (pData) = NULL;} } catch (...) { ASSERT(false); } ASSERT(NULL ==(pData)); } /* 安全删除数组[] */
#define STR2SZ(str) ((LPSTR)(LPCTSTR)(str)) /* CStringתΪchar* */
typedef bool (*OnReceiveDataCallBackFunc)(int nDeviceIndex, double* pSpectrum, int nLen);
using namespace std;
class QWidget;
class Util
{
public:
Util();
static void Assert(bool bExprState) { ASSERT(bExprState); } //Assert断言
static void WriteLog(std::string logInfo); //写入日志
static void MessageBox(QWidget *parentWnd, std::string msg, std::string title = "信息"); //弹出模态消息框
static QString ToQstr(std::string str); //std::string 转 QString
static std::string ToStdStr(QString str = "默认的参数:你好2 helloworld *&……%¥#@!"); //QString 转 std::string
static bool IsEqual(double a, double b); //比较两个浮点数使否相等
static void delay(int ms); //延迟指定的ms毫秒数
static QString GetId();
static std::string Dec2Hex(int num, int width);
static std::string Byte2Hex(unsigned char* bytes, int byteLength);
static QString Img2base64(QImage& image);
static qint64 generate11DigitRandomNumber();
};
#endif // UTIL_H
+244
View File
@@ -0,0 +1,244 @@
# 在 Visual Studio 2026 中编译运行 CavityLIBS
本文是 [README-构建运行.md](README-构建运行.md)(MinGW 方案)之外的**第二条构建路线**:
用 Visual Studio 2026 自带的 MSVC 编译器编译、调试、运行本工程。
---
## 1. 为什么要单独一份说明
本工程原来是按 **Qt 5.15.2 MinGW 8.1** 配置的(Qt、qwt、ARIS SDK 都在 `G:` 盘)。
这台机器上 `G:` 盘已经不在了,Qt MinGW 套件和 GCC 编译器都没了,
只剩下面这套 MSVC 环境,因此必须改用 MSVC 编译:
| 组件 | 位置 / 版本 | 说明 |
| --- | --- | --- |
| Visual Studio | 2026(18.0)Community,MSVC 14.51 | `C:\Program Files\Microsoft Visual Studio\18\Community` |
| Qt | 5.15.2(**MSVC 版**,x64,含 Debug/Release) | `D:\util\qt-src\install`(由 `qt-everywhere-src-5.15.2` 编译) |
| Qwt | 6.2.0(**本次用 MSVC 现编**) | `third_party\qwt-6.2.0-msvc`(源码 `msvc-deps\qwt-6.2.0`) |
| ARIS SDK | 厂商只提供 MinGW 编译的 `libaris.dll` | 通过 **MinGW 桥接 DLL**(`aris_bridge.dll`)驱动真机 |
| libusb | 头文件 `third_party\libusb-1.0\include` | ARIS 头文件需要 |
### 两个必须知道的结论
**① 光谱仪:MSVC 通过「MinGW 桥接 DLL」驱动真机,可以正常采集。**
厂商只给了 MinGW/GCC 编译的 `libaris.dll`,导出的是 GCC 名字修饰的 C++ 符号,
还要求调用方继承它的 `SpectrometerCallback`(回调参数是 `std::string` / `std::vector`)。
这种 C++ 二进制接口在 MSVC 与 MinGW 之间不兼容(名字修饰、vtable 布局、STL 布局都不同),
所以 MSVC 程序**不能直接链接**它。
工程里的做法(`third_party\aris-bridge`):用 MinGW 把 SDK 包成一个**纯 C 接口**的
`aris_bridge.dll`——所有 SDK 类型和 STL 对象都只在这个 DLL 内部流转,对外只有一组
C 函数和一次数据回调;MSVC 主程序用 `LoadLibrary` 调用它。
```
third_party\aris-bridge\
src\aris_bridge.h/.cpp 桥接源码(C 接口声明)
vendor\libaris.dll 厂商原件
runtime\ MinGW 运行库(libgcc / libstdc++ / libwinpthread)
bin\aris_bridge.dll 构建产物
lib\libaris.a 由 gendef + dlltool 生成的导入库
build-bridge.bat 重新编译桥接 DLL 的脚本
```
CMake 一旦发现 `bin\aris_bridge.dll` 就自动启用桥接(定义 `CAVITY_USE_ARIS_BRIDGE`),
并把这些 DLL(含 `libaris.dll`、`libusb-1.0.dll`、MinGW 运行库)一并部署到 `bin`。
实测本机 3 台光谱仪(序列号 649 / 655 / 667,3648 像素)都能识别并采到数据。
> 如果以后拿到**厂商的 MSVC 版 SDK**(`libaris.lib`),可以用
> `-DCAVITY_USE_ARIS_BRIDGE=OFF` 关掉桥接,走原生链接;两者不影响界面/算法代码。
**② Qt 5.15.2 与新 MSVC 的 STL 有一个已知冲突,已用兼容层解决。**
Qt 5.15 的 `qvector.h` / `qlist.h` 会展开成 `stdext::make_checked_array_iterator`,
而 VS2022 后期 / VS2026 的 STL 已经把这个辅助函数删掉了。不处理的话,
**任何包含 Qt 容器的源文件都编不过**,报:
```
error C2653: "stdext": 不是类或命名空间名称
error C3861: "make_checked_array_iterator": 找不到标识符
```
工程里已加入 [compat/qt5_msvc_compat.h](compat/qt5_msvc_compat.h),
由 `CMakeLists.txt` 用 `/FI`(强制包含)注入,不需要改 Qt 安装目录。
---
## 2. 用 Visual Studio 2026 打开工程(推荐)
1. VS2026 → **文件 → 打开 → 文件夹**,选择工程根目录(含 `CMakeLists.txt` 的那一级)。
2. VS 会自动读取 [CMakePresets.json](CMakePresets.json),顶部工具栏的配置下拉框里能看到:
| 预设 | 说明 |
| --- | --- |
| `msvc-x64-debug` | Ninja + MSVC x64,**Debug**(用 `qwtd.dll`,带完整调试符号) |
| `msvc-x64-release` | Ninja + MSVC x64,**Release** |
| `vs2026-x64` | 生成 `.sln` / `.vcxproj`(`Visual Studio 18 2026` 生成器,多配置) |
选择 `msvc-x64-debug` 或 `msvc-x64-release` 即可(Ninja 比 MSBuild 快很多)。
3. 等待“CMake 配置”完成(输出窗口会看到 `Qwt: ... / ARIS SDK: ...` 或兼容桩警告)。
4. **生成 → 生成全部**(Ctrl+Shift+B)。
5. **调试 → 开始调试**(F5)或“开始执行(不调试)”(Ctrl+F5)。
程序输出在 `out\build\<预设名>\bin\CavityLIBS.exe`,
`Data`、`SQL`、`wavelength_calibrated_files`、Qt/qwt/aris 的 DLL 与插件都已自动部署到同目录。
> 调试工作目录、PATH 已在 `CMakeLists.txt` 里设好
> (`VS_DEBUGGER_WORKING_DIRECTORY` / `VS_DEBUGGER_ENVIRONMENT`),
> F5 就能直接跑,不会出现“找不到 Qt5Cored.dll”或“数据库打不开”。
### 想用 .sln 的方式
选 `vs2026-x64` 预设 → “生成 → 打开 CMake 生成的解决方案”,
VS 会打开 `out\build\vs2026-x64\CavityLIBS.slnx`,之后用法和普通 VS 工程一样
(此时用工具栏的 Debug/Release 切换配置)。
---
## 3. 命令行编译(等价流程)
在 **“x64 Native Tools Command Prompt for VS 2026”** 里执行:
```bat
cd /d D:\Code\cavity_LIBS_system-master
cmake --preset msvc-x64-release
cmake --build --preset msvc-x64-release
:: 或者 Debug
cmake --preset msvc-x64-debug
cmake --build --preset msvc-x64-debug
```
产物:`out\build\msvc-x64-release\bin\CavityLIBS.exe`(`bin` 目录可整体拷到同位数 Windows 上运行)。
> CMake 用的是 VS2026 自带的版本(4.3),
> 路径:`C:\Program Files\Microsoft Visual Studio\18\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe`。
> 如果不在 PATH 里,用完整路径调用,或直接用 VS 的“打开文件夹 + 预设”。
---
## 4. Qwt 是怎么来的(换 Qt 版本时要重编)
Qwt 是 C++ 库,**必须与主程序用同一个编译器编译**。工程里原有的
`third_party\qwt-6.3.0-mingw32/64` 是 GCC 编的 `.a`,MSVC 的链接器直接报
`LNK1107 / LNK1137`,不能用。
本机没有网络,源码取自 `D:\硬件资料\AvaSpec-DLL_9.14.0.0\examples\Qwt\qwt-6.2.0.zip`,
已解包到 `msvc-deps\qwt-6.2.0`,并用脚本编译:
```bat
scripts\build-qwt-msvc.bat
```
脚本会:调 `vcvars64` → 用 Qt 的 `qmake` 生成 Makefile(Release / Debug 各一套)
→ `nmake` 编译 → 把 `qwt.lib` / `qwt.dll` / `qwtd.lib` / `qwtd.dll` 和头文件
安装到 `third_party\qwt-6.2.0-msvc\`。
> 编译 Qwt 时也必须带 `/FI compat\qt5_msvc_compat.h`(同样的 `stdext` 冲突),
> 脚本里已经处理。
>
> 换 Qt 版本 / 换 VS 版本后重跑一次即可;`CMakeLists.txt` 会自动在
> `third_party\qwt-6.2.0-msvc`、`msvc-deps\qwt-6.2.0`、`QWT_ROOT` 里找。
---
## 5. CMakeLists.txt 相对 MinGW 版做了哪些改动
1. **按编译器选库**:MSVC 找 `lib/qwt.lib`(Debug 用 `qwtd.lib`),MinGW 找
`lib/libqwt.a`(Debug 用 `libqwtd.a`);ARIS 导入库同理(`libaris.lib` / `libaris.dll.a`)。
Qwt、Qt、ARIS 的位数仍用 PE 头校验,防止 32/64 位混配。
2. **MSVC 编译开关**(只对 MSVC 生效,MinGW 完全不受影响):
`/utf-8`(源码是 UTF-8,不加会把中文字面量按 GBK 解析而报 C2001)、
`/FI compat/qt5_msvc_compat.h`(Qt 5.15 的 `stdext` 兼容层)、
`/Zc:__cplusplus`、`NOMINMAX`、`_USE_MATH_DEFINES`、`_CRT_SECURE_NO_WARNINGS`,
用 VS 生成器时再加 `/MP`。
3. **部署按配置区分 Debug/Release**:Debug 用 `Qt5Cored.dll`、`qwindowsd.dll`、
`qsqlited.dll`、`qwtd.dll`;Release 用对应的无 `d` 版本。
(MSVC 下 Debug/Release 混用 CRT 会在运行期崩溃,必须成对匹配。)
4. **补上 MSVC 运行库**:从 VS 的 `VC\Redist\MSVC\<ver>\x64\Microsoft.VC14x.CRT`
复制 `vcruntime140.dll`、`vcruntime140_1.dll`、`msvcp140.dll`,
目标机没装 VC++ 运行库也能跑(否则启动报 `0xC0000135`)。
5. **MinGW 运行库只在 GCC 构建时复制**(MSVC 下不再拷 `libstdc++-6.dll` 等)。
6. **新增 `ws2_32` 链接**(`devicemanager.cpp` 直接包含 `winsock2.h`,
GCC 会自动带,MSVC 需要显式链接)。
7. **数据目录**:`Data`、`SQL`、`wavelength_calibrated_files` 复制到 `bin` 下,
同时也复制到 `<build>` 根目录(代码里有 `<exe>/../Data` 的写法)。
8. **ARIS 桥接**:检测到 `third_party/aris-bridge/bin/aris_bridge.dll` 时定义
`CAVITY_USE_ARIS_BRIDGE`,`deviceManager` 改走桥接(不再链接兼容桩),
并把 `aris_bridge.dll`、`libaris.dll`、`libusb-1.0.dll`、MinGW 运行库一起部署。
---
## 6. 目录结构(本次新增的部分)
```
CavityLIBS/
├─ CMakeLists.txt 已支持 MSVC + MinGW 双工具链
├─ CMakePresets.json VS2026 / Ninja 预设(msvc-x64-debug / -release / vs2026-x64)
├─ CMakeUserPresets.json 已清空 Qt Creator 残留(否则预设会继承失败)
├─ compat/
│ └─ qt5_msvc_compat.h Qt 5.15 × 新 MSVC 的 stdext 兼容层
├─ scripts/
│ └─ build-qwt-msvc.bat 用 MSVC 重新编译 Qwt 6.2.0 并安装到 third_party
├─ third_party/
│ ├─ qwt-6.2.0-msvc/
│ │ ├─ include/ qwt 头文件
│ │ └─ lib/ qwt.lib / qwt.dll / qwtd.lib / qwtd.dll
│ └─ aris-bridge/ MSVC 调用真实 ARIS SDK 用的桥接 DLL
│ ├─ src/ aris_bridge.h / aris_bridge.cpp(纯 C 接口)
│ ├─ vendor/ libaris.dll + libusb-1.0.dll(厂商原件)
│ ├─ runtime/ libgcc_s_seh-1 / libstdc++-6 / libwinpthread-1
│ ├─ bin/aris_bridge.dll 构建产物(CMake 检测到它就启用桥接)
│ ├─ lib/ libaris.a(gendef + dlltool 生成)
│ └─ build-bridge.bat 重新编译桥接 DLL
├─ Spectrometer/
│ ├─ arisbridge.h/.cpp MSVC 侧动态加载 aris_bridge.dll 的封装
│ └─ devicemanager.h/.cpp 带 CAVITY_USE_ARIS_BRIDGE 条件编译的两种后端
└─ msvc-deps/
└─ qwt-6.2.0/ Qwt 源码树 + 编译中间产物(重建 Qwt 用,可删)
```
---
## 7. 常见问题
**配置时报 `stdext 找不到标识符`**
说明 `/FI compat/qt5_msvc_compat.h` 没生效。检查:
① 是否用了新版 `CMakeLists.txt`;② `compat\qt5_msvc_compat.h` 是否存在。
如果是在 `scripts\build-qwt-msvc.bat` 里编 Qwt 时报的,确认脚本没被改动。
**配置时报“找不到 MSVC 版 Qwt(需要 lib/qwt.lib)”**
先跑 `scripts\build-qwt-msvc.bat`。或手动指定 `-DQWT_ROOT=<含 lib/qwt.lib 的目录>`。
**编译时报 C2001「字符串字面量中的换行符」/ 中文乱码**
`/utf-8` 没加上。这是 MSVC 独有问题:源码是 UTF-8,不加该开关会按 GBK 解析,
中文字符第二字节 `0x5C` 被当成续行符。
**启动报 `0xC0000135`(找不到 DLL)**
检查 `bin` 里是否有 `Qt5Core.dll`(Debug 为 `Qt5Cored.dll`)、`qwt.dll`/`qwtd.dll`、
`aris_bridge.dll`、`libaris.dll`、`libusb-1.0.dll`、`libgcc_s_seh-1.dll`、
`libstdc++-6.dll`、`libwinpthread-1.dll`、`vcruntime140.dll`、`vcruntime140_1.dll`、
`msvcp140.dll`,以及 `platforms\qwindows.dll`。删掉 `bin` 重新生成一次即可重新部署。
**界面能开,但光谱仪显示未连接**
按顺序查:
1. `bin` 里有没有 `aris_bridge.dll` 和 `libaris.dll`(缺了就没法加载桥接);
2. 日志里有没有 `ARIS 桥接 DLL 已加载(aris_bridge.dll)`;如果打印的是
“ARIS 桥接 DLL 不可用:加载 … 失败(错误码 126/193)”,就是缺依赖 DLL 或位数不对;
3. 有没有 `检测到设备:N`。若为 0,先用 `dumpbin /dependents libaris.dll` 确认依赖齐全,
并确认光谱仪 USB 已插好、没被厂商自带软件占用。
**探针管(镜头)显示未连接 / 打开串口失败**
`probe_tube.cpp` 里串口写死 `COM2`;换成实际端口即可。
**运行日志控制台**
和 MinGW 版一致:从 VS 调试/命令行带重定向启动时不额外弹控制台,
双击运行时会另开一个「CavityLIBS 运行日志」窗口(见 README 第 2.4 节)。
---
## 8. 想回到 MinGW(需要恢复环境)
如果以后把 `G:` 盘那套环境恢复回来(Qt 5.15.2 `mingw81_64` + `mingw810_64` 工具链 +
`qwt-6.3.0` mingw 版 + `aris_0411` SDK),
原来的 `README-构建运行.md` 和 `scripts\build.cmd` / `run.cmd` 仍然可用,
只是不要把 `CMakePresets.json` 里的 Qt 路径配错(`CMAKE_PREFIX_PATH` 要指向 mingw 那个 Qt)。
+218
View File
@@ -0,0 +1,218 @@
# 构建与运行说明(MinGW 32 / 64 位)
> **本机现在请先看 [README-VS2026-构建运行.md](README-VS2026-构建运行.md)。**
> 本文的 MinGW 方案需要 `G:` 盘那套 Qt 5.15.2 mingw81_64 + mingw810_64 + qwt + aris_0411,
> 本机 `G:` 盘已不存在;现用 Visual Studio 2026 / MSVC 编译,光谱仪走内置兼容桩。
本工程原来把 Qt / Qwt / ARIS 的路径写死在 `D:/QT`、`D:/qwt`、`D:/aris`,
换到本机后无法配置。现在这些路径全部改为**自动探测**,并补齐了依赖与运行库部署。
> **当前目标:64 位(MinGW 64-bit)**,使用真实 ARIS SDK,功能完整。
> 32 位构建作为可选项保留(缺 32 位 ARIS SDK 时用兼容桩,见第 4 节)。
---
## 1. 当前机器上的环境
| 组件 | 版本 / 位置 | 说明 |
| --- | --- | --- |
| Qt | 5.15.2 `G:\qt\Qt\5.15.2\mingw81_32`、`G:\qt\Qt\5.15.2\mingw81_64` | 另一套 `E:\perfessional\QT\install\5.15.2\...` 也已实测 64 位编译运行通过 |
| MinGW | 8.1.0 `...\Qt\Tools\mingw810_32`、`mingw810_64` | 与 Qt 套件配套 |
| CMake | 3.29.3 `G:\qt\Qt\Tools\CMake_64\bin\cmake.exe` | |
| Qwt | 6.3.0,已放入 `third_party\qwt-6.3.0-mingw32` 和 `-mingw64` | 32 位版是从 `G:\qt\Qt\mylib\qwt-6.3.0` 源码重新编译的 |
| ARIS SDK | 64 位:`G:\qt\Qt\mylib\aris_0411`(include + lib + bin) | 只有 64 位版,且无源码 |
| libusb | 头文件 `third_party\libusb-1.0\include`;64 位运行库 `Libs\libusb-1.0.dll` | ARIS 头文件需要 `libusb-1.0/libusb.h` |
| Qt Creator | 18.0.2 | `CMakeLists.txt.user` 里已有 `Desktop Qt 5.15.2 MinGW 64-bit` 套件 |
> 本机 Qt 5.15.2 是 **release 版 + 独立的 `.debug` 符号文件**(没有 `Qt5Cored.dll`)。
> 因此 Debug 构建同样链接 release 版 Qt 与 release 版 qwt,只是带调试符号。
---
## 2. 快速开始
### 2.1 Qt Creator(推荐)
1. 打开 `CMakeLists.txt`。
2. 选择套件:
* `Desktop Qt 5.15.2 MinGW 64-bit` —— **默认目标**,完整功能(真实 ARIS SDK);
* `Desktop Qt 5.15.2 MinGW 32-bit` —— 可选,光谱仪只能用兼容桩(见第 4 节)。
3. 直接“构建 / 运行”。
如果旧构建目录还残留着 `D:/`、`E:/` 的旧缓存,
在 Qt Creator 里“清除 CMake 配置”或把对应的 `build\Desktop_Qt_...` 目录删掉即可
(本工程已把旧的失败缓存目录清掉了)。
> 说明:Qt Creator 默认使用 Ninja。命令行脚本用 `MinGW Makefiles`,两者互不影响。
### 2.2 命令行脚本
```bat
scripts\build.cmd 64 Release :: 默认目标(不带参数时也是 64 Release)
scripts\build.cmd 64 Debug :: 64 位 Debug
scripts\build.cmd 64 Debug clean :: 先清空 build\mingw64-Debug 再构建
scripts\run.cmd 64 Release
scripts\run.cmd 64 Debug
:: 可选:32 位(光谱仪走兼容桩)
scripts\build.cmd 32 Debug
```
脚本会自动:找 Qt(`QTDIR32`/`QTDIR64`/`QTDIR` 可覆盖)→ 配好 MinGW 到 PATH →
调用 CMake 配置并编译 → 部署运行库与数据。
### 2.3 构建产物
```
build\mingw{32|64}-{Debug|Release}\bin\
CavityLIBS.exe 主程序
qwt.dll / Qt5*.dll Qt 与 qwt 运行库
libaris.dll + libusb-1.0.dll 64 位:真实光谱仪 SDK
aris_stub.dll 32 位可选构建时才出现(兼容桩)
platforms\ sqldrivers\ styles\ imageformats\ Qt 插件
Data\ SQL\ wavelength_calibrated_files\ 运行数据
app_icon.ico
```
`bin` 目录可以直接拷到别的机器上运行(同位数 Windows)。
### 2.4 运行日志控制台(打包到目标机后看指令/应答)
构建时会把启动脚本一并放到 exe 旁边:
```
bin\Run-CavityLIBS.bat ← 目标机上双击这个即可(主界面 + 日志控制台)
```
等价的手动命令:
```bat
cd /d <bin 目录>
start "" CavityLIBS.exe
```
启动后程序会**单独弹出一个控制台窗口**,标题为「CavityLIBS 运行日志 - 实时指令/应答」,
实时显示:
* 我们自己的 `qDebug` 日志(设备检测、寻峰、串口发送的指令…);
* `libaris.dll` 内部的初始化/采集日志(`开始查找设备…`、`找到设备数量…`、
`创建USB接口成功…`、`设备初始化完成` 等)。
从 Qt Creator“运行”时不会另开窗口,日志照旧显示在“应用程序输出”里;
如果自己把 stdout/stderr 重定向到文件,也不会弹控制台。
> 注意:关闭这个控制台窗口会同时结束程序。控制台里的中文按本机代码页显示
> (中文 Windows 为 GBK),已做转码,不会有乱码。
---
## 3. 第三方库
```
third_party\
qwt-6.3.0-mingw32\ 32 位 qwt(include + lib\libqwt.a + lib\qwt.dll)
qwt-6.3.0-mingw64\ 64 位 qwt(同上)
aris\include\ ARIS 头文件(与位数无关,兼容桩也用它)
aris-stub\ 32 位兼容桩源码(只在缺 32 位 ARIS SDK 时编译)
libusb-1.0\include\ libusb 头文件
```
### 重新编译 qwt(换 Qt 版本时用)
```bat
set PATH=G:\qt\Qt\Tools\mingw810_32\bin;G:\qt\Qt\5.15.2\mingw81_32\bin;%PATH%
mkdir third_party\qwt-6.3.0-mingw32\srcbuild
cd third_party\qwt-6.3.0-mingw32\srcbuild
qmake G:\qt\Qt\mylib\qwt-6.3.0\src\src.pro -spec win32-g++
mingw32-make -j8
```
生成物在 `..\lib`(`libqwt.a` / `qwt.dll`),头文件从 `qwt-6.3.0\src\*.h` 拷到
`..\include`。64 位同理,把工具链换成 `mingw810_64` / `mingw81_64`。
---
## 4. 可选的 32 位构建(ARIS 兼容桩)
**64 位构建用不到本节**:64 位直接链接真实 ARIS SDK,功能完整。
只有确实需要 32 位程序时才继续看。
ARIS 光谱仪 SDK 在本机**只有 64 位闭源库**(`libaris.dll` + `libaris.dll.a`),
磁盘上也没有它的源码,因此 32 位程序无法链接真实 SDK。
为了 32 位套件也能编译、启动、调试界面和算法,工程提供了一个**兼容桩**
`third_party\aris-stub\aris_stub.cpp`:
* 直接编译厂商**原始头文件**,类布局、虚函数表、函数签名与正式 SDK 完全一致;
* 连接 / 采集等全部为空实现,`getConnectedDeviceCount()` 恒为 0;
* 运行时会向 stderr 打印 `[ARIS-STUB] ...`,界面上光谱仪显示“连接失败”。
**换回真实 SDK 的方法**(拿到 32 位版之后):
1. 把 SDK 放到 `third_party\aris-mingw32\`(目录结构同 `aris_0411`:
`include\`、`lib\libaris.dll.a`、`bin\libaris.dll`),或
2. 配置时指定:`-DARIS_ROOT=<SDK 根目录>`。
CMake 检测到位数匹配的 `libaris.dll.a` 就会自动改用真实 SDK,兼容桩不再参与编译。
也可用 `-DCAVITY_ALLOW_ARIS_STUB=OFF` 强制要求真实 SDK(找不到就配置失败)。
---
## 5. 本次补齐 / 修改的内容
1. **CMakeLists.txt 重写**
* 去掉 `D:/QT`、`D:/qwt`、`D:/aris` 等写死路径;
* Qt 由构建套件(`CMAKE_PREFIX_PATH`)提供,并**校验 Qt 与编译器的位数**;
* Qwt / ARIS / libusb 按 `third_party` → 环境变量 → 常见安装位置自动查找,
并用 PE 头校验位数(避免 32 位编译器误配 64 位库);
* 可执行文件统一输出到 `<build>/bin`,构建后自动部署 Qt DLL、插件、
MinGW 运行库、qwt、ARIS/libusb、Data/SQL/波长校准文件和图标。
2. **补齐依赖**:从源码编译 32 位 qwt 备用;64/32 位 qwt 都整理进 `third_party`。
3. **适配 ARIS 0411 版 SDK 的接口**:
* `SpectrometerCallback` 增加 `onDataReceivedBanch()`(虚表布局与 SDK 一致,
否则 `DeviceManager` 是抽象类、且与 DLL 的 vtable 不匹配);
* `DeviceManager` 实现该回调(逐帧转成单帧信号)。
4. **运行库部署**:qwt 依赖 `Qt5OpenGL`、`Qt5Svg`,`windeployqt` 只扫描 exe
会漏掉,导致启动报 `0xc0000135`(找不到 DLL);现在显式复制 Qt 运行库、
`platforms`、`sqldrivers`(SQLite)、`styles`、`imageformats`。
5. **数据目录**:`Data`、`SQL`、`wavelength_calibrated_files`、`app_icon.ico`
随构建复制到 `bin`,并在 `bin` 上一级也放一份 `Data`(代码里有
`<exe>/../Data` 的写法)。
6. **调试输出乱码**:日志有两个来源、编码还不一样——我们自己的 `qDebug` 走
stderr(Qt 默认按本地代码页,GBK),ARIS 的 `libaris.dll` 内部用 `printf`
走 stdout(固定输出 **UTF-8**)。Qt Creator 的“应用程序输出”按本地代码页
(GBK)解码,控制台按它自己的代码页显示。
[main.cpp](<main.cpp>) 的做法是:`qDebug` 按接收方选择编码(管道用本地代码页、
控制台用 `GetConsoleOutputCP()`);同时把 stdout 接到一个管道,由后台线程
把 libaris 的 UTF-8 转成本地代码页再输出。这样设备初始化日志也不会乱码。
7. **独立运行日志控制台**:CMake 里把程序设为 GUI 子系统(`WIN32_EXECUTABLE`),
[main.cpp](<main.cpp>) 在检测不到现成输出通道时用 `AllocConsole()` 另开一个
「CavityLIBS 运行日志」控制台窗口,方便打包到目标机后实时查看指令/应答;
从 Qt Creator 运行或重定向输出时不会弹这个窗口(见 2.4)。
---
## 6. 常见问题
**启动即退出、错误码 0xC0000135**
缺 DLL。检查 `bin` 里是否有 `Qt5*.dll`、`qwt.dll`、`libaris.dll` /
`aris_stub.dll`、`libusb-1.0.dll`、`libgcc_s_*.dll`、`libstdc++-6.dll`、
`libwinpthread-1.dll`,以及 `platforms\qwindows.dll`。
**配置时报“Qt 与编译器位数不一致”**
选的套件和 Qt 位数不匹配。Qt Creator 里改选 `MinGW 32-bit` / `64-bit` 套件;
命令行用 `-DCMAKE_PREFIX_PATH=<对应位数的 Qt 目录>`。
**找不到 Qwt / ARIS**
用 `-DQWT_ROOT=<目录>`、`-DARIS_ROOT=<目录>` 指定,或放到 `third_party` 下。
**中文日志乱码**
已处理:程序按接收方编码输出——Qt Creator 的“应用程序输出”用本地代码页,
命令行控制台用控制台自己的代码页。若 Qt Creator 里还是旧日志,重新“运行”
(会重新构建)即可。
**想确认用的是真实 SDK 还是兼容桩**
配置输出里看 `ARIS SDK: <路径>`;出现
`未找到 32 位 ARIS SDK ... 将使用内置兼容桩` 即为兼容桩。
Binary file not shown.
+460
View File
@@ -0,0 +1,460 @@
#include "algorithmanalysis.h"
#include <cmath>
#include <QBuffer>
#include <fstream>
#include <QDebug>
AlgorithmAnalysis::AlgorithmAnalysis()
{
}
//线性拟合元素集合
vector<SpectrumElement> AlgorithmAnalysis::elements = {
{"Cu", 324.75},
{"Sn", 284.00},
{"Mg", 279.52},
{"Ca", 317.96},
{"Cr", 357.87},
{"Fe", 302.05},
{"Si", 288.15},
{"Ti", 334.94},
// 这里可以添加更多的元素和对应的波长
};
//求光谱强度的平均值
vector<double> AlgorithmAnalysis::average(const vector<vector<double>> &multiLst )
{
// 计算每列的平均值
vector<double> averageSpecLst;
for (int i = 0; i < multiLst[0].size(); ++i) {
double columnSum = 0;
for (int j = 0; j < multiLst.size(); ++j) {
columnSum += multiLst[j][i];
}
double columnAverage = columnSum / multiLst.size(); //输出平均后的一行,如果读取不到有效值那就输出“,”
averageSpecLst.push_back(columnAverage);
}
return averageSpecLst;
}
//求光谱强度的平均值
vector<SpectrumChannelData> AlgorithmAnalysis::average(const vector<vector<SpectrumChannelData>> &multiLst )
{
// 计算每列的平均值
vector<SpectrumChannelData> averageSpecLst;
for (int i = 0; i < multiLst[0].size(); ++i) {
double columnSum = 0;
double wavelengthSum = 0;
for (int j = 0; j < multiLst.size(); ++j) {
columnSum += multiLst[j][i].intensity;
wavelengthSum += multiLst[j][i].wavelength;
}
double columnAverage = columnSum / multiLst.size(); //输出平均后的一行,如果读取不到有效值那就输出“,”
double waveLengthAverage = wavelengthSum / multiLst.size();
averageSpecLst.push_back({waveLengthAverage,columnAverage});
}
return averageSpecLst;
}
//百分位滤波去背景
vector<double> AlgorithmAnalysis::background(vector<double> waveLst,vector<double> averageSpecLst) { //这个函数background用来去背景,是整个代码的核心部分
vector<double> BackgroundLst(averageSpecLst.size(), 0);
for (int i = 0; i < averageSpecLst.size() - 99; i++) { // 循环data1中的每个数据点,i表示data1中的起始位置
vector<double> temp(averageSpecLst.begin() + i, averageSpecLst.begin() + i + 100); // 从data1中取出100个数据,存储到temp中
sort(temp.begin(), temp.end()); // 对temp中的数据进行排序
double bg = temp[10]; // 取排序后的第10个数据,即背景数据
/*data2[i + 50] = bg;*/ // 将背景数据存储到data2中,存储位置为i+50,因为temp中的数据是从i开始的
BackgroundLst[i] = bg;
}
for (int i = averageSpecLst.size() - 99; i < averageSpecLst.size(); i++) { // 循环data1中的每个数据点,i表示data1中的起始位置
vector<double> temp(averageSpecLst.begin() + i - 100, averageSpecLst.begin() + i); // 从data1中取出100个数据,存储到temp中
sort(temp.begin(), temp.end()); // 对temp中的数据进行排序
double bg2 = temp[10]; // 取排序后的第10个数据,即背景数据
/*data2[i + 50] = bg;*/ // 将背景数据存储到data2中,存储位置为i+50,因为temp中的数据是从i开始的
BackgroundLst[i] = bg2;
}
vector<double> diff(averageSpecLst.size(), 0); // 定义一个双精度浮点数向量diff,大小与data1相同,所有元素初始化为0
for (int i = 0; i < averageSpecLst.size(); i++) { // 循环data1中的每个数据点
double val = averageSpecLst[i] - BackgroundLst[i]; // 计算原始数据和背景数据的差值
if (val < 0) { // 如果差值小于0
val = 0; // 置为0,因为强度不能为负数
}
diff[i]=val; // 将差值存储到diff向量中
}
return diff;
}
void AlgorithmAnalysis::background(vector<SpectrumChannelData> &channelData)
{
vector<double> temp;
vector<double> backGroundLst(channelData.size(), 0.0);
for (size_t i = 0; i < channelData.size(); i++) {
temp.push_back(channelData[i].intensity);
}
for (size_t i = 0; i < temp.size() - 99; i++) { // 循环data1中的每个数据点,i表示data1中的起始位置
vector<double> intensityDemo(temp.begin() + i, temp.begin() + i + 100); // 从data1中取出100个数据,存储到temp中
sort(intensityDemo.begin(), intensityDemo.end()); // 对temp中的数据进行排序
double bg = intensityDemo[10]; // 取排序后的第10个数据,即背景数据
backGroundLst[i] = bg;
}
for (size_t i = temp.size() - 99; i < temp.size(); i++) { // 循环data1中的每个数据点,i表示data1中的起始位置
vector<double> intensityDemo(temp.begin() + i - 99, temp.begin() + i); // 从data1中取出100个数据,存储到temp中
sort(intensityDemo.begin(), intensityDemo.end()); // 对temp中的数据进行排序
double bg2 = intensityDemo[10]; // 取排序后的第10个数据,即背景数据
backGroundLst[i] = bg2;
}
for (size_t i = 0; i < channelData.size(); i++) { // 循环data1中的每个数据点
double val = channelData[i].intensity - backGroundLst[i]; // 计算原始数据和背景数据的差值
if (val < 0.0) { // 如果差值小于0
val = 0.0; // 置为0,因为强度不能为负数
}
channelData[i].intensity = val;
}
}
//裁剪重叠的光谱数据
vector<SpectrumChannelData> AlgorithmAnalysis::cutRepeatSpecture(vector<SpectrumChannelData> ospecV1,
vector<SpectrumChannelData> ospecV2,
vector<SpectrumChannelData> ospecV3,
vector<SpectrumChannelData> ospecV4, int cutSize) {
// 裁剪掉cutSize个
vector<SpectrumChannelData> dspecV1(ospecV1.begin(), ospecV1.end() - cutSize );
vector<SpectrumChannelData> dspecV2(ospecV2.begin() + cutSize, ospecV2.end() - cutSize);
vector<SpectrumChannelData> dspecV3(ospecV3.begin() + cutSize, ospecV3.end() - cutSize);
vector<SpectrumChannelData> dspecV4(ospecV4.begin() + cutSize, ospecV4.end() - cutSize);
vector<SpectrumChannelData> specV;
// 找重叠的
int flag1 = dspecV1.size();
int flag11 = 0;
int flag2 = dspecV2.size();
int flag22 = 0;
int flag3 = dspecV3.size();
int flag33 = 0;
//判断首个重叠的数据大小
bool static1 = dspecV1.back().wavelength > dspecV2[0].wavelength;
if(static1){
for (int i = 0; i < dspecV2.size(); i++) {
if (dspecV1.back().wavelength < dspecV2[i].wavelength) {
flag11 = i;
break;
}
}
if(dspecV2[flag11].intensity > dspecV1.back().intensity){
for (int i = 0; i < dspecV1.size(); i++) {
if (dspecV1[i].wavelength > dspecV2[0].wavelength) {
flag11 = 0;
flag1 = i;
break;
}
}
}
}else{
flag1 = dspecV1.size();
flag11 = 0;
}
bool static2 = dspecV2.back().wavelength > dspecV3[0].wavelength;
if(static2){
for (int i = 0; i < dspecV3.size(); i++) {
if (dspecV2.back().wavelength < dspecV3[i].wavelength) {
flag22 = i;
break;
}
}
if(dspecV3[flag22].intensity > dspecV2.back().intensity){
for (int i = 0; i < dspecV2.size(); i++) {
if (dspecV2[i].wavelength > dspecV3[0].wavelength) {
flag2 = i;
flag22 = 0;
break;
}
}
}
}else{
flag2 = dspecV2.size();
flag22 = 0;
}
bool static3 = dspecV3.back().wavelength > dspecV4[0].wavelength;
if(static3){
for (int i = 0; i < dspecV4.size(); i++) {
if (dspecV3.back().wavelength < dspecV4[i].wavelength) {
flag33 = i;
break;
}
}
if(dspecV4[flag33].intensity > dspecV3.back().intensity){
for (int i = 0; i < dspecV3.size(); i++) {
if (dspecV3[i].wavelength > dspecV4[0].wavelength) {
flag3 = i;
flag33 = 0;
break;
}
}
}
}else{
flag3 = dspecV3.size();
flag33 = 0;
}
//进行通道拼接
specV.insert(specV.end(), dspecV1.begin(), dspecV1.begin() + flag1);
specV.insert(specV.end(), dspecV2.begin() + flag11, dspecV2.begin() + flag2);
specV.insert(specV.end(), dspecV3.begin() + flag22, dspecV3.begin() + flag3);
specV.insert(specV.end(), dspecV4.begin() + flag33, dspecV4.end());
return specV;
}
vector<SpectrumChannelData> AlgorithmAnalysis::cutRepeatSpecture(vector<pair<int, vector<SpectrumChannelData>>> ospecV, int cutSize)
{
std::vector<std::vector<SpectrumChannelData>> dspecV;
for (auto& specPair : ospecV) {
std::vector<SpectrumChannelData>& spec = specPair.second;
dspecV.push_back(std::vector<SpectrumChannelData>(spec.begin() + cutSize, spec.end() - cutSize));
}
std::vector<SpectrumChannelData> specV;
size_t channelNextStart = 0;
for (size_t i = 0; i < dspecV.size() - 1; ++i) {
std::vector<SpectrumChannelData>& currentSpec = dspecV[i];
std::vector<SpectrumChannelData>& nextSpec = dspecV[i + 1];
size_t currentEnd = currentSpec.size();
size_t nextStart = 0;
bool overlap = currentSpec.back().wavelength > nextSpec.front().wavelength;
if (overlap) {
for (size_t j = 0; j < nextSpec.size(); ++j) {
if (currentSpec.back().wavelength < nextSpec[j].wavelength) {
nextStart = j;
break;
}
}
if (nextSpec[nextStart].intensity > currentSpec.back().intensity) {
for (size_t j = 0; j < currentSpec.size(); ++j) {
if (currentSpec[j].wavelength > nextSpec.front().wavelength) {
currentEnd = j;
nextStart = 0;
break;
}
}
}
} else {
currentEnd = currentSpec.size();
nextStart = 0;
}
specV.insert(specV.end(), currentSpec.begin() + channelNextStart, currentSpec.begin() + currentEnd);
channelNextStart = nextStart;
}
if (!dspecV.empty()) {
specV.insert(specV.end(), dspecV.back().begin() + channelNextStart, dspecV.back().end());
}
return specV;
}
bool AlgorithmAnalysis::cmp(pair<int,vector<SpectrumChannelData>> a, pair<int,vector<SpectrumChannelData>> b) {
return a.second[0].wavelength < b.second[0].wavelength;
}
//3点寻峰
vector<SpectrumChannelData> AlgorithmAnalysis::threeFindPeak(vector<SpectrumChannelData> specLst,vector<SpectrumChannelData> specLst1){
vector<SpectrumChannelData> peakLst;
for (int i = 1; i < specLst.size() - 1; i++) {
if (specLst[i].intensity > specLst[i - 1].intensity
&& specLst[i].intensity > specLst[i + 1].intensity) {
peakLst.push_back({specLst[i].wavelength,specLst1[i].intensity});
}
}
return peakLst;
}
//寻峰
vector<SpectrumChannelData> AlgorithmAnalysis::findPeak(vector<SpectrumChannelData> specLst,vector<SpectrumChannelData> specLst1){
vector<SpectrumChannelData> peakLst;
vector<SpectrumChannelData> AApeakLst;
vector<double> findmax;
double start = 0;
double end = 0;
double whl = 0;
double gk = 0;
for(int i = 0 ; i < specLst1.size() ; ++i){
findmax.push_back(specLst1[i].intensity);
}
auto maxElement = max_element(findmax.begin(), findmax.end());
gk = *maxElement * 0.0001;
for (int i = 4; i < specLst.size() - 4; i++) {
if (specLst[i].intensity > specLst[i - 1].intensity
&& specLst[i - 1].intensity > specLst[i - 2].intensity
&& specLst[i].intensity > specLst[i + 1].intensity
&& specLst[i + 1].intensity > specLst[i + 2].intensity
&& specLst1[i].intensity > gk
)
{
if(specLst[i].wavelength > 359){
specLst[i].wavelength = specLst[i].wavelength -0.07;
}else if(specLst[i].wavelength < 309){
specLst[i].wavelength = specLst[i].wavelength - 0.03;
}else {
specLst[i].wavelength = specLst[i].wavelength -0.02;
}
AApeakLst.push_back({specLst[i].wavelength,specLst1[i].intensity});
start = 0.5 * (specLst[i - 3].intensity + specLst[i - 4].intensity) * (specLst[i - 3].wavelength - specLst[i - 4].wavelength)
+ 0.5 * (specLst[i - 2].intensity + specLst[i - 3].intensity) * (specLst[i - 2].wavelength - specLst[i - 3].wavelength)
+ 0.5 * (specLst[i - 1].intensity + specLst[i - 2].intensity) * (specLst[i - 1].wavelength - specLst[i - 2].wavelength)
+ 0.5 * (specLst[i].intensity + specLst[i - 1].intensity) * (specLst[i].wavelength - specLst[i - 1].wavelength);
end = 0.5 * (specLst[i].intensity + specLst[i + 1].intensity) * (specLst[i + 1].wavelength - specLst[i].wavelength)
+ 0.5 * (specLst[i + 2].intensity + specLst[i + 1].intensity) * (specLst[i + 2].wavelength - specLst[i + 1].wavelength)
+ 0.5 * (specLst[i + 3].intensity + specLst[i + 2].intensity) * (specLst[i + 3].wavelength - specLst[i + 2].wavelength)
+ 0.5 * (specLst[i + 4].intensity + specLst[i + 3].intensity) * (specLst[i + 4].wavelength - specLst[i + 3].wavelength);
whl = start / end;
if( whl > 0.4 && whl < 0.6)
{
peakLst.push_back({specLst[i].wavelength,specLst1[i].intensity});
}
}
}
return AApeakLst;
}
//由峰值寻找元素
vector<SpectrumElementPeak> AlgorithmAnalysis::findElement(vector<SpectrumChannelData> peakVector){
vector<SpectrumElementPeak> peaks;
SpectrumElementPeak elementpeak;
for(int i = 0;i < peakVector.size(); i++){
for(int j= 0; j < elements.size(); j++){
double elementWavelength = elements[j].wavelength;
double peakWavelength = peakVector[i].wavelength;
if(abs(elementWavelength - peakWavelength) < 0.11){
elementpeak.elementName = elements[j].name;
elementpeak.intensity = peakVector[i].intensity;
peaks.push_back(elementpeak);
}
}
}
return peaks;
}
//光谱平滑处理
vector<SpectrumChannelData> AlgorithmAnalysis::smoothingAlgorithm(vector<SpectrumChannelData> smoothLst){
int N = smoothLst.size();
int M = N - 8;
vector<double> NP(9);
double Nsum = 0;
vector<SpectrumChannelData> smoothLst1;
smoothLst1 = smoothLst;
for (int i = 1; i < 9; i++) {
NP[i] = smoothLst[i - 1].intensity;
}
for (int i = 0; i < M; i++) {
for (int k = 0; k < 8; k++) {
NP[k] = NP[k + 1];
}
NP[8] = smoothLst[i + 8].intensity;
Nsum = (59 * NP[4] + 54 * (NP[3] + NP[5]) + 39 * (NP[2] + NP[6]) + 14 * (NP[1] + NP[7]) - 21 * (NP[0] + NP[8]))/ 231;
smoothLst1[i + 4].intensity = Nsum;
}
return smoothLst1;
}
//领域平均去背景
vector<double> AlgorithmAnalysis::filedAverageAlgorithm( vector<double> intensity)
{
int N = intensity.size();
int M = N - 10;
vector<double> NP(11);
double Nsum = 0;
vector<double> myIntensity;
myIntensity = intensity;
//vector<SpectrumChannelData> smoothLst1;
//smoothLst1 = channelDataList;
for (int i = 1; i < 11; i++) {
NP[i] = myIntensity[i-1];
}
for (int i = 0; i < M; i++) {
for (int k = 0; k < 10; k++) {
NP[k] = NP[k + 1];
}
NP[10] = myIntensity[i + 10];
Nsum = (NP[0] + NP[1] + NP[2] + NP[3] + NP[4] + NP[5]+ NP[6] + NP[7] + NP[8] + NP[9] + NP[10] ) / 11;
intensity[i + 5] = Nsum;
}
return intensity;
}
//寻找3个通道的峰值数据
vector<SpectrumChannelData> AlgorithmAnalysis::findPeakList (vector<SpectrumChannelData> channelData, int serialNumber)
{
vector<SpectrumChannelData> peakList;
string fileName;
vector<int> oridianlList;
switch(serialNumber)
{
case 1:
fileName = "/home/pi/SpecData/Channel1.txt";
break;
case 2:
fileName = "/home/pi/SpecData/Channel2.txt";
break;
case 3:
fileName = "/home/pi/SpecData/Channel3.txt";
break;
default:
fileName = "";
break;
};
ifstream infile(fileName);
if (!infile) {
qDebug() << "Failed to open file!";
return peakList ;
}
vector<std::string> elementNameList;
vector<int> ordinalList;
while(!infile.eof()){
string eleName;
int ordinal;
infile >> eleName >> ordinal;
//elementNameList.push_back(eleName);
oridianlList.push_back(ordinal);
}
infile.close();
for(const int oneOrdinal : oridianlList){
peakList.push_back(channelData[oneOrdinal]);
}
return peakList;
}
+80
View File
@@ -0,0 +1,80 @@
#ifndef ALGORITHMANALYSIS_H
#define ALGORITHMANALYSIS_H
#include <string>
#include <vector>
#include <map>
using namespace std;
struct SpectrumChannelData {
double wavelength;
double intensity;
};
// 定义元素结构体
struct SpectrumElement {
string name;
double wavelength;
};
struct SpectrumElementPeak{
string elementName;
double intensity;
};
class AlgorithmAnalysis
{
public:
AlgorithmAnalysis();
//求光谱强度的平均值
static vector<double> average(const vector<vector<double>> &multiLst );
//求光谱强度的平均值
static vector<SpectrumChannelData> average(const vector<vector<SpectrumChannelData>> &multiLst );
//百分位滤波去背景
static vector<double> background(vector<double> waveLst,vector<double> averageSpecLst);
static void background(vector<SpectrumChannelData> &SpectrumChannelData);
/*
* 裁剪重叠的光谱数据
*/
static vector<SpectrumChannelData> cutRepeatSpecture(vector<SpectrumChannelData> ospecV1,
vector<SpectrumChannelData> ospecV2,
vector<SpectrumChannelData> ospecV3,
vector<SpectrumChannelData> ospecV4,int cutSize);
static vector<SpectrumChannelData> cutRepeatSpecture(vector<pair<int, vector<SpectrumChannelData>>>,int cutSize);
//光谱数据排序
static bool cmp(pair<int,vector<SpectrumChannelData>> a, pair<int,vector<SpectrumChannelData>> b);
//寻峰
static vector<SpectrumChannelData> findPeak(vector<SpectrumChannelData> specLst,vector<SpectrumChannelData> specLst1);
//3点寻峰
static vector<SpectrumChannelData> threeFindPeak(vector<SpectrumChannelData> specLst,vector<SpectrumChannelData> specLst1);
//由峰值寻找元素
static vector<SpectrumElementPeak> findElement(vector<SpectrumChannelData> peakVector);
static vector<SpectrumElement> elements;
//光谱平滑处理
static vector<SpectrumChannelData> smoothingAlgorithm(vector<SpectrumChannelData> smoothLst);
//寻找3个通道的峰值数据
static vector<SpectrumChannelData> findPeakList (vector<SpectrumChannelData> SpectrumChannelData, int serialNumber);
//领域平均去背景
static vector<double> filedAverageAlgorithm( vector<double> intensity);
};
#endif // ALGORITHMANALYSIS_H
+204
View File
@@ -0,0 +1,204 @@
// ===========================================================================
// arisbridge.cpp —— MSVC 侧动态加载 aris_bridge.dll 并调用其纯 C 接口
// ===========================================================================
#include "arisbridge.h"
#include <windows.h>
#include <cstdio>
namespace {
const char *const kBridgeFileName = "aris_bridge.dll";
}
ArisBridge *ArisBridge::s_instance = nullptr;
ArisBridge &ArisBridge::instance()
{
// 函数内静态:第一次使用时加载 DLL,之后复用
static ArisBridge bridge;
return bridge;
}
ArisBridge::ArisBridge()
{
load();
}
ArisBridge::~ArisBridge()
{
if (m_available)
{
disconnect();
}
m_available = false;
s_instance = nullptr;
if (m_module)
{
FreeLibrary(static_cast<HMODULE>(m_module));
m_module = nullptr;
}
}
bool ArisBridge::load()
{
// 优先从 exe 所在目录加载,避免被 PATH 里的同名 DLL 抢先
char exePath[MAX_PATH] = {0};
GetModuleFileNameA(nullptr, exePath, MAX_PATH);
std::string directory(exePath);
const std::string::size_type pos = directory.find_last_of("\\/");
if (pos != std::string::npos)
{
directory.erase(pos);
}
const std::string fullPath = directory + "\\" + kBridgeFileName;
HMODULE module = LoadLibraryA(fullPath.c_str());
if (!module)
{
module = LoadLibraryA(kBridgeFileName);
}
if (!module)
{
m_lastError = "加载 " + fullPath + " 失败(错误码 "
+ std::to_string(static_cast<long>(GetLastError())) + ")";
return false;
}
m_module = module;
m_connect = reinterpret_cast<FnConnect>(GetProcAddress(module, "aris_bridge_connect"));
m_disconnect = reinterpret_cast<FnDisconnect>(GetProcAddress(module, "aris_bridge_disconnect"));
m_deviceCount = reinterpret_cast<FnDeviceCount>(GetProcAddress(module, "aris_bridge_device_count"));
m_deviceInfo = reinterpret_cast<FnDeviceInfo>(GetProcAddress(module, "aris_bridge_device_info"));
m_deviceWavelengths = reinterpret_cast<FnDeviceWavelengths>(GetProcAddress(module, "aris_bridge_device_wavelengths"));
m_setDataCallback = reinterpret_cast<FnSetDataCallback>(GetProcAddress(module, "aris_bridge_set_data_callback"));
m_setSoftwareTrigger = reinterpret_cast<FnNoArg>(GetProcAddress(module, "aris_bridge_set_software_trigger"));
m_startMeasure = reinterpret_cast<FnStartMeasure>(GetProcAddress(module, "aris_bridge_start_measure"));
m_stopMeasure = reinterpret_cast<FnNoArg>(GetProcAddress(module, "aris_bridge_stop_measure"));
if (!m_connect || !m_disconnect || !m_deviceCount || !m_deviceInfo
|| !m_deviceWavelengths || !m_setDataCallback || !m_setSoftwareTrigger
|| !m_startMeasure || !m_stopMeasure)
{
m_lastError = "aris_bridge.dll 的导出函数不完整(版本不匹配?)";
FreeLibrary(module);
m_module = nullptr;
return false;
}
s_instance = this;
m_setDataCallback(&ArisBridge::dataTrampoline);
m_available = true;
return true;
}
void __cdecl ArisBridge::dataTrampoline(const char *serial,
const float *wavelengths, int wavelengthCount,
const float *intensities, int intensityCount)
{
ArisBridge *self = s_instance;
if (!self || !self->m_handler)
{
return;
}
std::string serialNumber = serial ? serial : "";
std::vector<float> wave;
if (wavelengths && wavelengthCount > 0)
{
wave.assign(wavelengths, wavelengths + wavelengthCount);
}
std::vector<float> spectrum;
if (intensities && intensityCount > 0)
{
spectrum.assign(intensities, intensities + intensityCount);
}
self->m_handler(serialNumber, wave, spectrum);
}
int ArisBridge::connect()
{
if (!m_available)
{
return -1;
}
return m_connect();
}
void ArisBridge::disconnect()
{
if (m_available && m_disconnect)
{
m_disconnect();
}
}
int ArisBridge::deviceCount() const
{
if (!m_available || !m_deviceCount)
{
return 0;
}
return m_deviceCount();
}
ArisBridge::DeviceInfo ArisBridge::deviceInfo(int index) const
{
DeviceInfo info;
if (!m_available || !m_deviceInfo)
{
return info;
}
char serial[256] = {0};
int startPixel = 0;
int endPixel = 0;
int pixelCount = 0;
if (m_deviceInfo(index, serial, static_cast<int>(sizeof(serial)),
&startPixel, &endPixel, &pixelCount) != 0)
{
return info;
}
info.serialNumber = serial;
info.startPixel = startPixel;
info.endPixel = endPixel;
info.pixelCount = pixelCount;
const int capacity = (pixelCount > 0) ? pixelCount : 8192;
std::vector<float> wavelengths(static_cast<size_t>(capacity), 0.0f);
const int got = m_deviceWavelengths(index, wavelengths.data(), capacity);
if (got > 0)
{
wavelengths.resize(static_cast<size_t>(got));
info.wavelengths.swap(wavelengths);
}
return info;
}
void ArisBridge::setSoftwareTrigger()
{
if (m_available && m_setSoftwareTrigger)
{
m_setSoftwareTrigger();
}
}
int ArisBridge::startMeasure(int integrationTimeUs, int averaging)
{
if (!m_available || !m_startMeasure)
{
return -1;
}
return m_startMeasure(integrationTimeUs, averaging);
}
void ArisBridge::stopMeasure()
{
if (m_available && m_stopMeasure)
{
m_stopMeasure();
}
}
+90
View File
@@ -0,0 +1,90 @@
// ===========================================================================
// arisbridge.h —— MSVC 侧对 aris_bridge.dll 的封装
//
// 厂商的 libaris.dll 是 MinGW/GCC 编的 C++ 库,MSVC 程序无法直接链接;
// aris_bridge.dll 由 MinGW 编译,对外只暴露纯 C 函数(见同目录/third_party/
// aris-bridge/src/aris_bridge.h)。本类用 LoadLibrary 动态加载它,把 C 接口
// 转成 C++ 方法,供 DeviceManager 使用。
// ===========================================================================
#ifndef ARISBRIDGE_H
#define ARISBRIDGE_H
#include <string>
#include <vector>
class ArisBridge
{
public:
// 一台设备的静态参数
struct DeviceInfo {
std::string serialNumber;
int startPixel = 0;
int endPixel = 0;
int pixelCount = 0;
std::vector<float> wavelengths;
};
// 光谱数据回调(在 SDK 的采集线程里被调用)
typedef void (*DataHandler)(const std::string &serialNumber,
const std::vector<float> &wavelengths,
const std::vector<float> &intensities);
static ArisBridge &instance();
// 桥接 DLL 是否加载成功
bool isAvailable() const { return m_available; }
// 加载失败时的原因
const std::string &lastError() const { return m_lastError; }
int connect(); // 查找并初始化设备,返回设备数量;-1 表示失败
void disconnect(); // 停止测量并断开
int deviceCount() const;
DeviceInfo deviceInfo(int index) const;
void setSoftwareTrigger();
int startMeasure(int integrationTimeUs, int averaging);
void stopMeasure();
void setDataHandler(DataHandler handler) { m_handler = handler; }
private:
ArisBridge();
~ArisBridge();
ArisBridge(const ArisBridge &) = delete;
ArisBridge &operator=(const ArisBridge &) = delete;
bool load();
static void __cdecl dataTrampoline(const char *serial,
const float *wavelengths, int wavelengthCount,
const float *intensities, int intensityCount);
bool m_available = false;
std::string m_lastError;
void *m_module = nullptr;
DataHandler m_handler = nullptr;
// 从 aris_bridge.dll 解析出来的 C 函数
typedef int (__cdecl *FnConnect)(void);
typedef void (__cdecl *FnDisconnect)(void);
typedef int (__cdecl *FnDeviceCount)(void);
typedef int (__cdecl *FnDeviceInfo)(int, char *, int, int *, int *, int *);
typedef int (__cdecl *FnDeviceWavelengths)(int, float *, int);
typedef void (__cdecl *FnSetDataCallback)(void (__cdecl *)(const char *, const float *, int, const float *, int));
typedef void (__cdecl *FnNoArg)(void);
typedef int (__cdecl *FnStartMeasure)(int, int);
FnConnect m_connect = nullptr;
FnDisconnect m_disconnect = nullptr;
FnDeviceCount m_deviceCount = nullptr;
FnDeviceInfo m_deviceInfo = nullptr;
FnDeviceWavelengths m_deviceWavelengths = nullptr;
FnSetDataCallback m_setDataCallback = nullptr;
FnNoArg m_setSoftwareTrigger = nullptr;
FnStartMeasure m_startMeasure = nullptr;
FnNoArg m_stopMeasure = nullptr;
static ArisBridge *s_instance;
};
#endif // ARISBRIDGE_H
+312
View File
@@ -0,0 +1,312 @@
#define _WINSOCKAPI_
#define _HAS_STD_BYTE 0
#include <winsock2.h> // 确保首先包含
#include <windows.h> // 然后包含windows.h
#include <QDebug>
#include "devicemanager.h"
#include <fstream>
#include "qdatetime.h"
#include "../Public/util.h"
#include <QFile>
#include <QtSerialPort/QSerialPort>
#include <QtSerialPort/QSerialPortInfo>
#ifndef CAVITY_USE_ARIS_BRIDGE
#include "ziolinkprotocol.h"
#include "spectrometerdevice.h"
#endif
#include "spectrometer.h"
using namespace std;
DeviceManager* g_pDeviceManager = nullptr;
unsigned int DeviceManager::m_nDeviceNum = 0; //实际已连接的设备数量
std::vector<Spectrometer*> DeviceManager::m_pDeviceLst ;
DeviceManager::DeviceManager(QObject *parent) : QObject(parent), pixelCount(0)
{
qDebug() << "激光器串口连接" << endl;
m_pDeviceLst.resize(0); //new std::vector<NewDevice*>();
m_nDeviceNum = 0;
g_pDeviceManager = this;
#ifdef CAVITY_USE_ARIS_BRIDGE
// MSVC:通过 MinGW 桥接 DLL 使用真实 ARIS SDK
ArisBridge &bridge = ArisBridge::instance();
bridge.setDataHandler(&DeviceManager::onBridgeData);
if (bridge.isAvailable())
{
qDebug() << "ARIS 桥接 DLL 已加载(aris_bridge.dll)";
}
else
{
qDebug() << "ARIS 桥接 DLL 不可用:" << QString::fromStdString(bridge.lastError());
}
#else
m_pZio = new ZioLinkProtocol();
#endif
}
DeviceManager::~DeviceManager()
{
DeactivateDeviceLst();
#ifndef CAVITY_USE_ARIS_BRIDGE
delete m_pZio;
m_pZio = nullptr;
#endif
}
// 读取波长校准txt文件
std::vector<float> DeviceManager::readWavelengthCalibratedFile(const string &serialNumber) {
std::vector<float> result;
std::string filename = "wavelength_calibrated_files/wavelength_calibrated_" + serialNumber + ".txt";
std::ifstream file(filename);
if (!file.is_open()) {
throw std::runtime_error("无法打开文件: " + filename);
}
qDebug() << "成功读取波长校准文件:" + QString::fromStdString(filename);
float value;
while (file >> value) {
result.push_back(value);
}
// 检查读取过程是否出错(排除正常到达文件末尾的情况)
if (!file.eof() && file.fail()) {
throw std::runtime_error("文件格式错误: " + filename);
}
return result;
}
// 用校准文件的波长覆盖设备波长;失败时退回设备自带波长
void DeviceManager::loadDeviceWavelengths(Spectrometer *device, const std::vector<float> &fallback)
{
try
{
std::vector<float> wavelengthListFixed = readWavelengthCalibratedFile(device->m_serialNumber);
if (!wavelengthListFixed.empty())
{
device->m_wavelengthList.assign(wavelengthListFixed.begin(), wavelengthListFixed.end());
return;
}
}
catch (...)
{
// 校准文件不存在或格式错误,走下面的回退分支
}
qDebug() << "波长未校准,光谱仪序列号=" + QString::fromStdString(device->m_serialNumber);
device->m_wavelengthList.assign(fallback.begin(), fallback.end());
}
std::vector<Spectrometer*> DeviceManager::DetectDeviceLst() //检测设备列表,并激活(打开设备)
{
qDebug() << "检测设备列表,并激活(打开设备)" << endl;
// 如果设备列表不为空,直接返回缓存的设备列表
if(m_pDeviceLst.size() > 0){
qDebug() << "返回已缓存的设备列表,设备数量:" << m_pDeviceLst.size();
return m_pDeviceLst;
}
qDebug() << "首次检测设备,开始连接...";
#ifdef CAVITY_USE_ARIS_BRIDGE
// ---------------- 桥接 DLL 后端(MSVC)----------------
ArisBridge &bridge = ArisBridge::instance();
if (!bridge.isAvailable())
{
qDebug() << "光谱仪不可用(桥接 DLL 未加载):"
<< QString::fromStdString(bridge.lastError());
m_nDeviceNum = 0;
return m_pDeviceLst;
}
const int deviceCount = bridge.connect();
m_nDeviceNum = (deviceCount > 0) ? static_cast<unsigned int>(deviceCount) : 0;
m_pDeviceLst.clear();
for (int i = 0; i < deviceCount; i++)
{
const ArisBridge::DeviceInfo info = bridge.deviceInfo(i);
Spectrometer* device = new Spectrometer();
device->m_serialNumber = info.serialNumber;
device->m_handle = static_cast<short>(i);
device->m_pixelsCount = static_cast<unsigned short>(info.pixelCount);
device->m_startPixels = static_cast<unsigned short>(info.startPixel);
device->m_stopPixels = static_cast<unsigned short>(info.endPixel);
loadDeviceWavelengths(device, info.wavelengths);
m_pDeviceLst.push_back(device);
qDebug() << "创建设备:" << QString::fromStdString(device->m_serialNumber)
<< ",句柄:" << i << ",像素:" << static_cast<int>(device->m_pixelsCount);
pixelCount += static_cast<int>(device->m_wavelengthList.size());
}
if (m_nDeviceNum > 0)
{
qDebug() << "设置触发模式";
bridge.setSoftwareTrigger();
}
qDebug() << "设备检测完成,总共创建" << m_nDeviceNum << "个设备";
return m_pDeviceLst;
#else
// ---------------- SDK / 兼容桩后端 ----------------
m_pZio->connectDevice();
m_nDeviceNum = m_pZio->getConnectedDeviceCount();
// 确保列表为空(防止重复添加
m_pDeviceLst.clear();
for(int i = 0; i < m_nDeviceNum; i++){
SpectrometerParameters params = m_pZio->getDevice(i)->getParameters();
Spectrometer* device = new Spectrometer();
device->m_serialNumber = params.serialNumber;
device->m_handle = i;
device->m_pixelsCount = static_cast<unsigned short>(params.pixelCount);
device->m_startPixels = static_cast<unsigned short>(params.startPixel);
device->m_stopPixels = static_cast<unsigned short>(params.endPixel);
loadDeviceWavelengths(device, params.wavelengths);
m_pDeviceLst.push_back(device);
qDebug() << "创建设备:" << QString::fromStdString(device->m_serialNumber) << ",句柄:" << i;
pixelCount += static_cast<int>(device->m_wavelengthList.size());
}
if(m_nDeviceNum > 0){
qDebug() << "设置触发模式";
m_pZio->setTriggerMode(TriggerMode::SOFTWARE);
}
qDebug() << "设备检测完成,总共创建" << m_nDeviceNum << "个设备";
return m_pDeviceLst;
#endif
}
void DeviceManager::DeactivateDeviceLst() //关闭所有设备
{
qDebug() << "关闭所有设备,当前设备数量:" << m_pDeviceLst.size();
// 先断开设备连接
#ifdef CAVITY_USE_ARIS_BRIDGE
ArisBridge::instance().disconnect();
#else
if(m_pZio) {
m_pZio->disconnectDevice();
}
#endif
// 删除所有设备对象
for(auto& device : m_pDeviceLst){
if(device != nullptr) {
qDebug() << "删除设备:" << QString::fromStdString(device->m_serialNumber);
delete device;
device = nullptr;
}
}
// 清空容器
m_pDeviceLst.clear();
m_nDeviceNum = 0;
qDebug() << "所有设备已关闭并清理";
}
void DeviceManager::onDetectDeviceLst()
{
DetectDeviceLst();
emit DetectDeviceFinish(m_pDeviceLst);
}
void DeviceManager::CloseAllDevice()
{
#ifdef CAVITY_USE_ARIS_BRIDGE
ArisBridge::instance().disconnect();
#else
m_pZio->disconnectDevice();
#endif
}
//获取设备列表
std::vector<Spectrometer*> DeviceManager::GetDeviceList()
{
if(m_pDeviceLst.size() == 0){
return DetectDeviceLst();
}
return m_pDeviceLst;
}
void DeviceManager::stopMeasure()
{
#ifdef CAVITY_USE_ARIS_BRIDGE
ArisBridge::instance().stopMeasure();
#else
m_pZio->stopMeasurement();
#endif
}
int DeviceManager::StartMeasure(int integrationTime, int unNrAverages)
{
#ifdef CAVITY_USE_ARIS_BRIDGE
ArisBridge::instance().startMeasure(integrationTime, unNrAverages);
#else
m_pZio->startMeasurement(this, integrationTime, unNrAverages);
#endif
bStartMeasure=true;
return 0;
}
// 把光谱数据转成 Qt 信号(可能在 SDK 采集线程里被调用,Qt 会自动排队到界面线程)
void DeviceManager::handleData(const std::string &spectrumSerialNumber,
const std::vector<float> &wavelengthList,
const std::vector<float> &intensityList)
{
QVector<float> qWavelengthList(wavelengthList.begin(), wavelengthList.end());
QVector<float> qIntensityList(intensityList.begin(), intensityList.end());
emit spectrumDataReady(QString::fromStdString(spectrumSerialNumber),
qWavelengthList,
qIntensityList);
}
#ifdef CAVITY_USE_ARIS_BRIDGE
// 桥接 DLL 的 C 回调 → 当前 DeviceManager 实例
void DeviceManager::onBridgeData(const std::string &spectrumSerialNumber,
const std::vector<float> &wavelengthList,
const std::vector<float> &intensityList)
{
if (g_pDeviceManager)
{
g_pDeviceManager->handleData(spectrumSerialNumber, wavelengthList, intensityList);
}
}
#else
void DeviceManager::onDataReceived(std::string spectrumSerialNumber,
const std::vector<float> &wavelengthList,
const std::vector<float> &intensityList)
{
handleData(spectrumSerialNumber, wavelengthList, intensityList);
}
void DeviceManager::onDataReceivedBanch(std::string spectrumSerialNumber,
const std::vector<float> &wavelengthList,
const std::vector<std::vector<float>> &spectrumList)
{
// 批量模式:逐帧转成单帧信号发出,界面处理逻辑无需改动
for (const auto &intensityList : spectrumList) {
onDataReceived(spectrumSerialNumber, wavelengthList, intensityList);
}
}
void DeviceManager::onError(std::string deviceIndex, const string &error)
{
qDebug() << "光谱仪出错了" << "deviceIndex=" << QString::fromStdString(deviceIndex)
<< "error is " << QString::fromStdString(error);
}
#endif
+202
View File
@@ -0,0 +1,202 @@
#define _WINSOCKAPI_
#define _HAS_STD_BYTE 0
#include <winsock2.h> // 确保首先包含
#include <windows.h> // 然后包含windows.h
#include <QDebug>
#include "devicemanager.h"
#include <fstream>
#include "qdatetime.h"
#include "../Public/util.h"
#include <QFile>
#include <QtSerialPort/QSerialPort>
#include <QtSerialPort/QSerialPortInfo>
#include "ziolinkprotocol.h"
#include "spectrometerdevice.h"
#include "spectrometer.h"
using namespace std;
DeviceManager* g_pDeviceManager = nullptr;
unsigned int DeviceManager::m_nDeviceNum = 0; //实际已连接的设备数量
std::vector<Spectrometer*> DeviceManager::m_pDeviceLst ;
DeviceManager::DeviceManager(QObject *parent) : QObject(parent), pixelCount(0)
{
qDebug() << "激光器串口连接" << endl;
m_pDeviceLst.resize(0); //new std::vector<NewDevice*>();
m_nDeviceNum = 0;
g_pDeviceManager = this;
m_pZio = new ZioLinkProtocol();
}
DeviceManager::~DeviceManager()
{
DeactivateDeviceLst();
delete m_pZio;
m_pZio = nullptr;
}
// 读取波长校准txt文件
std::vector<float> DeviceManager::readWavelengthCalibratedFile(const string &serialNumber) {
std::vector<float> result;
std::string filename = "wavelength_calibrated_files/wavelength_calibrated_" + serialNumber + ".txt";
std::ifstream file(filename);
if (!file.is_open()) {
throw std::runtime_error("无法打开文件: " + filename);
}
qDebug() << "成功读取波长校准文件:" + QString::fromStdString(filename);
float value;
while (file >> value) {
result.push_back(value);
}
// 检查读取过程是否出错(排除正常到达文件末尾的情况)
if (!file.eof() && file.fail()) {
throw std::runtime_error("文件格式错误: " + filename);
}
return result;
}
std::vector<Spectrometer*> DeviceManager::DetectDeviceLst() //检测设备列表,并激活(打开设备)
{
qDebug() << "检测设备列表,并激活(打开设备)" << endl;
// 如果设备列表不为空,直接返回缓存的设备列表
if(m_pDeviceLst.size() > 0){
qDebug() << "返回已缓存的设备列表,设备数量:" << m_pDeviceLst.size();
return m_pDeviceLst;
}
qDebug() << "首次检测设备,开始连接...";
m_pZio->connectDevice();
m_nDeviceNum = m_pZio->getConnectedDeviceCount();
// 确保列表为空(防止重复添加
m_pDeviceLst.clear();
for(int i = 0; i < m_nDeviceNum; i++){
SpectrometerParameters params = m_pZio->getDevice(i)->getParameters();
Spectrometer* device = new Spectrometer();
device->m_serialNumber = params.serialNumber;
device->m_handle = i;
try
{
std::vector<float> wavelengthListFixed = readWavelengthCalibratedFile(device->m_serialNumber);
if (wavelengthListFixed.empty()) {
qDebug() << "波长未校准,光谱仪序列号=" + QString::fromStdString(device->m_serialNumber);
device->m_wavelengthList.assign(params.wavelengths.begin(), params.wavelengths.end());
}
else
{
device->m_wavelengthList.assign(wavelengthListFixed.begin(), wavelengthListFixed.end());
}
}
catch (...)
{
qDebug() << "波长未校准,光谱仪序列号=" + QString::fromStdString(device->m_serialNumber);
}
m_pDeviceLst.push_back(device);
qDebug() << "创建设备:" << QString::fromStdString(device->m_serialNumber) << ",句柄:" << i;
pixelCount += device->m_wavelengthList.size();
}
if(m_nDeviceNum > 0){
qDebug() << "设置触发模式";
m_pZio->setTriggerMode(TriggerMode::SOFTWARE);
}
qDebug() << "设备检测完成,总共创建" << m_nDeviceNum << "个设备";
return m_pDeviceLst;
}
void DeviceManager::DeactivateDeviceLst() //关闭所有设备
{
qDebug() << "关闭所有设备,当前设备数量:" << m_pDeviceLst.size();
// 先断开设备连接
if(m_pZio) {
m_pZio->disconnectDevice();
}
// 删除所有设备对象
for(auto& device : m_pDeviceLst){
if(device != nullptr) {
qDebug() << "删除设备:" << QString::fromStdString(device->m_serialNumber);
delete device;
device = nullptr;
}
}
// 清空容器
m_pDeviceLst.clear();
m_nDeviceNum = 0;
qDebug() << "所有设备已关闭并清理";
}
void DeviceManager::onDetectDeviceLst()
{
DetectDeviceLst();
emit DetectDeviceFinish(m_pDeviceLst);
}
void DeviceManager::CloseAllDevice()
{
m_pZio->disconnectDevice();
}
//获取设备列表
std::vector<Spectrometer*> DeviceManager::GetDeviceList()
{
if(m_pDeviceLst.size() == 0){
return DetectDeviceLst();
}
return m_pDeviceLst;
}
void DeviceManager::stopMeasure()
{
m_pZio->stopMeasurement();
}
int DeviceManager::StartMeasure(int integrationTime, int unNrAverages)
{
m_pZio->startMeasurement(this, integrationTime, unNrAverages);
bStartMeasure=true;
return 0;
}
void DeviceManager::onDataReceived(std::string spectrumSerialNumber,
const std::vector<float> &wavelengthList,
const std::vector<float> &intensityList)
{
QVector<float> qWavelengthList = QVector<float>::fromStdVector(wavelengthList);
QVector<float> qIntensityList = QVector<float>::fromStdVector(intensityList);
emit spectrumDataReady(QString::fromStdString(spectrumSerialNumber),
qWavelengthList,
qIntensityList);
}
void DeviceManager::onDataReceivedBanch(std::string spectrumSerialNumber,
const std::vector<float> &wavelengthList,
const std::vector<std::vector<float>> &spectrumList)
{
// 批量模式:逐帧转成单帧信号发出,界面处理逻辑无需改动
for (const auto &intensityList : spectrumList) {
onDataReceived(spectrumSerialNumber, wavelengthList, intensityList);
}
}
void DeviceManager::onError(std::string deviceIndex, const string &error)
{
qDebug() << "光谱仪出错了" << "deviceIndex=" << QString::fromStdString(deviceIndex)
<< "error is " << QString::fromStdString(error);
}
+112
View File
@@ -0,0 +1,112 @@
#ifndef DEVICEMANAGER_H
#define DEVICEMANAGER_H
#include <string>
#include <vector>
#include "../Public/util.h"
#include <QtSerialPort/QSerialPort>
#include <QtSerialPort/QSerialPortInfo>
#include "../Spectrometer/spectrometer.h"
#ifdef CAVITY_USE_ARIS_BRIDGE
// MSVC 构建:通过 MinGW 编译的 aris_bridge.dll 驱动真实 ARIS SDK(纯 C 接口)
#include "arisbridge.h"
#else
#include "spectrometercallback.h"
#endif
namespace std
{
//class vector;
}
#ifndef CAVITY_USE_ARIS_BRIDGE
class ZioLinkProtocol;
#endif
// 两种后端:
// * CAVITY_USE_ARIS_BRIDGE(MSVC + aris_bridge.dll):不继承 SDK 的回调类
// * 否则直接链接 ARIS SDK(MinGW)或兼容桩(aris_stub.dll)
#ifdef CAVITY_USE_ARIS_BRIDGE
class DeviceManager : public QObject
#else
class DeviceManager : public QObject, public SpectrometerCallback
#endif
{
Q_OBJECT
public:
DeviceManager(QObject *parent = nullptr);
~DeviceManager();
std::vector<float> readWavelengthCalibratedFile(const string &serialNumber);
std::vector<Spectrometer*> DetectDeviceLst(); //检测设备列表,并激活(打开设备)
void CloseAllDevice(); //关闭所有的设备
std::vector<Spectrometer*> GetDeviceList();//获取设备列表
static unsigned int m_nDeviceNum ; //实际已连接的设备数量
static std::vector<Spectrometer*> m_pDeviceLst;
int pixelCount;
private:
bool IsAllDevicesReady(); //检测所有设备是否都已准备就绪
void DeactivateDeviceLst(); //关闭所有设备
// 用波长校准文件覆盖设备的波长表;文件缺失/格式错误时退回设备自带波长
void loadDeviceWavelengths(Spectrometer *device, const std::vector<float> &fallback);
// 把光谱数据转成 Qt 信号发出去(可能来自设备的采集线程)
void handleData(const std::string &serialNumber,
const std::vector<float> &wavelengthList,
const std::vector<float> &intensityList);
bool bStartMeasure;
bool stopscanning = true;
int iRecvCnt;
int iCurExecTimes;
int iDataLen;
#ifdef CAVITY_USE_ARIS_BRIDGE
// 桥接 DLL 的数据回调(静态,转给当前实例)
static void onBridgeData(const std::string &serialNumber,
const std::vector<float> &wavelengthList,
const std::vector<float> &intensityList);
#else
ZioLinkProtocol* m_pZio;
#endif
public slots:
void onDetectDeviceLst();
#ifndef CAVITY_USE_ARIS_BRIDGE
void onDataReceived(std::string deviceIndex,const std::vector<float> &wavelength,
const std::vector<float> &spectrum) override;
// 批量测量回调(ARIS 0411 版 SDK 新增的纯虚函数,必须实现,否则本类仍是抽象类)
void onDataReceivedBanch(std::string deviceIndex,const std::vector<float> &wavelength,
const std::vector<std::vector<float>> &spectrum) override;
// 回调函数,当发生错误时被调用
void onError(std::string,
const std::string& error) override ;
#endif
int StartMeasure(int integrationTime, int nrAverages);
void stopMeasure();
signals:
void DetectDeviceFinish(std::vector<Spectrometer*> m_pDeviceLst);
void spectrumDataReady(QString deviceIndex,
const QVector<float>& wavelengthList,
const QVector<float>& spectrumList);
};
#endif // DEVICEMANAGER_H
+81
View File
@@ -0,0 +1,81 @@
#ifndef DEVICEMANAGER_H
#define DEVICEMANAGER_H
#include <string>
#include <vector>
#include "../Public/util.h"
#include <QtSerialPort/QSerialPort>
#include <QtSerialPort/QSerialPortInfo>
#include "spectrometercallback.h"
#include "../Spectrometer/spectrometer.h"
namespace std
{
//class vector;
}
class ZioLinkProtocol;
class DeviceManager : public QObject, public SpectrometerCallback
{
Q_OBJECT
public:
DeviceManager(QObject *parent = nullptr);
~DeviceManager();
std::vector<float> readWavelengthCalibratedFile(const string &serialNumber);
std::vector<Spectrometer*> DetectDeviceLst(); //检测设备列表,并激活(打开设备)
void CloseAllDevice(); //关闭所有的设备
std::vector<Spectrometer*> GetDeviceList();//获取设备列表
static unsigned int m_nDeviceNum ; //实际已连接的设备数量
static std::vector<Spectrometer*> m_pDeviceLst;
int pixelCount;
private:
bool IsAllDevicesReady(); //检测所有设备是否都已准备就绪
void DeactivateDeviceLst(); //关闭所有设备
bool bStartMeasure;
bool stopscanning = true;
int iRecvCnt;
int iCurExecTimes;
int iDataLen;
ZioLinkProtocol* m_pZio;
public slots:
void onDetectDeviceLst();
void onDataReceived(std::string deviceIndex,const std::vector<float> &wavelength,
const std::vector<float> &spectrum) override;
// 批量测量回调(ARIS 0411 版 SDK 新增的纯虚函数,必须实现,否则本类仍是抽象类)
void onDataReceivedBanch(std::string deviceIndex,const std::vector<float> &wavelength,
const std::vector<std::vector<float>> &spectrum) override;
// 回调函数,当发生错误时被调用
void onError(std::string,
const std::string& error) override ;
int StartMeasure(int integrationTime, int nrAverages);
void stopMeasure();
signals:
void DetectDeviceFinish(std::vector<Spectrometer*> m_pDeviceLst);
void spectrumDataReady(QString deviceIndex,
const QVector<float>& wavelengthList,
const QVector<float>& spectrumList);
};
#endif // DEVICEMANAGER_H
File diff suppressed because it is too large Load Diff
+224
View File
@@ -0,0 +1,224 @@
#ifndef ELEMENTANALYSIS_H
#define ELEMENTANALYSIS_H
#include <iostream>
#include <fstream>
#include <vector>
#include <algorithm>
#include <sstream>
#include "qobject.h"
#include "algorithmanalysis.h"
#include <iomanip>
using namespace std;
// 定义峰值结构体
struct Peak {
int index;
double intensity;
double wavelength;
string name;
};
struct WaveSpectrum {
double intensity;
double wavelength;
};
//定义元素条数结构体
struct TTname{
// 元素名称
string Telementname;
int lines = 0;
};
//定义元素、强度结构体
//struct ElementPeak {
// string elementName;
// double intensity;
//};
// 定义数据点结构体
struct DataPoint {
double concentration;
double intensity;
};
// 定义拟合参数结构体
struct FitParameters {
double slope;
double intercept;
};
// 定义元素含量结构体
struct SpectrumElementQuantity {
string name;
double quantity;
double percent;// CFLibs计算的百分比
};
// 光谱数据
struct SpecData{
// 元素名称
string eleName;
// 波长
double waveLength = 0;
// 强度
double intensity = 0;
// 跃升能级
double transpro;
// 上能级
double upplevel;
// 权重
double statis;
// 0=原子,1=离子
bool ionization;
bool operator==(const SpecData& other) const {
return eleName == other.eleName; // 按照name字段进行去重
}
};
// 元素数据
struct ElementData{
// 元素名称
string eleName;
// 原子数量
int atomNum = 0;
// 离子数量
int ionNum = 0;
// cs原子数量
int atomNumCS = 0;
// cs离子数量
int ionNumCS = 0;
// 原子截距
double bsa = 0;
// 离子截距
double bsi = 0;
// 原子的cs
double csa = 0;
// 离子的cs
double csi = 0;
double csit = 0;
// 含量比例:未乘以100
double abundence = 0.0;
};
// 波长修正数据
struct FixData{
double wavelength;
double fix;
};
class ElementAnalysis : public QObject
{
Q_OBJECT
public:
ElementAnalysis(QObject *parent = nullptr);
vector<SpectrumElementQuantity> analysisElementQuantity(vector<pair<int,vector<SpectrumChannelData>>>);
private:
//最小二乘法拟合所需要的斜率和截距
FitParameters fitCurve(string elementName);
// 分割字符串为数组
vector<string> split(string str, char del);
// 2 输入 比对库:200行,7列,输出 到比对库的数据
vector<SpecData> findCompareLst(string compareFileName);
// 3 输入 1中波长和2中波长,输出 差值小于0.02的波长(2中的波长值), 1中的强度,2中的其他字段
vector<SpecData> doCompare(vector<SpectrumChannelData> peakLst,vector<SpecData> &compareLst,double distance);
// 4 输入 3中的差值比较后的光谱数据,修正数据库,输出 修正后的强度
void fixIntensity(vector<SpecData> &comparedLst,vector<FixData> fixLst, double baseline);
// 5 输入 3中fixedLst为修正完的元素数据,casee=计算方式,输出 用函数计算后的温度/密度
void calculateElementTempne(vector<SpecData> fixedLst,string Telement,int casee,int count7);
//获取平均温度和电离子密度
void getTTMM(vector<TTname> Telementname,vector<SpecData> comparedLst);
// 6 输入 温度/密度/强度/元素种类 输出用函数计算后的含量
void calculateConcentration(vector<SpecData> &tempneLst,vector<ElementData> &elementLst);
// 根据截距计算元素含量
double calculateConcentrationByIntercept(double inten,double transpro,double upplevel,double statis,double temprature);
// 根据CS计算元素含量
double calculateConcentrationByCS(string element,double temprature,int ionization,double electroD,double bs);
// 计算U
double calculateU(string element, double temprature, int ionization);
// 计算saha
double saha(string element,double temprature,double electroD,double csa);
// 从光谱数据中获取到元素名称集合
vector<ElementData> getElementLst(vector<SpecData> peakLst);
//获取元素的离子和原子条数
vector<TTname> GetTTname(vector<ElementData> elementLst,vector<SpecData> comparedLst);
// 获取修正数据
vector<FixData> getFixLst(int gratingNo);
//用曲线拟合计算元素ppm
vector<SpectrumElementQuantity> calculateElementConcentrationByStandardCurve(vector<SpectrumElementPeak> peakLst);
//计算元素含量百分比
vector<SpectrumElementQuantity> calculateElementConcentrationByCFLibs(vector<SpectrumChannelData> spectVector);
static vector<pair<int,vector<SpectrumChannelData>>> channelData;
// 温度
double temprature = 0;
// 密度
double electroD = 0;
//删除重叠区域的峰值
vector<SpectrumChannelData> selectWavelength(vector<pair<int, vector<SpectrumChannelData>>> peakVector, int inSpacing);
//vector<double> background(vector<double> waveLst,vector<double> averageSpecLst);
bool isCompletedCalculateByCFLibs = false;
bool isCompletedCalculateByStandardCurve = false;
std::string createErrorMessage(int errorCode, const std::string& message);
void save(vector<SpectrumChannelData> peakVector);
void saveSpecData(vector<SpecData> comparedLst);
void saveTTname(vector<TTname> Telementname);
void saveElementLst(vector<ElementData> elementLst);
};
#endif // ELEMENTANALYSIS_H
+884
View File
@@ -0,0 +1,884 @@
#include "specpeakservice.h"
#include <algorithm>
#include <map>
#include <numeric>
#include <set>
#include <cmath>
#include <time.h>
#include <set>
#include <QDebug>
SpecPeakService::SpecPeakService(){
}
vector<int> SpecPeakService::SpecPeak(vector<SpectrumChannelData> channelData)
{
//qDebug() << "[Logic]-用SpecPeakService类寻峰" << endl;
background_ptp = 0.2;
//将获取的数据进行修改
spectralPretreatment(channelData);
//获取峰值下标集合mergeIntervalIndexStruct
getRes();
//这里必须使mergeIntervalIndexStruct不为空,为下一步提供变量
//第一次为空就将最大波动值background_ptp下降0.03
//最大波动值background_ptp下降到0.03还没计算出跳出
while(mergeIntervalIndexStruct.merge_interval_info.empty() &&
mergeIntervalIndexStruct.merge_interval_index.empty()){
if(background_ptp < 0.03){
break;
}
background_ptp = background_ptp - 0.03;
getRes();
}
//最大波动值background_ptp直接赋值0.005得到峰值下标
//或者再次计算获取峰值下标
if(mergeIntervalIndexStruct.merge_interval_info.empty() &&
mergeIntervalIndexStruct.merge_interval_index.empty()){
background_ptp = 0.005;
getRes();
vector<int> mergedIndex = mapInvertInt(mergeIntervalIndexStruct);
return mergedIndex;
}else {
double temp = get_background_wave(mergeIntervalIndexStruct);
background_ptp = temp;
getRes();
vector<int> mergedIndex = mapInvertInt(mergeIntervalIndexStruct);
return mergedIndex;
}
}
//获取数据集合(测试所用)
void SpecPeakService::initSpecWavelengthStrength()
{
string filename = "../algorithmDemo/yuan.txt";
ifstream file(filename);
if(!file.is_open()){
cerr << "Error:File not found:" << filename <<endl;
}
file.clear();
file.seekg(0,ios::beg);
double wave = 0;
double inten = 0;
while (file >> wave >> inten)
{
wavelength.push_back(wave);
intensity.push_back(inten);
}
file.close();
wavelength.erase(wavelength.begin(), wavelength.begin() + 16);
wavelength.erase(wavelength.end() - 16, wavelength.end());
intensity.erase(intensity.begin(), intensity.begin() + 16);
intensity.erase(intensity.end() - 16, intensity.end());
}
//计算归一化的绝对值
vector<double> SpecPeakService::absMaxNorm(vector<double> specList)
{
//qDebug() << "[Logic]-计算光谱数据归一化的绝对值" << endl;
auto max_abs_iter = std::max_element(specList.begin(), specList.end(), [](double a, double b) {
return std::abs(a) < std::abs(b);
});
double max_value = abs (*max_abs_iter);
vector<double> norm_res;
norm_res.resize(specList.size());
std::transform(specList.begin(), specList.end(), norm_res.begin(), [&max_value](double x)
{
return x / max_value;
});
return norm_res;
}
//判断两条线是否相交
bool SpecPeakService::isIntersect(double leftY1, double leftY2, double rightY1, double rightY2)
{
// qDebug() << "[Logic]-判断两条线是否相交" << endl;
if ((leftY1 < leftY2) && (rightY1 < rightY2))
{
return false;
}
else if ((leftY1 > leftY2) && (rightY1 > rightY2))
{
return false;
}
else
{
return true;
}
}
//求导数以及绝对值 归一化
void SpecPeakService::spectralPretreatment(vector<SpectrumChannelData> channelData)
{
qDebug() << "[Logic]-求导数以及绝对值" << endl;
wavelength.clear();
intensity.clear();
for (int i = 0; i < channelData.size() ; i++) {
wavelength.push_back(channelData[i].wavelength);
intensity.push_back(channelData[i].intensity);
}
d1 = diff(wavelength, intensity, 1);
d1_2.resize(d1.size());
std::transform(d1.begin(), d1.end(), d1_2.begin(), [](double x) {
return x * x;
});
d1_abs.resize(d1.size());
std::transform(d1.begin(), d1.end(), d1_abs.begin(), [](double x) { return abs(x); });
d2 = diff(wavelength, intensity, 2);
d2_2.resize(d1.size());
std::transform(d2.begin(), d2.end(), d2_2.begin(), [](double x) { return x * x; });
d2_abs.resize(d1.size());
std::transform(d2.begin(), d2.end(), d2_abs.begin(), [](double x) { return abs(x); });
//
intensityNorm = absMaxNorm(intensity);
d1_norm = absMaxNorm(d1);
d1_2_norm = absMaxNorm(d1_2);
d1_abs_norm = absMaxNorm(d1_abs);
d2_norm = absMaxNorm(d2);
d2_2_norm = absMaxNorm(d2_2);
d2_abs_norm = absMaxNorm(d2_abs);
intensity_smooth = smooth(intensityNorm, 5);
}
//差分
vector<double> SpecPeakService::diff(vector<double> xValueList, vector<double> yValueList, int n )
{
//qDebug() << "[Logic]-计算差分" << endl;
if (n == 0)
{
return yValueList;
}
else
{
vector<double> diff_res;
for (int i = 0; i < xValueList.size(); i++)
{
double temp;
if (i == 0)//
{
temp = (yValueList[i] - yValueList[i + 1]) * 1.0 / (xValueList[i] - xValueList[i + 1]);
}
else if (i == xValueList.size() - 1)//
{
temp = (yValueList[i - 1] - yValueList[i]) * 1.0 / (xValueList[i - 1] - xValueList[i]);
}
else //
{
temp = (yValueList[i - 1] - yValueList[i + 1]) * 1.0 / (xValueList[i - 1] - xValueList[i + 1]);
}
diff_res.push_back(temp);
}
return diff(xValueList, diff_res, n - 1);
}
}
//找出特征波长节点
vector<int> SpecPeakService::findFeatureIndex()
{
//qDebug() << "[Logic]-找出特征波长节点" << endl;
vector<int> features_index;
for (int i = 0 ; i < d2_norm.size() - 1; i++)
{
if (d2_norm[i] * d2_norm[i + 1] < 0)
{
if (intensityNorm[i] < intensityNorm[i + 1] )
{
if (!std::binary_search(features_index.begin(), features_index.end(), i))
{
features_index.push_back(i);
}
}
else
{
features_index.push_back(i + 1);
}
}
}
return features_index;
}
//去除连续波长节点中中间的节点
vector<int> SpecPeakService::featureIndexDelMiddle(vector<int> featuresIndexList)
{
//qDebug() << "[Logic]-去除连续波长节点中中间的节点" << endl;
vector<double> del_index_1;
vector<double> del_index_2;
for (int i = 1 ; i < featuresIndexList.size() - 1; i++ )
{
if (featuresIndexList[i] + 1 == featuresIndexList[i + 1])
{
del_index_1.push_back(featuresIndexList[i]);
}
if (featuresIndexList[i] - 1 == featuresIndexList[i - 1])
{
del_index_2.push_back(featuresIndexList[i]);
}
}
//
vector<double> del_common_index;
//
set<double> setDel_index_1(del_index_1.begin(), del_index_1.end());
set<double> setDel_index_2(del_index_2.begin(), del_index_2.end());
//
std::set_intersection(setDel_index_1.begin(), setDel_index_1.end(),
setDel_index_2.begin(), setDel_index_2.end(), std::inserter(del_common_index, del_common_index.begin()));
//
vector<int> res_features_index(featuresIndexList.begin(), featuresIndexList.end());
for (int i = 0 ; i < res_features_index.size(); i++)
{
if (binary_search(del_common_index.begin(), del_common_index.end(), res_features_index[i] ))
{
res_features_index[i] = -1;
}
}
res_features_index.erase(remove(res_features_index.begin(), res_features_index.end(), -1), res_features_index.end());
while (binary_search(res_features_index.begin(), res_features_index.end(), -1))
{
//
}
//
std::sort(res_features_index.begin(), res_features_index.end());
return res_features_index;
}
//从相邻的波长节点中选择一个
vector<int> SpecPeakService::chooseFeatureIndex2of1(vector<int> featuresIndexList)
{
/*
Args:
featuresIndexList
Returns:
*/
//qDebug() << "[Logic]-从相邻的波长节点中选择一个" << endl;
vector<int> res_features_index;
bool pass_flag = false;
for (int i = 0; i < featuresIndexList.size() - 1; i++)
{
if (pass_flag)
{
pass_flag = false;
continue;
}
//
if (featuresIndexList[i] + 1 == featuresIndexList[i + 1])
{
pass_flag = true;
if (intensityNorm[featuresIndexList[i]] < intensityNorm[featuresIndexList[i + 1]])
{
res_features_index.push_back(featuresIndexList[i]);
}
else
{
res_features_index.push_back(featuresIndexList[i + 1]);
}
}
else
{
res_features_index.push_back(featuresIndexList[i]);
}
}
return res_features_index;
}
//将特征波长节点转化为区间索引,并进行条件判断,筛选出满足条件的区间
IntervalIndexStruct SpecPeakService::getIntervalIndex(vector<int> featuresIndex)
{
//qDebug() << "[Logic]-将特征波长节点转化为区间索引,并进行条件判断,筛选出满足条件的区间" << endl;
vector<vector<int>> init_interval_index; //
vector<vector<string>> init_interval_info; //
vector<vector<int>> interval_index;
//
for (int i = 0; i < featuresIndex.size() - 1; i++)
{
int min_index = featuresIndex[i];
int max_index = featuresIndex[i + 1];
vector<double> temp_intensity_norm(intensityNorm.begin() + min_index, intensityNorm.begin() + max_index + 1);
vector<double> temp_d1_norm(d1_norm.begin() + min_index, d1_norm.begin() + max_index + 1);
vector<double> temp_d2_norm(d2_norm.begin() + min_index, d2_norm.begin() + max_index + 1);
// int temp_d1_min_index = std::distance(temp_d1_norm.begin(), std::min_element(temp_d1_norm.begin(), temp_d1_norm.end()));
// int temp_d2_min_index = std::distance(temp_d2_norm.begin(), std::min_element(temp_d2_norm.begin(), temp_d2_norm.end()));
int temp_max_index = std::distance(temp_intensity_norm.begin(), std::max_element(temp_intensity_norm.begin(), temp_intensity_norm.end()));
int interval_max_index = min_index + temp_max_index;
vector<string> info;
//一阶导的最小值在二阶导最小值的右侧
// bool flag_1;
// if (temp_d1_min_index > temp_d2_min_index)
// {
// flag_1 = true;
// }
// else
// {
// flag_1 = false;
// }
//最大值在区间的中间
bool flag_2;
if (0 < temp_max_index && temp_max_index < max_index - min_index)
{
flag_2 = true;
}
else
{
flag_2 = false;
}
//一阶导的最大值在二阶导最大值的右侧
bool flag_3;
if (temp_d1_norm[temp_max_index] > temp_d2_norm[temp_max_index])
{
flag_3 = true;
}
else
{
flag_3 = true;
}
//区间的点的数量必须大于3
// bool flag_4;
// if (max_index - min_index > 2)
// {
// flag_4 = true;
// }
// else
// {
// flag_4 = false;
// }
//曲线是不是先上升后下降
bool flag_5;
vector<double> temp_list(1, 1);
for(int k = 0; k < (max_index - min_index); k++ ){
if(temp_intensity_norm[k] < temp_intensity_norm[k + 1]){
if(temp_list.back() == 0){
temp_list.push_back(1);
}
}else{
if(temp_list.back() == 1){
temp_list.push_back(0);
}
}
}
if(temp_list.size() > 2){
flag_5 = false;
}else{
flag_5 = true;
}
// if (std::binary_search(kmeansIndex.begin(), kmeansIndex.end(), i))
// {
// flag_5 = true;
// }
// else
// {
// flag_5 = false;
// }
//平滑前的点大于平滑后的点,且至少有三个点在平滑后的点的上方
bool flag_6;
vector<int> condition;
if(intensityNorm[interval_max_index] > intensity_smooth[interval_max_index])
{
condition.push_back(1);
}else{
condition.push_back(0);
}
for(int j = 1; j < 3; j++)
{
if(interval_max_index - j < 0 || interval_max_index + j > intensityNorm.size() - 1)
{
break;
}
if(intensityNorm[interval_max_index - j] < intensityNorm[interval_max_index])
{
condition.push_back(1);
}else{
condition.push_back(0);
}
if(intensityNorm[interval_max_index + j] < intensityNorm[interval_max_index])
{
condition.push_back(1);
}else{
condition.push_back(0);
}
}
int sum = accumulate(condition.begin(), condition.end(), 0);
if(sum == condition.size())
{
flag_6 = true;
}else{
flag_6 = false;
}
//最大最小值只差大于 指定值
bool flag_v1;
int left_offset = 0;
while(true)
{
if(min_index - left_offset == 0){
break;
}
if(intensityNorm[min_index - left_offset - 1] < intensityNorm[min_index - left_offset]){
left_offset += 1;
}else{
break;
}
}
int right_offset = 0;
while(true)
{
if(max_index + right_offset == int(intensityNorm.size() - 1)){
break;
}
if(intensityNorm[max_index + right_offset + 1] < intensityNorm[max_index + right_offset]){
right_offset += 1;
}else{
break;
}
}
vector<double> temp_data1(intensityNorm.begin() + min_index - left_offset,
intensityNorm.begin() + max_index + right_offset + 1);
// for(int k = min_index - left_offset; k < max_index + right_offset + 1; k++)
// {
// temp_data1.push_back(intensityNorm[k]);
// }
if (*std::max_element(temp_data1.begin(), temp_data1.end()) -
*std::min_element(temp_data1.begin(), temp_data1.end()) > background_ptp)
{
flag_v1 = true;
}
else
{
flag_v1 = false;
}
//一阶导数的方差大于 指定值
// bool flag_v2;
// if (std::sqrt(getStandardDeviation(temp_d1_norm)) > 0.1)
// {
// flag_v2 = true;
// }
// else
// {
// flag_v2 = false;
// }
//峰的左侧或右侧的最小值不能大于峰高度的0.75倍
// bool flag_v3;
// double temp_prpoprtion = 0.75;
// double min_value = *min_element(temp_intensity_norm.begin(), temp_intensity_norm.end());
// vector<double> temp_data(temp_intensity_norm.size());
// std::transform(temp_intensity_norm.begin(), temp_intensity_norm.end(),temp_data.begin(),[min_value](double val){return val - min_value;});
// auto max_it = max_element(temp_data.begin(), temp_data.end());
// temp_max_index = std::distance(temp_data.begin(), max_it);
// if(temp_max_index == 0 || temp_max_index == temp_data.size() - 1){
// flag_v3 = false;
// }else{
// double temp_left_min = *min_element(temp_data.begin(), temp_data.begin() + temp_max_index);
// double temp_right_min = * min_element(temp_data.begin() + temp_max_index, temp_data.end());
// if((temp_left_min < temp_data[temp_max_index] * temp_prpoprtion) &&
// (temp_right_min < temp_data[temp_max_index] * temp_prpoprtion)){
// flag_v3 = true;
// }else{
// flag_v3 = false;
// }
// }
init_interval_index.push_back({ min_index, max_index });
//
info.push_back({ flag_2, flag_3, flag_5, flag_6, flag_v1});
init_interval_info.push_back(info);
//
if ( flag_2 && flag_3 && flag_5 && flag_6 && flag_v1)
{
interval_index.push_back({ min_index, max_index });
}
}
return { interval_index, init_interval_index, init_interval_info };
}
//扩展区间,使得区间包含整个峰
//从峰值开始,向左扩展至一阶导和二阶导的第二个交点,向右扩展至一阶导和二阶导的第二个交点
ExtendedIntervalIndexStruct SpecPeakService::extendedIntervalIndex(vector<vector<int>> interval_index)
{
//qDebug() << "[Logic]-展区间,使得区间包含整个峰" << endl;
vector<vector<int>> extend_interval_index;
vector<map<string,int>> extend_interval_info;
for (vector<int> v : interval_index)
{
int min_index = v[0];
int max_index = v[1];
vector<double> temp_intensity_norm(intensityNorm.begin() + min_index, intensityNorm.begin() + max_index + 1);
//
int temp_intensity_max_index = std::distance(temp_intensity_norm.begin(), std::max_element(temp_intensity_norm.begin(), temp_intensity_norm.end()));
//求出最大值在原始数据中的索引
int intensity_temp_max_index = min_index + temp_intensity_max_index;
//向左扩展
int intersections_num = 0;
int new_min_index = intensity_temp_max_index;
while (true)
{
if(new_min_index == 0){
break;
}
double left_y1 = d1_norm[new_min_index - 1];
double left_y2 = d2_norm[new_min_index - 1];
double right_y1 = d1_norm[new_min_index];
double right_y2 = d2_norm[new_min_index];
if (isIntersect(left_y1, left_y2, right_y1, right_y2))
{
intersections_num += 1;
}
if (intersections_num == 2)
{
break;
}
new_min_index -= 1;
}
//向右扩展
intersections_num = 0;
int new_max_index = intensity_temp_max_index;
while (true)
{
if(new_max_index == int(d1_norm.size())){
break;
}
double left_y1 = d1_norm[new_max_index];
double left_y2 = d2_norm[new_max_index];
double right_y1 = d1_norm[new_max_index + 1];
double right_y2 = d2_norm[new_max_index + 1];
if (isIntersect(left_y1, left_y2, right_y1, right_y2))
{
intersections_num += 1;
}
if(intersections_num == 2) //交点数目为2时,说明已经到了峰的右侧,停止扩展
{
break;
}
new_max_index += 1;
}
extend_interval_index.push_back({ new_min_index, new_max_index });
map<string, int> map;
map["max_intensity_index"] = intensity_temp_max_index;
extend_interval_info.push_back(map);
}
return { extend_interval_index, extend_interval_info };
}
//合并相交的区间
MergeIntervalIndexStruct SpecPeakService::mergeIntervalIndex(vector<vector<int>> interval_index,
vector<map<string, int>> interval_info)
{
//qDebug() << "[Logic]-合并相交的区间" << endl;
vector<vector<int>> merge_interval_index;
vector<vector<int>> merge_interval_info;
vector<int> temp_range;
vector<int> temp_max_index_list;
for(int k = 0; k < interval_index.size(); ++k)
{
if(merge_interval_index.empty()){
merge_interval_index.push_back(interval_index[k]);
merge_interval_info.push_back({interval_info[k].at("max_intensity_index")});
continue;
}
//如果 该区间的左侧索引 落在 添加到列表中的最后一个区间内,则合并
if(interval_index[k][0] < merge_interval_index.back()[1]){
merge_interval_index.back()[1] = interval_index[k][1];
merge_interval_info.back().push_back({interval_info[k].at("max_intensity_index")});
}else{
merge_interval_index.push_back(interval_index[k]);
merge_interval_info.push_back({interval_info[k].at("max_intensity_index")});
}
}
return { merge_interval_index, merge_interval_info };
}
//数据平滑
vector<double> SpecPeakService::smooth(vector<double> intensity_data, int points_num)
{
//qDebug() << "[Logic]-数据平滑" << endl;
if(points_num % 2 == 0){
throw invalid_argument("points_num必须是奇数");
}
int half_points_num = points_num / 2;
vector<double> new_intensity(intensity_data.size());
for(int i = 0; i < intensity_data.size(); i++){
double sum = 0.0;
int start = max(0, i - half_points_num);
int end = min(int(intensity_data.size()), i + half_points_num + 1);
for(int j = start; j < end; j++){
sum += intensity_data[j];
}
new_intensity[i] = sum / (end - start);
}
return new_intensity;
}
//将下标转为为波长与强度
vector<SpectrumChannelData> SpecPeakService::mapInvertInt(vector<SpectrumChannelData> channelData, vector<int> mergedIndex)
{
//qDebug() << "[Logic]-将下标转为为波长与强度1" << endl;
vector<SpectrumChannelData> findPeak;
for(const auto& index : mergedIndex){
findPeak.push_back(channelData[index]);
}
return findPeak;
}
vector<int> SpecPeakService::mapInvertInt(MergeIntervalIndexStruct extendedIntervalIndexStruct)
{
//qDebug() << "[Logic]-map集合下标转化为vector" << endl;
vector<int> mergedIndex;
vector<vector<int>> merge_interval_info = extendedIntervalIndexStruct.merge_interval_info;
for(const auto& indexMap : merge_interval_info){
for(const auto& index : indexMap){
mergedIndex.insert(mergedIndex.end(),index);
}
}
return mergedIndex;
}
void SpecPeakService::getRes()
{
//qDebug() << "[Logic]-获取峰值下标" << endl;
vector<int> features_index;
// 1.找出特征波长节点
features_index = findFeatureIndex();
// 2.去除相邻的波长节点
features_index = featureIndexDelMiddle(features_index);
// 3.从相邻的波长节点中选择一个
features_index = chooseFeatureIndex2of1(features_index);
// 4.将特征波长节点转化为区间索引
IntervalIndexStruct intervalIndexStruct = getIntervalIndex(features_index);
vector<vector<int>> interval_index = intervalIndexStruct.interval_index;
vector<vector<int>> init_interval_index = intervalIndexStruct.init_interval_index;
vector<vector<string>> init_interval_info = intervalIndexStruct.init_interval_info;
// 5.扩展区间
ExtendedIntervalIndexStruct extendedIntervalIndexStruct = extendedIntervalIndex(interval_index);
vector<vector<int>> extend_interval_index = extendedIntervalIndexStruct.extend_interval_index;
vector<map<string, int>> extend_interval_info = extendedIntervalIndexStruct.extend_interval_info;
// 6.合并区间
MergeIntervalIndexStruct mergeIntervalIndexData = mergeIntervalIndex(extend_interval_index, extend_interval_info);
vector<vector<int>> merge_interval_index = mergeIntervalIndexData.merge_interval_index;
vector<vector<int>> merge_interval_info = mergeIntervalIndexData.merge_interval_info;
mergeIntervalIndexStruct.merge_interval_index = merge_interval_index;
mergeIntervalIndexStruct.merge_interval_info = merge_interval_info;
}
// 1. 获取扣掉强峰的区间(强峰区间对整个波长范围取补集)
// 2. 筛选掉长度不足 50 个点的区间
vector<int> SpecPeakService::get_background_interval(MergeIntervalIndexStruct mergeIntervalIndexStruct)
{
//qDebug() << "[Logic]-获取扣掉强峰的区间" << endl;
vector<vector<int>> strength_peaks = mergeIntervalIndexStruct.merge_interval_index;
vector<vector<int>> strength_info = mergeIntervalIndexStruct.merge_interval_info;
vector<vector<int>> temp_list;
//挑选背景特征区间
int interval_length = 0;
if(strength_peaks[0][0] != 0){
temp_list = {{0, strength_peaks[0][0]}};
} else{
temp_list = {};
}
for(int i = 1; i < strength_peaks.size() -1; i++)
{
temp_list.push_back({strength_peaks[i][1], strength_peaks[i + 1][0]});
}
if (strength_peaks.back()[1] != intensityNorm.size() - 1) {
temp_list.push_back({strength_peaks.back()[1],int(intensityNorm.size() - 1)});
}
//other_interval_list: 区间索引
//other_interval_length: 区间长度
vector<vector<int>> other_interval_list;
vector<int> other_interval_length;
std::vector<int> temp_interval = temp_list[0];
int temp_length = temp_list[0][1] - temp_list[0][0] + 1;
for(const auto& interval : temp_list)
{
int min_index = interval[0];
int max_index = interval[1];
int diffValue = max_index - min_index + 1;
if(diffValue >= 60){
other_interval_list.push_back({min_index, max_index});
other_interval_length.push_back(diffValue);
}
if(diffValue > temp_length){
temp_interval = {min_index, max_index};
temp_length = diffValue;
}
}
if(other_interval_list.empty() && other_interval_length.empty()){
other_interval_list.push_back(temp_interval);
other_interval_length.push_back(temp_length);
}
if (other_interval_list.size() == 1 && other_interval_length[0] <= 60) {
// 只有一个区间
if (other_interval_length[0] <= 30) {
throw std::invalid_argument("区间长度太短,重新测量");
}
interval_length = other_interval_length[0] - 10;
} else {
interval_length = 50;
}
vector<int> background_interval;
double criterion = 100.0;
for(const auto& intervalList : other_interval_list)
{
int min_index = intervalList[0];
int max_index = intervalList[1];
vector<double> temp_data_x(wavelength.begin() + min_index,
wavelength.begin() + max_index + 1);
vector<double> temp_data_y(intensityNorm.begin() + min_index,
intensityNorm.begin() + max_index + 1);
double min_value = *min_element(temp_data_y.begin(), temp_data_y.end());
transform(temp_data_y.begin(), temp_data_y.end(), temp_data_y.begin(), [min_value](double val) {
return val - min_value;
});
for(int i = 0; i < temp_data_y.size() - interval_length; i++)
{
double temp = accumulate(temp_data_y.begin() + i, temp_data_y.begin() + i + interval_length, 0.0);
if(temp < criterion)
{
background_interval = {min_index + i, min_index + i + interval_length - 1};
criterion = temp;
}
}
}
return background_interval;
}
//获取波动值
double SpecPeakService::get_background_wave(MergeIntervalIndexStruct mergeIntervalIndexStruct)
{
//qDebug() << "[Logic]-获取波动值" << endl;
vector<int> interval = get_background_interval(mergeIntervalIndexStruct);
double factor;
auto minmax = minmax_element(intensityNorm.begin() + interval[0], intensityNorm.begin() + interval[1] + 1);
double init_max_wave = *minmax.second - *minmax.first;
if(init_max_wave <= 0.006){
factor = 1.2;
}else if(init_max_wave > 0.006 && init_max_wave <= 0.01){
factor = 1.8;
}else{
factor = 2;
}
double max_wave = factor * init_max_wave;
return max_wave;
}
+134
View File
@@ -0,0 +1,134 @@
#ifndef SPECPEAKSERVICE_H
#define SPECPEAKSERVICE_H
#include <iostream>
#include <vector>
#include <map>
#include <fstream>
#include <chrono>
#include "algorithmanalysis.h"
using namespace std;
/* init_interval_index = [] 原始区间
init_interval_info = [] 未经过筛选的区间的信息
interval_index = [] 最终的结果区间索引 */
struct IntervalIndexStruct {
vector<vector<int>> interval_index;
vector<vector<int>> init_interval_index;
vector<vector<string>> init_interval_info;
};
struct ExtendedIntervalIndexStruct {
vector<vector<int>> extend_interval_index;
vector<map<string, int>> extend_interval_info;
};
struct MergeIntervalIndexStruct {
vector<vector<int>> merge_interval_index;
vector<vector<int>> merge_interval_info;
};
class SpecPeakService
{
public:
SpecPeakService();
vector<int> SpecPeak(vector<SpectrumChannelData> channelData);
//将下标转为为波长与强度
vector<SpectrumChannelData> mapInvertInt(vector<SpectrumChannelData> channelData, vector<int> mergedIndex);
private:
//函数声明
//数据平滑
vector<double> smooth(vector<double> intensity_data, int points_num = 5);
// 初始化波长强度
void initSpecWavelengthStrength();
// 计算归一化的绝对值
vector<double> absMaxNorm(vector<double> specList);
//判断两条线是否相交
bool isIntersect(double leftY1, double leftY2, double rightY1, double rightY2);
// 求导数以及绝对值 归一化
void spectralPretreatment(vector<SpectrumChannelData>);
// 差分
vector<double> diff(vector<double> xValueList, vector<double> yValueList, int n = 1);
//找出特征波长节点
vector<int> findFeatureIndex();
//去除连续波长节点中中间的节点
vector<int> featureIndexDelMiddle(vector<int> featuresIndexList);
//从相邻的波长节点中选择一个
vector<int> chooseFeatureIndex2of1(vector<int> featuresIndexList);
//将特征波长节点转化为区间索引,并进行条件判断,筛选出满足条件的区间
IntervalIndexStruct getIntervalIndex(vector<int> featuresIndex);
//扩展区间,使得区间包含整个峰
//从峰值开始,向左扩展至一阶导和二阶导的第二个交点,向右扩展至一阶导和二阶导的第二个交点
ExtendedIntervalIndexStruct extendedIntervalIndex(vector<vector<int>>);
//合并相交的区间
MergeIntervalIndexStruct mergeIntervalIndex(vector<vector<int>> intervalIndex, vector<map<string, int>> interval_info);
//将集合下标转化为vector集合
vector<int> mapInvertInt(MergeIntervalIndexStruct extendedIntervalIndexStruct);
// 1. 获取扣掉强峰的区间(强峰区间对整个波长范围取补集)
// 2. 筛选掉长度不足 50 个点的区间
vector<int> get_background_interval(MergeIntervalIndexStruct mergeIntervalIndexStruct);
//获取波动值
double get_background_wave(MergeIntervalIndexStruct mergeIntervalIndexStruct);
void getRes();
//变量声明
int specPointNum;
vector<double> intensityNorm;
vector<double> intensity_smooth;
// 最大波动值
double background_ptp = 0.2;
vector<double> wavelength;
vector<double> intensity;
//一阶导二阶导以及其绝对值
vector<double> d1;
vector<double> d1_2;
vector<double> d1_abs;
vector<double> d2;
vector<double> d2_2;
vector<double> d2_abs;
//一阶导二阶导归一化
vector<double> d1_norm;
vector<double> d1_2_norm;
vector<double> d1_abs_norm;
vector<double> d2_norm;
vector<double> d2_2_norm;
vector<double> d2_abs_norm;
MergeIntervalIndexStruct mergeIntervalIndexStruct;
};
#endif // SPECPEAKSERVICE_H
+16
View File
@@ -0,0 +1,16 @@
#include "spectrometer.h"
Spectrometer::Spectrometer()
{
}
bool Spectrometer::ReceiveScopeData()
{
return true;
}
bool Spectrometer::SetReady(bool bReady)
{
return bReady;
}
+30
View File
@@ -0,0 +1,30 @@
#ifndef SPECTROMETER_H
#define SPECTROMETER_H
#include <vector>
#include <string>
/**
光谱仪
* @brief The spectrometer class
*/
class Spectrometer
{
public:
Spectrometer();
short m_handle ;
std::string m_serialNumber; //设备序列号
unsigned short m_pixelsCount; //像素数
unsigned short m_startPixels; //开始像素
unsigned short m_stopPixels; //停止像素
std::vector<double> m_wavelengthList;
std::vector<double> m_intensityList;
bool ReceiveScopeData();
bool SetReady(bool bReady);
};
#endif // SPECTROMETER_H
+27
View File
@@ -0,0 +1,27 @@
#ifndef SPECTROMETERCALLBACK_H
#define SPECTROMETERCALLBACK_H
#include <vector>
#include <string>
class SpectrometerCallback
{
public:
virtual ~SpectrometerCallback() = default;
// 回调函数,当光谱数据准备好时被调用
virtual void onDataReceived(std::string serialNumber,const std::vector<float> &wavelength,
const std::vector<float>& spectrum) = 0;
// 批量采集回调(ARIS 0411 版 SDK 的虚函数表里有这一项,
// 必须保持同样的声明顺序,否则软件和 libaris.dll 的 vtable 不一致)
virtual void onDataReceivedBanch(std::string serialNumber,const std::vector<float> &wavelength,
const std::vector<std::vector<float>>& spectrum) = 0;
// 回调函数,当发生错误时被调用
virtual void onError(std::string serialNumber,
const std::string& error) = 0;
};
#endif // SPECTROMETERCALLBACK_H
+130
View File
@@ -0,0 +1,130 @@
#include "spectrumalgorithm.h"
#include <cmath>
SpectrumAlgorithm::SpectrumAlgorithm()
{
}
vector<pair<double,double>> SpectrumAlgorithm::handleRawSpectrumList(
std::vector<map<int,vector<pair<double,double>>>> rawSpectrumList)
{
vector<pair<int,vector<SpectrumChannelData>>> ospecV = baseHandle(rawSpectrumList);
for(auto &oneOspecV : ospecV){
AlgorithmAnalysis::background(oneOspecV.second);
}
vector<SpectrumChannelData> cutSpec = AlgorithmAnalysis::cutRepeatSpecture(ospecV, 30);
// 提取处理后的光谱数据
std::vector<std::pair<double, double>> result;
for (const auto &data : cutSpec) {
result.push_back(std::make_pair(data.wavelength, data.intensity));
}
return result;
}
std::vector<std::tuple<std::string, double, double>> SpectrumAlgorithm::getElementQuantitytList(std::vector<map<int,vector<pair<double,double>>>> rawSpectrumList)
{
vector<pair<int,vector<SpectrumChannelData>>> ospecV = baseHandle(rawSpectrumList);
ElementAnalysis elementAnalysis;
vector<SpectrumElementQuantity> quantityList = elementAnalysis.analysisElementQuantity(ospecV);
// 转换 ElementQuantity 到 std::tuple<std::string, double, double>
std::vector<std::tuple<std::string, double, double>> result;
result.reserve(quantityList.size());
for (const auto& eq : quantityList) {
result.emplace_back(eq.name, eq.quantity, eq.percent);
}
return result;
}
vector<pair<int,vector<SpectrumChannelData>>> SpectrumAlgorithm::baseHandle(std::vector<map<int,vector<pair<double,double>>>> rawSpectrumList)
{
// 将pair转换为ChannelData
std::vector<std::map<int, std::vector<SpectrumChannelData>>> rawSpectrumListChannelData;
for (const auto& map : rawSpectrumList) {
std::map<int, std::vector<SpectrumChannelData>> channelDataMap;
for (const auto& pair : map) {
int key = pair.first;
const auto& vec = pair.second;
std::vector<SpectrumChannelData> channelDataVec;
for (const auto& p : vec) {
channelDataVec.push_back({p.first, p.second});
}
channelDataMap[key] = channelDataVec;
}
rawSpectrumListChannelData.push_back(channelDataMap);
}
std::map<int, std::vector<std::vector<SpectrumChannelData>>> deviceSpecMap;
vector<pair<int,vector<SpectrumChannelData>>> ospecV;
//获取通道数据
for(int i = 0 ; i < rawSpectrumListChannelData.size(); i++){
map<int,vector<SpectrumChannelData>> channelDataMap = rawSpectrumListChannelData[i];
for (auto it = channelDataMap.begin(); it != channelDataMap.end(); it++) {
// 获取当前元素的值(即 vector<SpectrumChannelData>)
int deviceNum = it->first;
std::vector<SpectrumChannelData> channelData = it->second;
// 动态地将 channelData 添加到对应设备编号的 SpecLst 列表中
deviceSpecMap[deviceNum].push_back(channelData);
}
}
for (auto oneDeviceSpec : deviceSpecMap) {
int firstDeviceNum = oneDeviceSpec.first;
std::vector<std::vector<SpectrumChannelData>> firstDeviceSpecLst = oneDeviceSpec.second;
//将各个通道的数据进行平均
vector<SpectrumChannelData> deviceSpec = AlgorithmAnalysis::average(firstDeviceSpecLst);
ospecV.push_back(std::make_pair(firstDeviceNum,deviceSpec)) ;
}
//将通道数据进行排序
sort(ospecV.begin(),ospecV.end(),AlgorithmAnalysis::cmp);
// 波长修正
// fixedWavelength(ospecV);
return ospecV;
}
// 波长修正
void SpectrumAlgorithm::fixedWavelength(vector<pair<int,vector<SpectrumChannelData>>> &ospecV)
{
for(int i = 0 ; i < ospecV.size(); i++)
{
vector<SpectrumChannelData>& wavelengthList = ospecV[i].second;
for(int j = 1 ; j <= wavelengthList.size(); j++)
{
if((i+1) == 1){
wavelengthList[j - 1].wavelength = 186.89977 + 0.06665 * j + 0.00000614515*pow(j,2)
- 0.000000006549699 * pow(j,3) + 0.00000000000145383 * pow(j,4);
}else if((i+1) == 2){
wavelengthList[j - 1].wavelength = 306.73573 + 0.06379 * j + 0.000000656853 * pow(j,2)
- 0.00000000450952 * pow(j,3) + 0.00000000000115411 * pow(j,4);
}else if((i+1) == 3){
wavelengthList[j - 1].wavelength = 410.52275 + 0.03973 * j + 0.0000109683 * pow(j,2)
- 0.0000000136351 * pow(j,3) + 0.00000000000510908 * pow(j,4);
}else if((i+1) == 4){
wavelengthList[j - 1].wavelength = 543.41183 + 0.0787 * j - 0.0000120952 * pow(j,2)
+ 0.00000000341057 * pow(j,3) - 0.000000000000380113 * pow(j,4);
}
}
}
}
+48
View File
@@ -0,0 +1,48 @@
#ifndef SPECTRUMALGORITHM_H
#define SPECTRUMALGORITHM_H
#include <vector>
#include "algorithmanalysis.h"
#include "elementanalysis.h"
using namespace std;
class SpectrumAlgorithm
{
public:
SpectrumAlgorithm();
/**
处理原始数据,包括平均,排序,去背景,裁剪
* @brief handleRawSpectrumList
* @param rawSpecturmList:多个map,键为光谱仪设备号,值为波长、强度的结构体
* @return
*/
vector<pair<double,double>> handleRawSpectrumList(
std::vector<map<int,vector<pair<double,double>>>> rawSpectrumList);
/**
jisuan
* @brief getElementQuantitytList
* @param rawSpectrumList
* @return
*/
std::vector<std::tuple<std::string, double, double>> getElementQuantitytList(std::vector<map<int,vector<pair<double,double>>>> rawSpectrumList);
private:
/**
处理原始数据,包括平均,排序
* @brief handleRawSpectrumList
* @param rawSpecturmList:多个map,键为光谱仪设备号,值为波长、强度的结构体
* @return
*/
vector<pair<int,vector<SpectrumChannelData>>> baseHandle(std::vector<map<int,vector<pair<double,double>>>> rawSpectrumList);
// 波长修正
void fixedWavelength(vector<pair<int,vector<SpectrumChannelData>>> &ospecV);
};
#endif // SPECTRUMALGORITHM_H
View File
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 843 KiB

@@ -0,0 +1,699 @@
{
"inputs" :
[
{
"path" : "CMakeLists.txt"
},
{
"isGenerated" : true,
"path" : "build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/.qtc/package-manager/auto-setup.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeDetermineSystem.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeSystem.cmake.in"
},
{
"isGenerated" : true,
"path" : "build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CMakeFiles/3.29.3/CMakeSystem.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeNinjaFindMake.cmake"
},
{
"isGenerated" : true,
"path" : "build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/.qtc/package-manager/maintenance_tool_provider.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeSystemSpecificInitialize.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Platform/Windows-Initialize.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeDetermineCXXCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeDetermineCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Platform/Windows-Determine-CXX.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeDetermineCompilerId.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeCompilerIdDetection.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/ADSP-DetermineCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/ARMCC-DetermineCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/ARMClang-DetermineCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/AppleClang-DetermineCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/Clang-DetermineCompilerInternal.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/Borland-DetermineCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/Clang-DetermineCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/Clang-DetermineCompilerInternal.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/Compaq-CXX-DetermineCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/Cray-DetermineCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/CrayClang-DetermineCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/Embarcadero-DetermineCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/Fujitsu-DetermineCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/FujitsuClang-DetermineCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/GHS-DetermineCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/GNU-CXX-DetermineCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/HP-CXX-DetermineCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/IAR-DetermineCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/IBMClang-CXX-DetermineCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/Intel-DetermineCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/IntelLLVM-DetermineCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/LCC-CXX-DetermineCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/MSVC-DetermineCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/NVHPC-DetermineCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/NVIDIA-DetermineCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/OpenWatcom-DetermineCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/OrangeC-DetermineCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/PGI-DetermineCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/PathScale-DetermineCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/SCO-DetermineCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/SunPro-CXX-DetermineCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/TI-DetermineCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/TIClang-DetermineCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/Tasking-DetermineCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/VisualAge-CXX-DetermineCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/IBMCPP-CXX-DetermineVersionInternal.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/Watcom-DetermineCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/XL-CXX-DetermineCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/IBMCPP-CXX-DetermineVersionInternal.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/XLClang-CXX-DetermineCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/zOS-CXX-DetermineCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/IBMCPP-CXX-DetermineVersionInternal.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeFindBinUtils.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/GNU-FindBinUtils.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeCXXCompiler.cmake.in"
},
{
"isGenerated" : true,
"path" : "build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CMakeFiles/3.29.3/CMakeCXXCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeSystemSpecificInformation.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeGenericSystem.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeInitializeConfigs.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Platform/Windows.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Platform/WindowsPaths.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeCXXInformation.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeLanguageInformation.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/GNU-CXX.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/GNU.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/CMakeCommonCompilerMacros.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Platform/Windows-GNU-CXX.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Platform/Windows-GNU.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeDetermineRCCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeRCCompiler.cmake.in"
},
{
"isGenerated" : true,
"path" : "build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CMakeFiles/3.29.3/CMakeRCCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeRCInformation.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Platform/Windows-windres.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeTestRCCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeCommonLanguageInclude.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeTestCXXCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeTestCompilerCommon.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeDetermineCompilerABI.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Internal/CMakeDetermineLinkerId.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeParseImplicitIncludeInfo.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeParseImplicitLinkInfo.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeParseLibraryArchitecture.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeTestCompilerCommon.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeCXXCompilerABI.cpp"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeDetermineCompileFeatures.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Internal/FeatureTesting.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeCXXCompiler.cmake.in"
},
{
"isGenerated" : true,
"path" : "build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CMakeFiles/3.29.3/CMakeCXXCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Platform/Windows-GNU-CXX-ABI.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Core/Qt5CoreConfigVersion.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Core/Qt5CoreConfig.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Core/Qt5CoreConfigExtrasMkspecDir.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeParseArguments.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Widgets/Qt5WidgetsConfigVersion.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5GuiConfigVersion.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QGifPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QICNSPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QICOPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QInsightTrackerPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QJpegPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QMinimalIntegrationPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QOffscreenIntegrationPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QSvgIconPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QSvgPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QTgaPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QTiffPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QTuioTouchPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QVirtualKeyboardPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QWbmpPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QWebGLIntegrationPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QWebpPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QWindowsDirect2DIntegrationPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QWindowsIntegrationPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QXdgDesktopPortalThemePlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Widgets/Qt5Widgets_QWindowsVistaStylePlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Widgets/Qt5WidgetsConfigExtras.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Widgets/Qt5WidgetsMacros.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeParseArguments.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5GuiConfigVersion.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5SerialPort/Qt5SerialPortConfigVersion.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5SerialPort/Qt5SerialPortConfig.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Sql/Qt5SqlConfigVersion.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Sql/Qt5SqlConfig.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Sql/Qt5Sql_QODBCDriverPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Sql/Qt5Sql_QPSQLDriverPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Sql/Qt5Sql_QSQLiteDriverPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5/Qt5ConfigVersion.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5/Qt5Config.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5/Qt5ModuleLocation.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Core/Qt5CoreConfigVersion.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Core/Qt5CoreConfig.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Widgets/Qt5WidgetsConfigVersion.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5GuiConfigVersion.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5SerialPort/Qt5SerialPortConfigVersion.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5SerialPort/Qt5SerialPortConfig.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Sql/Qt5SqlConfigVersion.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Sql/Qt5SqlConfig.cmake"
}
],
"kind" : "cmakeFiles",
"paths" :
{
"build" : "G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug",
"source" : "G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master"
},
"version" :
{
"major" : 1,
"minor" : 0
}
}
@@ -0,0 +1,78 @@
{
"configurations" :
[
{
"directories" :
[
{
"build" : ".",
"jsonFile" : "directory-.-Debug-d0094a50bb2071803777.json",
"minimumCMakeVersion" :
{
"string" : "3.16"
},
"projectIndex" : 0,
"source" : ".",
"targetIndexes" :
[
0,
1,
2
]
}
],
"name" : "Debug",
"projects" :
[
{
"directoryIndexes" :
[
0
],
"name" : "CavityLIBS",
"targetIndexes" :
[
0,
1,
2
]
}
],
"targets" :
[
{
"directoryIndex" : 0,
"id" : "CavityLIBS::@6890427a1f51a3e7e1df",
"jsonFile" : "target-CavityLIBS-Debug-107f53c2fa6ffbcc7ede.json",
"name" : "CavityLIBS",
"projectIndex" : 0
},
{
"directoryIndex" : 0,
"id" : "CavityLIBS_autogen::@6890427a1f51a3e7e1df",
"jsonFile" : "target-CavityLIBS_autogen-Debug-8c306268de9021a6a70a.json",
"name" : "CavityLIBS_autogen",
"projectIndex" : 0
},
{
"directoryIndex" : 0,
"id" : "CavityLIBS_autogen_timestamp_deps::@6890427a1f51a3e7e1df",
"jsonFile" : "target-CavityLIBS_autogen_timestamp_deps-Debug-2c7300e4c6f77d281178.json",
"name" : "CavityLIBS_autogen_timestamp_deps",
"projectIndex" : 0
}
]
}
],
"kind" : "codemodel",
"paths" :
{
"build" : "G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug",
"source" : "G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master"
},
"version" :
{
"major" : 2,
"minor" : 7
}
}
@@ -0,0 +1,14 @@
{
"backtraceGraph" :
{
"commands" : [],
"files" : [],
"nodes" : []
},
"installers" : [],
"paths" :
{
"build" : ".",
"source" : "."
}
}
@@ -0,0 +1,89 @@
{
"cmake" :
{
"generator" :
{
"multiConfig" : false,
"name" : "Ninja"
},
"paths" :
{
"cmake" : "G:/qt/Qt/Tools/CMake_64/bin/cmake.exe",
"cpack" : "G:/qt/Qt/Tools/CMake_64/bin/cpack.exe",
"ctest" : "G:/qt/Qt/Tools/CMake_64/bin/ctest.exe",
"root" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29"
},
"version" :
{
"isDirty" : false,
"major" : 3,
"minor" : 29,
"patch" : 3,
"string" : "3.29.3",
"suffix" : ""
}
},
"objects" :
[
{
"jsonFile" : "codemodel-v2-34b33b707425e95d2966.json",
"kind" : "codemodel",
"version" :
{
"major" : 2,
"minor" : 7
}
},
{
"jsonFile" : "cache-v2-502209ec0cb60768dc38.json",
"kind" : "cache",
"version" :
{
"major" : 2,
"minor" : 0
}
},
{
"jsonFile" : "cmakeFiles-v1-26f25087c0c34e7b5865.json",
"kind" : "cmakeFiles",
"version" :
{
"major" : 1,
"minor" : 0
}
}
],
"reply" :
{
"cache-v2" :
{
"jsonFile" : "cache-v2-502209ec0cb60768dc38.json",
"kind" : "cache",
"version" :
{
"major" : 2,
"minor" : 0
}
},
"cmakeFiles-v1" :
{
"jsonFile" : "cmakeFiles-v1-26f25087c0c34e7b5865.json",
"kind" : "cmakeFiles",
"version" :
{
"major" : 1,
"minor" : 0
}
},
"codemodel-v2" :
{
"jsonFile" : "codemodel-v2-34b33b707425e95d2966.json",
"kind" : "codemodel",
"version" :
{
"major" : 2,
"minor" : 7
}
}
}
}
@@ -0,0 +1,530 @@
{
"artifacts" :
[
{
"path" : "bin/CavityLIBS.exe"
},
{
"path" : "bin/CavityLIBS.pdb"
}
],
"backtrace" : 1,
"backtraceGraph" :
{
"commands" :
[
"add_executable",
"target_link_libraries",
"target_compile_definitions",
"target_include_directories"
],
"files" :
[
"CMakeLists.txt"
],
"nodes" :
[
{
"file" : 0
},
{
"command" : 0,
"file" : 0,
"line" : 312,
"parent" : 0
},
{
"command" : 1,
"file" : 0,
"line" : 355,
"parent" : 0
},
{
"command" : 1,
"file" : 0,
"line" : 375,
"parent" : 0
},
{
"command" : 2,
"file" : 0,
"line" : 353,
"parent" : 0
},
{
"command" : 3,
"file" : 0,
"line" : 346,
"parent" : 0
}
]
},
"compileGroups" :
[
{
"compileCommandFragments" :
[
{
"fragment" : "-DQT_QML_DEBUG -g -std=c++2a -fdiagnostics-color=always"
}
],
"defines" :
[
{
"backtrace" : 2,
"define" : "QT_CORE_LIB"
},
{
"backtrace" : 2,
"define" : "QT_GUI_LIB"
},
{
"backtrace" : 2,
"define" : "QT_SERIALPORT_LIB"
},
{
"backtrace" : 2,
"define" : "QT_SQL_LIB"
},
{
"backtrace" : 2,
"define" : "QT_WIDGETS_LIB"
},
{
"backtrace" : 4,
"define" : "QWT_DLL"
}
],
"includes" :
[
{
"path" : "G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug"
},
{
"path" : "G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master"
},
{
"backtrace" : 0,
"path" : "G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CavityLIBS_autogen/include"
},
{
"backtrace" : 5,
"path" : "G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/third_party/qwt-6.3.0-mingw64/include"
},
{
"backtrace" : 5,
"path" : "G:/qt/Qt/mylib/aris_0411/include"
},
{
"backtrace" : 5,
"path" : "G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/third_party/libusb-1.0/include"
},
{
"backtrace" : 2,
"isSystem" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/include"
},
{
"backtrace" : 2,
"isSystem" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/include/QtCore"
},
{
"backtrace" : 2,
"isSystem" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/./mkspecs/win32-g++"
},
{
"backtrace" : 2,
"isSystem" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/include/QtWidgets"
},
{
"backtrace" : 2,
"isSystem" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/include/QtGui"
},
{
"backtrace" : 2,
"isSystem" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/include/QtANGLE"
},
{
"backtrace" : 2,
"isSystem" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/include/QtSerialPort"
},
{
"backtrace" : 2,
"isSystem" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/include/QtSql"
}
],
"language" : "CXX",
"languageStandard" :
{
"backtraces" :
[
2
],
"standard" : "20"
},
"sourceIndexes" :
[
0,
1,
2,
5,
7,
9,
11,
13,
15,
17,
19,
21,
23,
27,
29
]
}
],
"dependencies" :
[
{
"id" : "CavityLIBS_autogen_timestamp_deps::@6890427a1f51a3e7e1df"
},
{
"backtrace" : 0,
"id" : "CavityLIBS_autogen::@6890427a1f51a3e7e1df"
}
],
"id" : "CavityLIBS::@6890427a1f51a3e7e1df",
"link" :
{
"commandFragments" :
[
{
"fragment" : "-DQT_QML_DEBUG -g",
"role" : "flags"
},
{
"fragment" : "",
"role" : "flags"
},
{
"backtrace" : 2,
"fragment" : "E:\\perfessional\\QT\\install\\5.15.2\\mingw81_64\\lib\\libQt5Widgets.a",
"role" : "libraries"
},
{
"backtrace" : 2,
"fragment" : "E:\\perfessional\\QT\\install\\5.15.2\\mingw81_64\\lib\\libQt5Gui.a",
"role" : "libraries"
},
{
"backtrace" : 2,
"fragment" : "E:\\perfessional\\QT\\install\\5.15.2\\mingw81_64\\lib\\libQt5SerialPort.a",
"role" : "libraries"
},
{
"backtrace" : 2,
"fragment" : "E:\\perfessional\\QT\\install\\5.15.2\\mingw81_64\\lib\\libQt5Sql.a",
"role" : "libraries"
},
{
"backtrace" : 2,
"fragment" : "G:\\Desktop\\cavity_LIBS_system-master\\cavity_LIBS_system-master\\third_party\\qwt-6.3.0-mingw64\\lib\\libqwt.a",
"role" : "libraries"
},
{
"backtrace" : 3,
"fragment" : "G:\\qt\\Qt\\mylib\\aris_0411\\lib\\libaris.dll.a",
"role" : "libraries"
},
{
"backtrace" : 2,
"fragment" : "E:\\perfessional\\QT\\install\\5.15.2\\mingw81_64\\lib\\libQt5Core.a",
"role" : "libraries"
},
{
"fragment" : "-lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32",
"role" : "libraries"
}
],
"language" : "CXX"
},
"name" : "CavityLIBS",
"nameOnDisk" : "CavityLIBS.exe",
"paths" :
{
"build" : ".",
"source" : "."
},
"sourceGroups" :
[
{
"name" : "Source Files",
"sourceIndexes" :
[
0,
1,
2,
5,
7,
9,
11,
13,
15,
17,
19,
21,
23,
27,
29
]
},
{
"name" : "Header Files",
"sourceIndexes" :
[
3,
6,
8,
10,
12,
14,
16,
18,
20,
22,
24,
25,
26,
28,
30,
31,
32
]
},
{
"name" : "Forms",
"sourceIndexes" :
[
4
]
},
{
"name" : "",
"sourceIndexes" :
[
33
]
},
{
"name" : "CMake Rules",
"sourceIndexes" :
[
34
]
}
],
"sources" :
[
{
"backtrace" : 0,
"compileGroupIndex" : 0,
"isGenerated" : true,
"path" : "build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CavityLIBS_autogen/mocs_compilation.cpp",
"sourceGroupIndex" : 0
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "main.cpp",
"sourceGroupIndex" : 0
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "mainwindow.cpp",
"sourceGroupIndex" : 0
},
{
"backtrace" : 1,
"path" : "mainwindow.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"path" : "mainwindow.ui",
"sourceGroupIndex" : 2
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "probe_tube.cpp",
"sourceGroupIndex" : 0
},
{
"backtrace" : 1,
"path" : "probe_tube.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "computer.cpp",
"sourceGroupIndex" : 0
},
{
"backtrace" : 1,
"path" : "computer.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "Spectrometer/devicemanager.cpp",
"sourceGroupIndex" : 0
},
{
"backtrace" : 1,
"path" : "Spectrometer/devicemanager.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "Spectrometer/algorithmanalysis.cpp",
"sourceGroupIndex" : 0
},
{
"backtrace" : 1,
"path" : "Spectrometer/algorithmanalysis.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "Spectrometer/elementanalysis.cpp",
"sourceGroupIndex" : 0
},
{
"backtrace" : 1,
"path" : "Spectrometer/elementanalysis.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "Spectrometer/specpeakservice.cpp",
"sourceGroupIndex" : 0
},
{
"backtrace" : 1,
"path" : "Spectrometer/specpeakservice.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "Spectrometer/spectrumalgorithm.cpp",
"sourceGroupIndex" : 0
},
{
"backtrace" : 1,
"path" : "Spectrometer/spectrumalgorithm.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "Spectrometer/spectrometer.cpp",
"sourceGroupIndex" : 0
},
{
"backtrace" : 1,
"path" : "Spectrometer/spectrometer.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "Public/util.cpp",
"sourceGroupIndex" : 0
},
{
"backtrace" : 1,
"path" : "Public/util.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "Public/crc16util.cpp",
"sourceGroupIndex" : 0
},
{
"backtrace" : 1,
"path" : "Public/crc16util.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"path" : "Public/type.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"path" : "Public/avaspec.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "Public/sqliteutil.cpp",
"sourceGroupIndex" : 0
},
{
"backtrace" : 1,
"path" : "Public/sqliteutil.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "PeakSearching/peakfinder.cpp",
"sourceGroupIndex" : 0
},
{
"backtrace" : 1,
"path" : "PeakSearching/peakfinder.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"path" : "Public/clickable_line_edit.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 0,
"isGenerated" : true,
"path" : "build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CavityLIBS_autogen/include/ui_mainwindow.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 0,
"isGenerated" : true,
"path" : "build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CavityLIBS_autogen/timestamp",
"sourceGroupIndex" : 3
},
{
"backtrace" : 0,
"isGenerated" : true,
"path" : "build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CavityLIBS_autogen/timestamp.rule",
"sourceGroupIndex" : 4
}
],
"type" : "EXECUTABLE"
}
@@ -0,0 +1,71 @@
{
"backtrace" : 0,
"backtraceGraph" :
{
"commands" : [],
"files" :
[
"CMakeLists.txt"
],
"nodes" :
[
{
"file" : 0
}
]
},
"dependencies" :
[
{
"id" : "CavityLIBS_autogen_timestamp_deps::@6890427a1f51a3e7e1df"
}
],
"id" : "CavityLIBS_autogen::@6890427a1f51a3e7e1df",
"isGeneratorProvided" : true,
"name" : "CavityLIBS_autogen",
"paths" :
{
"build" : ".",
"source" : "."
},
"sourceGroups" :
[
{
"name" : "",
"sourceIndexes" :
[
0
]
},
{
"name" : "CMake Rules",
"sourceIndexes" :
[
1,
2
]
}
],
"sources" :
[
{
"backtrace" : 0,
"isGenerated" : true,
"path" : "build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CMakeFiles/CavityLIBS_autogen",
"sourceGroupIndex" : 0
},
{
"backtrace" : 0,
"isGenerated" : true,
"path" : "build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CMakeFiles/CavityLIBS_autogen.rule",
"sourceGroupIndex" : 1
},
{
"backtrace" : 0,
"isGenerated" : true,
"path" : "build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CavityLIBS_autogen/timestamp.rule",
"sourceGroupIndex" : 1
}
],
"type" : "UTILITY"
}
@@ -0,0 +1,27 @@
{
"backtrace" : 0,
"backtraceGraph" :
{
"commands" : [],
"files" :
[
"CMakeLists.txt"
],
"nodes" :
[
{
"file" : 0
}
]
},
"id" : "CavityLIBS_autogen_timestamp_deps::@6890427a1f51a3e7e1df",
"isGeneratorProvided" : true,
"name" : "CavityLIBS_autogen_timestamp_deps",
"paths" :
{
"build" : ".",
"source" : "."
},
"sources" : [],
"type" : "UTILITY"
}
@@ -0,0 +1,355 @@
{
"inputs" :
[
{
"path" : "CMakeLists.txt"
},
{
"isGenerated" : true,
"path" : "build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/.qtc/package-manager/auto-setup.cmake"
},
{
"isGenerated" : true,
"path" : "build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CMakeFiles/3.29.3/CMakeSystem.cmake"
},
{
"isGenerated" : true,
"path" : "build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/.qtc/package-manager/maintenance_tool_provider.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeSystemSpecificInitialize.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Platform/Windows-Initialize.cmake"
},
{
"isGenerated" : true,
"path" : "build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CMakeFiles/3.29.3/CMakeCXXCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeSystemSpecificInformation.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeGenericSystem.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeInitializeConfigs.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Platform/Windows.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Platform/WindowsPaths.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeCXXInformation.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeLanguageInformation.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/GNU-CXX.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/GNU.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/CMakeCommonCompilerMacros.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Platform/Windows-GNU-CXX.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Platform/Windows-GNU.cmake"
},
{
"isGenerated" : true,
"path" : "build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CMakeFiles/3.29.3/CMakeRCCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeRCInformation.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Platform/Windows-windres.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Platform/Windows-GNU-CXX-ABI.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeCommonLanguageInclude.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Core/Qt5CoreConfigVersion.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Core/Qt5CoreConfig.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Core/Qt5CoreConfigExtrasMkspecDir.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeParseArguments.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Widgets/Qt5WidgetsConfigVersion.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5GuiConfigVersion.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QGifPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QICNSPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QICOPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QInsightTrackerPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QJpegPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QMinimalIntegrationPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QOffscreenIntegrationPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QSvgIconPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QSvgPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QTgaPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QTiffPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QTuioTouchPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QVirtualKeyboardPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QWbmpPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QWebGLIntegrationPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QWebpPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QWindowsDirect2DIntegrationPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QWindowsIntegrationPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QXdgDesktopPortalThemePlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Widgets/Qt5Widgets_QWindowsVistaStylePlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Widgets/Qt5WidgetsConfigExtras.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Widgets/Qt5WidgetsMacros.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeParseArguments.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5GuiConfigVersion.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5SerialPort/Qt5SerialPortConfigVersion.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5SerialPort/Qt5SerialPortConfig.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Sql/Qt5SqlConfigVersion.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Sql/Qt5SqlConfig.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Sql/Qt5Sql_QODBCDriverPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Sql/Qt5Sql_QPSQLDriverPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Sql/Qt5Sql_QSQLiteDriverPlugin.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5/Qt5ConfigVersion.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5/Qt5Config.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5/Qt5ModuleLocation.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Core/Qt5CoreConfigVersion.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Core/Qt5CoreConfig.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Widgets/Qt5WidgetsConfigVersion.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5GuiConfigVersion.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5SerialPort/Qt5SerialPortConfigVersion.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5SerialPort/Qt5SerialPortConfig.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Sql/Qt5SqlConfigVersion.cmake"
},
{
"isExternal" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Sql/Qt5SqlConfig.cmake"
}
],
"kind" : "cmakeFiles",
"paths" :
{
"build" : "G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug",
"source" : "G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master"
},
"version" :
{
"major" : 1,
"minor" : 0
}
}
@@ -0,0 +1,78 @@
{
"configurations" :
[
{
"directories" :
[
{
"build" : ".",
"jsonFile" : "directory-.-Debug-d0094a50bb2071803777.json",
"minimumCMakeVersion" :
{
"string" : "3.16"
},
"projectIndex" : 0,
"source" : ".",
"targetIndexes" :
[
0,
1,
2
]
}
],
"name" : "Debug",
"projects" :
[
{
"directoryIndexes" :
[
0
],
"name" : "CavityLIBS",
"targetIndexes" :
[
0,
1,
2
]
}
],
"targets" :
[
{
"directoryIndex" : 0,
"id" : "CavityLIBS::@6890427a1f51a3e7e1df",
"jsonFile" : "target-CavityLIBS-Debug-9faa145ea1a21e10d83f.json",
"name" : "CavityLIBS",
"projectIndex" : 0
},
{
"directoryIndex" : 0,
"id" : "CavityLIBS_autogen::@6890427a1f51a3e7e1df",
"jsonFile" : "target-CavityLIBS_autogen-Debug-8c306268de9021a6a70a.json",
"name" : "CavityLIBS_autogen",
"projectIndex" : 0
},
{
"directoryIndex" : 0,
"id" : "CavityLIBS_autogen_timestamp_deps::@6890427a1f51a3e7e1df",
"jsonFile" : "target-CavityLIBS_autogen_timestamp_deps-Debug-2c7300e4c6f77d281178.json",
"name" : "CavityLIBS_autogen_timestamp_deps",
"projectIndex" : 0
}
]
}
],
"kind" : "codemodel",
"paths" :
{
"build" : "G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug",
"source" : "G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master"
},
"version" :
{
"major" : 2,
"minor" : 7
}
}
@@ -0,0 +1,14 @@
{
"backtraceGraph" :
{
"commands" : [],
"files" : [],
"nodes" : []
},
"installers" : [],
"paths" :
{
"build" : ".",
"source" : "."
}
}
@@ -0,0 +1,89 @@
{
"cmake" :
{
"generator" :
{
"multiConfig" : false,
"name" : "Ninja"
},
"paths" :
{
"cmake" : "G:/qt/Qt/Tools/CMake_64/bin/cmake.exe",
"cpack" : "G:/qt/Qt/Tools/CMake_64/bin/cpack.exe",
"ctest" : "G:/qt/Qt/Tools/CMake_64/bin/ctest.exe",
"root" : "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29"
},
"version" :
{
"isDirty" : false,
"major" : 3,
"minor" : 29,
"patch" : 3,
"string" : "3.29.3",
"suffix" : ""
}
},
"objects" :
[
{
"jsonFile" : "codemodel-v2-0f9c629ad3d211fe1b86.json",
"kind" : "codemodel",
"version" :
{
"major" : 2,
"minor" : 7
}
},
{
"jsonFile" : "cache-v2-502209ec0cb60768dc38.json",
"kind" : "cache",
"version" :
{
"major" : 2,
"minor" : 0
}
},
{
"jsonFile" : "cmakeFiles-v1-fecc529af4b2366fd0f7.json",
"kind" : "cmakeFiles",
"version" :
{
"major" : 1,
"minor" : 0
}
}
],
"reply" :
{
"cache-v2" :
{
"jsonFile" : "cache-v2-502209ec0cb60768dc38.json",
"kind" : "cache",
"version" :
{
"major" : 2,
"minor" : 0
}
},
"cmakeFiles-v1" :
{
"jsonFile" : "cmakeFiles-v1-fecc529af4b2366fd0f7.json",
"kind" : "cmakeFiles",
"version" :
{
"major" : 1,
"minor" : 0
}
},
"codemodel-v2" :
{
"jsonFile" : "codemodel-v2-0f9c629ad3d211fe1b86.json",
"kind" : "codemodel",
"version" :
{
"major" : 2,
"minor" : 7
}
}
}
}
@@ -0,0 +1,573 @@
{
"artifacts" :
[
{
"path" : "bin/CavityLIBS.exe"
},
{
"path" : "bin/CavityLIBS.pdb"
}
],
"backtrace" : 1,
"backtraceGraph" :
{
"commands" :
[
"add_executable",
"target_link_libraries",
"set_property",
"include",
"find_package",
"target_compile_definitions",
"target_include_directories"
],
"files" :
[
"CMakeLists.txt",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Core/Qt5CoreConfig.cmake",
"build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/.qtc/package-manager/maintenance_tool_provider.cmake"
],
"nodes" :
[
{
"file" : 0
},
{
"command" : 0,
"file" : 0,
"line" : 312,
"parent" : 0
},
{
"command" : 1,
"file" : 0,
"line" : 360,
"parent" : 0
},
{
"command" : 1,
"file" : 0,
"line" : 380,
"parent" : 0
},
{
"command" : 4,
"file" : 0,
"line" : 85,
"parent" : 0
},
{
"command" : 4,
"file" : 3,
"line" : 315,
"parent" : 4
},
{
"file" : 2,
"parent" : 5
},
{
"command" : 3,
"file" : 2,
"line" : 244,
"parent" : 6
},
{
"file" : 1,
"parent" : 7
},
{
"command" : 2,
"file" : 1,
"line" : 106,
"parent" : 8
},
{
"command" : 5,
"file" : 0,
"line" : 358,
"parent" : 0
},
{
"command" : 6,
"file" : 0,
"line" : 346,
"parent" : 0
}
]
},
"compileGroups" :
[
{
"compileCommandFragments" :
[
{
"fragment" : "-DQT_QML_DEBUG -g -std=c++2a -fdiagnostics-color=always"
}
],
"defines" :
[
{
"backtrace" : 2,
"define" : "QT_CORE_LIB"
},
{
"backtrace" : 2,
"define" : "QT_GUI_LIB"
},
{
"backtrace" : 2,
"define" : "QT_SERIALPORT_LIB"
},
{
"backtrace" : 2,
"define" : "QT_SQL_LIB"
},
{
"backtrace" : 2,
"define" : "QT_WIDGETS_LIB"
},
{
"backtrace" : 10,
"define" : "QWT_DLL"
}
],
"includes" :
[
{
"path" : "G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug"
},
{
"path" : "G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master"
},
{
"backtrace" : 0,
"path" : "G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CavityLIBS_autogen/include"
},
{
"backtrace" : 11,
"path" : "G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/third_party/qwt-6.3.0-mingw64/include"
},
{
"backtrace" : 11,
"path" : "G:/qt/Qt/mylib/aris_0411/include"
},
{
"backtrace" : 11,
"path" : "G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/third_party/libusb-1.0/include"
},
{
"backtrace" : 2,
"isSystem" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/include"
},
{
"backtrace" : 2,
"isSystem" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/include/QtCore"
},
{
"backtrace" : 2,
"isSystem" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/./mkspecs/win32-g++"
},
{
"backtrace" : 2,
"isSystem" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/include/QtWidgets"
},
{
"backtrace" : 2,
"isSystem" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/include/QtGui"
},
{
"backtrace" : 2,
"isSystem" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/include/QtANGLE"
},
{
"backtrace" : 2,
"isSystem" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/include/QtSerialPort"
},
{
"backtrace" : 2,
"isSystem" : true,
"path" : "E:/perfessional/QT/install/5.15.2/mingw81_64/include/QtSql"
}
],
"language" : "CXX",
"languageStandard" :
{
"backtraces" :
[
2
],
"standard" : "20"
},
"sourceIndexes" :
[
0,
1,
2,
5,
7,
9,
11,
13,
15,
17,
19,
21,
23,
27,
29
]
}
],
"dependencies" :
[
{
"id" : "CavityLIBS_autogen_timestamp_deps::@6890427a1f51a3e7e1df"
},
{
"backtrace" : 0,
"id" : "CavityLIBS_autogen::@6890427a1f51a3e7e1df"
}
],
"id" : "CavityLIBS::@6890427a1f51a3e7e1df",
"link" :
{
"commandFragments" :
[
{
"fragment" : "-DQT_QML_DEBUG -g",
"role" : "flags"
},
{
"fragment" : "-mwindows",
"role" : "flags"
},
{
"backtrace" : 2,
"fragment" : "E:\\perfessional\\QT\\install\\5.15.2\\mingw81_64\\lib\\libQt5Widgets.a",
"role" : "libraries"
},
{
"backtrace" : 2,
"fragment" : "E:\\perfessional\\QT\\install\\5.15.2\\mingw81_64\\lib\\libQt5Gui.a",
"role" : "libraries"
},
{
"backtrace" : 2,
"fragment" : "E:\\perfessional\\QT\\install\\5.15.2\\mingw81_64\\lib\\libQt5SerialPort.a",
"role" : "libraries"
},
{
"backtrace" : 2,
"fragment" : "E:\\perfessional\\QT\\install\\5.15.2\\mingw81_64\\lib\\libQt5Sql.a",
"role" : "libraries"
},
{
"backtrace" : 2,
"fragment" : "G:\\Desktop\\cavity_LIBS_system-master\\cavity_LIBS_system-master\\third_party\\qwt-6.3.0-mingw64\\lib\\libqwt.a",
"role" : "libraries"
},
{
"backtrace" : 3,
"fragment" : "G:\\qt\\Qt\\mylib\\aris_0411\\lib\\libaris.dll.a",
"role" : "libraries"
},
{
"backtrace" : 2,
"fragment" : "E:\\perfessional\\QT\\install\\5.15.2\\mingw81_64\\lib\\libQt5Core.a",
"role" : "libraries"
},
{
"backtrace" : 9,
"fragment" : "E:\\perfessional\\QT\\install\\5.15.2\\mingw81_64\\lib\\libqtmain.a",
"role" : "libraries"
},
{
"fragment" : "-lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32",
"role" : "libraries"
}
],
"language" : "CXX"
},
"name" : "CavityLIBS",
"nameOnDisk" : "CavityLIBS.exe",
"paths" :
{
"build" : ".",
"source" : "."
},
"sourceGroups" :
[
{
"name" : "Source Files",
"sourceIndexes" :
[
0,
1,
2,
5,
7,
9,
11,
13,
15,
17,
19,
21,
23,
27,
29
]
},
{
"name" : "Header Files",
"sourceIndexes" :
[
3,
6,
8,
10,
12,
14,
16,
18,
20,
22,
24,
25,
26,
28,
30,
31,
32
]
},
{
"name" : "Forms",
"sourceIndexes" :
[
4
]
},
{
"name" : "",
"sourceIndexes" :
[
33
]
},
{
"name" : "CMake Rules",
"sourceIndexes" :
[
34
]
}
],
"sources" :
[
{
"backtrace" : 0,
"compileGroupIndex" : 0,
"isGenerated" : true,
"path" : "build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CavityLIBS_autogen/mocs_compilation.cpp",
"sourceGroupIndex" : 0
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "main.cpp",
"sourceGroupIndex" : 0
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "mainwindow.cpp",
"sourceGroupIndex" : 0
},
{
"backtrace" : 1,
"path" : "mainwindow.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"path" : "mainwindow.ui",
"sourceGroupIndex" : 2
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "probe_tube.cpp",
"sourceGroupIndex" : 0
},
{
"backtrace" : 1,
"path" : "probe_tube.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "computer.cpp",
"sourceGroupIndex" : 0
},
{
"backtrace" : 1,
"path" : "computer.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "Spectrometer/devicemanager.cpp",
"sourceGroupIndex" : 0
},
{
"backtrace" : 1,
"path" : "Spectrometer/devicemanager.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "Spectrometer/algorithmanalysis.cpp",
"sourceGroupIndex" : 0
},
{
"backtrace" : 1,
"path" : "Spectrometer/algorithmanalysis.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "Spectrometer/elementanalysis.cpp",
"sourceGroupIndex" : 0
},
{
"backtrace" : 1,
"path" : "Spectrometer/elementanalysis.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "Spectrometer/specpeakservice.cpp",
"sourceGroupIndex" : 0
},
{
"backtrace" : 1,
"path" : "Spectrometer/specpeakservice.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "Spectrometer/spectrumalgorithm.cpp",
"sourceGroupIndex" : 0
},
{
"backtrace" : 1,
"path" : "Spectrometer/spectrumalgorithm.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "Spectrometer/spectrometer.cpp",
"sourceGroupIndex" : 0
},
{
"backtrace" : 1,
"path" : "Spectrometer/spectrometer.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "Public/util.cpp",
"sourceGroupIndex" : 0
},
{
"backtrace" : 1,
"path" : "Public/util.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "Public/crc16util.cpp",
"sourceGroupIndex" : 0
},
{
"backtrace" : 1,
"path" : "Public/crc16util.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"path" : "Public/type.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"path" : "Public/avaspec.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "Public/sqliteutil.cpp",
"sourceGroupIndex" : 0
},
{
"backtrace" : 1,
"path" : "Public/sqliteutil.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "PeakSearching/peakfinder.cpp",
"sourceGroupIndex" : 0
},
{
"backtrace" : 1,
"path" : "PeakSearching/peakfinder.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"path" : "Public/clickable_line_edit.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 0,
"isGenerated" : true,
"path" : "build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CavityLIBS_autogen/include/ui_mainwindow.h",
"sourceGroupIndex" : 1
},
{
"backtrace" : 0,
"isGenerated" : true,
"path" : "build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CavityLIBS_autogen/timestamp",
"sourceGroupIndex" : 3
},
{
"backtrace" : 0,
"isGenerated" : true,
"path" : "build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CavityLIBS_autogen/timestamp.rule",
"sourceGroupIndex" : 4
}
],
"type" : "EXECUTABLE"
}
@@ -0,0 +1,71 @@
{
"backtrace" : 0,
"backtraceGraph" :
{
"commands" : [],
"files" :
[
"CMakeLists.txt"
],
"nodes" :
[
{
"file" : 0
}
]
},
"dependencies" :
[
{
"id" : "CavityLIBS_autogen_timestamp_deps::@6890427a1f51a3e7e1df"
}
],
"id" : "CavityLIBS_autogen::@6890427a1f51a3e7e1df",
"isGeneratorProvided" : true,
"name" : "CavityLIBS_autogen",
"paths" :
{
"build" : ".",
"source" : "."
},
"sourceGroups" :
[
{
"name" : "",
"sourceIndexes" :
[
0
]
},
{
"name" : "CMake Rules",
"sourceIndexes" :
[
1,
2
]
}
],
"sources" :
[
{
"backtrace" : 0,
"isGenerated" : true,
"path" : "build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CMakeFiles/CavityLIBS_autogen",
"sourceGroupIndex" : 0
},
{
"backtrace" : 0,
"isGenerated" : true,
"path" : "build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CMakeFiles/CavityLIBS_autogen.rule",
"sourceGroupIndex" : 1
},
{
"backtrace" : 0,
"isGenerated" : true,
"path" : "build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CavityLIBS_autogen/timestamp.rule",
"sourceGroupIndex" : 1
}
],
"type" : "UTILITY"
}
@@ -0,0 +1,27 @@
{
"backtrace" : 0,
"backtraceGraph" :
{
"commands" : [],
"files" :
[
"CMakeLists.txt"
],
"nodes" :
[
{
"file" : 0
}
]
},
"id" : "CavityLIBS_autogen_timestamp_deps::@6890427a1f51a3e7e1df",
"isGeneratorProvided" : true,
"name" : "CavityLIBS_autogen_timestamp_deps",
"paths" :
{
"build" : ".",
"source" : "."
},
"sources" : [],
"type" : "UTILITY"
}
@@ -0,0 +1,29 @@
# ninja log v6
465 2723 8153956521088819 CMakeFiles/CavityLIBS.dir/probe_tube.cpp.obj c9fec9df865234e4
482 2916 8153956521252511 CMakeFiles/CavityLIBS.dir/Public/sqliteutil.cpp.obj f219898719dcfa0
480 1470 8153956521237328 CMakeFiles/CavityLIBS.dir/Public/crc16util.cpp.obj a2db689ffb8d5d6f
136 3552 8153972044938839 CMakeFiles/CavityLIBS.dir/mainwindow.cpp.obj 4adf4909e114a68d
8 112 8153972043665694 CavityLIBS_autogen/timestamp 4e304f8c41387b4f
467 5023 8153956521112289 CMakeFiles/CavityLIBS.dir/Spectrometer/devicemanager.cpp.obj 533776a783e5ffb4
8 112 8153972043665694 CavityLIBS_autogen/mocs_compilation.cpp 4e304f8c41387b4f
8 112 8153972043665694 G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CavityLIBS_autogen/timestamp 4e304f8c41387b4f
8 112 8153972043665694 G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CavityLIBS_autogen/mocs_compilation.cpp 4e304f8c41387b4f
476 1058 8153956521202234 CMakeFiles/CavityLIBS.dir/Spectrometer/spectrometer.cpp.obj b24ed1d943462c0
466 2913 8153956521098829 CMakeFiles/CavityLIBS.dir/computer.cpp.obj a437ad14e67f5e94
135 2559 8153972044928817 CMakeFiles/CavityLIBS.dir/main.cpp.obj 728eeb10e1451ffc
469 3260 8153956521132052 CMakeFiles/CavityLIBS.dir/Spectrometer/algorithmanalysis.cpp.obj d71bbc8c2179988b
474 3366 8153956521182422 CMakeFiles/CavityLIBS.dir/Spectrometer/spectrumalgorithm.cpp.obj 8c8d28920ac5a2d
478 3594 8153956521217459 CMakeFiles/CavityLIBS.dir/Public/util.cpp.obj 25fa02848ef08f3d
1059 3773 8153956527031398 CMakeFiles/CavityLIBS.dir/PeakSearching/peakfinder.cpp.obj 72190c09e0135bd0
471 3987 8153956521147301 CMakeFiles/CavityLIBS.dir/Spectrometer/elementanalysis.cpp.obj 63438c9bab59cc80
472 4012 8153956521167156 CMakeFiles/CavityLIBS.dir/Spectrometer/specpeakservice.cpp.obj 164b3b1f395c2464
461 4243 8153956521053745 CMakeFiles/CavityLIBS.dir/CavityLIBS_autogen/mocs_compilation.cpp.obj 533e767cdfba7edf
3577 7083 8153972079351086 bin/CavityLIBS.exe cbbaceabe3b08547
2 536 8153982843560760 build.ninja d269b4bc1b7ccd7d
9 202 8153982844326299 CavityLIBS_autogen/timestamp 4e304f8c41387b4f
9 202 8153982844326299 CavityLIBS_autogen/mocs_compilation.cpp 4e304f8c41387b4f
9 202 8153982844326299 G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CavityLIBS_autogen/timestamp 4e304f8c41387b4f
9 202 8153982844326299 G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CavityLIBS_autogen/mocs_compilation.cpp 4e304f8c41387b4f
223 3849 8153982846458456 CMakeFiles/CavityLIBS.dir/main.cpp.obj 728eeb10e1451ffc
225 5132 8153982846483537 CMakeFiles/CavityLIBS.dir/mainwindow.cpp.obj 4adf4909e114a68d
5165 8967 8153982895879653 bin/CavityLIBS.exe b03d22477fb1936c
@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2019 JFrog
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@@ -0,0 +1,413 @@
#
# Internal Qt Creator variable reference
#
foreach(qtcreator_var
QT_QMAKE_EXECUTABLE CMAKE_PREFIX_PATH CMAKE_C_COMPILER CMAKE_CXX_COMPILER
CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELWITHDEBINFO)
set(__just_reference_${qtcreator_var} ${${qtcreator_var}})
endforeach()
option(QT_CREATOR_SOURCE_GROUPS "Qt Creator source groups extensions" ON)
if (QT_CREATOR_SOURCE_GROUPS)
source_group("Resources" REGULAR_EXPRESSION "\\.(pdf|plist|png|jpeg|jpg|storyboard|xcassets|qrc|svg|gif|ico|webp)$")
source_group("Forms" REGULAR_EXPRESSION "\\.(ui)$")
source_group("State charts" REGULAR_EXPRESSION "\\.(scxml)$")
source_group("Source Files" REGULAR_EXPRESSION
"\\.(C|F|M|c|c\\+\\+|cc|cpp|mpp|cxx|ixx|cppm|ccm|cxxm|c\\+\\+m|cu|f|f90|for|fpp|ftn|m|mm|rc|def|r|odl|idl|hpj|bat|qml|js)$"
)
endif()
#
# Set a better default value for CMAKE_INSTALL_PREFIX
#
function(qtc_modify_default_install_prefix)
# If at configure time the user didn't specify a CMAKE_INSTALL_PREFIX variable
# Modules/CMakeGenericSystem.cmake will set a default value
# to CMAKE_INSTALL_PREFIX and set CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT to ON
# In practice there are cases when CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT is
# set to ON and a custom CMAKE_INSTALL_PREFIX is set
# Do the original CMAKE_INSTALL_PREFIX detection
if(CMAKE_HOST_UNIX)
set(original_cmake_install_prefix "/usr/local")
else()
GetDefaultWindowsPrefixBase(CMAKE_GENERIC_PROGRAM_FILES)
set(original_cmake_install_prefix
"${CMAKE_GENERIC_PROGRAM_FILES}/${PROJECT_NAME}")
unset(CMAKE_GENERIC_PROGRAM_FILES)
endif()
# When the user code didn't modify the CMake set CMAKE_INSTALL_PREFIX
# then set the "/tmp" better value for CMAKE_INSTALL_PREFIX
if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT AND
CMAKE_INSTALL_PREFIX STREQUAL "${original_cmake_install_prefix}")
set_property(CACHE CMAKE_INSTALL_PREFIX PROPERTY VALUE "/tmp")
endif()
endfunction()
if (CMAKE_VERSION GREATER_EQUAL "3.19")
cmake_language(DEFER CALL qtc_modify_default_install_prefix)
endif()
if (EXISTS "${CMAKE_SOURCE_DIR}/QtCreatorPackageManager.cmake")
include("${CMAKE_SOURCE_DIR}/QtCreatorPackageManager.cmake")
endif()
if (QT_CREATOR_SKIP_PACKAGE_MANAGER_SETUP)
return()
endif()
option(QT_CREATOR_SKIP_PACKAGE_MANAGER_SETUP "Skip Qt Creator's package manager auto-setup" OFF)
# Store the C/C++ object output extension
if (CMAKE_VERSION GREATER_EQUAL "3.19")
cmake_language(DEFER CALL set CMAKE_C_OUTPUT_EXTENSION "${CMAKE_C_OUTPUT_EXTENSION}" CACHE STRING "" FORCE)
cmake_language(DEFER CALL set CMAKE_CXX_OUTPUT_EXTENSION "${CMAKE_CXX_OUTPUT_EXTENSION}" CACHE STRING "" FORCE)
endif()
macro(qtc_auto_setup_compiler_standard toolchainFile)
foreach(lang_var C CXX CUDA OBJC OBJCXX)
foreach(prop_var STANDARD STANDARD_REQUIRED EXTENSIONS)
if (CMAKE_${lang_var}_${prop_var})
file(APPEND "${toolchainFile}"
"set(CMAKE_${lang_var}_${prop_var} ${CMAKE_${lang_var}_${prop_var}})\n")
endif()
endforeach()
endforeach()
# Forward important CMake variables to the package manager in the toolchain file
foreach(fwd_var CMAKE_MSVC_RUNTIME_LIBRARY CMAKE_SYSROOT
CMAKE_OSX_SYSROOT CMAKE_OSX_ARCHITECTURES
ANDROID_ABI ANDROID_NDK)
if (${fwd_var})
file(APPEND "${toolchainFile}"
"set(${fwd_var} \"${${fwd_var}}\")\n")
endif()
endforeach()
endmacro()
#
# conan
#
macro(qtc_auto_setup_conan)
foreach(file conanfile.txt conanfile.py)
if (EXISTS "${CMAKE_SOURCE_DIR}/${file}")
set(conanfile_txt "${CMAKE_SOURCE_DIR}/${file}")
break()
endif()
endforeach()
if (conanfile_txt AND NOT QT_CREATOR_SKIP_CONAN_SETUP)
option(QT_CREATOR_SKIP_CONAN_SETUP "Skip Qt Creator's conan package manager auto-setup" OFF)
set(QT_CREATOR_CONAN_BUILD_POLICY "missing" CACHE STRING "Qt Creator's conan package manager auto-setup build policy. This is used for the BUILD property of cmake_conan_run")
set_property(
DIRECTORY "${CMAKE_SOURCE_DIR}"
APPEND
PROPERTY CMAKE_CONFIGURE_DEPENDS "${conanfile_txt}")
find_program(conan_program conan)
if (NOT conan_program)
message(WARNING "Qt Creator: conan executable not found. "
"Package manager auto-setup will be skipped. "
"To disable this warning set QT_CREATOR_SKIP_CONAN_SETUP to ON.")
return()
endif()
execute_process(COMMAND ${conan_program} --version
RESULT_VARIABLE result_code
OUTPUT_VARIABLE conan_version_output
ERROR_VARIABLE conan_version_output)
if (NOT result_code EQUAL 0)
message(FATAL_ERROR "conan --version failed='${result_code}: ${conan_version_output}")
endif()
string(REGEX REPLACE ".*Conan version ([0-9].[0-9]).*" "\\1" conan_version "${conan_version_output}")
set(conanfile_timestamp_file "${CMAKE_BINARY_DIR}/conan-dependencies/conanfile.timestamp")
file(TIMESTAMP "${conanfile_txt}" conanfile_timestamp)
set(do_conan_installation ON)
if (EXISTS "${conanfile_timestamp_file}")
file(READ "${conanfile_timestamp_file}" old_conanfile_timestamp)
if ("${conanfile_timestamp}" STREQUAL "${old_conanfile_timestamp}")
set(do_conan_installation OFF)
endif()
endif()
set(conanfile_build_policy_file "${CMAKE_BINARY_DIR}/conan-dependencies/conanfile.buildpolicy")
if (EXISTS "${conanfile_build_policy_file}")
file(READ "${conanfile_build_policy_file}" build_policy)
if (NOT "${build_policy}" STREQUAL "${QT_CREATOR_CONAN_BUILD_POLICY}")
set(do_conan_installation ON)
endif()
endif()
if (do_conan_installation)
message(STATUS "Qt Creator: conan package manager auto-setup. "
"Skip this step by setting QT_CREATOR_SKIP_CONAN_SETUP to ON.")
file(COPY "${conanfile_txt}" DESTINATION "${CMAKE_BINARY_DIR}/conan-dependencies/")
# conanfile should have a generator specified, when both file and conan_install
# specifcy the CMakeDeps generator, conan_install will issue an error
file(READ "${conanfile_txt}" conanfile_text_content)
unset(conan_generator)
if (NOT "${conanfile_text_content}" MATCHES ".*CMakeDeps.*")
set(conan_generator "-g CMakeDeps")
endif()
file(WRITE "${CMAKE_BINARY_DIR}/conan-dependencies/toolchain.cmake" "
set(CMAKE_C_COMPILER \"${CMAKE_C_COMPILER}\")
set(CMAKE_CXX_COMPILER \"${CMAKE_CXX_COMPILER}\")
")
qtc_auto_setup_compiler_standard("${CMAKE_BINARY_DIR}/conan-dependencies/toolchain.cmake")
if (CMAKE_TOOLCHAIN_FILE)
file(APPEND "${CMAKE_BINARY_DIR}/conan-dependencies/toolchain.cmake"
"include(\"${CMAKE_TOOLCHAIN_FILE}\")\n")
endif()
file(WRITE "${CMAKE_BINARY_DIR}/conan-dependencies/CMakeLists.txt" "
cmake_minimum_required(VERSION 3.15)
unset(CMAKE_PROJECT_INCLUDE_BEFORE CACHE)
project(conan-setup)
if (${conan_version} VERSION_GREATER_EQUAL 2.0)
set(CONAN_COMMAND \"${conan_program}\")
include(\"${CMAKE_CURRENT_LIST_DIR}/conan_provider.cmake\")
conan_profile_detect_default()
detect_host_profile(\"${CMAKE_BINARY_DIR}/conan-dependencies/conan_host_profile\")
set(build_types \${CMAKE_BUILD_TYPE})
if (CMAKE_CONFIGURATION_TYPES)
set(build_types \${CMAKE_CONFIGURATION_TYPES})
endif()
foreach(type \${build_types})
conan_install(
-pr \"${CMAKE_BINARY_DIR}/conan-dependencies/conan_host_profile\"
--build=${QT_CREATOR_CONAN_BUILD_POLICY}
-s build_type=\${type}
${conan_generator})
endforeach()
get_property(CONAN_INSTALL_SUCCESS GLOBAL PROPERTY CONAN_INSTALL_SUCCESS)
if (CONAN_INSTALL_SUCCESS)
get_property(CONAN_GENERATORS_FOLDER GLOBAL PROPERTY CONAN_GENERATORS_FOLDER)
file(TO_CMAKE_PATH \"\${CONAN_GENERATORS_FOLDER}\" CONAN_GENERATORS_FOLDER)
file(WRITE \"${CMAKE_BINARY_DIR}/conan-dependencies/conan_paths.cmake\" \"
list(PREPEND CMAKE_PREFIX_PATH \\\"\${CONAN_GENERATORS_FOLDER}\\\")
list(PREPEND CMAKE_MODULE_PATH \\\"\${CONAN_GENERATORS_FOLDER}\\\")
list(PREPEND CMAKE_FIND_ROOT_PATH \\\"\${CONAN_GENERATORS_FOLDER}\\\")
list(REMOVE_DUPLICATES CMAKE_PREFIX_PATH)
list(REMOVE_DUPLICATES CMAKE_MODULE_PATH)
list(REMOVE_DUPLICATES CMAKE_FIND_ROOT_PATH)
set(CMAKE_PREFIX_PATH \\\"\\\${CMAKE_PREFIX_PATH}\\\" CACHE STRING \\\"\\\" FORCE)
set(CMAKE_MODULE_PATH \\\"\\\${CMAKE_MODULE_PATH}\\\" CACHE STRING \\\"\\\" FORCE)
set(CMAKE_FIND_ROOT_PATH \\\"\\\${CMAKE_FIND_ROOT_PATH}\\\" CACHE STRING \\\"\\\" FORCE)
\")
endif()
else()
include(\"${CMAKE_CURRENT_LIST_DIR}/conan.cmake\")
conan_cmake_run(
CONANFILE \"${conanfile_txt}\"
INSTALL_FOLDER \"${CMAKE_BINARY_DIR}/conan-dependencies\"
GENERATORS cmake_paths cmake_find_package json
BUILD ${QT_CREATOR_CONAN_BUILD_POLICY}
ENV CONAN_CMAKE_TOOLCHAIN_FILE=\"${CMAKE_BINARY_DIR}/conan-dependencies/toolchain.cmake\"
)
endif()
")
if (NOT DEFINED CMAKE_BUILD_TYPE AND NOT DEFINED CMAKE_CONFIGURATION_TYPES)
set(CMAKE_CONFIGURATION_TYPES "Debug;Release")
endif()
execute_process(COMMAND ${CMAKE_COMMAND}
-S "${CMAKE_BINARY_DIR}/conan-dependencies/"
-B "${CMAKE_BINARY_DIR}/conan-dependencies/build"
-C "${CMAKE_BINARY_DIR}/qtcsettings.cmake"
-D "CMAKE_TOOLCHAIN_FILE=${CMAKE_BINARY_DIR}/conan-dependencies/toolchain.cmake"
-G ${CMAKE_GENERATOR}
-D CMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
-D "CMAKE_CONFIGURATION_TYPES=${CMAKE_CONFIGURATION_TYPES}"
RESULT_VARIABLE result
)
if (result EQUAL 0)
file(WRITE "${conanfile_timestamp_file}" "${conanfile_timestamp}")
file(WRITE "${conanfile_build_policy_file}" ${QT_CREATOR_CONAN_BUILD_POLICY})
else()
message(WARNING "Qt Creator's conan package manager auto-setup failed. Consider setting "
"QT_CREATOR_SKIP_CONAN_SETUP to ON and reconfigure to skip this step.")
return()
endif()
endif()
include("${CMAKE_BINARY_DIR}/conan-dependencies/conan_paths.cmake")
endif()
unset(conanfile_txt)
endmacro()
qtc_auto_setup_conan()
#
# vcpkg
#
macro(qtc_auto_setup_vcpkg)
if (EXISTS "${CMAKE_SOURCE_DIR}/vcpkg.json" AND NOT QT_CREATOR_SKIP_VCPKG_SETUP)
option(QT_CREATOR_SKIP_VCPKG_SETUP "Skip Qt Creator's vcpkg package manager auto-setup" OFF)
set_property(
DIRECTORY "${CMAKE_SOURCE_DIR}"
APPEND
PROPERTY CMAKE_CONFIGURE_DEPENDS "${CMAKE_SOURCE_DIR}/vcpkg.json")
find_program(vcpkg_program vcpkg
PATHS ${CMAKE_SOURCE_DIR}/vcpkg ${CMAKE_SOURCE_DIR}/3rdparty/vcpkg $ENV{VCPKG_ROOT}
NO_DEFAULT_PATH
)
if (NOT vcpkg_program)
message(WARNING "Qt Creator: vcpkg executable not found. "
"Package manager auto-setup will be skipped. "
"To disable this warning set QT_CREATOR_SKIP_VCPKG_SETUP to ON.")
return()
endif()
execute_process(COMMAND ${vcpkg_program} version
RESULT_VARIABLE result_code
OUTPUT_VARIABLE vcpkg_version_output
ERROR_VARIABLE vcpkg_version_output)
if (NOT result_code EQUAL 0)
message(FATAL_ERROR "vcpkg version failed='${result_code}: ${vcpkg_version_output}")
endif()
# Resolve any symlinks
get_filename_component(vpkg_program_real_path ${vcpkg_program} REALPATH)
get_filename_component(vpkg_root ${vpkg_program_real_path} DIRECTORY)
if (NOT EXISTS "${CMAKE_BINARY_DIR}/vcpkg-dependencies/toolchain.cmake")
message(STATUS "Qt Creator: vcpkg package manager auto-setup. "
"Skip this step by setting QT_CREATOR_SKIP_VCPKG_SETUP to ON.")
file(WRITE "${CMAKE_BINARY_DIR}/vcpkg-dependencies/toolchain.cmake" "
set(CMAKE_C_COMPILER \"${CMAKE_C_COMPILER}\")
set(CMAKE_CXX_COMPILER \"${CMAKE_CXX_COMPILER}\")
")
qtc_auto_setup_compiler_standard("${CMAKE_BINARY_DIR}/vcpkg-dependencies/toolchain.cmake")
# If set explicitly in Qt Creator's CMake parameters, just set it in the toolchain
if (VCPKG_TARGET_TRIPLET)
file(APPEND "${CMAKE_BINARY_DIR}/vcpkg-dependencies/toolchain.cmake"
"set(VCPKG_TARGET_TRIPLET \"${VCPKG_TARGET_TRIPLET}\")\n")
endif()
if (CMAKE_TOOLCHAIN_FILE AND NOT
CMAKE_TOOLCHAIN_FILE STREQUAL "${CMAKE_BINARY_DIR}/vcpkg-dependencies/toolchain.cmake")
file(APPEND "${CMAKE_BINARY_DIR}/vcpkg-dependencies/toolchain.cmake"
"include(\"${CMAKE_TOOLCHAIN_FILE}\")\n")
endif()
file(APPEND "${CMAKE_BINARY_DIR}/vcpkg-dependencies/toolchain.cmake" [=[
if (VCPKG_TARGET_TRIPLET)
set(vcpkg_triplet ${VCPKG_TARGET_TRIPLET})
else()
if (ANDROID_ABI)
if (ANDROID_ABI STREQUAL "armeabi-v7a")
set(vcpkg_triplet arm-neon-android)
elseif (ANDROID_ABI STREQUAL "arm64-v8a")
set(vcpkg_triplet arm64-android)
elseif (ANDROID_ABI STREQUAL "x86")
set(vcpkg_triplet x86-android)
elseif (ANDROID_ABI STREQUAL "x86_64")
set(vcpkg_triplet x64-android)
else()
message(FATAL_ERROR "Unsupported Android ABI: ${ANDROID_ABI}")
endif()
set(ENV{ANDROID_NDK_HOME} "${ANDROID_NDK}")
elseif (WIN32)
if ("$ENV{PROCESSOR_ARCHITECTURE}" STREQUAL "ARM64")
set(vcpkg_triplet arm64-mingw-static)
else()
set(vcpkg_triplet x64-mingw-static)
endif()
if (CMAKE_CXX_COMPILER MATCHES ".*/(.*)/cl.exe")
string(TOLOWER ${CMAKE_MATCH_1} host_arch_lowercase)
set(vcpkg_triplet ${host_arch_lowercase}-windows)
endif()
elseif(APPLE)
# We're too early to use CMAKE_HOST_SYSTEM_PROCESSOR
execute_process(
COMMAND uname -m
OUTPUT_VARIABLE __apple_host_system_processor
OUTPUT_STRIP_TRAILING_WHITESPACE)
if (__apple_host_system_processor MATCHES "arm64")
set(vcpkg_triplet arm64-osx)
else()
set(vcpkg_triplet x64-osx)
endif()
else()
# We're too early to use CMAKE_HOST_SYSTEM_PROCESSOR
execute_process(
COMMAND uname -m
OUTPUT_VARIABLE __linux_host_system_processor
OUTPUT_STRIP_TRAILING_WHITESPACE)
if (__linux_host_system_processor MATCHES "aarch64")
set(vcpkg_triplet arm64-linux)
else()
set(vcpkg_triplet x64-linux)
endif()
endif()
endif()
set(VCPKG_TARGET_TRIPLET ${vcpkg_triplet})
]=])
file(APPEND "${CMAKE_BINARY_DIR}/vcpkg-dependencies/toolchain.cmake" "
include(\"${vpkg_root}/scripts/buildsystems/vcpkg.cmake\")
")
endif()
set(CMAKE_TOOLCHAIN_FILE "${CMAKE_BINARY_DIR}/vcpkg-dependencies/toolchain.cmake" CACHE PATH "" FORCE)
# Save CMAKE_PREFIX_PATH and CMAKE_MODULE_PATH as cache variables
if (CMAKE_VERSION GREATER_EQUAL "3.19")
cmake_language(DEFER CALL list REMOVE_DUPLICATES CMAKE_PREFIX_PATH)
cmake_language(DEFER CALL list REMOVE_DUPLICATES CMAKE_MODULE_PATH)
cmake_language(DEFER CALL set CMAKE_PREFIX_PATH "${CMAKE_PREFIX_PATH}" CACHE STRING "" FORCE)
cmake_language(DEFER CALL set CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}" CACHE STRING "" FORCE)
endif()
endif()
endmacro()
qtc_auto_setup_vcpkg()
#
# MaintenanceTool
#
if (QT_CREATOR_SKIP_MAINTENANCE_TOOL_PROVIDER)
return()
endif()
option(QT_CREATOR_SKIP_MAINTENANCE_TOOL_PROVIDER
"Skip Qt Creator's MaintenanceTool find_package provider" OFF)
option(QT_CREATOR_MAINTENANCE_TOOL_PROVIDER_USE_CLI
"Use CLI mode for Qt Creator's MaintenanceTool find_package provider" OFF)
function(qtc_maintenance_provider_missing_variable_message variable)
message(STATUS "Qt Creator: ${variable} was not set. "
"Qt MaintenanceTool cannot be used to install missing Qt modules that you specify in find_package(). "
"To disable this message set QT_CREATOR_SKIP_MAINTENANCE_TOOL_PROVIDER to ON.")
endfunction()
if (NOT QT_MAINTENANCE_TOOL)
qtc_maintenance_provider_missing_variable_message(QT_MAINTENANCE_TOOL)
return()
endif()
if (NOT QT_QMAKE_EXECUTABLE)
qtc_maintenance_provider_missing_variable_message(QT_QMAKE_EXECUTABLE)
return()
endif()
if (CMAKE_VERSION GREATER_EQUAL "3.24")
list(APPEND CMAKE_PROJECT_TOP_LEVEL_INCLUDES ${CMAKE_CURRENT_LIST_DIR}/maintenance_tool_provider.cmake)
else()
message(WARNING "Qt Creator: CMake version 3.24 is needed for MaintenanceTool find_package() provider. "
"To disable this warning set QT_CREATOR_SKIP_MAINTENANCE_TOOL_PROVIDER to ON.")
endif()
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,657 @@
# https://github.com/conan-io/cmake-conan/blob/develop2/conan_provider.cmake
# commit: f6464d1e13ef7a47c569f5061f9607ea63339d39
#
# The MIT License (MIT)
#
# Copyright (c) 2019 JFrog
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
set(CONAN_MINIMUM_VERSION 2.0.5)
function(detect_os OS OS_API_LEVEL OS_SDK OS_SUBSYSTEM OS_VERSION)
# it could be cross compilation
message(STATUS "CMake-Conan: cmake_system_name=${CMAKE_SYSTEM_NAME}")
if(CMAKE_SYSTEM_NAME AND NOT CMAKE_SYSTEM_NAME STREQUAL "Generic")
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
set(${OS} Macos PARENT_SCOPE)
elseif(CMAKE_SYSTEM_NAME STREQUAL "QNX")
set(${OS} Neutrino PARENT_SCOPE)
elseif(CMAKE_SYSTEM_NAME STREQUAL "CYGWIN")
set(${OS} Windows PARENT_SCOPE)
set(${OS_SUBSYSTEM} cygwin PARENT_SCOPE)
elseif(CMAKE_SYSTEM_NAME MATCHES "^MSYS")
set(${OS} Windows PARENT_SCOPE)
set(${OS_SUBSYSTEM} msys2 PARENT_SCOPE)
else()
set(${OS} ${CMAKE_SYSTEM_NAME} PARENT_SCOPE)
endif()
if(CMAKE_SYSTEM_NAME STREQUAL "Android")
if(DEFINED ANDROID_PLATFORM)
string(REGEX MATCH "[0-9]+" _OS_API_LEVEL ${ANDROID_PLATFORM})
elseif(DEFINED CMAKE_SYSTEM_VERSION)
set(_OS_API_LEVEL ${CMAKE_SYSTEM_VERSION})
endif()
message(STATUS "CMake-Conan: android api level=${_OS_API_LEVEL}")
set(${OS_API_LEVEL} ${_OS_API_LEVEL} PARENT_SCOPE)
endif()
if(CMAKE_SYSTEM_NAME MATCHES "Darwin|iOS|tvOS|watchOS")
# CMAKE_OSX_SYSROOT contains the full path to the SDK for MakeFile/Ninja
# generators, but just has the original input string for Xcode.
if(NOT IS_DIRECTORY ${CMAKE_OSX_SYSROOT})
set(_OS_SDK ${CMAKE_OSX_SYSROOT})
else()
if(CMAKE_OSX_SYSROOT MATCHES Simulator)
set(apple_platform_suffix simulator)
else()
set(apple_platform_suffix os)
endif()
if(CMAKE_OSX_SYSROOT MATCHES AppleTV)
set(_OS_SDK "appletv${apple_platform_suffix}")
elseif(CMAKE_OSX_SYSROOT MATCHES iPhone)
set(_OS_SDK "iphone${apple_platform_suffix}")
elseif(CMAKE_OSX_SYSROOT MATCHES Watch)
set(_OS_SDK "watch${apple_platform_suffix}")
endif()
endif()
if(DEFINED _OS_SDK)
message(STATUS "CMake-Conan: cmake_osx_sysroot=${CMAKE_OSX_SYSROOT}")
set(${OS_SDK} ${_OS_SDK} PARENT_SCOPE)
endif()
if(DEFINED CMAKE_OSX_DEPLOYMENT_TARGET)
message(STATUS "CMake-Conan: cmake_osx_deployment_target=${CMAKE_OSX_DEPLOYMENT_TARGET}")
set(${OS_VERSION} ${CMAKE_OSX_DEPLOYMENT_TARGET} PARENT_SCOPE)
endif()
endif()
endif()
endfunction()
function(detect_arch ARCH)
# CMAKE_OSX_ARCHITECTURES can contain multiple architectures, but Conan only supports one.
# Therefore this code only finds one. If the recipes support multiple architectures, the
# build will work. Otherwise, there will be a linker error for the missing architecture(s).
if(DEFINED CMAKE_OSX_ARCHITECTURES)
string(REPLACE " " ";" apple_arch_list "${CMAKE_OSX_ARCHITECTURES}")
list(LENGTH apple_arch_list apple_arch_count)
if(apple_arch_count GREATER 1)
message(WARNING "CMake-Conan: Multiple architectures detected, this will only work if Conan recipe(s) produce fat binaries.")
endif()
endif()
if(CMAKE_SYSTEM_NAME MATCHES "Darwin|iOS|tvOS|watchOS" AND NOT CMAKE_OSX_ARCHITECTURES STREQUAL "")
set(host_arch ${CMAKE_OSX_ARCHITECTURES})
elseif(MSVC)
set(host_arch ${CMAKE_CXX_COMPILER_ARCHITECTURE_ID})
else()
set(host_arch ${CMAKE_SYSTEM_PROCESSOR})
endif()
if(host_arch MATCHES "aarch64|arm64|ARM64")
set(_ARCH armv8)
elseif(host_arch MATCHES "armv7|armv7-a|armv7l|ARMV7")
set(_ARCH armv7)
elseif(host_arch MATCHES armv7s)
set(_ARCH armv7s)
elseif(host_arch MATCHES "i686|i386|X86")
set(_ARCH x86)
elseif(host_arch MATCHES "AMD64|amd64|x86_64|x64")
set(_ARCH x86_64)
endif()
message(STATUS "CMake-Conan: cmake_system_processor=${_ARCH}")
set(${ARCH} ${_ARCH} PARENT_SCOPE)
endfunction()
function(detect_cxx_standard CXX_STANDARD)
set(${CXX_STANDARD} ${CMAKE_CXX_STANDARD} PARENT_SCOPE)
if(CMAKE_CXX_EXTENSIONS)
set(${CXX_STANDARD} "gnu${CMAKE_CXX_STANDARD}" PARENT_SCOPE)
endif()
endfunction()
macro(detect_gnu_libstdcxx)
# _CONAN_IS_GNU_LIBSTDCXX true if GNU libstdc++
check_cxx_source_compiles("
#include <cstddef>
#if !defined(__GLIBCXX__) && !defined(__GLIBCPP__)
static_assert(false);
#endif
int main(){}" _CONAN_IS_GNU_LIBSTDCXX)
# _CONAN_GNU_LIBSTDCXX_IS_CXX11_ABI true if C++11 ABI
check_cxx_source_compiles("
#include <string>
static_assert(sizeof(std::string) != sizeof(void*), \"using libstdc++\");
int main () {}" _CONAN_GNU_LIBSTDCXX_IS_CXX11_ABI)
set(_CONAN_GNU_LIBSTDCXX_SUFFIX "")
if(_CONAN_GNU_LIBSTDCXX_IS_CXX11_ABI)
set(_CONAN_GNU_LIBSTDCXX_SUFFIX "11")
endif()
unset (_CONAN_GNU_LIBSTDCXX_IS_CXX11_ABI)
endmacro()
macro(detect_libcxx)
# _CONAN_IS_LIBCXX true if LLVM libc++
check_cxx_source_compiles("
#include <cstddef>
#if !defined(_LIBCPP_VERSION)
static_assert(false);
#endif
int main(){}" _CONAN_IS_LIBCXX)
endmacro()
function(detect_lib_cxx LIB_CXX)
if(CMAKE_SYSTEM_NAME STREQUAL "Android")
message(STATUS "CMake-Conan: android_stl=${CMAKE_ANDROID_STL_TYPE}")
set(${LIB_CXX} ${CMAKE_ANDROID_STL_TYPE} PARENT_SCOPE)
return()
endif()
include(CheckCXXSourceCompiles)
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
detect_gnu_libstdcxx()
set(${LIB_CXX} "libstdc++${_CONAN_GNU_LIBSTDCXX_SUFFIX}" PARENT_SCOPE)
elseif(CMAKE_CXX_COMPILER_ID MATCHES "AppleClang")
set(${LIB_CXX} "libc++" PARENT_SCOPE)
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND NOT CMAKE_SYSTEM_NAME MATCHES "Windows")
# Check for libc++
detect_libcxx()
if(_CONAN_IS_LIBCXX)
set(${LIB_CXX} "libc++" PARENT_SCOPE)
return()
endif()
# Check for libstdc++
detect_gnu_libstdcxx()
if(_CONAN_IS_GNU_LIBSTDCXX)
set(${LIB_CXX} "libstdc++${_CONAN_GNU_LIBSTDCXX_SUFFIX}" PARENT_SCOPE)
return()
endif()
# TODO: it would be an error if we reach this point
elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
# Do nothing - compiler.runtime and compiler.runtime_type
# should be handled separately: https://github.com/conan-io/cmake-conan/pull/516
return()
else()
# TODO: unable to determine, ask user to provide a full profile file instead
endif()
endfunction()
function(detect_compiler COMPILER COMPILER_VERSION COMPILER_RUNTIME COMPILER_RUNTIME_TYPE)
if(DEFINED CMAKE_CXX_COMPILER_ID)
set(_COMPILER ${CMAKE_CXX_COMPILER_ID})
set(_COMPILER_VERSION ${CMAKE_CXX_COMPILER_VERSION})
else()
if(NOT DEFINED CMAKE_C_COMPILER_ID)
message(FATAL_ERROR "C or C++ compiler not defined")
endif()
set(_COMPILER ${CMAKE_C_COMPILER_ID})
set(_COMPILER_VERSION ${CMAKE_C_COMPILER_VERSION})
endif()
message(STATUS "CMake-Conan: CMake compiler=${_COMPILER}")
message(STATUS "CMake-Conan: CMake compiler version=${_COMPILER_VERSION}")
if(_COMPILER MATCHES MSVC)
set(_COMPILER "msvc")
string(SUBSTRING ${MSVC_VERSION} 0 3 _COMPILER_VERSION)
# Configure compiler.runtime and compiler.runtime_type settings for MSVC
if(CMAKE_MSVC_RUNTIME_LIBRARY)
set(_msvc_runtime_library ${CMAKE_MSVC_RUNTIME_LIBRARY})
else()
set(_msvc_runtime_library MultiThreaded$<$<CONFIG:Debug>:Debug>DLL) # default value documented by CMake
endif()
set(_KNOWN_MSVC_RUNTIME_VALUES "")
list(APPEND _KNOWN_MSVC_RUNTIME_VALUES MultiThreaded MultiThreadedDLL)
list(APPEND _KNOWN_MSVC_RUNTIME_VALUES MultiThreadedDebug MultiThreadedDebugDLL)
list(APPEND _KNOWN_MSVC_RUNTIME_VALUES MultiThreaded$<$<CONFIG:Debug>:Debug> MultiThreaded$<$<CONFIG:Debug>:Debug>DLL)
# only accept the 6 possible values, otherwise we don't don't know to map this
if(NOT _msvc_runtime_library IN_LIST _KNOWN_MSVC_RUNTIME_VALUES)
message(FATAL_ERROR "CMake-Conan: unable to map MSVC runtime: ${_msvc_runtime_library} to Conan settings")
endif()
# Runtime is "dynamic" in all cases if it ends in DLL
if(_msvc_runtime_library MATCHES ".*DLL$")
set(_COMPILER_RUNTIME "dynamic")
else()
set(_COMPILER_RUNTIME "static")
endif()
message(STATUS "CMake-Conan: CMake compiler.runtime=${_COMPILER_RUNTIME}")
# Only define compiler.runtime_type when explicitly requested
# If a generator expression is used, let Conan handle it conditional on build_type
if(NOT _msvc_runtime_library MATCHES "<CONFIG:Debug>:Debug>")
if(_msvc_runtime_library MATCHES "Debug")
set(_COMPILER_RUNTIME_TYPE "Debug")
else()
set(_COMPILER_RUNTIME_TYPE "Release")
endif()
message(STATUS "CMake-Conan: CMake compiler.runtime_type=${_COMPILER_RUNTIME_TYPE}")
endif()
unset(_KNOWN_MSVC_RUNTIME_VALUES)
elseif(_COMPILER MATCHES AppleClang)
set(_COMPILER "apple-clang")
string(REPLACE "." ";" VERSION_LIST ${CMAKE_CXX_COMPILER_VERSION})
list(GET VERSION_LIST 0 _COMPILER_VERSION)
elseif(_COMPILER MATCHES Clang)
set(_COMPILER "clang")
string(REPLACE "." ";" VERSION_LIST ${CMAKE_CXX_COMPILER_VERSION})
list(GET VERSION_LIST 0 _COMPILER_VERSION)
elseif(_COMPILER MATCHES GNU)
set(_COMPILER "gcc")
string(REPLACE "." ";" VERSION_LIST ${CMAKE_CXX_COMPILER_VERSION})
list(GET VERSION_LIST 0 _COMPILER_VERSION)
endif()
message(STATUS "CMake-Conan: [settings] compiler=${_COMPILER}")
message(STATUS "CMake-Conan: [settings] compiler.version=${_COMPILER_VERSION}")
if (_COMPILER_RUNTIME)
message(STATUS "CMake-Conan: [settings] compiler.runtime=${_COMPILER_RUNTIME}")
endif()
if (_COMPILER_RUNTIME_TYPE)
message(STATUS "CMake-Conan: [settings] compiler.runtime_type=${_COMPILER_RUNTIME_TYPE}")
endif()
set(${COMPILER} ${_COMPILER} PARENT_SCOPE)
set(${COMPILER_VERSION} ${_COMPILER_VERSION} PARENT_SCOPE)
set(${COMPILER_RUNTIME} ${_COMPILER_RUNTIME} PARENT_SCOPE)
set(${COMPILER_RUNTIME_TYPE} ${_COMPILER_RUNTIME_TYPE} PARENT_SCOPE)
endfunction()
function(detect_build_type BUILD_TYPE)
get_property(_MULTICONFIG_GENERATOR GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
if(NOT _MULTICONFIG_GENERATOR)
# Only set when we know we are in a single-configuration generator
# Note: we may want to fail early if `CMAKE_BUILD_TYPE` is not defined
set(${BUILD_TYPE} ${CMAKE_BUILD_TYPE} PARENT_SCOPE)
endif()
endfunction()
macro(set_conan_compiler_if_appleclang lang command output_variable)
if(CMAKE_${lang}_COMPILER_ID STREQUAL "AppleClang")
execute_process(COMMAND xcrun --find ${command}
OUTPUT_VARIABLE _xcrun_out OUTPUT_STRIP_TRAILING_WHITESPACE)
cmake_path(GET _xcrun_out PARENT_PATH _xcrun_toolchain_path)
cmake_path(GET CMAKE_${lang}_COMPILER PARENT_PATH _compiler_parent_path)
if ("${_xcrun_toolchain_path}" STREQUAL "${_compiler_parent_path}")
set(${output_variable} "")
endif()
unset(_xcrun_out)
unset(_xcrun_toolchain_path)
unset(_compiler_parent_path)
endif()
endmacro()
macro(append_compiler_executables_configuration)
set(_conan_c_compiler "")
set(_conan_cpp_compiler "")
if(CMAKE_C_COMPILER)
set(_conan_c_compiler "\"c\":\"${CMAKE_C_COMPILER}\",")
set_conan_compiler_if_appleclang(C cc _conan_c_compiler)
else()
message(WARNING "CMake-Conan: The C compiler is not defined. "
"Please define CMAKE_C_COMPILER or enable the C language.")
endif()
if(CMAKE_CXX_COMPILER)
set(_conan_cpp_compiler "\"cpp\":\"${CMAKE_CXX_COMPILER}\"")
set_conan_compiler_if_appleclang(CXX c++ _conan_cpp_compiler)
else()
message(WARNING "CMake-Conan: The C++ compiler is not defined. "
"Please define CMAKE_CXX_COMPILER or enable the C++ language.")
endif()
# QtCreator: see https://github.com/conan-io/cmake-conan/pull/689 for details
if(NOT "x${_conan_c_compiler}${_conan_cpp_compiler}" STREQUAL "x"
AND NOT CMAKE_C_COMPILER_ID STREQUAL "MSVC")
string(APPEND PROFILE "tools.build:compiler_executables={${_conan_c_compiler}${_conan_cpp_compiler}}\n")
endif()
unset(_conan_c_compiler)
unset(_conan_cpp_compiler)
endmacro()
function(detect_host_profile output_file)
detect_os(MYOS MYOS_API_LEVEL MYOS_SDK MYOS_SUBSYSTEM MYOS_VERSION)
detect_arch(MYARCH)
detect_compiler(MYCOMPILER MYCOMPILER_VERSION MYCOMPILER_RUNTIME MYCOMPILER_RUNTIME_TYPE)
detect_cxx_standard(MYCXX_STANDARD)
detect_lib_cxx(MYLIB_CXX)
detect_build_type(MYBUILD_TYPE)
set(PROFILE "")
string(APPEND PROFILE "[settings]\n")
if(MYARCH)
string(APPEND PROFILE arch=${MYARCH} "\n")
endif()
if(MYOS)
string(APPEND PROFILE os=${MYOS} "\n")
endif()
if(MYOS_API_LEVEL)
string(APPEND PROFILE os.api_level=${MYOS_API_LEVEL} "\n")
endif()
if(MYOS_VERSION)
string(APPEND PROFILE os.version=${MYOS_VERSION} "\n")
endif()
if(MYOS_SDK)
string(APPEND PROFILE os.sdk=${MYOS_SDK} "\n")
endif()
if(MYOS_SUBSYSTEM)
string(APPEND PROFILE os.subsystem=${MYOS_SUBSYSTEM} "\n")
endif()
if(MYCOMPILER)
string(APPEND PROFILE compiler=${MYCOMPILER} "\n")
endif()
if(MYCOMPILER_VERSION)
string(APPEND PROFILE compiler.version=${MYCOMPILER_VERSION} "\n")
endif()
if(MYCOMPILER_RUNTIME)
string(APPEND PROFILE compiler.runtime=${MYCOMPILER_RUNTIME} "\n")
endif()
if(MYCOMPILER_RUNTIME_TYPE)
string(APPEND PROFILE compiler.runtime_type=${MYCOMPILER_RUNTIME_TYPE} "\n")
endif()
if(MYCXX_STANDARD)
string(APPEND PROFILE compiler.cppstd=${MYCXX_STANDARD} "\n")
endif()
if(MYLIB_CXX)
string(APPEND PROFILE compiler.libcxx=${MYLIB_CXX} "\n")
endif()
if(MYBUILD_TYPE)
string(APPEND PROFILE "build_type=${MYBUILD_TYPE}\n")
endif()
if(NOT DEFINED output_file)
set(_FN "${CMAKE_BINARY_DIR}/profile")
else()
set(_FN ${output_file})
endif()
string(APPEND PROFILE "[conf]\n")
string(APPEND PROFILE "tools.cmake.cmaketoolchain:generator=${CMAKE_GENERATOR}\n")
# propagate compilers via profile
append_compiler_executables_configuration()
if(MYOS STREQUAL "Android")
string(APPEND PROFILE "tools.android:ndk_path=${CMAKE_ANDROID_NDK}\n")
endif()
message(STATUS "CMake-Conan: Creating profile ${_FN}")
file(WRITE ${_FN} ${PROFILE})
message(STATUS "CMake-Conan: Profile: \n${PROFILE}")
endfunction()
function(conan_profile_detect_default)
message(STATUS "CMake-Conan: Checking if a default profile exists")
execute_process(COMMAND ${CONAN_COMMAND} profile path default
RESULT_VARIABLE return_code
OUTPUT_VARIABLE conan_stdout
ERROR_VARIABLE conan_stderr
ECHO_ERROR_VARIABLE # show the text output regardless
ECHO_OUTPUT_VARIABLE
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
if(NOT ${return_code} EQUAL "0")
message(STATUS "CMake-Conan: The default profile doesn't exist, detecting it.")
execute_process(COMMAND ${CONAN_COMMAND} profile detect
RESULT_VARIABLE return_code
OUTPUT_VARIABLE conan_stdout
ERROR_VARIABLE conan_stderr
ECHO_ERROR_VARIABLE # show the text output regardless
ECHO_OUTPUT_VARIABLE
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
endif()
endfunction()
function(conan_install)
cmake_parse_arguments(ARGS CONAN_ARGS ${ARGN})
set(CONAN_OUTPUT_FOLDER ${CMAKE_BINARY_DIR}/conan)
# Invoke "conan install" with the provided arguments
set(CONAN_ARGS ${CONAN_ARGS} -of=${CONAN_OUTPUT_FOLDER})
message(STATUS "CMake-Conan: conan install ${CMAKE_SOURCE_DIR} ${CONAN_ARGS} ${ARGN}")
# In case there was not a valid cmake executable in the PATH, we inject the
# same we used to invoke the provider to the PATH
if(DEFINED PATH_TO_CMAKE_BIN)
set(_OLD_PATH $ENV{PATH})
set(ENV{PATH} "$ENV{PATH}:${PATH_TO_CMAKE_BIN}")
endif()
execute_process(COMMAND ${CONAN_COMMAND} install ${CMAKE_SOURCE_DIR} ${CONAN_ARGS} ${ARGN} --format=json
RESULT_VARIABLE return_code
OUTPUT_VARIABLE conan_stdout
ERROR_VARIABLE conan_stderr
ECHO_ERROR_VARIABLE # show the text output regardless
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
if(DEFINED PATH_TO_CMAKE_BIN)
set(ENV{PATH} "${_OLD_PATH}")
endif()
if(NOT "${return_code}" STREQUAL "0")
message(FATAL_ERROR "Conan install failed='${return_code}'")
else()
# the files are generated in a folder that depends on the layout used, if
# one is specified, but we don't know a priori where this is.
# TODO: this can be made more robust if Conan can provide this in the json output
string(JSON CONAN_GENERATORS_FOLDER GET ${conan_stdout} graph nodes 0 generators_folder)
cmake_path(CONVERT ${CONAN_GENERATORS_FOLDER} TO_CMAKE_PATH_LIST CONAN_GENERATORS_FOLDER)
# message("conan stdout: ${conan_stdout}")
message(STATUS "CMake-Conan: CONAN_GENERATORS_FOLDER=${CONAN_GENERATORS_FOLDER}")
set_property(GLOBAL PROPERTY CONAN_GENERATORS_FOLDER "${CONAN_GENERATORS_FOLDER}")
# reconfigure on conanfile changes
string(JSON CONANFILE GET ${conan_stdout} graph nodes 0 label)
message(STATUS "CMake-Conan: CONANFILE=${CMAKE_SOURCE_DIR}/${CONANFILE}")
set_property(DIRECTORY ${CMAKE_SOURCE_DIR} APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS "${CMAKE_SOURCE_DIR}/${CONANFILE}")
# success
set_property(GLOBAL PROPERTY CONAN_INSTALL_SUCCESS TRUE)
endif()
endfunction()
function(conan_get_version conan_command conan_current_version)
execute_process(
COMMAND ${conan_command} --version
OUTPUT_VARIABLE conan_output
RESULT_VARIABLE conan_result
OUTPUT_STRIP_TRAILING_WHITESPACE
)
if(conan_result)
message(FATAL_ERROR "CMake-Conan: Error when trying to run Conan")
endif()
string(REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+" conan_version ${conan_output})
set(${conan_current_version} ${conan_version} PARENT_SCOPE)
endfunction()
function(conan_version_check)
set(options )
set(oneValueArgs MINIMUM CURRENT)
set(multiValueArgs )
cmake_parse_arguments(CONAN_VERSION_CHECK
"${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
if(NOT CONAN_VERSION_CHECK_MINIMUM)
message(FATAL_ERROR "CMake-Conan: Required parameter MINIMUM not set!")
endif()
if(NOT CONAN_VERSION_CHECK_CURRENT)
message(FATAL_ERROR "CMake-Conan: Required parameter CURRENT not set!")
endif()
if(CONAN_VERSION_CHECK_CURRENT VERSION_LESS CONAN_VERSION_CHECK_MINIMUM)
message(FATAL_ERROR "CMake-Conan: Conan version must be ${CONAN_VERSION_CHECK_MINIMUM} or later")
endif()
endfunction()
macro(construct_profile_argument argument_variable profile_list)
set(${argument_variable} "")
if("${profile_list}" STREQUAL "CONAN_HOST_PROFILE")
set(_arg_flag "--profile:host=")
elseif("${profile_list}" STREQUAL "CONAN_BUILD_PROFILE")
set(_arg_flag "--profile:build=")
endif()
set(_profile_list "${${profile_list}}")
list(TRANSFORM _profile_list REPLACE "auto-cmake" "${CMAKE_BINARY_DIR}/conan_host_profile")
list(TRANSFORM _profile_list PREPEND ${_arg_flag})
set(${argument_variable} ${_profile_list})
unset(_arg_flag)
unset(_profile_list)
endmacro()
macro(conan_provide_dependency method package_name)
set_property(GLOBAL PROPERTY CONAN_PROVIDE_DEPENDENCY_INVOKED TRUE)
get_property(_conan_install_success GLOBAL PROPERTY CONAN_INSTALL_SUCCESS)
if(NOT _conan_install_success)
find_program(CONAN_COMMAND "conan" REQUIRED)
conan_get_version(${CONAN_COMMAND} CONAN_CURRENT_VERSION)
conan_version_check(MINIMUM ${CONAN_MINIMUM_VERSION} CURRENT ${CONAN_CURRENT_VERSION})
message(STATUS "CMake-Conan: first find_package() found. Installing dependencies with Conan")
if("default" IN_LIST CONAN_HOST_PROFILE OR "default" IN_LIST CONAN_BUILD_PROFILE)
conan_profile_detect_default()
endif()
if("auto-cmake" IN_LIST CONAN_HOST_PROFILE)
detect_host_profile(${CMAKE_BINARY_DIR}/conan_host_profile)
endif()
construct_profile_argument(_host_profile_flags CONAN_HOST_PROFILE)
construct_profile_argument(_build_profile_flags CONAN_BUILD_PROFILE)
if(EXISTS "${CMAKE_SOURCE_DIR}/conanfile.py")
file(READ "${CMAKE_SOURCE_DIR}/conanfile.py" outfile)
if(NOT "${outfile}" MATCHES ".*CMakeDeps.*")
message(WARNING "Cmake-conan: CMakeDeps generator was not defined in the conanfile")
endif()
set(generator "")
elseif (EXISTS "${CMAKE_SOURCE_DIR}/conanfile.txt")
file(READ "${CMAKE_SOURCE_DIR}/conanfile.txt" outfile)
if(NOT "${outfile}" MATCHES ".*CMakeDeps.*")
message(WARNING "Cmake-conan: CMakeDeps generator was not defined in the conanfile. "
"Please define the generator as it will be mandatory in the future")
endif()
set(generator "-g;CMakeDeps")
endif()
get_property(_multiconfig_generator GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
if(NOT _multiconfig_generator)
message(STATUS "CMake-Conan: Installing single configuration ${CMAKE_BUILD_TYPE}")
conan_install(${_host_profile_flags} ${_build_profile_flags} ${CONAN_INSTALL_ARGS} ${generator})
else()
message(STATUS "CMake-Conan: Installing both Debug and Release")
conan_install(${_host_profile_flags} ${_build_profile_flags} -s build_type=Release ${CONAN_INSTALL_ARGS} ${generator})
conan_install(${_host_profile_flags} ${_build_profile_flags} -s build_type=Debug ${CONAN_INSTALL_ARGS} ${generator})
endif()
unset(_host_profile_flags)
unset(_build_profile_flags)
unset(_multiconfig_generator)
unset(_conan_install_success)
else()
message(STATUS "CMake-Conan: find_package(${ARGV1}) found, 'conan install' already ran")
unset(_conan_install_success)
endif()
get_property(_conan_generators_folder GLOBAL PROPERTY CONAN_GENERATORS_FOLDER)
# Ensure that we consider Conan-provided packages ahead of any other,
# irrespective of other settings that modify the search order or search paths
# This follows the guidelines from the find_package documentation
# (https://cmake.org/cmake/help/latest/command/find_package.html):
# find_package (<PackageName> PATHS paths... NO_DEFAULT_PATH)
# find_package (<PackageName>)
# Filter out `REQUIRED` from the argument list, as the first call may fail
set(_find_args_${package_name} "${ARGN}")
list(REMOVE_ITEM _find_args_${package_name} "REQUIRED")
if(NOT "MODULE" IN_LIST _find_args_${package_name})
find_package(${package_name} ${_find_args_${package_name}} BYPASS_PROVIDER PATHS "${_conan_generators_folder}" NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH)
unset(_find_args_${package_name})
endif()
# Invoke find_package a second time - if the first call succeeded,
# this will simply reuse the result. If not, fall back to CMake default search
# behaviour, also allowing modules to be searched.
if(NOT ${package_name}_FOUND)
list(FIND CMAKE_MODULE_PATH "${_conan_generators_folder}" _index)
if(_index EQUAL -1)
list(PREPEND CMAKE_MODULE_PATH "${_conan_generators_folder}")
endif()
unset(_index)
find_package(${package_name} ${ARGN} BYPASS_PROVIDER)
list(REMOVE_ITEM CMAKE_MODULE_PATH "${_conan_generators_folder}")
endif()
endmacro()
#[=[ not needed by Qt Creator, and if not commented it would break the auto-setup feature
cmake_language(
SET_DEPENDENCY_PROVIDER conan_provide_dependency
SUPPORTED_METHODS FIND_PACKAGE
)
macro(conan_provide_dependency_check)
set(_CONAN_PROVIDE_DEPENDENCY_INVOKED FALSE)
get_property(_CONAN_PROVIDE_DEPENDENCY_INVOKED GLOBAL PROPERTY CONAN_PROVIDE_DEPENDENCY_INVOKED)
if(NOT _CONAN_PROVIDE_DEPENDENCY_INVOKED)
message(WARNING "Conan is correctly configured as dependency provider, "
"but Conan has not been invoked. Please add at least one "
"call to `find_package()`.")
if(DEFINED CONAN_COMMAND)
# supress warning in case `CONAN_COMMAND` was specified but unused.
set(_CONAN_COMMAND ${CONAN_COMMAND})
unset(_CONAN_COMMAND)
endif()
endif()
unset(_CONAN_PROVIDE_DEPENDENCY_INVOKED)
endmacro()
# Add a deferred call at the end of processing the top-level directory
# to check if the dependency provider was invoked at all.
cmake_language(DEFER DIRECTORY "${CMAKE_SOURCE_DIR}" CALL conan_provide_dependency_check)
]=]
# Configurable variables for Conan profiles
set(CONAN_HOST_PROFILE "default;auto-cmake" CACHE STRING "Conan host profile")
set(CONAN_BUILD_PROFILE "default" CACHE STRING "Conan build profile")
set(CONAN_INSTALL_ARGS "--build=missing" CACHE STRING "Command line arguments for conan install")
find_program(_cmake_program NAMES cmake NO_PACKAGE_ROOT_PATH NO_CMAKE_PATH NO_CMAKE_ENVIRONMENT_PATH NO_CMAKE_SYSTEM_PATH NO_CMAKE_FIND_ROOT_PATH)
if(NOT _cmake_program)
get_filename_component(PATH_TO_CMAKE_BIN "${CMAKE_COMMAND}" DIRECTORY)
set(PATH_TO_CMAKE_BIN "${PATH_TO_CMAKE_BIN}" CACHE INTERNAL "Path where the CMake executable is")
endif()
@@ -0,0 +1,347 @@
function(qt_maintenance_tool_get_component_platform platform_dir component_platform)
# Mapping between platform file directory and component platform
set(map_llvm-mingw_64 win64_llvm_mingw)
set(map_mingw_64 win64_mingw)
set(map_msvc2019_64 win64_msvc2019_64)
set(map_msvc2022_64 win64_msvc2022_64)
set(map_msvc2022_arm64 win64_msvc2022_arm64)
set(map_gcc_64 linux_gcc_64)
set(map_gcc_arm64 linux_gcc_arm64)
set(map_ios ios)
set(map_macos clang_64)
set(map_android_arm64_v8a android)
set(map_android_armv7 android)
set(map_android_x86 android)
set(map_android_x86_64 android)
set(map_wasm_multithread wasm_multithread)
set(map_wasm_singlethread wasm_singlethread)
if (platform_dir STREQUAL "msvc2022_arm64" AND QT_HOST_PATH)
set(${component_platform} "win64_msvc2022_arm64_cross_compiled" PARENT_SCOPE)
return()
endif()
set(${component_platform} ${map_${platform_dir}} PARENT_SCOPE)
endfunction()
function(qt_maintenance_tool_get_addons addon_list)
set(${addon_list}
qt3d
qt5compat
qtcharts
qtconnectivity
qtdatavis3d
qtgraphs
qtgrpc
qthttpserver
qtimageformats
qtlocation
qtlottie
qtmultimedia
qtnetworkauth
qtpositioning
qtquick3d
qtquick3dphysics
qtquickeffectmaker
qtquicktimeline
qtremoteobjects
qtscxml
qtsensors
qtserialbus
qtserialport
qtshadertools
qtspeech
qtvirtualkeyboard
qtwebchannel
qtwebsockets
qtwebview
# found in commercial version
qtapplicationmanager
qtinterfraceframework
qtlanguageserver
qtmqtt
qtstatemachine
qtopcua
tqtc-qtvncserver
PARENT_SCOPE
)
endfunction()
function(qt_maintenance_tool_get_extensions extensions)
set(${extensions}
qtinsighttracker
qtpdf
qtwebengine
PARENT_SCOPE
)
endfunction()
function(qt_maintenance_tool_get_standalone_addons standalone_addons_list)
set(${standalone_addons_list}
qtquick3d
qt5compat
qtshadertools
qtquicktimeline
PARENT_SCOPE
)
endfunction()
function(qt_maintenance_tool_remove_installed_components components_list)
set(actual_components_list ${${components_list}})
execute_process(
COMMAND "${QT_MAINTENANCE_TOOL}" list
RESULT_VARIABLE result
OUTPUT_VARIABLE output
ERROR_VARIABLE output
TIMEOUT 600
)
if (NOT result EQUAL 0)
message(WARNING "Qt MaintenanceTool returned an error.\n${output}")
set(${components_list} "" PARENT_SCOPE)
return()
endif()
foreach(component_name IN LISTS actual_components_list)
string(FIND "${output}" "<package name=\"${component_name}\"" found_component)
if (NOT found_component EQUAL -1)
list(REMOVE_ITEM ${components_list} ${component_name})
endif()
endforeach()
set(${components_list} ${${components_list}} PARENT_SCOPE)
endfunction()
function(qt_maintenance_tool_install qt_major_version qt_package_list)
if (QT_QMAKE_EXECUTABLE MATCHES ".*/(.*)/(.*)/bin/qmake")
set(qt_version_number ${CMAKE_MATCH_1})
string(REPLACE "." "" qt_version_number_dotless ${qt_version_number})
set(qt_build_flavor ${CMAKE_MATCH_2})
set(additional_addons "")
qt_maintenance_tool_get_extensions(__qt_extensions)
if (qt_version_number VERSION_LESS 6.8.0)
set(additional_addons ${__qt_extensions})
endif()
if (WIN32)
list(APPEND additional_addons qtactiveqt)
endif()
if (UNIX AND NOT APPLE)
list(APPEND additional_addons qtwayland)
endif()
qt_maintenance_tool_get_component_platform(${qt_build_flavor} component_platform)
if (NOT component_platform)
message(STATUS
"Qt Creator: Could not find the component platform for '${qt_build_flavor}' "
"required by the MaintenanceTool. This can happen with a non Qt SDK installation "
"(e.g. system Linux or macOS homebrew).")
return()
endif()
set(installer_component_list "")
foreach (qt_package_name IN LISTS qt_package_list)
string(TOLOWER "${qt_package_name}" qt_package_name_lowercase)
qt_maintenance_tool_get_addons(__qt_addons)
if (qt_version_number VERSION_LESS 6.8.0)
qt_maintenance_tool_get_standalone_addons(__standalone_addons)
foreach(standalone_addon IN LISTS __standalone_addons)
list(REMOVE_ITEM __qt_addons ${standalone_addon})
endforeach()
endif()
# Is the package an addon?
set(install_addon FALSE)
foreach(addon IN LISTS __qt_addons additional_addons)
string(REGEX MATCH "^${addon}$" is_addon "qt${qt_package_name_lowercase}")
if (is_addon)
list(
APPEND installer_component_list
"qt.qt${qt_major_version}.${qt_version_number_dotless}.addons.${addon}"
)
set(install_addon TRUE)
break()
endif()
endforeach()
if (NOT install_addon)
set(install_extension FALSE)
foreach(extension IN LISTS __qt_extensions)
string(REGEX MATCH "^${extension}$" is_extension "qt${qt_package_name_lowercase}")
if (is_extension)
list(
APPEND installer_component_list
"extensions.${extension}.${qt_version_number_dotless}.${component_platform}"
)
set(install_extension TRUE)
break()
endif()
endforeach()
if (NOT install_extension)
set(install_standalone_addon FALSE)
foreach(standalone_addon IN LISTS __standalone_addons)
string(REGEX MATCH "^${standalone_addon}$" is_standalone_addon "qt${qt_package_name_lowercase}")
if (is_standalone_addon)
list(
APPEND installer_component_list
"qt.qt${qt_major_version}.${qt_version_number_dotless}.${standalone_addon}"
)
set(install_standalone_addon TRUE)
break()
endif()
endforeach()
if(NOT install_standalone_addon)
# Install the Desktop package
list(
APPEND installer_component_list
"qt.qt${qt_major_version}.${qt_version_number_dotless}.${component_platform}"
)
endif()
endif()
endif()
endforeach()
qt_maintenance_tool_remove_installed_components(installer_component_list)
list(LENGTH installer_component_list installer_component_list_size)
if (installer_component_list_size EQUAL 0)
return()
endif()
list(TRANSFORM qt_package_list PREPEND "Qt${qt_major_version}")
list(JOIN qt_package_list " " qt_packages_as_string)
list(JOIN installer_component_list " " installer_components_as_string)
message(STATUS "Qt Creator: CMake could not find: ${qt_packages_as_string}. "
"Now installing: ${installer_components_as_string} "
"with the MaintenanceTool ...")
if (QT_CREATOR_MAINTENANCE_TOOL_PROVIDER_USE_CLI)
message(STATUS "Qt Creator: Using MaintenanceTool in CLI Mode. "
"Set QT_CREATOR_MAINTENANCE_TOOL_PROVIDER_USE_CLI to OFF for GUI mode.")
execute_process(
COMMAND
"${QT_MAINTENANCE_TOOL}"
--accept-licenses
--default-answer
--confirm-command
install ${installer_component_list}
RESULT_VARIABLE result
OUTPUT_VARIABLE output
ERROR_VARIABLE output
ECHO_OUTPUT_VARIABLE ECHO_ERROR_VARIABLE
TIMEOUT 600
)
if (NOT result EQUAL 0)
message(WARNING "Qt MaintenanceTool returned an error.\n${output}")
endif()
else()
message(STATUS "Qt Creator: Using MaintenanceTool in GUI Mode. "
"Set QT_CREATOR_MAINTENANCE_TOOL_PROVIDER_USE_CLI to ON for CLI mode.")
set(ENV{QTC_MAINTENANCE_TOOL_COMPONENTS} "${installer_component_list}")
set(ENV{QTC_MAINTENANCE_TOOL_QT_PACKAGES} "${qt_package_list}")
if(CMAKE_HOST_WIN32)
# It's necessary to call actual test inside 'cmd.exe', because 'execute_process' uses
# SW_HIDE to avoid showing a console window, it affects other GUI as well.
# See https://gitlab.kitware.com/cmake/cmake/-/issues/17690 for details.
#
# Run the command using the proxy 'call' command to avoid issues related to invalid
# processing of quotes and spaces in cmd.exe arguments.
set(extra_runner cmd /d /c call)
endif()
execute_process(
COMMAND ${extra_runner}
"${QT_MAINTENANCE_TOOL}"
--script "${CMAKE_CURRENT_FUNCTION_LIST_DIR}/maintenance_tool_provider.qs"
--verbose
RESULT_VARIABLE result
OUTPUT_VARIABLE output
ERROR_VARIABLE output
ECHO_OUTPUT_VARIABLE ECHO_ERROR_VARIABLE
TIMEOUT 600
)
if (NOT result EQUAL 0)
message(WARNING "Qt MaintenanceTool returned an error.\n${output}")
endif()
endif()
endif()
endfunction()
macro(qt_maintenance_tool_dependency method package_name)
# Work around upstream cmake issue: https://gitlab.kitware.com/cmake/cmake/-/issues/27169
if(ANDROID
AND CMAKE_VERSION VERSION_GREATER_EQUAL 3.29
AND NOT ANDROID_USE_LEGACY_TOOLCHAIN_FILE
AND NOT CMAKE_CXX_COMPILER_CLANG_SCAN_DEPS
AND NOT QT_NO_SET_MAINTENANCE_TOOL_PROVIDER_POLICY_CMP0155
)
message(DEBUG
"Setting policy CMP0155 to OLD inside qt_maintenance_tool_dependency to avoid "
"issues with not being able to find the Threads package when targeting Android with "
"cmake_minimum_required(3.29) and CMAKE_CXX_STANDARD >= 20."
)
# We don't create an explicit policy stack entry before changing the policy, because setting
# the policy value bubbles it up to the parent find_package() scope, which is fine, that's
# exactly the scope we want to modify.
cmake_policy(SET CMP0155 OLD)
endif()
if (${package_name} MATCHES "^Qt([5-9])(.*)$")
set(__qt_dependency_qt_major_version ${CMAKE_MATCH_1})
set(__qt_dependency_qt_package_name ${CMAKE_MATCH_2})
# https://cmake.org/cmake/help/latest/command/find_package.html
set(__qt_dependency_options
CONFIG NO_MODULE MODULE REQUIRED EXACT QUIET GLOBAL NO_POLICY_SCOPE NO_DEFAULT_PATH NO_PACKAGE_ROOT_PATH
NO_CMAKE_PATH NO_CMAKE_ENVIRONMENT_PATH NO_SYSTEM_ENVIRONMENT_PATH NO_CMAKE_PACKAGE_REGISTRY
NO_CMAKE_SYSTEM_PATH NO_CMAKE_INSTALL_PREFIX NO_CMAKE_SYSTEM_PACKAGE_REGISTRY CMAKE_FIND_ROOT_PATH_BOTH
ONLY_CMAKE_FIND_ROOT_PATH NO_CMAKE_FIND_ROOT_PATH
)
set(__qt_dependency_oneValueArgs REGISTRY_VIEW)
set(__qt_dependency_multiValueArgs COMPONENTS OPTIONAL_COMPONENTS NAMES CONFIGS HINTS PATHS PATH_SUFFIXES)
cmake_parse_arguments(__qt_dependency_arg "${__qt_dependency_options}" "${__qt_dependency_oneValueArgs}" "${__qt_dependency_multiValueArgs}" ${ARGN})
if (__qt_dependency_arg_REQUIRED AND __qt_dependency_arg_COMPONENTS)
# Install missing COMPONENTS.
set(__qt_dependency_pkgs_to_install "")
foreach(pkg IN LISTS __qt_dependency_arg_COMPONENTS)
find_package(Qt${__qt_dependency_qt_major_version}${pkg}
PATHS ${CMAKE_PREFIX_PATH} ${CMAKE_MODULE_PATH} NO_DEFAULT_PATH BYPASS_PROVIDER QUIET)
if (NOT Qt${__qt_dependency_qt_major_version}${pkg}_FOUND)
list(APPEND __qt_dependency_pkgs_to_install ${pkg})
endif()
endforeach()
if (__qt_dependency_pkgs_to_install)
qt_maintenance_tool_install("${__qt_dependency_qt_major_version}" "${__qt_dependency_pkgs_to_install}")
endif()
elseif(__qt_dependency_arg_REQUIRED AND NOT __qt_dependency_qt_package_name)
# Install the Desktop package if Qt::Core is missing
find_package(Qt${__qt_dependency_qt_major_version}Core
PATHS ${CMAKE_PREFIX_PATH} ${CMAKE_MODULE_PATH} NO_DEFAULT_PATH BYPASS_PROVIDER QUIET)
if (NOT Qt${__qt_dependency_qt_major_version}$Core_FOUND)
qt_maintenance_tool_install("${__qt_dependency_qt_major_version}" Core)
endif()
endif()
find_package(${package_name} ${ARGN}
PATHS ${CMAKE_PREFIX_PATH} ${CMAKE_MODULE_PATH} NO_DEFAULT_PATH BYPASS_PROVIDER QUIET)
if (NOT ${package_name}_FOUND AND __qt_dependency_arg_REQUIRED)
qt_maintenance_tool_install("${__qt_dependency_qt_major_version}" "${__qt_dependency_qt_package_name}")
find_package(${package_name} ${ARGN} BYPASS_PROVIDER)
endif()
else()
find_package(${package_name} ${ARGN} BYPASS_PROVIDER)
endif()
endmacro()
cmake_language(
SET_DEPENDENCY_PROVIDER qt_maintenance_tool_dependency
SUPPORTED_METHODS FIND_PACKAGE
)
@@ -0,0 +1,60 @@
accountFieldsVisible = function()
{
var qtPackagesString = installer.environmentVariable("QTC_MAINTENANCE_TOOL_QT_PACKAGES").toString();
qtPackagesString = qtPackagesString.split(";").join(" ");
var result = QMessageBox.question("qtcreator.install.packages", "Qt Creator",
"CMake could not find: " + qtPackagesString + "<br><br>" +
"Do you want to install the missing packages?",
QMessageBox.Yes | QMessageBox.No, QMessageBox.Yes);
if (result == QMessageBox.No) {
gui.rejectWithoutPrompt();
} else {
var ifwVersion = installer.value("FrameworkVersion");
if (installer.versionMatches(ifwVersion, "=4.9.0"))
gui.clickButton("submitButtonLogin");
else
gui.clickButton(buttons.NextButton);
}
}
usageStatisticVisible = function()
{
gui.clickButton(buttons.NextButton);
}
Controller.prototype.CredentialsPageCallback = function()
{
var page = gui.currentPageWidget();
page.accountFieldsVisible.connect(accountFieldsVisible)
var ifwVersion = installer.value("FrameworkVersion");
if (installer.versionMatches(ifwVersion, "=4.9.0"))
page.usageStatisticVisible.connect(usageStatisticVisible);
}
Controller.prototype.IntroductionPageCallback = function()
{
gui.clickButton(buttons.NextButton);
}
Controller.prototype.ComponentSelectionPageCallback = function()
{
var componentsString = installer.environmentVariable("QTC_MAINTENANCE_TOOL_COMPONENTS");
var componentsList = componentsString.split(";");
for (var idx = 0; idx < componentsList.length; idx++) {
installer.selectComponent(componentsList[idx]);
}
gui.clickButton(buttons.NextButton);
}
Controller.prototype.FinishedPageCallback = function()
{
gui.clickButton(buttons.FinishButton);
}
function Controller()
{
installer.installationFinished.connect(function() {
gui.clickButton(buttons.NextButton);
})
}
File diff suppressed because one or more lines are too long
@@ -0,0 +1,440 @@
# This is the CMakeCache file.
# For build in directory: g:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug
# It was generated by CMake: G:/qt/Qt/Tools/CMake_64/bin/cmake.exe
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
# VALUE is the current value for the KEY.
########################
# EXTERNAL cache entries
########################
//ARIS 头文件目录(通常无需手动指定)
ARIS_INCLUDE_DIR:PATH=
//ARIS SDK 根目录(包含 include/ 与 lib/libaris.dll.a)
ARIS_ROOT:PATH=
//找不到与目标位数匹配的 ARIS SDK 时,使用内置兼容桩(仅界面/算法,无光谱仪硬件)
CAVITY_ALLOW_ARIS_STUB:BOOL=ON
//构建后自动部署运行库与数据文件
CAVITY_DEPLOY_RUNTIME:BOOL=ON
//Path to a program.
CMAKE_ADDR2LINE:FILEPATH=E:/perfessional/QT/install/Tools/mingw810_64/bin/addr2line.exe
//Path to a program.
CMAKE_AR:FILEPATH=E:/perfessional/QT/install/Tools/mingw810_64/bin/ar.exe
//No help, variable specified on the command line.
CMAKE_BUILD_TYPE:STRING=Debug
//No help, variable specified on the command line.
CMAKE_COLOR_DIAGNOSTICS:BOOL=ON
//CXX compiler
CMAKE_CXX_COMPILER:STRING=E:/perfessional/QT/install/Tools/mingw810_64/bin/g++.exe
//A wrapper around 'ar' adding the appropriate '--plugin' option
// for the GCC compiler
CMAKE_CXX_COMPILER_AR:FILEPATH=E:/perfessional/QT/install/Tools/mingw810_64/bin/gcc-ar.exe
//A wrapper around 'ranlib' adding the appropriate '--plugin' option
// for the GCC compiler
CMAKE_CXX_COMPILER_RANLIB:FILEPATH=E:/perfessional/QT/install/Tools/mingw810_64/bin/gcc-ranlib.exe
//Flags used by the CXX compiler during all build types.
CMAKE_CXX_FLAGS:STRING=-DQT_QML_DEBUG
//Flags used by the CXX compiler during DEBUG builds.
CMAKE_CXX_FLAGS_DEBUG:STRING=-g
//No help, variable specified on the command line.
CMAKE_CXX_FLAGS_INIT:STRING=-DQT_QML_DEBUG
//Flags used by the CXX compiler during MINSIZEREL builds.
CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
//Flags used by the CXX compiler during RELEASE builds.
CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
//Flags used by the CXX compiler during RELWITHDEBINFO builds.
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
CMAKE_CXX_OUTPUT_EXTENSION:STRING=.obj
//Libraries linked by default with all C++ applications.
CMAKE_CXX_STANDARD_LIBRARIES:STRING=-lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32
//No help, variable specified on the command line.
CMAKE_C_COMPILER:FILEPATH=E:/perfessional/QT/install/Tools/mingw810_64/bin/gcc.exe
CMAKE_C_OUTPUT_EXTENSION:STRING=
//Path to a program.
CMAKE_DLLTOOL:FILEPATH=E:/perfessional/QT/install/Tools/mingw810_64/bin/dlltool.exe
//Flags used by the linker during all build types.
CMAKE_EXE_LINKER_FLAGS:STRING=
//Flags used by the linker during DEBUG builds.
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=
//Flags used by the linker during MINSIZEREL builds.
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=
//Flags used by the linker during RELEASE builds.
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=
//Flags used by the linker during RELWITHDEBINFO builds.
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
//Enable/Disable output of compile commands during generation.
CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=
//Value Computed by CMake.
CMAKE_FIND_PACKAGE_REDIRECTS_DIR:STATIC=G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CMakeFiles/pkgRedirects
//No help, variable specified on the command line.
CMAKE_GENERATOR:STRING=Ninja
//Convert GNU import libraries to MS format (requires Visual Studio)
CMAKE_GNUtoMS:BOOL=OFF
//Install path prefix, prepended onto install directories.
CMAKE_INSTALL_PREFIX:PATH=C:/Program Files (x86)/CavityLIBS
//Path to a program.
CMAKE_LINKER:FILEPATH=E:/perfessional/QT/install/Tools/mingw810_64/bin/ld.exe
//Program used to build from build.ninja files.
CMAKE_MAKE_PROGRAM:FILEPATH=E:/toos/Ninja/ninja.exe
//Flags used by the linker during the creation of modules during
// all build types.
CMAKE_MODULE_LINKER_FLAGS:STRING=
//Flags used by the linker during the creation of modules during
// DEBUG builds.
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=
//Flags used by the linker during the creation of modules during
// MINSIZEREL builds.
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=
//Flags used by the linker during the creation of modules during
// RELEASE builds.
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=
//Flags used by the linker during the creation of modules during
// RELWITHDEBINFO builds.
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
//Path to a program.
CMAKE_NM:FILEPATH=E:/perfessional/QT/install/Tools/mingw810_64/bin/nm.exe
//Path to a program.
CMAKE_OBJCOPY:FILEPATH=E:/perfessional/QT/install/Tools/mingw810_64/bin/objcopy.exe
//Path to a program.
CMAKE_OBJDUMP:FILEPATH=E:/perfessional/QT/install/Tools/mingw810_64/bin/objdump.exe
//No help, variable specified on the command line.
CMAKE_PREFIX_PATH:PATH=E:/perfessional/QT/install/5.15.2/mingw81_64
//Value Computed by CMake
CMAKE_PROJECT_DESCRIPTION:STATIC=
//Value Computed by CMake
CMAKE_PROJECT_HOMEPAGE_URL:STATIC=
//No help, variable specified on the command line.
CMAKE_PROJECT_INCLUDE_BEFORE:FILEPATH=G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/.qtc/package-manager/auto-setup.cmake
//Value Computed by CMake
CMAKE_PROJECT_NAME:STATIC=CavityLIBS
//Path to a program.
CMAKE_RANLIB:FILEPATH=E:/perfessional/QT/install/Tools/mingw810_64/bin/ranlib.exe
//RC compiler
CMAKE_RC_COMPILER:FILEPATH=E:/perfessional/QT/install/Tools/mingw810_64/bin/windres.exe
//Flags for Windows Resource Compiler during all build types.
CMAKE_RC_FLAGS:STRING=
//Flags for Windows Resource Compiler during DEBUG builds.
CMAKE_RC_FLAGS_DEBUG:STRING=
//Flags for Windows Resource Compiler during MINSIZEREL builds.
CMAKE_RC_FLAGS_MINSIZEREL:STRING=
//Flags for Windows Resource Compiler during RELEASE builds.
CMAKE_RC_FLAGS_RELEASE:STRING=
//Flags for Windows Resource Compiler during RELWITHDEBINFO builds.
CMAKE_RC_FLAGS_RELWITHDEBINFO:STRING=
//Path to a program.
CMAKE_READELF:FILEPATH=E:/perfessional/QT/install/Tools/mingw810_64/bin/readelf.exe
//Flags used by the linker during the creation of shared libraries
// during all build types.
CMAKE_SHARED_LINKER_FLAGS:STRING=
//Flags used by the linker during the creation of shared libraries
// during DEBUG builds.
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=
//Flags used by the linker during the creation of shared libraries
// during MINSIZEREL builds.
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=
//Flags used by the linker during the creation of shared libraries
// during RELEASE builds.
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=
//Flags used by the linker during the creation of shared libraries
// during RELWITHDEBINFO builds.
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=
//If set, runtime paths are not added when installing shared libraries,
// but are added when building.
CMAKE_SKIP_INSTALL_RPATH:BOOL=NO
//If set, runtime paths are not added when using shared libraries.
CMAKE_SKIP_RPATH:BOOL=NO
//Flags used by the linker during the creation of static libraries
// during all build types.
CMAKE_STATIC_LINKER_FLAGS:STRING=
//Flags used by the linker during the creation of static libraries
// during DEBUG builds.
CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING=
//Flags used by the linker during the creation of static libraries
// during MINSIZEREL builds.
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING=
//Flags used by the linker during the creation of static libraries
// during RELEASE builds.
CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING=
//Flags used by the linker during the creation of static libraries
// during RELWITHDEBINFO builds.
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING=
//Path to a program.
CMAKE_STRIP:FILEPATH=E:/perfessional/QT/install/Tools/mingw810_64/bin/strip.exe
//Path to a program.
CMAKE_TAPI:FILEPATH=CMAKE_TAPI-NOTFOUND
//If this value is on, makefiles will be generated without the
// .SILENT directive, and all commands will be echoed to the console
// during the make. This is useful for debugging only. With Visual
// Studio IDE projects all commands are done without /nologo.
CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE
//Value Computed by CMake
CavityLIBS_BINARY_DIR:STATIC=G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug
//Value Computed by CMake
CavityLIBS_IS_TOP_LEVEL:STATIC=ON
//Value Computed by CMake
CavityLIBS_SOURCE_DIR:STATIC=G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master
//libusb 头文件目录(其下应有 libusb-1.0/libusb.h)
LIBUSB_INCLUDE_DIR:PATH=
//Use CLI mode for Qt Creator's MaintenanceTool find_package provider
QT_CREATOR_MAINTENANCE_TOOL_PROVIDER_USE_CLI:BOOL=OFF
//Skip Qt Creator's MaintenanceTool find_package provider
QT_CREATOR_SKIP_MAINTENANCE_TOOL_PROVIDER:BOOL=OFF
//Skip Qt Creator's package manager auto-setup
QT_CREATOR_SKIP_PACKAGE_MANAGER_SETUP:BOOL=OFF
//Qt Creator source groups extensions
QT_CREATOR_SOURCE_GROUPS:BOOL=ON
//No help, variable specified on the command line.
QT_MAINTENANCE_TOOL:FILEPATH=E:/perfessional/QT/install/MaintenanceTool.exe
//No help, variable specified on the command line.
QT_QMAKE_EXECUTABLE:FILEPATH=E:/perfessional/QT/install/5.15.2/mingw81_64/bin/qmake.exe
//Qwt 6.3 根目录(包含 include/ 或 src/ 以及 lib/)
QWT_ROOT:PATH=
//The directory containing a CMake configuration file for Qt5Core.
Qt5Core_DIR:PATH=E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Core
//The directory containing a CMake configuration file for Qt5Gui.
Qt5Gui_DIR:PATH=E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui
//The directory containing a CMake configuration file for Qt5SerialPort.
Qt5SerialPort_DIR:PATH=E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5SerialPort
//The directory containing a CMake configuration file for Qt5Sql.
Qt5Sql_DIR:PATH=E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Sql
//The directory containing a CMake configuration file for Qt5Widgets.
Qt5Widgets_DIR:PATH=E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Widgets
//The directory containing a CMake configuration file for Qt5.
Qt5_DIR:PATH=E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5
########################
# INTERNAL cache entries
########################
//ADVANCED property for variable: CMAKE_ADDR2LINE
CMAKE_ADDR2LINE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_AR
CMAKE_AR-ADVANCED:INTERNAL=1
//This is the directory where this CMakeCache.txt was created
CMAKE_CACHEFILE_DIR:INTERNAL=g:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug
//Major version of cmake used to create the current loaded cache
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3
//Minor version of cmake used to create the current loaded cache
CMAKE_CACHE_MINOR_VERSION:INTERNAL=29
//Patch version of cmake used to create the current loaded cache
CMAKE_CACHE_PATCH_VERSION:INTERNAL=3
//Path to CMake executable.
CMAKE_COMMAND:INTERNAL=G:/qt/Qt/Tools/CMake_64/bin/cmake.exe
//Path to cpack program executable.
CMAKE_CPACK_COMMAND:INTERNAL=G:/qt/Qt/Tools/CMake_64/bin/cpack.exe
//Path to ctest program executable.
CMAKE_CTEST_COMMAND:INTERNAL=G:/qt/Qt/Tools/CMake_64/bin/ctest.exe
//ADVANCED property for variable: CMAKE_CXX_COMPILER
CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_COMPILER_AR
CMAKE_CXX_COMPILER_AR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_COMPILER_RANLIB
CMAKE_CXX_COMPILER_RANLIB-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS
CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG
CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL
CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO
CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_STANDARD_LIBRARIES
CMAKE_CXX_STANDARD_LIBRARIES-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_DLLTOOL
CMAKE_DLLTOOL-ADVANCED:INTERNAL=1
//Path to cache edit program executable.
CMAKE_EDIT_COMMAND:INTERNAL=G:/qt/Qt/Tools/CMake_64/bin/cmake-gui.exe
//Executable file format
CMAKE_EXECUTABLE_FORMAT:INTERNAL=Unknown
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS
CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG
CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE
CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS
CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1
//Generator instance identifier.
CMAKE_GENERATOR_INSTANCE:INTERNAL=
//Name of generator platform.
CMAKE_GENERATOR_PLATFORM:INTERNAL=
//Name of generator toolset.
CMAKE_GENERATOR_TOOLSET:INTERNAL=
//Source directory with the top level CMakeLists.txt file for this
// project
CMAKE_HOME_DIRECTORY:INTERNAL=G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master
//ADVANCED property for variable: CMAKE_LINKER
CMAKE_LINKER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MAKE_PROGRAM
CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS
CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG
CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE
CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_NM
CMAKE_NM-ADVANCED:INTERNAL=1
//number of local generators
CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=1
//ADVANCED property for variable: CMAKE_OBJCOPY
CMAKE_OBJCOPY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_OBJDUMP
CMAKE_OBJDUMP-ADVANCED:INTERNAL=1
//Platform information initialized
CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RANLIB
CMAKE_RANLIB-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RC_COMPILER
CMAKE_RC_COMPILER-ADVANCED:INTERNAL=1
CMAKE_RC_COMPILER_WORKS:INTERNAL=1
//ADVANCED property for variable: CMAKE_RC_FLAGS
CMAKE_RC_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RC_FLAGS_DEBUG
CMAKE_RC_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RC_FLAGS_MINSIZEREL
CMAKE_RC_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RC_FLAGS_RELEASE
CMAKE_RC_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RC_FLAGS_RELWITHDEBINFO
CMAKE_RC_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_READELF
CMAKE_READELF-ADVANCED:INTERNAL=1
//Path to CMake installation.
CMAKE_ROOT:INTERNAL=G:/qt/Qt/Tools/CMake_64/share/cmake-3.29
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS
CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE
CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH
CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SKIP_RPATH
CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS
CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG
CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE
CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STRIP
CMAKE_STRIP-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_TAPI
CMAKE_TAPI-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE
CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
//linker supports push/pop state
_CMAKE_LINKER_PUSHPOP_STATE_SUPPORTED:INTERNAL=TRUE
@@ -0,0 +1,440 @@
# This is the CMakeCache file.
# For build in directory: g:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug
# It was generated by CMake: G:/qt/Qt/Tools/CMake_64/bin/cmake.exe
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
# VALUE is the current value for the KEY.
########################
# EXTERNAL cache entries
########################
//ARIS 头文件目录(通常无需手动指定)
ARIS_INCLUDE_DIR:PATH=
//ARIS SDK 根目录(包含 include/ 与 lib/libaris.dll.a)
ARIS_ROOT:PATH=
//找不到与目标位数匹配的 ARIS SDK 时,使用内置兼容桩(仅界面/算法,无光谱仪硬件)
CAVITY_ALLOW_ARIS_STUB:BOOL=ON
//构建后自动部署运行库与数据文件
CAVITY_DEPLOY_RUNTIME:BOOL=ON
//Path to a program.
CMAKE_ADDR2LINE:FILEPATH=E:/perfessional/QT/install/Tools/mingw810_64/bin/addr2line.exe
//Path to a program.
CMAKE_AR:FILEPATH=E:/perfessional/QT/install/Tools/mingw810_64/bin/ar.exe
//No help, variable specified on the command line.
CMAKE_BUILD_TYPE:STRING=Debug
//No help, variable specified on the command line.
CMAKE_COLOR_DIAGNOSTICS:BOOL=ON
//CXX compiler
CMAKE_CXX_COMPILER:STRING=E:/perfessional/QT/install/Tools/mingw810_64/bin/g++.exe
//A wrapper around 'ar' adding the appropriate '--plugin' option
// for the GCC compiler
CMAKE_CXX_COMPILER_AR:FILEPATH=E:/perfessional/QT/install/Tools/mingw810_64/bin/gcc-ar.exe
//A wrapper around 'ranlib' adding the appropriate '--plugin' option
// for the GCC compiler
CMAKE_CXX_COMPILER_RANLIB:FILEPATH=E:/perfessional/QT/install/Tools/mingw810_64/bin/gcc-ranlib.exe
//Flags used by the CXX compiler during all build types.
CMAKE_CXX_FLAGS:STRING=-DQT_QML_DEBUG
//Flags used by the CXX compiler during DEBUG builds.
CMAKE_CXX_FLAGS_DEBUG:STRING=-g
//No help, variable specified on the command line.
CMAKE_CXX_FLAGS_INIT:STRING=-DQT_QML_DEBUG
//Flags used by the CXX compiler during MINSIZEREL builds.
CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
//Flags used by the CXX compiler during RELEASE builds.
CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
//Flags used by the CXX compiler during RELWITHDEBINFO builds.
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
CMAKE_CXX_OUTPUT_EXTENSION:STRING=.obj
//Libraries linked by default with all C++ applications.
CMAKE_CXX_STANDARD_LIBRARIES:STRING=-lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32
//No help, variable specified on the command line.
CMAKE_C_COMPILER:FILEPATH=E:/perfessional/QT/install/Tools/mingw810_64/bin/gcc.exe
CMAKE_C_OUTPUT_EXTENSION:STRING=
//Path to a program.
CMAKE_DLLTOOL:FILEPATH=E:/perfessional/QT/install/Tools/mingw810_64/bin/dlltool.exe
//Flags used by the linker during all build types.
CMAKE_EXE_LINKER_FLAGS:STRING=
//Flags used by the linker during DEBUG builds.
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=
//Flags used by the linker during MINSIZEREL builds.
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=
//Flags used by the linker during RELEASE builds.
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=
//Flags used by the linker during RELWITHDEBINFO builds.
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
//Enable/Disable output of compile commands during generation.
CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=
//Value Computed by CMake.
CMAKE_FIND_PACKAGE_REDIRECTS_DIR:STATIC=G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CMakeFiles/pkgRedirects
//No help, variable specified on the command line.
CMAKE_GENERATOR:STRING=Ninja
//Convert GNU import libraries to MS format (requires Visual Studio)
CMAKE_GNUtoMS:BOOL=OFF
//Install path prefix, prepended onto install directories.
CMAKE_INSTALL_PREFIX:PATH=C:/Program Files (x86)/CavityLIBS
//Path to a program.
CMAKE_LINKER:FILEPATH=E:/perfessional/QT/install/Tools/mingw810_64/bin/ld.exe
//Program used to build from build.ninja files.
CMAKE_MAKE_PROGRAM:FILEPATH=E:/toos/Ninja/ninja.exe
//Flags used by the linker during the creation of modules during
// all build types.
CMAKE_MODULE_LINKER_FLAGS:STRING=
//Flags used by the linker during the creation of modules during
// DEBUG builds.
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=
//Flags used by the linker during the creation of modules during
// MINSIZEREL builds.
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=
//Flags used by the linker during the creation of modules during
// RELEASE builds.
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=
//Flags used by the linker during the creation of modules during
// RELWITHDEBINFO builds.
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
//Path to a program.
CMAKE_NM:FILEPATH=E:/perfessional/QT/install/Tools/mingw810_64/bin/nm.exe
//Path to a program.
CMAKE_OBJCOPY:FILEPATH=E:/perfessional/QT/install/Tools/mingw810_64/bin/objcopy.exe
//Path to a program.
CMAKE_OBJDUMP:FILEPATH=E:/perfessional/QT/install/Tools/mingw810_64/bin/objdump.exe
//No help, variable specified on the command line.
CMAKE_PREFIX_PATH:PATH=E:/perfessional/QT/install/5.15.2/mingw81_64
//Value Computed by CMake
CMAKE_PROJECT_DESCRIPTION:STATIC=
//Value Computed by CMake
CMAKE_PROJECT_HOMEPAGE_URL:STATIC=
//No help, variable specified on the command line.
CMAKE_PROJECT_INCLUDE_BEFORE:FILEPATH=G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/.qtc/package-manager/auto-setup.cmake
//Value Computed by CMake
CMAKE_PROJECT_NAME:STATIC=CavityLIBS
//Path to a program.
CMAKE_RANLIB:FILEPATH=E:/perfessional/QT/install/Tools/mingw810_64/bin/ranlib.exe
//RC compiler
CMAKE_RC_COMPILER:FILEPATH=E:/perfessional/QT/install/Tools/mingw810_64/bin/windres.exe
//Flags for Windows Resource Compiler during all build types.
CMAKE_RC_FLAGS:STRING=
//Flags for Windows Resource Compiler during DEBUG builds.
CMAKE_RC_FLAGS_DEBUG:STRING=
//Flags for Windows Resource Compiler during MINSIZEREL builds.
CMAKE_RC_FLAGS_MINSIZEREL:STRING=
//Flags for Windows Resource Compiler during RELEASE builds.
CMAKE_RC_FLAGS_RELEASE:STRING=
//Flags for Windows Resource Compiler during RELWITHDEBINFO builds.
CMAKE_RC_FLAGS_RELWITHDEBINFO:STRING=
//Path to a program.
CMAKE_READELF:FILEPATH=E:/perfessional/QT/install/Tools/mingw810_64/bin/readelf.exe
//Flags used by the linker during the creation of shared libraries
// during all build types.
CMAKE_SHARED_LINKER_FLAGS:STRING=
//Flags used by the linker during the creation of shared libraries
// during DEBUG builds.
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=
//Flags used by the linker during the creation of shared libraries
// during MINSIZEREL builds.
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=
//Flags used by the linker during the creation of shared libraries
// during RELEASE builds.
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=
//Flags used by the linker during the creation of shared libraries
// during RELWITHDEBINFO builds.
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=
//If set, runtime paths are not added when installing shared libraries,
// but are added when building.
CMAKE_SKIP_INSTALL_RPATH:BOOL=NO
//If set, runtime paths are not added when using shared libraries.
CMAKE_SKIP_RPATH:BOOL=NO
//Flags used by the linker during the creation of static libraries
// during all build types.
CMAKE_STATIC_LINKER_FLAGS:STRING=
//Flags used by the linker during the creation of static libraries
// during DEBUG builds.
CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING=
//Flags used by the linker during the creation of static libraries
// during MINSIZEREL builds.
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING=
//Flags used by the linker during the creation of static libraries
// during RELEASE builds.
CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING=
//Flags used by the linker during the creation of static libraries
// during RELWITHDEBINFO builds.
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING=
//Path to a program.
CMAKE_STRIP:FILEPATH=E:/perfessional/QT/install/Tools/mingw810_64/bin/strip.exe
//Path to a program.
CMAKE_TAPI:FILEPATH=CMAKE_TAPI-NOTFOUND
//If this value is on, makefiles will be generated without the
// .SILENT directive, and all commands will be echoed to the console
// during the make. This is useful for debugging only. With Visual
// Studio IDE projects all commands are done without /nologo.
CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE
//Value Computed by CMake
CavityLIBS_BINARY_DIR:STATIC=G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug
//Value Computed by CMake
CavityLIBS_IS_TOP_LEVEL:STATIC=ON
//Value Computed by CMake
CavityLIBS_SOURCE_DIR:STATIC=G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master
//libusb 头文件目录(其下应有 libusb-1.0/libusb.h)
LIBUSB_INCLUDE_DIR:PATH=
//Use CLI mode for Qt Creator's MaintenanceTool find_package provider
QT_CREATOR_MAINTENANCE_TOOL_PROVIDER_USE_CLI:BOOL=OFF
//Skip Qt Creator's MaintenanceTool find_package provider
QT_CREATOR_SKIP_MAINTENANCE_TOOL_PROVIDER:BOOL=OFF
//Skip Qt Creator's package manager auto-setup
QT_CREATOR_SKIP_PACKAGE_MANAGER_SETUP:BOOL=OFF
//Qt Creator source groups extensions
QT_CREATOR_SOURCE_GROUPS:BOOL=ON
//No help, variable specified on the command line.
QT_MAINTENANCE_TOOL:FILEPATH=E:/perfessional/QT/install/MaintenanceTool.exe
//No help, variable specified on the command line.
QT_QMAKE_EXECUTABLE:FILEPATH=E:/perfessional/QT/install/5.15.2/mingw81_64/bin/qmake.exe
//Qwt 6.3 根目录(包含 include/ 或 src/ 以及 lib/)
QWT_ROOT:PATH=
//The directory containing a CMake configuration file for Qt5Core.
Qt5Core_DIR:PATH=E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Core
//The directory containing a CMake configuration file for Qt5Gui.
Qt5Gui_DIR:PATH=E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui
//The directory containing a CMake configuration file for Qt5SerialPort.
Qt5SerialPort_DIR:PATH=E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5SerialPort
//The directory containing a CMake configuration file for Qt5Sql.
Qt5Sql_DIR:PATH=E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Sql
//The directory containing a CMake configuration file for Qt5Widgets.
Qt5Widgets_DIR:PATH=E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Widgets
//The directory containing a CMake configuration file for Qt5.
Qt5_DIR:PATH=E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5
########################
# INTERNAL cache entries
########################
//ADVANCED property for variable: CMAKE_ADDR2LINE
CMAKE_ADDR2LINE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_AR
CMAKE_AR-ADVANCED:INTERNAL=1
//This is the directory where this CMakeCache.txt was created
CMAKE_CACHEFILE_DIR:INTERNAL=g:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug
//Major version of cmake used to create the current loaded cache
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3
//Minor version of cmake used to create the current loaded cache
CMAKE_CACHE_MINOR_VERSION:INTERNAL=29
//Patch version of cmake used to create the current loaded cache
CMAKE_CACHE_PATCH_VERSION:INTERNAL=3
//Path to CMake executable.
CMAKE_COMMAND:INTERNAL=G:/qt/Qt/Tools/CMake_64/bin/cmake.exe
//Path to cpack program executable.
CMAKE_CPACK_COMMAND:INTERNAL=G:/qt/Qt/Tools/CMake_64/bin/cpack.exe
//Path to ctest program executable.
CMAKE_CTEST_COMMAND:INTERNAL=G:/qt/Qt/Tools/CMake_64/bin/ctest.exe
//ADVANCED property for variable: CMAKE_CXX_COMPILER
CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_COMPILER_AR
CMAKE_CXX_COMPILER_AR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_COMPILER_RANLIB
CMAKE_CXX_COMPILER_RANLIB-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS
CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG
CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL
CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO
CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_STANDARD_LIBRARIES
CMAKE_CXX_STANDARD_LIBRARIES-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_DLLTOOL
CMAKE_DLLTOOL-ADVANCED:INTERNAL=1
//Path to cache edit program executable.
CMAKE_EDIT_COMMAND:INTERNAL=G:/qt/Qt/Tools/CMake_64/bin/cmake-gui.exe
//Executable file format
CMAKE_EXECUTABLE_FORMAT:INTERNAL=Unknown
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS
CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG
CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE
CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS
CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1
//Generator instance identifier.
CMAKE_GENERATOR_INSTANCE:INTERNAL=
//Name of generator platform.
CMAKE_GENERATOR_PLATFORM:INTERNAL=
//Name of generator toolset.
CMAKE_GENERATOR_TOOLSET:INTERNAL=
//Source directory with the top level CMakeLists.txt file for this
// project
CMAKE_HOME_DIRECTORY:INTERNAL=G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master
//ADVANCED property for variable: CMAKE_LINKER
CMAKE_LINKER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MAKE_PROGRAM
CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS
CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG
CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE
CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_NM
CMAKE_NM-ADVANCED:INTERNAL=1
//number of local generators
CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=1
//ADVANCED property for variable: CMAKE_OBJCOPY
CMAKE_OBJCOPY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_OBJDUMP
CMAKE_OBJDUMP-ADVANCED:INTERNAL=1
//Platform information initialized
CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RANLIB
CMAKE_RANLIB-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RC_COMPILER
CMAKE_RC_COMPILER-ADVANCED:INTERNAL=1
CMAKE_RC_COMPILER_WORKS:INTERNAL=1
//ADVANCED property for variable: CMAKE_RC_FLAGS
CMAKE_RC_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RC_FLAGS_DEBUG
CMAKE_RC_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RC_FLAGS_MINSIZEREL
CMAKE_RC_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RC_FLAGS_RELEASE
CMAKE_RC_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RC_FLAGS_RELWITHDEBINFO
CMAKE_RC_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_READELF
CMAKE_READELF-ADVANCED:INTERNAL=1
//Path to CMake installation.
CMAKE_ROOT:INTERNAL=G:/qt/Qt/Tools/CMake_64/share/cmake-3.29
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS
CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE
CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH
CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SKIP_RPATH
CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS
CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG
CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE
CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STRIP
CMAKE_STRIP-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_TAPI
CMAKE_TAPI-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE
CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
//linker supports push/pop state
_CMAKE_LINKER_PUSHPOP_STATE_SUPPORTED:INTERNAL=TRUE
@@ -0,0 +1,92 @@
set(CMAKE_CXX_COMPILER "E:/perfessional/QT/install/Tools/mingw810_64/bin/g++.exe")
set(CMAKE_CXX_COMPILER_ARG1 "")
set(CMAKE_CXX_COMPILER_ID "GNU")
set(CMAKE_CXX_COMPILER_VERSION "8.1.0")
set(CMAKE_CXX_COMPILER_VERSION_INTERNAL "")
set(CMAKE_CXX_COMPILER_WRAPPER "")
set(CMAKE_CXX_STANDARD_COMPUTED_DEFAULT "14")
set(CMAKE_CXX_EXTENSIONS_COMPUTED_DEFAULT "ON")
set(CMAKE_CXX_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters;cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates;cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates;cxx_std_17;cxx_std_20")
set(CMAKE_CXX98_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters")
set(CMAKE_CXX11_COMPILE_FEATURES "cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates")
set(CMAKE_CXX14_COMPILE_FEATURES "cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates")
set(CMAKE_CXX17_COMPILE_FEATURES "cxx_std_17")
set(CMAKE_CXX20_COMPILE_FEATURES "cxx_std_20")
set(CMAKE_CXX23_COMPILE_FEATURES "")
set(CMAKE_CXX_PLATFORM_ID "MinGW")
set(CMAKE_CXX_SIMULATE_ID "")
set(CMAKE_CXX_COMPILER_FRONTEND_VARIANT "GNU")
set(CMAKE_CXX_SIMULATE_VERSION "")
set(CMAKE_AR "E:/perfessional/QT/install/Tools/mingw810_64/bin/ar.exe")
set(CMAKE_CXX_COMPILER_AR "E:/perfessional/QT/install/Tools/mingw810_64/bin/gcc-ar.exe")
set(CMAKE_RANLIB "E:/perfessional/QT/install/Tools/mingw810_64/bin/ranlib.exe")
set(CMAKE_CXX_COMPILER_RANLIB "E:/perfessional/QT/install/Tools/mingw810_64/bin/gcc-ranlib.exe")
set(CMAKE_LINKER "E:/perfessional/QT/install/Tools/mingw810_64/bin/ld.exe")
set(CMAKE_LINKER_LINK "")
set(CMAKE_LINKER_LLD "")
set(CMAKE_CXX_COMPILER_LINKER "E:/perfessional/QT/install/Tools/mingw810_64/x86_64-w64-mingw32/bin/ld.exe")
set(CMAKE_CXX_COMPILER_LINKER_ID "GNU")
set(CMAKE_CXX_COMPILER_LINKER_VERSION 2.30)
set(CMAKE_CXX_COMPILER_LINKER_FRONTEND_VARIANT GNU)
set(CMAKE_MT "")
set(CMAKE_TAPI "CMAKE_TAPI-NOTFOUND")
set(CMAKE_COMPILER_IS_GNUCXX 1)
set(CMAKE_CXX_COMPILER_LOADED 1)
set(CMAKE_CXX_COMPILER_WORKS TRUE)
set(CMAKE_CXX_ABI_COMPILED TRUE)
set(CMAKE_CXX_COMPILER_ENV_VAR "CXX")
set(CMAKE_CXX_COMPILER_ID_RUN 1)
set(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;m;mm;mpp;CPP;ixx;cppm;ccm;cxxm;c++m)
set(CMAKE_CXX_IGNORE_EXTENSIONS inl;h;hpp;HPP;H;o;O;obj;OBJ;def;DEF;rc;RC)
foreach (lang IN ITEMS C OBJC OBJCXX)
if (CMAKE_${lang}_COMPILER_ID_RUN)
foreach(extension IN LISTS CMAKE_${lang}_SOURCE_FILE_EXTENSIONS)
list(REMOVE_ITEM CMAKE_CXX_SOURCE_FILE_EXTENSIONS ${extension})
endforeach()
endif()
endforeach()
set(CMAKE_CXX_LINKER_PREFERENCE 30)
set(CMAKE_CXX_LINKER_PREFERENCE_PROPAGATES 1)
set(CMAKE_CXX_LINKER_DEPFILE_SUPPORTED FALSE)
# Save compiler ABI information.
set(CMAKE_CXX_SIZEOF_DATA_PTR "8")
set(CMAKE_CXX_COMPILER_ABI "")
set(CMAKE_CXX_BYTE_ORDER "LITTLE_ENDIAN")
set(CMAKE_CXX_LIBRARY_ARCHITECTURE "")
if(CMAKE_CXX_SIZEOF_DATA_PTR)
set(CMAKE_SIZEOF_VOID_P "${CMAKE_CXX_SIZEOF_DATA_PTR}")
endif()
if(CMAKE_CXX_COMPILER_ABI)
set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_CXX_COMPILER_ABI}")
endif()
if(CMAKE_CXX_LIBRARY_ARCHITECTURE)
set(CMAKE_LIBRARY_ARCHITECTURE "")
endif()
set(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX "")
if(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX)
set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_CXX_CL_SHOWINCLUDES_PREFIX}")
endif()
set(CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES "E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++;E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/x86_64-w64-mingw32;E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/backward;E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0/include;E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0/include-fixed;E:/perfessional/QT/install/Tools/mingw810_64/x86_64-w64-mingw32/include")
set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "stdc++;mingw32;gcc_s;gcc;moldname;mingwex;pthread;advapi32;shell32;user32;kernel32;iconv;mingw32;gcc_s;gcc;moldname;mingwex")
set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0;E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc;E:/perfessional/QT/install/Tools/mingw810_64/x86_64-w64-mingw32/lib;E:/perfessional/QT/install/Tools/mingw810_64/lib")
set(CMAKE_CXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "")
set(CMAKE_CXX_COMPILER_CLANG_RESOURCE_DIR "")
@@ -0,0 +1,6 @@
set(CMAKE_RC_COMPILER "E:/perfessional/QT/install/Tools/mingw810_64/bin/windres.exe")
set(CMAKE_RC_COMPILER_ARG1 "")
set(CMAKE_RC_COMPILER_LOADED 1)
set(CMAKE_RC_SOURCE_FILE_EXTENSIONS rc;RC)
set(CMAKE_RC_OUTPUT_EXTENSION .obj)
set(CMAKE_RC_COMPILER_ENV_VAR "RC")
@@ -0,0 +1,15 @@
set(CMAKE_HOST_SYSTEM "Windows-10.0.19045")
set(CMAKE_HOST_SYSTEM_NAME "Windows")
set(CMAKE_HOST_SYSTEM_VERSION "10.0.19045")
set(CMAKE_HOST_SYSTEM_PROCESSOR "AMD64")
set(CMAKE_SYSTEM "Windows-10.0.19045")
set(CMAKE_SYSTEM_NAME "Windows")
set(CMAKE_SYSTEM_VERSION "10.0.19045")
set(CMAKE_SYSTEM_PROCESSOR "AMD64")
set(CMAKE_CROSSCOMPILING "FALSE")
set(CMAKE_SYSTEM_LOADED 1)
@@ -0,0 +1,878 @@
/* This source file must have a .cpp extension so that all C++ compilers
recognize the extension without flags. Borland does not know .cxx for
example. */
#ifndef __cplusplus
# error "A C compiler has been selected for C++."
#endif
#if !defined(__has_include)
/* If the compiler does not have __has_include, pretend the answer is
always no. */
# define __has_include(x) 0
#endif
/* Version number components: V=Version, R=Revision, P=Patch
Version date components: YYYY=Year, MM=Month, DD=Day */
#if defined(__INTEL_COMPILER) || defined(__ICC)
# define COMPILER_ID "Intel"
# if defined(_MSC_VER)
# define SIMULATE_ID "MSVC"
# endif
# if defined(__GNUC__)
# define SIMULATE_ID "GNU"
# endif
/* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later,
except that a few beta releases use the old format with V=2021. */
# if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111
# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
# if defined(__INTEL_COMPILER_UPDATE)
# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
# else
# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
# endif
# else
# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)
# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)
/* The third version component from --version is an update index,
but no macro is provided for it. */
# define COMPILER_VERSION_PATCH DEC(0)
# endif
# if defined(__INTEL_COMPILER_BUILD_DATE)
/* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
# endif
# if defined(_MSC_VER)
/* _MSC_VER = VVRR */
# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
# endif
# if defined(__GNUC__)
# define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
# elif defined(__GNUG__)
# define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
# endif
# if defined(__GNUC_MINOR__)
# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
# endif
# if defined(__GNUC_PATCHLEVEL__)
# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
# endif
#elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER)
# define COMPILER_ID "IntelLLVM"
#if defined(_MSC_VER)
# define SIMULATE_ID "MSVC"
#endif
#if defined(__GNUC__)
# define SIMULATE_ID "GNU"
#endif
/* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and
* later. Look for 6 digit vs. 8 digit version number to decide encoding.
* VVVV is no smaller than the current year when a version is released.
*/
#if __INTEL_LLVM_COMPILER < 1000000L
# define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)
# define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)
# define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10)
#else
# define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)
# define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)
# define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100)
#endif
#if defined(_MSC_VER)
/* _MSC_VER = VVRR */
# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
#endif
#if defined(__GNUC__)
# define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
#elif defined(__GNUG__)
# define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
#endif
#if defined(__GNUC_MINOR__)
# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
#endif
#if defined(__GNUC_PATCHLEVEL__)
# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
#endif
#elif defined(__PATHCC__)
# define COMPILER_ID "PathScale"
# define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
# if defined(__PATHCC_PATCHLEVEL__)
# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
# endif
#elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
# define COMPILER_ID "Embarcadero"
# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
# define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
#elif defined(__BORLANDC__)
# define COMPILER_ID "Borland"
/* __BORLANDC__ = 0xVRR */
# define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
# define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
#elif defined(__WATCOMC__) && __WATCOMC__ < 1200
# define COMPILER_ID "Watcom"
/* __WATCOMC__ = VVRR */
# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
# if (__WATCOMC__ % 10) > 0
# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
# endif
#elif defined(__WATCOMC__)
# define COMPILER_ID "OpenWatcom"
/* __WATCOMC__ = VVRP + 1100 */
# define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
# if (__WATCOMC__ % 10) > 0
# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
# endif
#elif defined(__SUNPRO_CC)
# define COMPILER_ID "SunPro"
# if __SUNPRO_CC >= 0x5100
/* __SUNPRO_CC = 0xVRRP */
# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
# else
/* __SUNPRO_CC = 0xVRP */
# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
# endif
#elif defined(__HP_aCC)
# define COMPILER_ID "HP"
/* __HP_aCC = VVRRPP */
# define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
# define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
# define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
#elif defined(__DECCXX)
# define COMPILER_ID "Compaq"
/* __DECCXX_VER = VVRRTPPPP */
# define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
# define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
# define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
#elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
# define COMPILER_ID "zOS"
/* __IBMCPP__ = VRP */
# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
#elif defined(__open_xl__) && defined(__clang__)
# define COMPILER_ID "IBMClang"
# define COMPILER_VERSION_MAJOR DEC(__open_xl_version__)
# define COMPILER_VERSION_MINOR DEC(__open_xl_release__)
# define COMPILER_VERSION_PATCH DEC(__open_xl_modification__)
# define COMPILER_VERSION_TWEAK DEC(__open_xl_ptf_fix_level__)
#elif defined(__ibmxl__) && defined(__clang__)
# define COMPILER_ID "XLClang"
# define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
# define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
# define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
# define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
#elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
# define COMPILER_ID "XL"
/* __IBMCPP__ = VRP */
# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
#elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
# define COMPILER_ID "VisualAge"
/* __IBMCPP__ = VRP */
# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
#elif defined(__NVCOMPILER)
# define COMPILER_ID "NVHPC"
# define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)
# define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)
# if defined(__NVCOMPILER_PATCHLEVEL__)
# define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)
# endif
#elif defined(__PGI)
# define COMPILER_ID "PGI"
# define COMPILER_VERSION_MAJOR DEC(__PGIC__)
# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
# if defined(__PGIC_PATCHLEVEL__)
# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
# endif
#elif defined(__clang__) && defined(__cray__)
# define COMPILER_ID "CrayClang"
# define COMPILER_VERSION_MAJOR DEC(__cray_major__)
# define COMPILER_VERSION_MINOR DEC(__cray_minor__)
# define COMPILER_VERSION_PATCH DEC(__cray_patchlevel__)
# define COMPILER_VERSION_INTERNAL_STR __clang_version__
#elif defined(_CRAYC)
# define COMPILER_ID "Cray"
# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
#elif defined(__TI_COMPILER_VERSION__)
# define COMPILER_ID "TI"
/* __TI_COMPILER_VERSION__ = VVVRRRPPP */
# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
# define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
#elif defined(__CLANG_FUJITSU)
# define COMPILER_ID "FujitsuClang"
# define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
# define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
# define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
# define COMPILER_VERSION_INTERNAL_STR __clang_version__
#elif defined(__FUJITSU)
# define COMPILER_ID "Fujitsu"
# if defined(__FCC_version__)
# define COMPILER_VERSION __FCC_version__
# elif defined(__FCC_major__)
# define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
# define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
# define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
# endif
# if defined(__fcc_version)
# define COMPILER_VERSION_INTERNAL DEC(__fcc_version)
# elif defined(__FCC_VERSION)
# define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION)
# endif
#elif defined(__ghs__)
# define COMPILER_ID "GHS"
/* __GHS_VERSION_NUMBER = VVVVRP */
# ifdef __GHS_VERSION_NUMBER
# define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
# define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
# define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
# endif
#elif defined(__TASKING__)
# define COMPILER_ID "Tasking"
# define COMPILER_VERSION_MAJOR DEC(__VERSION__/1000)
# define COMPILER_VERSION_MINOR DEC(__VERSION__ % 100)
# define COMPILER_VERSION_INTERNAL DEC(__VERSION__)
#elif defined(__ORANGEC__)
# define COMPILER_ID "OrangeC"
# define COMPILER_VERSION_MAJOR DEC(__ORANGEC_MAJOR__)
# define COMPILER_VERSION_MINOR DEC(__ORANGEC_MINOR__)
# define COMPILER_VERSION_PATCH DEC(__ORANGEC_PATCHLEVEL__)
#elif defined(__SCO_VERSION__)
# define COMPILER_ID "SCO"
#elif defined(__ARMCC_VERSION) && !defined(__clang__)
# define COMPILER_ID "ARMCC"
#if __ARMCC_VERSION >= 1000000
/* __ARMCC_VERSION = VRRPPPP */
# define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
# define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
# define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
#else
/* __ARMCC_VERSION = VRPPPP */
# define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
# define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
# define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
#endif
#elif defined(__clang__) && defined(__apple_build_version__)
# define COMPILER_ID "AppleClang"
# if defined(_MSC_VER)
# define SIMULATE_ID "MSVC"
# endif
# define COMPILER_VERSION_MAJOR DEC(__clang_major__)
# define COMPILER_VERSION_MINOR DEC(__clang_minor__)
# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
# if defined(_MSC_VER)
/* _MSC_VER = VVRR */
# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
# endif
# define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
#elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
# define COMPILER_ID "ARMClang"
# define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
# define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
# define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION/100 % 100)
# define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
#elif defined(__clang__) && defined(__ti__)
# define COMPILER_ID "TIClang"
# define COMPILER_VERSION_MAJOR DEC(__ti_major__)
# define COMPILER_VERSION_MINOR DEC(__ti_minor__)
# define COMPILER_VERSION_PATCH DEC(__ti_patchlevel__)
# define COMPILER_VERSION_INTERNAL DEC(__ti_version__)
#elif defined(__clang__)
# define COMPILER_ID "Clang"
# if defined(_MSC_VER)
# define SIMULATE_ID "MSVC"
# endif
# define COMPILER_VERSION_MAJOR DEC(__clang_major__)
# define COMPILER_VERSION_MINOR DEC(__clang_minor__)
# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
# if defined(_MSC_VER)
/* _MSC_VER = VVRR */
# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
# endif
#elif defined(__LCC__) && (defined(__GNUC__) || defined(__GNUG__) || defined(__MCST__))
# define COMPILER_ID "LCC"
# define COMPILER_VERSION_MAJOR DEC(__LCC__ / 100)
# define COMPILER_VERSION_MINOR DEC(__LCC__ % 100)
# if defined(__LCC_MINOR__)
# define COMPILER_VERSION_PATCH DEC(__LCC_MINOR__)
# endif
# if defined(__GNUC__) && defined(__GNUC_MINOR__)
# define SIMULATE_ID "GNU"
# define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
# if defined(__GNUC_PATCHLEVEL__)
# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
# endif
# endif
#elif defined(__GNUC__) || defined(__GNUG__)
# define COMPILER_ID "GNU"
# if defined(__GNUC__)
# define COMPILER_VERSION_MAJOR DEC(__GNUC__)
# else
# define COMPILER_VERSION_MAJOR DEC(__GNUG__)
# endif
# if defined(__GNUC_MINOR__)
# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
# endif
# if defined(__GNUC_PATCHLEVEL__)
# define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
# endif
#elif defined(_MSC_VER)
# define COMPILER_ID "MSVC"
/* _MSC_VER = VVRR */
# define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
# define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
# if defined(_MSC_FULL_VER)
# if _MSC_VER >= 1400
/* _MSC_FULL_VER = VVRRPPPPP */
# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
# else
/* _MSC_FULL_VER = VVRRPPPP */
# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
# endif
# endif
# if defined(_MSC_BUILD)
# define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
# endif
#elif defined(_ADI_COMPILER)
# define COMPILER_ID "ADSP"
#if defined(__VERSIONNUM__)
/* __VERSIONNUM__ = 0xVVRRPPTT */
# define COMPILER_VERSION_MAJOR DEC(__VERSIONNUM__ >> 24 & 0xFF)
# define COMPILER_VERSION_MINOR DEC(__VERSIONNUM__ >> 16 & 0xFF)
# define COMPILER_VERSION_PATCH DEC(__VERSIONNUM__ >> 8 & 0xFF)
# define COMPILER_VERSION_TWEAK DEC(__VERSIONNUM__ & 0xFF)
#endif
#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
# define COMPILER_ID "IAR"
# if defined(__VER__) && defined(__ICCARM__)
# define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
# define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
# define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
# elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__))
# define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
# define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
# define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
# endif
/* These compilers are either not known or too old to define an
identification macro. Try to identify the platform and guess that
it is the native compiler. */
#elif defined(__hpux) || defined(__hpua)
# define COMPILER_ID "HP"
#else /* unknown compiler */
# define COMPILER_ID ""
#endif
/* Construct the string literal in pieces to prevent the source from
getting matched. Store it in a pointer rather than an array
because some compilers will just produce instructions to fill the
array rather than assigning a pointer to a static array. */
char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
#ifdef SIMULATE_ID
char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
#endif
#ifdef __QNXNTO__
char const* qnxnto = "INFO" ":" "qnxnto[]";
#endif
#if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
#endif
#define STRINGIFY_HELPER(X) #X
#define STRINGIFY(X) STRINGIFY_HELPER(X)
/* Identify known platforms by name. */
#if defined(__linux) || defined(__linux__) || defined(linux)
# define PLATFORM_ID "Linux"
#elif defined(__MSYS__)
# define PLATFORM_ID "MSYS"
#elif defined(__CYGWIN__)
# define PLATFORM_ID "Cygwin"
#elif defined(__MINGW32__)
# define PLATFORM_ID "MinGW"
#elif defined(__APPLE__)
# define PLATFORM_ID "Darwin"
#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
# define PLATFORM_ID "Windows"
#elif defined(__FreeBSD__) || defined(__FreeBSD)
# define PLATFORM_ID "FreeBSD"
#elif defined(__NetBSD__) || defined(__NetBSD)
# define PLATFORM_ID "NetBSD"
#elif defined(__OpenBSD__) || defined(__OPENBSD)
# define PLATFORM_ID "OpenBSD"
#elif defined(__sun) || defined(sun)
# define PLATFORM_ID "SunOS"
#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
# define PLATFORM_ID "AIX"
#elif defined(__hpux) || defined(__hpux__)
# define PLATFORM_ID "HP-UX"
#elif defined(__HAIKU__)
# define PLATFORM_ID "Haiku"
#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
# define PLATFORM_ID "BeOS"
#elif defined(__QNX__) || defined(__QNXNTO__)
# define PLATFORM_ID "QNX"
#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
# define PLATFORM_ID "Tru64"
#elif defined(__riscos) || defined(__riscos__)
# define PLATFORM_ID "RISCos"
#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
# define PLATFORM_ID "SINIX"
#elif defined(__UNIX_SV__)
# define PLATFORM_ID "UNIX_SV"
#elif defined(__bsdos__)
# define PLATFORM_ID "BSDOS"
#elif defined(_MPRAS) || defined(MPRAS)
# define PLATFORM_ID "MP-RAS"
#elif defined(__osf) || defined(__osf__)
# define PLATFORM_ID "OSF1"
#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
# define PLATFORM_ID "SCO_SV"
#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
# define PLATFORM_ID "ULTRIX"
#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
# define PLATFORM_ID "Xenix"
#elif defined(__WATCOMC__)
# if defined(__LINUX__)
# define PLATFORM_ID "Linux"
# elif defined(__DOS__)
# define PLATFORM_ID "DOS"
# elif defined(__OS2__)
# define PLATFORM_ID "OS2"
# elif defined(__WINDOWS__)
# define PLATFORM_ID "Windows3x"
# elif defined(__VXWORKS__)
# define PLATFORM_ID "VxWorks"
# else /* unknown platform */
# define PLATFORM_ID
# endif
#elif defined(__INTEGRITY)
# if defined(INT_178B)
# define PLATFORM_ID "Integrity178"
# else /* regular Integrity */
# define PLATFORM_ID "Integrity"
# endif
# elif defined(_ADI_COMPILER)
# define PLATFORM_ID "ADSP"
#else /* unknown platform */
# define PLATFORM_ID
#endif
/* For windows compilers MSVC and Intel we can determine
the architecture of the compiler being used. This is because
the compilers do not have flags that can change the architecture,
but rather depend on which compiler is being used
*/
#if defined(_WIN32) && defined(_MSC_VER)
# if defined(_M_IA64)
# define ARCHITECTURE_ID "IA64"
# elif defined(_M_ARM64EC)
# define ARCHITECTURE_ID "ARM64EC"
# elif defined(_M_X64) || defined(_M_AMD64)
# define ARCHITECTURE_ID "x64"
# elif defined(_M_IX86)
# define ARCHITECTURE_ID "X86"
# elif defined(_M_ARM64)
# define ARCHITECTURE_ID "ARM64"
# elif defined(_M_ARM)
# if _M_ARM == 4
# define ARCHITECTURE_ID "ARMV4I"
# elif _M_ARM == 5
# define ARCHITECTURE_ID "ARMV5I"
# else
# define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
# endif
# elif defined(_M_MIPS)
# define ARCHITECTURE_ID "MIPS"
# elif defined(_M_SH)
# define ARCHITECTURE_ID "SHx"
# else /* unknown architecture */
# define ARCHITECTURE_ID ""
# endif
#elif defined(__WATCOMC__)
# if defined(_M_I86)
# define ARCHITECTURE_ID "I86"
# elif defined(_M_IX86)
# define ARCHITECTURE_ID "X86"
# else /* unknown architecture */
# define ARCHITECTURE_ID ""
# endif
#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
# if defined(__ICCARM__)
# define ARCHITECTURE_ID "ARM"
# elif defined(__ICCRX__)
# define ARCHITECTURE_ID "RX"
# elif defined(__ICCRH850__)
# define ARCHITECTURE_ID "RH850"
# elif defined(__ICCRL78__)
# define ARCHITECTURE_ID "RL78"
# elif defined(__ICCRISCV__)
# define ARCHITECTURE_ID "RISCV"
# elif defined(__ICCAVR__)
# define ARCHITECTURE_ID "AVR"
# elif defined(__ICC430__)
# define ARCHITECTURE_ID "MSP430"
# elif defined(__ICCV850__)
# define ARCHITECTURE_ID "V850"
# elif defined(__ICC8051__)
# define ARCHITECTURE_ID "8051"
# elif defined(__ICCSTM8__)
# define ARCHITECTURE_ID "STM8"
# else /* unknown architecture */
# define ARCHITECTURE_ID ""
# endif
#elif defined(__ghs__)
# if defined(__PPC64__)
# define ARCHITECTURE_ID "PPC64"
# elif defined(__ppc__)
# define ARCHITECTURE_ID "PPC"
# elif defined(__ARM__)
# define ARCHITECTURE_ID "ARM"
# elif defined(__x86_64__)
# define ARCHITECTURE_ID "x64"
# elif defined(__i386__)
# define ARCHITECTURE_ID "X86"
# else /* unknown architecture */
# define ARCHITECTURE_ID ""
# endif
#elif defined(__clang__) && defined(__ti__)
# if defined(__ARM_ARCH)
# define ARCHITECTURE_ID "Arm"
# else /* unknown architecture */
# define ARCHITECTURE_ID ""
# endif
#elif defined(__TI_COMPILER_VERSION__)
# if defined(__TI_ARM__)
# define ARCHITECTURE_ID "ARM"
# elif defined(__MSP430__)
# define ARCHITECTURE_ID "MSP430"
# elif defined(__TMS320C28XX__)
# define ARCHITECTURE_ID "TMS320C28x"
# elif defined(__TMS320C6X__) || defined(_TMS320C6X)
# define ARCHITECTURE_ID "TMS320C6x"
# else /* unknown architecture */
# define ARCHITECTURE_ID ""
# endif
# elif defined(__ADSPSHARC__)
# define ARCHITECTURE_ID "SHARC"
# elif defined(__ADSPBLACKFIN__)
# define ARCHITECTURE_ID "Blackfin"
#elif defined(__TASKING__)
# if defined(__CTC__) || defined(__CPTC__)
# define ARCHITECTURE_ID "TriCore"
# elif defined(__CMCS__)
# define ARCHITECTURE_ID "MCS"
# elif defined(__CARM__)
# define ARCHITECTURE_ID "ARM"
# elif defined(__CARC__)
# define ARCHITECTURE_ID "ARC"
# elif defined(__C51__)
# define ARCHITECTURE_ID "8051"
# elif defined(__CPCP__)
# define ARCHITECTURE_ID "PCP"
# else
# define ARCHITECTURE_ID ""
# endif
#else
# define ARCHITECTURE_ID
#endif
/* Convert integer to decimal digit literals. */
#define DEC(n) \
('0' + (((n) / 10000000)%10)), \
('0' + (((n) / 1000000)%10)), \
('0' + (((n) / 100000)%10)), \
('0' + (((n) / 10000)%10)), \
('0' + (((n) / 1000)%10)), \
('0' + (((n) / 100)%10)), \
('0' + (((n) / 10)%10)), \
('0' + ((n) % 10))
/* Convert integer to hex digit literals. */
#define HEX(n) \
('0' + ((n)>>28 & 0xF)), \
('0' + ((n)>>24 & 0xF)), \
('0' + ((n)>>20 & 0xF)), \
('0' + ((n)>>16 & 0xF)), \
('0' + ((n)>>12 & 0xF)), \
('0' + ((n)>>8 & 0xF)), \
('0' + ((n)>>4 & 0xF)), \
('0' + ((n) & 0xF))
/* Construct a string literal encoding the version number. */
#ifdef COMPILER_VERSION
char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]";
/* Construct a string literal encoding the version number components. */
#elif defined(COMPILER_VERSION_MAJOR)
char const info_version[] = {
'I', 'N', 'F', 'O', ':',
'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
COMPILER_VERSION_MAJOR,
# ifdef COMPILER_VERSION_MINOR
'.', COMPILER_VERSION_MINOR,
# ifdef COMPILER_VERSION_PATCH
'.', COMPILER_VERSION_PATCH,
# ifdef COMPILER_VERSION_TWEAK
'.', COMPILER_VERSION_TWEAK,
# endif
# endif
# endif
']','\0'};
#endif
/* Construct a string literal encoding the internal version number. */
#ifdef COMPILER_VERSION_INTERNAL
char const info_version_internal[] = {
'I', 'N', 'F', 'O', ':',
'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
'i','n','t','e','r','n','a','l','[',
COMPILER_VERSION_INTERNAL,']','\0'};
#elif defined(COMPILER_VERSION_INTERNAL_STR)
char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";
#endif
/* Construct a string literal encoding the version number components. */
#ifdef SIMULATE_VERSION_MAJOR
char const info_simulate_version[] = {
'I', 'N', 'F', 'O', ':',
's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
SIMULATE_VERSION_MAJOR,
# ifdef SIMULATE_VERSION_MINOR
'.', SIMULATE_VERSION_MINOR,
# ifdef SIMULATE_VERSION_PATCH
'.', SIMULATE_VERSION_PATCH,
# ifdef SIMULATE_VERSION_TWEAK
'.', SIMULATE_VERSION_TWEAK,
# endif
# endif
# endif
']','\0'};
#endif
/* Construct the string literal in pieces to prevent the source from
getting matched. Store it in a pointer rather than an array
because some compilers will just produce instructions to fill the
array rather than assigning a pointer to a static array. */
char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
#if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L
# if defined(__INTEL_CXX11_MODE__)
# if defined(__cpp_aggregate_nsdmi)
# define CXX_STD 201402L
# else
# define CXX_STD 201103L
# endif
# else
# define CXX_STD 199711L
# endif
#elif defined(_MSC_VER) && defined(_MSVC_LANG)
# define CXX_STD _MSVC_LANG
#else
# define CXX_STD __cplusplus
#endif
const char* info_language_standard_default = "INFO" ":" "standard_default["
#if CXX_STD > 202002L
"23"
#elif CXX_STD > 201703L
"20"
#elif CXX_STD >= 201703L
"17"
#elif CXX_STD >= 201402L
"14"
#elif CXX_STD >= 201103L
"11"
#else
"98"
#endif
"]";
const char* info_language_extensions_default = "INFO" ":" "extensions_default["
#if (defined(__clang__) || defined(__GNUC__) || defined(__xlC__) || \
defined(__TI_COMPILER_VERSION__)) && \
!defined(__STRICT_ANSI__)
"ON"
#else
"OFF"
#endif
"]";
/*--------------------------------------------------------------------------*/
int main(int argc, char* argv[])
{
int require = 0;
require += info_compiler[argc];
require += info_platform[argc];
require += info_arch[argc];
#ifdef COMPILER_VERSION_MAJOR
require += info_version[argc];
#endif
#ifdef COMPILER_VERSION_INTERNAL
require += info_version_internal[argc];
#endif
#ifdef SIMULATE_ID
require += info_simulate[argc];
#endif
#ifdef SIMULATE_VERSION_MAJOR
require += info_simulate_version[argc];
#endif
#if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
require += info_cray[argc];
#endif
require += info_language_standard_default[argc];
require += info_language_extensions_default[argc];
(void)argv;
return require;
}
@@ -0,0 +1,316 @@
---
events:
-
kind: "message-v1"
backtrace:
- "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeDetermineSystem.cmake:205 (message)"
- "CMakeLists.txt:20 (project)"
message: |
The system is: Windows - 10.0.19045 - AMD64
-
kind: "message-v1"
backtrace:
- "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeDetermineCompilerId.cmake:17 (message)"
- "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeDetermineCompilerId.cmake:64 (__determine_compiler_id_test)"
- "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeDetermineCXXCompiler.cmake:126 (CMAKE_DETERMINE_COMPILER_ID)"
- "CMakeLists.txt:20 (project)"
message: |
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: E:/perfessional/QT/install/Tools/mingw810_64/bin/g++.exe
Build flags: -DQT_QML_DEBUG
Id flags:
The output was:
0
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.exe"
The CXX compiler identification is GNU, found in:
G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CMakeFiles/3.29.3/CompilerIdCXX/a.exe
-
kind: "try_compile-v1"
backtrace:
- "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeDetermineCompilerABI.cmake:67 (try_compile)"
- "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeTestCXXCompiler.cmake:26 (CMAKE_DETERMINE_COMPILER_ABI)"
- "CMakeLists.txt:20 (project)"
checks:
- "Detecting CXX compiler ABI info"
directories:
source: "G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CMakeFiles/CMakeScratch/TryCompile-podt76"
binary: "G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CMakeFiles/CMakeScratch/TryCompile-podt76"
cmakeVariables:
CMAKE_CXX_FLAGS: "-DQT_QML_DEBUG"
CMAKE_CXX_FLAGS_DEBUG: "-g"
CMAKE_CXX_SCAN_FOR_MODULES: "OFF"
CMAKE_EXE_LINKER_FLAGS: ""
buildResult:
variable: "CMAKE_CXX_ABI_COMPILED"
cached: true
stdout: |
Change Dir: 'G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CMakeFiles/CMakeScratch/TryCompile-podt76'
Run Build Command(s): E:/toos/Ninja/ninja.exe -v cmTC_2fb1d
[1/2] E:\\perfessional\\QT\\install\\Tools\\mingw810_64\\bin\\g++.exe -DQT_QML_DEBUG -v -o CMakeFiles/cmTC_2fb1d.dir/CMakeCXXCompilerABI.cpp.obj -c G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeCXXCompilerABI.cpp
Using built-in specs.
COLLECT_GCC=E:\\perfessional\\QT\\install\\Tools\\mingw810_64\\bin\\g++.exe
Target: x86_64-w64-mingw32
Configured with: ../../../src/gcc-8.1.0/configure --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/mingw64 --with-sysroot=/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64 --enable-shared --enable-static --disable-multilib --enable-languages=c,c++,fortran,lto --enable-libstdcxx-time=yes --enable-threads=posix --enable-libgomp --enable-libatomic --enable-lto --enable-graphite --enable-checking=release --enable-fully-dynamic-string --enable-version-specific-runtime-libs --disable-libstdcxx-pch --disable-libstdcxx-debug --enable-bootstrap --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-gnu-as --with-gnu-ld --with-arch=nocona --with-tune=core2 --with-libiconv --with-system-zlib --with-gmp=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-mpfr=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-mpc=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-isl=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-pkgversion='x86_64-posix-seh-rev0, Built by MinGW-W64 project' --with-bugurl=https://sourceforge.net/projects/mingw-w64 CFLAGS='-O2 -pipe -fno-ident -I/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' CXXFLAGS='-O2 -pipe -fno-ident -I/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' CPPFLAGS=' -I/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' LDFLAGS='-pipe -fno-ident -L/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/lib -L/c/mingw810/prerequisites/x86_64-zlib-static/lib -L/c/mingw810/prerequisites/x86_64-w64-mingw32-static/lib '
Thread model: posix
gcc version 8.1.0 (x86_64-posix-seh-rev0, Built by MinGW-W64 project)
COLLECT_GCC_OPTIONS='-D' 'QT_QML_DEBUG' '-v' '-o' 'CMakeFiles/cmTC_2fb1d.dir/CMakeCXXCompilerABI.cpp.obj' '-c' '-shared-libgcc' '-mtune=core2' '-march=nocona'
E:/perfessional/QT/install/Tools/mingw810_64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/cc1plus.exe -quiet -v -iprefix E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/ -D_REENTRANT -D QT_QML_DEBUG G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeCXXCompilerABI.cpp -quiet -dumpbase CMakeCXXCompilerABI.cpp -mtune=core2 -march=nocona -auxbase-strip CMakeFiles/cmTC_2fb1d.dir/CMakeCXXCompilerABI.cpp.obj -version -o C:\\Users\\admin\\AppData\\Local\\Temp\\ccMI2TPw.s
GNU C++14 (x86_64-posix-seh-rev0, Built by MinGW-W64 project) version 8.1.0 (x86_64-w64-mingw32)
compiled by GNU C version 8.1.0, GMP version 6.1.2, MPFR version 4.0.1, MPC version 1.1.0, isl version isl-0.18-GMP
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring duplicate directory "E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++"
ignoring duplicate directory "E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/x86_64-w64-mingw32"
ignoring duplicate directory "E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/backward"
ignoring duplicate directory "E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/8.1.0/include"
ignoring nonexistent directory "C:/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../include"
ignoring duplicate directory "E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/8.1.0/include-fixed"
ignoring duplicate directory "E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/include"
ignoring nonexistent directory "C:/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/mingw/include"
#include "..." search starts here:
#include <...> search starts here:
E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++
E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/x86_64-w64-mingw32
E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/backward
E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include
E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include-fixed
E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/include
End of search list.
GNU C++14 (x86_64-posix-seh-rev0, Built by MinGW-W64 project) version 8.1.0 (x86_64-w64-mingw32)
compiled by GNU C version 8.1.0, GMP version 6.1.2, MPFR version 4.0.1, MPC version 1.1.0, isl version isl-0.18-GMP
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 82f0c9785fd37a38ba7b7f8357369a82
COLLECT_GCC_OPTIONS='-D' 'QT_QML_DEBUG' '-v' '-o' 'CMakeFiles/cmTC_2fb1d.dir/CMakeCXXCompilerABI.cpp.obj' '-c' '-shared-libgcc' '-mtune=core2' '-march=nocona'
E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/as.exe -v -o CMakeFiles/cmTC_2fb1d.dir/CMakeCXXCompilerABI.cpp.obj C:\\Users\\admin\\AppData\\Local\\Temp\\ccMI2TPw.s
GNU assembler version 2.30 (x86_64-w64-mingw32) using BFD version (GNU Binutils) 2.30
COMPILER_PATH=E:/perfessional/QT/install/Tools/mingw810_64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/;E:/perfessional/QT/install/Tools/mingw810_64/bin/../libexec/gcc/;E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/
LIBRARY_PATH=E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/;E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/;E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib/;E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../lib/;E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/;E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../\x0d
COLLECT_GCC_OPTIONS='-D' 'QT_QML_DEBUG' '-v' '-o' 'CMakeFiles/cmTC_2fb1d.dir/CMakeCXXCompilerABI.cpp.obj' '-c' '-shared-libgcc' '-mtune=core2' '-march=nocona'\x0d
[2/2] C:\\WINDOWS\\system32\\cmd.exe /C "cd . && E:\\perfessional\\QT\\install\\Tools\\mingw810_64\\bin\\g++.exe -DQT_QML_DEBUG -v -Wl,-v CMakeFiles/cmTC_2fb1d.dir/CMakeCXXCompilerABI.cpp.obj -o cmTC_2fb1d.exe -Wl,--out-implib,libcmTC_2fb1d.dll.a -Wl,--major-image-version,0,--minor-image-version,0 && cd ."
Using built-in specs.
COLLECT_GCC=E:\\perfessional\\QT\\install\\Tools\\mingw810_64\\bin\\g++.exe
COLLECT_LTO_WRAPPER=E:/perfessional/QT/install/Tools/mingw810_64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../../../src/gcc-8.1.0/configure --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/mingw64 --with-sysroot=/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64 --enable-shared --enable-static --disable-multilib --enable-languages=c,c++,fortran,lto --enable-libstdcxx-time=yes --enable-threads=posix --enable-libgomp --enable-libatomic --enable-lto --enable-graphite --enable-checking=release --enable-fully-dynamic-string --enable-version-specific-runtime-libs --disable-libstdcxx-pch --disable-libstdcxx-debug --enable-bootstrap --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-gnu-as --with-gnu-ld --with-arch=nocona --with-tune=core2 --with-libiconv --with-system-zlib --with-gmp=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-mpfr=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-mpc=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-isl=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-pkgversion='x86_64-posix-seh-rev0, Built by MinGW-W64 project' --with-bugurl=https://sourceforge.net/projects/mingw-w64 CFLAGS='-O2 -pipe -fno-ident -I/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' CXXFLAGS='-O2 -pipe -fno-ident -I/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' CPPFLAGS=' -I/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' LDFLAGS='-pipe -fno-ident -L/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/lib -L/c/mingw810/prerequisites/x86_64-zlib-static/lib -L/c/mingw810/prerequisites/x86_64-w64-mingw32-static/lib '
Thread model: posix
gcc version 8.1.0 (x86_64-posix-seh-rev0, Built by MinGW-W64 project)
COMPILER_PATH=E:/perfessional/QT/install/Tools/mingw810_64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/;E:/perfessional/QT/install/Tools/mingw810_64/bin/../libexec/gcc/;E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/
LIBRARY_PATH=E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/;E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/;E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib/;E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../lib/;E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/;E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../
COLLECT_GCC_OPTIONS='-D' 'QT_QML_DEBUG' '-v' '-o' 'cmTC_2fb1d.exe' '-shared-libgcc' '-mtune=core2' '-march=nocona'
E:/perfessional/QT/install/Tools/mingw810_64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/collect2.exe -plugin E:/perfessional/QT/install/Tools/mingw810_64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/liblto_plugin-0.dll -plugin-opt=E:/perfessional/QT/install/Tools/mingw810_64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/lto-wrapper.exe -plugin-opt=-fresolution=C:\\Users\\admin\\AppData\\Local\\Temp\\cco0pwVx.res -plugin-opt=-pass-through=-lmingw32 -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lmoldname -plugin-opt=-pass-through=-lmingwex -plugin-opt=-pass-through=-lmsvcrt -plugin-opt=-pass-through=-lpthread -plugin-opt=-pass-through=-ladvapi32 -plugin-opt=-pass-through=-lshell32 -plugin-opt=-pass-through=-luser32 -plugin-opt=-pass-through=-lkernel32 -plugin-opt=-pass-through=-liconv -plugin-opt=-pass-through=-lmingw32 -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lmoldname -plugin-opt=-pass-through=-lmingwex -plugin-opt=-pass-through=-lmsvcrt --sysroot=C:/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64 -m i386pep -Bdynamic -o cmTC_2fb1d.exe E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib/crt2.o E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/crtbegin.o -LE:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0 -LE:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc -LE:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib -LE:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../lib -LE:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib -LE:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../.. -v CMakeFiles/cmTC_2fb1d.dir/CMakeCXXCompilerABI.cpp.obj --out-implib libcmTC_2fb1d.dll.a --major-image-version 0 --minor-image-version 0 -lstdc++ -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt -lpthread -ladvapi32 -lshell32 -luser32 -lkernel32 -liconv -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/crtend.o
collect2 version 8.1.0
E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe -plugin E:/perfessional/QT/install/Tools/mingw810_64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/liblto_plugin-0.dll -plugin-opt=E:/perfessional/QT/install/Tools/mingw810_64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/lto-wrapper.exe -plugin-opt=-fresolution=C:\\Users\\admin\\AppData\\Local\\Temp\\cco0pwVx.res -plugin-opt=-pass-through=-lmingw32 -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lmoldname -plugin-opt=-pass-through=-lmingwex -plugin-opt=-pass-through=-lmsvcrt -plugin-opt=-pass-through=-lpthread -plugin-opt=-pass-through=-ladvapi32 -plugin-opt=-pass-through=-lshell32 -plugin-opt=-pass-through=-luser32 -plugin-opt=-pass-through=-lkernel32 -plugin-opt=-pass-through=-liconv -plugin-opt=-pass-through=-lmingw32 -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lmoldname -plugin-opt=-pass-through=-lmingwex -plugin-opt=-pass-through=-lmsvcrt --sysroot=C:/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64 -m i386pep -Bdynamic -o cmTC_2fb1d.exe E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib/crt2.o E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/crtbegin.o -LE:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0 -LE:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc -LE:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib -LE:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../lib -LE:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib -LE:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../.. -v CMakeFiles/cmTC_2fb1d.dir/CMakeCXXCompilerABI.cpp.obj --out-implib libcmTC_2fb1d.dll.a --major-image-version 0 --minor-image-version 0 -lstdc++ -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt -lpthread -ladvapi32 -lshell32 -luser32 -lkernel32 -liconv -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/crtend.o
GNU ld (GNU Binutils) 2.30
COLLECT_GCC_OPTIONS='-D' 'QT_QML_DEBUG' '-v' '-o' 'cmTC_2fb1d.exe' '-shared-libgcc' '-mtune=core2' '-march=nocona'\x0d
exitCode: 0
-
kind: "message-v1"
backtrace:
- "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeDetermineCompilerABI.cmake:137 (message)"
- "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeTestCXXCompiler.cmake:26 (CMAKE_DETERMINE_COMPILER_ABI)"
- "CMakeLists.txt:20 (project)"
message: |
Parsed CXX implicit include dir info: rv=done
found start of include info
found start of implicit include info
add: [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++]
add: [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/x86_64-w64-mingw32]
add: [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/backward]
add: [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include]
add: [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include-fixed]
add: [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/include]
end of search list found
collapse include dir [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++] ==> [E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++]
collapse include dir [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/x86_64-w64-mingw32] ==> [E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/x86_64-w64-mingw32]
collapse include dir [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/backward] ==> [E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/backward]
collapse include dir [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include] ==> [E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0/include]
collapse include dir [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include-fixed] ==> [E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0/include-fixed]
collapse include dir [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/include] ==> [E:/perfessional/QT/install/Tools/mingw810_64/x86_64-w64-mingw32/include]
implicit include dirs: [E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++;E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/x86_64-w64-mingw32;E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/backward;E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0/include;E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0/include-fixed;E:/perfessional/QT/install/Tools/mingw810_64/x86_64-w64-mingw32/include]
-
kind: "message-v1"
backtrace:
- "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeDetermineCompilerABI.cmake:173 (message)"
- "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeTestCXXCompiler.cmake:26 (CMAKE_DETERMINE_COMPILER_ABI)"
- "CMakeLists.txt:20 (project)"
message: |
Parsed CXX implicit link information:
link line regex: [^( *|.*[/\\])(ld[0-9]*(\\.[a-z]+)?|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\\]+-)?ld|collect2)[^/\\]*( |$)]
linker tool regex: [^[ ]*(->|")?[ ]*(([^"]*[/\\])?(ld[0-9]*(\\.[a-z]+)?))("|,| |$)]
ignore line: [Change Dir: 'G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CMakeFiles/CMakeScratch/TryCompile-podt76']
ignore line: []
ignore line: [Run Build Command(s): E:/toos/Ninja/ninja.exe -v cmTC_2fb1d]
ignore line: [[1/2] E:\\perfessional\\QT\\install\\Tools\\mingw810_64\\bin\\g++.exe -DQT_QML_DEBUG -v -o CMakeFiles/cmTC_2fb1d.dir/CMakeCXXCompilerABI.cpp.obj -c G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeCXXCompilerABI.cpp]
ignore line: [Using built-in specs.]
ignore line: [COLLECT_GCC=E:\\perfessional\\QT\\install\\Tools\\mingw810_64\\bin\\g++.exe]
ignore line: [Target: x86_64-w64-mingw32]
ignore line: [Configured with: ../../../src/gcc-8.1.0/configure --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/mingw64 --with-sysroot=/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64 --enable-shared --enable-static --disable-multilib --enable-languages=c,c++,fortran,lto --enable-libstdcxx-time=yes --enable-threads=posix --enable-libgomp --enable-libatomic --enable-lto --enable-graphite --enable-checking=release --enable-fully-dynamic-string --enable-version-specific-runtime-libs --disable-libstdcxx-pch --disable-libstdcxx-debug --enable-bootstrap --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-gnu-as --with-gnu-ld --with-arch=nocona --with-tune=core2 --with-libiconv --with-system-zlib --with-gmp=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-mpfr=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-mpc=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-isl=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-pkgversion='x86_64-posix-seh-rev0, Built by MinGW-W64 project' --with-bugurl=https://sourceforge.net/projects/mingw-w64 CFLAGS='-O2 -pipe -fno-ident -I/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' CXXFLAGS='-O2 -pipe -fno-ident -I/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' CPPFLAGS=' -I/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' LDFLAGS='-pipe -fno-ident -L/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/lib -L/c/mingw810/prerequisites/x86_64-zlib-static/lib -L/c/mingw810/prerequisites/x86_64-w64-mingw32-static/lib ']
ignore line: [Thread model: posix]
ignore line: [gcc version 8.1.0 (x86_64-posix-seh-rev0 Built by MinGW-W64 project) ]
ignore line: [COLLECT_GCC_OPTIONS='-D' 'QT_QML_DEBUG' '-v' '-o' 'CMakeFiles/cmTC_2fb1d.dir/CMakeCXXCompilerABI.cpp.obj' '-c' '-shared-libgcc' '-mtune=core2' '-march=nocona']
ignore line: [ E:/perfessional/QT/install/Tools/mingw810_64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/cc1plus.exe -quiet -v -iprefix E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/ -D_REENTRANT -D QT_QML_DEBUG G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeCXXCompilerABI.cpp -quiet -dumpbase CMakeCXXCompilerABI.cpp -mtune=core2 -march=nocona -auxbase-strip CMakeFiles/cmTC_2fb1d.dir/CMakeCXXCompilerABI.cpp.obj -version -o C:\\Users\\admin\\AppData\\Local\\Temp\\ccMI2TPw.s]
ignore line: [GNU C++14 (x86_64-posix-seh-rev0 Built by MinGW-W64 project) version 8.1.0 (x86_64-w64-mingw32)]
ignore line: [ compiled by GNU C version 8.1.0 GMP version 6.1.2 MPFR version 4.0.1 MPC version 1.1.0 isl version isl-0.18-GMP]
ignore line: []
ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072]
ignore line: [ignoring duplicate directory "E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++"]
ignore line: [ignoring duplicate directory "E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/x86_64-w64-mingw32"]
ignore line: [ignoring duplicate directory "E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/backward"]
ignore line: [ignoring duplicate directory "E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/8.1.0/include"]
ignore line: [ignoring nonexistent directory "C:/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../include"]
ignore line: [ignoring duplicate directory "E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/8.1.0/include-fixed"]
ignore line: [ignoring duplicate directory "E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/include"]
ignore line: [ignoring nonexistent directory "C:/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/mingw/include"]
ignore line: [#include "..." search starts here:]
ignore line: [#include <...> search starts here:]
ignore line: [ E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++]
ignore line: [ E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/x86_64-w64-mingw32]
ignore line: [ E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/backward]
ignore line: [ E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include]
ignore line: [ E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include-fixed]
ignore line: [ E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/include]
ignore line: [End of search list.]
ignore line: [GNU C++14 (x86_64-posix-seh-rev0 Built by MinGW-W64 project) version 8.1.0 (x86_64-w64-mingw32)]
ignore line: [ compiled by GNU C version 8.1.0 GMP version 6.1.2 MPFR version 4.0.1 MPC version 1.1.0 isl version isl-0.18-GMP]
ignore line: []
ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072]
ignore line: [Compiler executable checksum: 82f0c9785fd37a38ba7b7f8357369a82]
ignore line: [COLLECT_GCC_OPTIONS='-D' 'QT_QML_DEBUG' '-v' '-o' 'CMakeFiles/cmTC_2fb1d.dir/CMakeCXXCompilerABI.cpp.obj' '-c' '-shared-libgcc' '-mtune=core2' '-march=nocona']
ignore line: [ E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/as.exe -v -o CMakeFiles/cmTC_2fb1d.dir/CMakeCXXCompilerABI.cpp.obj C:\\Users\\admin\\AppData\\Local\\Temp\\ccMI2TPw.s]
ignore line: [GNU assembler version 2.30 (x86_64-w64-mingw32) using BFD version (GNU Binutils) 2.30]
ignore line: [COMPILER_PATH=E:/perfessional/QT/install/Tools/mingw810_64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/]
ignore line: [E:/perfessional/QT/install/Tools/mingw810_64/bin/../libexec/gcc/]
ignore line: [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/]
ignore line: [LIBRARY_PATH=E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/]
ignore line: [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/]
ignore line: [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib/]
ignore line: [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../lib/]
ignore line: [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/]
ignore line: [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../\x0d]
ignore line: [COLLECT_GCC_OPTIONS='-D' 'QT_QML_DEBUG' '-v' '-o' 'CMakeFiles/cmTC_2fb1d.dir/CMakeCXXCompilerABI.cpp.obj' '-c' '-shared-libgcc' '-mtune=core2' '-march=nocona'\x0d]
ignore line: [[2/2] C:\\WINDOWS\\system32\\cmd.exe /C "cd . && E:\\perfessional\\QT\\install\\Tools\\mingw810_64\\bin\\g++.exe -DQT_QML_DEBUG -v -Wl -v CMakeFiles/cmTC_2fb1d.dir/CMakeCXXCompilerABI.cpp.obj -o cmTC_2fb1d.exe -Wl --out-implib libcmTC_2fb1d.dll.a -Wl --major-image-version 0 --minor-image-version 0 && cd ."]
ignore line: [Using built-in specs.]
ignore line: [COLLECT_GCC=E:\\perfessional\\QT\\install\\Tools\\mingw810_64\\bin\\g++.exe]
ignore line: [COLLECT_LTO_WRAPPER=E:/perfessional/QT/install/Tools/mingw810_64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/lto-wrapper.exe]
ignore line: [Target: x86_64-w64-mingw32]
ignore line: [Configured with: ../../../src/gcc-8.1.0/configure --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/mingw64 --with-sysroot=/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64 --enable-shared --enable-static --disable-multilib --enable-languages=c,c++,fortran,lto --enable-libstdcxx-time=yes --enable-threads=posix --enable-libgomp --enable-libatomic --enable-lto --enable-graphite --enable-checking=release --enable-fully-dynamic-string --enable-version-specific-runtime-libs --disable-libstdcxx-pch --disable-libstdcxx-debug --enable-bootstrap --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-gnu-as --with-gnu-ld --with-arch=nocona --with-tune=core2 --with-libiconv --with-system-zlib --with-gmp=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-mpfr=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-mpc=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-isl=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-pkgversion='x86_64-posix-seh-rev0, Built by MinGW-W64 project' --with-bugurl=https://sourceforge.net/projects/mingw-w64 CFLAGS='-O2 -pipe -fno-ident -I/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' CXXFLAGS='-O2 -pipe -fno-ident -I/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' CPPFLAGS=' -I/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' LDFLAGS='-pipe -fno-ident -L/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/lib -L/c/mingw810/prerequisites/x86_64-zlib-static/lib -L/c/mingw810/prerequisites/x86_64-w64-mingw32-static/lib ']
ignore line: [Thread model: posix]
ignore line: [gcc version 8.1.0 (x86_64-posix-seh-rev0 Built by MinGW-W64 project) ]
ignore line: [COMPILER_PATH=E:/perfessional/QT/install/Tools/mingw810_64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/]
ignore line: [E:/perfessional/QT/install/Tools/mingw810_64/bin/../libexec/gcc/]
ignore line: [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/]
ignore line: [LIBRARY_PATH=E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/]
ignore line: [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/]
ignore line: [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib/]
ignore line: [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../lib/]
ignore line: [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/]
ignore line: [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../]
ignore line: [COLLECT_GCC_OPTIONS='-D' 'QT_QML_DEBUG' '-v' '-o' 'cmTC_2fb1d.exe' '-shared-libgcc' '-mtune=core2' '-march=nocona']
link line: [ E:/perfessional/QT/install/Tools/mingw810_64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/collect2.exe -plugin E:/perfessional/QT/install/Tools/mingw810_64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/liblto_plugin-0.dll -plugin-opt=E:/perfessional/QT/install/Tools/mingw810_64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/lto-wrapper.exe -plugin-opt=-fresolution=C:\\Users\\admin\\AppData\\Local\\Temp\\cco0pwVx.res -plugin-opt=-pass-through=-lmingw32 -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lmoldname -plugin-opt=-pass-through=-lmingwex -plugin-opt=-pass-through=-lmsvcrt -plugin-opt=-pass-through=-lpthread -plugin-opt=-pass-through=-ladvapi32 -plugin-opt=-pass-through=-lshell32 -plugin-opt=-pass-through=-luser32 -plugin-opt=-pass-through=-lkernel32 -plugin-opt=-pass-through=-liconv -plugin-opt=-pass-through=-lmingw32 -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lmoldname -plugin-opt=-pass-through=-lmingwex -plugin-opt=-pass-through=-lmsvcrt --sysroot=C:/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64 -m i386pep -Bdynamic -o cmTC_2fb1d.exe E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib/crt2.o E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/crtbegin.o -LE:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0 -LE:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc -LE:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib -LE:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../lib -LE:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib -LE:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../.. -v CMakeFiles/cmTC_2fb1d.dir/CMakeCXXCompilerABI.cpp.obj --out-implib libcmTC_2fb1d.dll.a --major-image-version 0 --minor-image-version 0 -lstdc++ -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt -lpthread -ladvapi32 -lshell32 -luser32 -lkernel32 -liconv -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/crtend.o]
arg [E:/perfessional/QT/install/Tools/mingw810_64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/collect2.exe] ==> ignore
arg [-plugin] ==> ignore
arg [E:/perfessional/QT/install/Tools/mingw810_64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/liblto_plugin-0.dll] ==> ignore
arg [-plugin-opt=E:/perfessional/QT/install/Tools/mingw810_64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/lto-wrapper.exe] ==> ignore
arg [-plugin-opt=-fresolution=C:\\Users\\admin\\AppData\\Local\\Temp\\cco0pwVx.res] ==> ignore
arg [-plugin-opt=-pass-through=-lmingw32] ==> ignore
arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
arg [-plugin-opt=-pass-through=-lmoldname] ==> ignore
arg [-plugin-opt=-pass-through=-lmingwex] ==> ignore
arg [-plugin-opt=-pass-through=-lmsvcrt] ==> ignore
arg [-plugin-opt=-pass-through=-lpthread] ==> ignore
arg [-plugin-opt=-pass-through=-ladvapi32] ==> ignore
arg [-plugin-opt=-pass-through=-lshell32] ==> ignore
arg [-plugin-opt=-pass-through=-luser32] ==> ignore
arg [-plugin-opt=-pass-through=-lkernel32] ==> ignore
arg [-plugin-opt=-pass-through=-liconv] ==> ignore
arg [-plugin-opt=-pass-through=-lmingw32] ==> ignore
arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
arg [-plugin-opt=-pass-through=-lmoldname] ==> ignore
arg [-plugin-opt=-pass-through=-lmingwex] ==> ignore
arg [-plugin-opt=-pass-through=-lmsvcrt] ==> ignore
arg [--sysroot=C:/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64] ==> ignore
arg [-m] ==> ignore
arg [i386pep] ==> ignore
arg [-Bdynamic] ==> search dynamic
arg [-o] ==> ignore
arg [cmTC_2fb1d.exe] ==> ignore
arg [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib/crt2.o] ==> obj [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib/crt2.o]
arg [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/crtbegin.o] ==> obj [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/crtbegin.o]
arg [-LE:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0] ==> dir [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0]
arg [-LE:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc] ==> dir [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc]
arg [-LE:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib] ==> dir [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib]
arg [-LE:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../lib] ==> dir [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../lib]
arg [-LE:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib] ==> dir [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib]
arg [-LE:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../..] ==> dir [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../..]
arg [-v] ==> ignore
arg [CMakeFiles/cmTC_2fb1d.dir/CMakeCXXCompilerABI.cpp.obj] ==> ignore
arg [--out-implib] ==> ignore
arg [libcmTC_2fb1d.dll.a] ==> ignore
arg [--major-image-version] ==> ignore
arg [0] ==> ignore
arg [--minor-image-version] ==> ignore
arg [0] ==> ignore
arg [-lstdc++] ==> lib [stdc++]
arg [-lmingw32] ==> lib [mingw32]
arg [-lgcc_s] ==> lib [gcc_s]
arg [-lgcc] ==> lib [gcc]
arg [-lmoldname] ==> lib [moldname]
arg [-lmingwex] ==> lib [mingwex]
arg [-lmsvcrt] ==> lib [msvcrt]
arg [-lpthread] ==> lib [pthread]
arg [-ladvapi32] ==> lib [advapi32]
arg [-lshell32] ==> lib [shell32]
arg [-luser32] ==> lib [user32]
arg [-lkernel32] ==> lib [kernel32]
arg [-liconv] ==> lib [iconv]
arg [-lmingw32] ==> lib [mingw32]
arg [-lgcc_s] ==> lib [gcc_s]
arg [-lgcc] ==> lib [gcc]
arg [-lmoldname] ==> lib [moldname]
arg [-lmingwex] ==> lib [mingwex]
arg [-lmsvcrt] ==> lib [msvcrt]
arg [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/crtend.o] ==> obj [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/crtend.o]
ignore line: [collect2 version 8.1.0]
ignore line: [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe -plugin E:/perfessional/QT/install/Tools/mingw810_64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/liblto_plugin-0.dll -plugin-opt=E:/perfessional/QT/install/Tools/mingw810_64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/lto-wrapper.exe -plugin-opt=-fresolution=C:\\Users\\admin\\AppData\\Local\\Temp\\cco0pwVx.res -plugin-opt=-pass-through=-lmingw32 -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lmoldname -plugin-opt=-pass-through=-lmingwex -plugin-opt=-pass-through=-lmsvcrt -plugin-opt=-pass-through=-lpthread -plugin-opt=-pass-through=-ladvapi32 -plugin-opt=-pass-through=-lshell32 -plugin-opt=-pass-through=-luser32 -plugin-opt=-pass-through=-lkernel32 -plugin-opt=-pass-through=-liconv -plugin-opt=-pass-through=-lmingw32 -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lmoldname -plugin-opt=-pass-through=-lmingwex -plugin-opt=-pass-through=-lmsvcrt --sysroot=C:/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64 -m i386pep -Bdynamic -o cmTC_2fb1d.exe E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib/crt2.o E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/crtbegin.o -LE:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0 -LE:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc -LE:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib -LE:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../lib -LE:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib -LE:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../.. -v CMakeFiles/cmTC_2fb1d.dir/CMakeCXXCompilerABI.cpp.obj --out-implib libcmTC_2fb1d.dll.a --major-image-version 0 --minor-image-version 0 -lstdc++ -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt -lpthread -ladvapi32 -lshell32 -luser32 -lkernel32 -liconv -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/crtend.o]
linker tool for 'CXX': E:/perfessional/QT/install/Tools/mingw810_64/x86_64-w64-mingw32/bin/ld.exe
remove lib [msvcrt]
remove lib [msvcrt]
collapse obj [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib/crt2.o] ==> [E:/perfessional/QT/install/Tools/mingw810_64/x86_64-w64-mingw32/lib/crt2.o]
collapse obj [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/crtbegin.o] ==> [E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0/crtbegin.o]
collapse obj [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/crtend.o] ==> [E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0/crtend.o]
collapse library dir [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0] ==> [E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0]
collapse library dir [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc] ==> [E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc]
collapse library dir [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib] ==> [E:/perfessional/QT/install/Tools/mingw810_64/x86_64-w64-mingw32/lib]
collapse library dir [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../lib] ==> [E:/perfessional/QT/install/Tools/mingw810_64/lib]
collapse library dir [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib] ==> [E:/perfessional/QT/install/Tools/mingw810_64/x86_64-w64-mingw32/lib]
collapse library dir [E:/perfessional/QT/install/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../..] ==> [E:/perfessional/QT/install/Tools/mingw810_64/lib]
implicit libs: [stdc++;mingw32;gcc_s;gcc;moldname;mingwex;pthread;advapi32;shell32;user32;kernel32;iconv;mingw32;gcc_s;gcc;moldname;mingwex]
implicit objs: [E:/perfessional/QT/install/Tools/mingw810_64/x86_64-w64-mingw32/lib/crt2.o;E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0/crtbegin.o;E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0/crtend.o]
implicit dirs: [E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0;E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc;E:/perfessional/QT/install/Tools/mingw810_64/x86_64-w64-mingw32/lib;E:/perfessional/QT/install/Tools/mingw810_64/lib]
implicit fwks: []
-
kind: "message-v1"
backtrace:
- "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Internal/CMakeDetermineLinkerId.cmake:40 (message)"
- "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeDetermineCompilerABI.cmake:210 (cmake_determine_linker_id)"
- "G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeTestCXXCompiler.cmake:26 (CMAKE_DETERMINE_COMPILER_ABI)"
- "CMakeLists.txt:20 (project)"
message: |
Running the CXX compiler's linker: "E:/perfessional/QT/install/Tools/mingw810_64/x86_64-w64-mingw32/bin/ld.exe" "-v"
GNU ld (GNU Binutils) 2.30
...
@@ -0,0 +1,66 @@
@echo off
cd /D G:\Desktop\cavity_LIBS_system-master\cavity_LIBS_system-master\build\Desktop_Qt_5_15_2_MinGW_64_bit-Debug || (set FAIL_LINE=2& goto :ABORT)
G:\qt\Qt\Tools\CMake_64\bin\cmake.exe -E copy_if_different G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/third_party/qwt-6.3.0-mingw64/lib/qwt.dll G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/bin || (set FAIL_LINE=3& goto :ABORT)
cd /D G:\Desktop\cavity_LIBS_system-master\cavity_LIBS_system-master\build\Desktop_Qt_5_15_2_MinGW_64_bit-Debug || (set FAIL_LINE=4& goto :ABORT)
G:\qt\Qt\Tools\CMake_64\bin\cmake.exe -E copy_if_different G:/qt/Qt/mylib/aris_0411/bin/libaris.dll G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/bin || (set FAIL_LINE=5& goto :ABORT)
cd /D G:\Desktop\cavity_LIBS_system-master\cavity_LIBS_system-master\build\Desktop_Qt_5_15_2_MinGW_64_bit-Debug || (set FAIL_LINE=6& goto :ABORT)
G:\qt\Qt\Tools\CMake_64\bin\cmake.exe -E copy_if_different G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/Libs/libusb-1.0.dll G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/bin || (set FAIL_LINE=7& goto :ABORT)
cd /D G:\Desktop\cavity_LIBS_system-master\cavity_LIBS_system-master\build\Desktop_Qt_5_15_2_MinGW_64_bit-Debug || (set FAIL_LINE=8& goto :ABORT)
G:\qt\Qt\Tools\CMake_64\bin\cmake.exe -E copy_directory G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/Data G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/bin/Data || (set FAIL_LINE=9& goto :ABORT)
cd /D G:\Desktop\cavity_LIBS_system-master\cavity_LIBS_system-master\build\Desktop_Qt_5_15_2_MinGW_64_bit-Debug || (set FAIL_LINE=10& goto :ABORT)
G:\qt\Qt\Tools\CMake_64\bin\cmake.exe -E copy_directory G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/SQL G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/bin/SQL || (set FAIL_LINE=11& goto :ABORT)
cd /D G:\Desktop\cavity_LIBS_system-master\cavity_LIBS_system-master\build\Desktop_Qt_5_15_2_MinGW_64_bit-Debug || (set FAIL_LINE=12& goto :ABORT)
G:\qt\Qt\Tools\CMake_64\bin\cmake.exe -E copy_directory G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/wavelength_calibrated_files G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/bin/wavelength_calibrated_files || (set FAIL_LINE=13& goto :ABORT)
cd /D G:\Desktop\cavity_LIBS_system-master\cavity_LIBS_system-master\build\Desktop_Qt_5_15_2_MinGW_64_bit-Debug || (set FAIL_LINE=14& goto :ABORT)
G:\qt\Qt\Tools\CMake_64\bin\cmake.exe -E copy_if_different G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/app_icon.ico G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/bin || (set FAIL_LINE=15& goto :ABORT)
cd /D G:\Desktop\cavity_LIBS_system-master\cavity_LIBS_system-master\build\Desktop_Qt_5_15_2_MinGW_64_bit-Debug || (set FAIL_LINE=16& goto :ABORT)
G:\qt\Qt\Tools\CMake_64\bin\cmake.exe -E copy_if_different G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/scripts/Run-CavityLIBS.bat G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/bin || (set FAIL_LINE=17& goto :ABORT)
cd /D G:\Desktop\cavity_LIBS_system-master\cavity_LIBS_system-master\build\Desktop_Qt_5_15_2_MinGW_64_bit-Debug || (set FAIL_LINE=18& goto :ABORT)
G:\qt\Qt\Tools\CMake_64\bin\cmake.exe -E copy_directory G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/Data G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/Data || (set FAIL_LINE=19& goto :ABORT)
cd /D G:\Desktop\cavity_LIBS_system-master\cavity_LIBS_system-master\build\Desktop_Qt_5_15_2_MinGW_64_bit-Debug || (set FAIL_LINE=20& goto :ABORT)
G:\qt\Qt\Tools\CMake_64\bin\cmake.exe -E copy_if_different E:/perfessional/QT/install/5.15.2/mingw81_64/bin/Qt5Core.dll G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/bin || (set FAIL_LINE=21& goto :ABORT)
cd /D G:\Desktop\cavity_LIBS_system-master\cavity_LIBS_system-master\build\Desktop_Qt_5_15_2_MinGW_64_bit-Debug || (set FAIL_LINE=22& goto :ABORT)
G:\qt\Qt\Tools\CMake_64\bin\cmake.exe -E copy_if_different E:/perfessional/QT/install/5.15.2/mingw81_64/bin/Qt5Gui.dll G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/bin || (set FAIL_LINE=23& goto :ABORT)
cd /D G:\Desktop\cavity_LIBS_system-master\cavity_LIBS_system-master\build\Desktop_Qt_5_15_2_MinGW_64_bit-Debug || (set FAIL_LINE=24& goto :ABORT)
G:\qt\Qt\Tools\CMake_64\bin\cmake.exe -E copy_if_different E:/perfessional/QT/install/5.15.2/mingw81_64/bin/Qt5Widgets.dll G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/bin || (set FAIL_LINE=25& goto :ABORT)
cd /D G:\Desktop\cavity_LIBS_system-master\cavity_LIBS_system-master\build\Desktop_Qt_5_15_2_MinGW_64_bit-Debug || (set FAIL_LINE=26& goto :ABORT)
G:\qt\Qt\Tools\CMake_64\bin\cmake.exe -E copy_if_different E:/perfessional/QT/install/5.15.2/mingw81_64/bin/Qt5SerialPort.dll G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/bin || (set FAIL_LINE=27& goto :ABORT)
cd /D G:\Desktop\cavity_LIBS_system-master\cavity_LIBS_system-master\build\Desktop_Qt_5_15_2_MinGW_64_bit-Debug || (set FAIL_LINE=28& goto :ABORT)
G:\qt\Qt\Tools\CMake_64\bin\cmake.exe -E copy_if_different E:/perfessional/QT/install/5.15.2/mingw81_64/bin/Qt5Sql.dll G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/bin || (set FAIL_LINE=29& goto :ABORT)
cd /D G:\Desktop\cavity_LIBS_system-master\cavity_LIBS_system-master\build\Desktop_Qt_5_15_2_MinGW_64_bit-Debug || (set FAIL_LINE=30& goto :ABORT)
G:\qt\Qt\Tools\CMake_64\bin\cmake.exe -E copy_if_different E:/perfessional/QT/install/5.15.2/mingw81_64/bin/Qt5OpenGL.dll G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/bin || (set FAIL_LINE=31& goto :ABORT)
cd /D G:\Desktop\cavity_LIBS_system-master\cavity_LIBS_system-master\build\Desktop_Qt_5_15_2_MinGW_64_bit-Debug || (set FAIL_LINE=32& goto :ABORT)
G:\qt\Qt\Tools\CMake_64\bin\cmake.exe -E copy_if_different E:/perfessional/QT/install/5.15.2/mingw81_64/bin/Qt5Svg.dll G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/bin || (set FAIL_LINE=33& goto :ABORT)
cd /D G:\Desktop\cavity_LIBS_system-master\cavity_LIBS_system-master\build\Desktop_Qt_5_15_2_MinGW_64_bit-Debug || (set FAIL_LINE=34& goto :ABORT)
G:\qt\Qt\Tools\CMake_64\bin\cmake.exe -E copy_if_different E:/perfessional/QT/install/5.15.2/mingw81_64/bin/libEGL.dll G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/bin || (set FAIL_LINE=35& goto :ABORT)
cd /D G:\Desktop\cavity_LIBS_system-master\cavity_LIBS_system-master\build\Desktop_Qt_5_15_2_MinGW_64_bit-Debug || (set FAIL_LINE=36& goto :ABORT)
G:\qt\Qt\Tools\CMake_64\bin\cmake.exe -E copy_if_different E:/perfessional/QT/install/5.15.2/mingw81_64/bin/libGLESv2.dll G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/bin || (set FAIL_LINE=37& goto :ABORT)
cd /D G:\Desktop\cavity_LIBS_system-master\cavity_LIBS_system-master\build\Desktop_Qt_5_15_2_MinGW_64_bit-Debug || (set FAIL_LINE=38& goto :ABORT)
G:\qt\Qt\Tools\CMake_64\bin\cmake.exe -E copy_if_different E:/perfessional/QT/install/5.15.2/mingw81_64/bin/d3dcompiler_47.dll G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/bin || (set FAIL_LINE=39& goto :ABORT)
cd /D G:\Desktop\cavity_LIBS_system-master\cavity_LIBS_system-master\build\Desktop_Qt_5_15_2_MinGW_64_bit-Debug || (set FAIL_LINE=40& goto :ABORT)
G:\qt\Qt\Tools\CMake_64\bin\cmake.exe -E make_directory G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/bin/platforms || (set FAIL_LINE=41& goto :ABORT)
G:\qt\Qt\Tools\CMake_64\bin\cmake.exe -E copy_if_different E:/perfessional/QT/install/5.15.2/mingw81_64/plugins/platforms/qwindows.dll G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/bin/platforms/qwindows.dll || (set FAIL_LINE=42& goto :ABORT)
cd /D G:\Desktop\cavity_LIBS_system-master\cavity_LIBS_system-master\build\Desktop_Qt_5_15_2_MinGW_64_bit-Debug || (set FAIL_LINE=43& goto :ABORT)
G:\qt\Qt\Tools\CMake_64\bin\cmake.exe -E make_directory G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/bin/sqldrivers || (set FAIL_LINE=44& goto :ABORT)
G:\qt\Qt\Tools\CMake_64\bin\cmake.exe -E copy_if_different E:/perfessional/QT/install/5.15.2/mingw81_64/plugins/sqldrivers/qsqlite.dll G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/bin/sqldrivers/qsqlite.dll || (set FAIL_LINE=45& goto :ABORT)
cd /D G:\Desktop\cavity_LIBS_system-master\cavity_LIBS_system-master\build\Desktop_Qt_5_15_2_MinGW_64_bit-Debug || (set FAIL_LINE=46& goto :ABORT)
G:\qt\Qt\Tools\CMake_64\bin\cmake.exe -E make_directory G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/bin/styles || (set FAIL_LINE=47& goto :ABORT)
G:\qt\Qt\Tools\CMake_64\bin\cmake.exe -E copy_if_different E:/perfessional/QT/install/5.15.2/mingw81_64/plugins/styles/qwindowsvistastyle.dll G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/bin/styles/qwindowsvistastyle.dll || (set FAIL_LINE=48& goto :ABORT)
cd /D G:\Desktop\cavity_LIBS_system-master\cavity_LIBS_system-master\build\Desktop_Qt_5_15_2_MinGW_64_bit-Debug || (set FAIL_LINE=49& goto :ABORT)
G:\qt\Qt\Tools\CMake_64\bin\cmake.exe -E make_directory G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/bin/imageformats || (set FAIL_LINE=50& goto :ABORT)
G:\qt\Qt\Tools\CMake_64\bin\cmake.exe -E copy_if_different E:/perfessional/QT/install/5.15.2/mingw81_64/plugins/imageformats/qico.dll G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/bin/imageformats/qico.dll || (set FAIL_LINE=51& goto :ABORT)
cd /D G:\Desktop\cavity_LIBS_system-master\cavity_LIBS_system-master\build\Desktop_Qt_5_15_2_MinGW_64_bit-Debug || (set FAIL_LINE=52& goto :ABORT)
G:\qt\Qt\Tools\CMake_64\bin\cmake.exe -E make_directory G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/bin/imageformats || (set FAIL_LINE=53& goto :ABORT)
G:\qt\Qt\Tools\CMake_64\bin\cmake.exe -E copy_if_different E:/perfessional/QT/install/5.15.2/mingw81_64/plugins/imageformats/qsvg.dll G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/bin/imageformats/qsvg.dll || (set FAIL_LINE=54& goto :ABORT)
cd /D G:\Desktop\cavity_LIBS_system-master\cavity_LIBS_system-master\build\Desktop_Qt_5_15_2_MinGW_64_bit-Debug || (set FAIL_LINE=55& goto :ABORT)
G:\qt\Qt\Tools\CMake_64\bin\cmake.exe -E copy_if_different E:/perfessional/QT/install/Tools/mingw810_64/bin/libgcc_s_seh-1.dll G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/bin || (set FAIL_LINE=56& goto :ABORT)
cd /D G:\Desktop\cavity_LIBS_system-master\cavity_LIBS_system-master\build\Desktop_Qt_5_15_2_MinGW_64_bit-Debug || (set FAIL_LINE=57& goto :ABORT)
G:\qt\Qt\Tools\CMake_64\bin\cmake.exe -E copy_if_different E:/perfessional/QT/install/Tools/mingw810_64/bin/libstdc++-6.dll G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/bin || (set FAIL_LINE=58& goto :ABORT)
cd /D G:\Desktop\cavity_LIBS_system-master\cavity_LIBS_system-master\build\Desktop_Qt_5_15_2_MinGW_64_bit-Debug || (set FAIL_LINE=59& goto :ABORT)
G:\qt\Qt\Tools\CMake_64\bin\cmake.exe -E copy_if_different E:/perfessional/QT/install/Tools/mingw810_64/bin/libwinpthread-1.dll G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/bin || (set FAIL_LINE=60& goto :ABORT)
goto :EOF
:ABORT
set ERROR_CODE=%ERRORLEVEL%
echo Batch file failed at line %FAIL_LINE% with errorcode %ERRORLEVEL%
exit /b %ERROR_CODE%
@@ -0,0 +1,337 @@
{
"AUTOGEN_COMMAND_LINE_LENGTH_MAX" : 32000,
"BUILD_DIR" : "G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CavityLIBS_autogen",
"CMAKE_BINARY_DIR" : "G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug",
"CMAKE_CURRENT_BINARY_DIR" : "G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug",
"CMAKE_CURRENT_SOURCE_DIR" : "G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master",
"CMAKE_EXECUTABLE" : "G:/qt/Qt/Tools/CMake_64/bin/cmake.exe",
"CMAKE_LIST_FILES" :
[
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/CMakeLists.txt",
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/.qtc/package-manager/auto-setup.cmake",
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CMakeFiles/3.29.3/CMakeSystem.cmake",
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/.qtc/package-manager/maintenance_tool_provider.cmake",
"G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeSystemSpecificInitialize.cmake",
"G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Platform/Windows-Initialize.cmake",
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CMakeFiles/3.29.3/CMakeCXXCompiler.cmake",
"G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeSystemSpecificInformation.cmake",
"G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeGenericSystem.cmake",
"G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeInitializeConfigs.cmake",
"G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Platform/Windows.cmake",
"G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Platform/WindowsPaths.cmake",
"G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeCXXInformation.cmake",
"G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeLanguageInformation.cmake",
"G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/GNU-CXX.cmake",
"G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/GNU.cmake",
"G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Compiler/CMakeCommonCompilerMacros.cmake",
"G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Platform/Windows-GNU-CXX.cmake",
"G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Platform/Windows-GNU.cmake",
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CMakeFiles/3.29.3/CMakeRCCompiler.cmake",
"G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeRCInformation.cmake",
"G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Platform/Windows-windres.cmake",
"G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/Platform/Windows-GNU-CXX-ABI.cmake",
"G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeCommonLanguageInclude.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Core/Qt5CoreConfigVersion.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Core/Qt5CoreConfig.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Core/Qt5CoreConfigExtrasMkspecDir.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake",
"G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeParseArguments.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Widgets/Qt5WidgetsConfigVersion.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5GuiConfigVersion.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QGifPlugin.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QICNSPlugin.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QICOPlugin.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QInsightTrackerPlugin.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QJpegPlugin.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QMinimalIntegrationPlugin.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QOffscreenIntegrationPlugin.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QSvgIconPlugin.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QSvgPlugin.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QTgaPlugin.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QTiffPlugin.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QTuioTouchPlugin.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QVirtualKeyboardPlugin.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QWbmpPlugin.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QWebGLIntegrationPlugin.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QWebpPlugin.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QWindowsDirect2DIntegrationPlugin.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QWindowsIntegrationPlugin.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5Gui_QXdgDesktopPortalThemePlugin.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Widgets/Qt5Widgets_QWindowsVistaStylePlugin.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Widgets/Qt5WidgetsConfigExtras.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Widgets/Qt5WidgetsMacros.cmake",
"G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeParseArguments.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5GuiConfigVersion.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5SerialPort/Qt5SerialPortConfigVersion.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5SerialPort/Qt5SerialPortConfig.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Sql/Qt5SqlConfigVersion.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Sql/Qt5SqlConfig.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Sql/Qt5Sql_QODBCDriverPlugin.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Sql/Qt5Sql_QPSQLDriverPlugin.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Sql/Qt5Sql_QSQLiteDriverPlugin.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5/Qt5ConfigVersion.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5/Qt5Config.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5/Qt5ModuleLocation.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Core/Qt5CoreConfigVersion.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Core/Qt5CoreConfig.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Widgets/Qt5WidgetsConfigVersion.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5GuiConfigVersion.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5SerialPort/Qt5SerialPortConfigVersion.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5SerialPort/Qt5SerialPortConfig.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Sql/Qt5SqlConfigVersion.cmake",
"E:/perfessional/QT/install/5.15.2/mingw81_64/lib/cmake/Qt5Sql/Qt5SqlConfig.cmake"
],
"CMAKE_SOURCE_DIR" : "G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master",
"CROSS_CONFIG" : false,
"DEP_FILE" : "G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CavityLIBS_autogen/deps",
"DEP_FILE_RULE_NAME" : "CavityLIBS_autogen/timestamp",
"HEADERS" :
[
[
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/PeakSearching/peakfinder.h",
"MU",
"BDXF2735PG/moc_peakfinder.cpp",
null
],
[
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/Public/avaspec.h",
"MU",
"MW6MQGGV2E/moc_avaspec.cpp",
null
],
[
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/Public/clickable_line_edit.h",
"MU",
"MW6MQGGV2E/moc_clickable_line_edit.cpp",
null
],
[
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/Public/crc16util.h",
"MU",
"MW6MQGGV2E/moc_crc16util.cpp",
null
],
[
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/Public/sqliteutil.h",
"MU",
"MW6MQGGV2E/moc_sqliteutil.cpp",
null
],
[
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/Public/type.h",
"MU",
"MW6MQGGV2E/moc_type.cpp",
null
],
[
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/Public/util.h",
"MU",
"MW6MQGGV2E/moc_util.cpp",
null
],
[
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/Spectrometer/algorithmanalysis.h",
"MU",
"AJRDDVXYB7/moc_algorithmanalysis.cpp",
null
],
[
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/Spectrometer/devicemanager.h",
"MU",
"AJRDDVXYB7/moc_devicemanager.cpp",
null
],
[
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/Spectrometer/elementanalysis.h",
"MU",
"AJRDDVXYB7/moc_elementanalysis.cpp",
null
],
[
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/Spectrometer/specpeakservice.h",
"MU",
"AJRDDVXYB7/moc_specpeakservice.cpp",
null
],
[
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/Spectrometer/spectrometer.h",
"MU",
"AJRDDVXYB7/moc_spectrometer.cpp",
null
],
[
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/Spectrometer/spectrumalgorithm.h",
"MU",
"AJRDDVXYB7/moc_spectrumalgorithm.cpp",
null
],
[
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/computer.h",
"MU",
"EWIEGA46WW/moc_computer.cpp",
null
],
[
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/mainwindow.h",
"MU",
"EWIEGA46WW/moc_mainwindow.cpp",
null
],
[
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/probe_tube.h",
"MU",
"EWIEGA46WW/moc_probe_tube.cpp",
null
]
],
"HEADER_EXTENSIONS" : [ "h", "hh", "h++", "hm", "hpp", "hxx", "in", "txx" ],
"INCLUDE_DIR" : "G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CavityLIBS_autogen/include",
"MOC_COMPILATION_FILE" : "G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CavityLIBS_autogen/mocs_compilation.cpp",
"MOC_DEFINITIONS" :
[
"QT_CORE_LIB",
"QT_GUI_LIB",
"QT_SERIALPORT_LIB",
"QT_SQL_LIB",
"QT_WIDGETS_LIB",
"QWT_DLL"
],
"MOC_DEPEND_FILTERS" :
[
[
"Q_PLUGIN_METADATA",
"[\n][ \t]*Q_PLUGIN_METADATA[ \t]*\\([^\\)]*FILE[ \t]*\"([^\"]+)\""
]
],
"MOC_INCLUDES" :
[
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug",
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master",
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/third_party/qwt-6.3.0-mingw64/include",
"G:/qt/Qt/mylib/aris_0411/include",
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/third_party/libusb-1.0/include",
"E:/perfessional/QT/install/5.15.2/mingw81_64/include",
"E:/perfessional/QT/install/5.15.2/mingw81_64/include/QtCore",
"E:/perfessional/QT/install/5.15.2/mingw81_64/mkspecs/win32-g++",
"E:/perfessional/QT/install/5.15.2/mingw81_64/include/QtWidgets",
"E:/perfessional/QT/install/5.15.2/mingw81_64/include/QtGui",
"E:/perfessional/QT/install/5.15.2/mingw81_64/include/QtANGLE",
"E:/perfessional/QT/install/5.15.2/mingw81_64/include/QtSerialPort",
"E:/perfessional/QT/install/5.15.2/mingw81_64/include/QtSql",
"E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++",
"E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/x86_64-w64-mingw32",
"E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/backward",
"E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0/include",
"E:/perfessional/QT/install/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0/include-fixed",
"E:/perfessional/QT/install/Tools/mingw810_64/x86_64-w64-mingw32/include"
],
"MOC_MACRO_NAMES" : [ "Q_OBJECT", "Q_GADGET", "Q_NAMESPACE", "Q_NAMESPACE_EXPORT" ],
"MOC_OPTIONS" : [],
"MOC_PATH_PREFIX" : false,
"MOC_PREDEFS_CMD" :
[
"E:/perfessional/QT/install/Tools/mingw810_64/bin/g++.exe",
"-std=c++2a",
"-dM",
"-E",
"-c",
"G:/qt/Qt/Tools/CMake_64/share/cmake-3.29/Modules/CMakeCXXCompilerABI.cpp"
],
"MOC_PREDEFS_FILE" : "G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CavityLIBS_autogen/moc_predefs.h",
"MOC_RELAXED_MODE" : false,
"MOC_SKIP" : [],
"MULTI_CONFIG" : false,
"PARALLEL" : 6,
"PARSE_CACHE_FILE" : "G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CMakeFiles/CavityLIBS_autogen.dir/ParseCache.txt",
"QT_MOC_EXECUTABLE" : "E:/perfessional/QT/install/5.15.2/mingw81_64/bin/moc.exe",
"QT_UIC_EXECUTABLE" : "E:/perfessional/QT/install/5.15.2/mingw81_64/bin/uic.exe",
"QT_VERSION_MAJOR" : 5,
"QT_VERSION_MINOR" : 15,
"SETTINGS_FILE" : "G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug/CMakeFiles/CavityLIBS_autogen.dir/AutogenUsed.txt",
"SOURCES" :
[
[
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/PeakSearching/peakfinder.cpp",
"MU",
null
],
[
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/Public/crc16util.cpp",
"MU",
null
],
[
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/Public/sqliteutil.cpp",
"MU",
null
],
[
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/Public/util.cpp",
"MU",
null
],
[
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/Spectrometer/algorithmanalysis.cpp",
"MU",
null
],
[
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/Spectrometer/devicemanager.cpp",
"MU",
null
],
[
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/Spectrometer/elementanalysis.cpp",
"MU",
null
],
[
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/Spectrometer/specpeakservice.cpp",
"MU",
null
],
[
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/Spectrometer/spectrometer.cpp",
"MU",
null
],
[
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/Spectrometer/spectrumalgorithm.cpp",
"MU",
null
],
[
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/computer.cpp",
"MU",
null
],
[
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/main.cpp",
"MU",
null
],
[
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/mainwindow.cpp",
"MU",
null
],
[
"G:/Desktop/cavity_LIBS_system-master/cavity_LIBS_system-master/probe_tube.cpp",
"MU",
null
]
],
"UIC_OPTIONS" : [],
"UIC_SEARCH_PATHS" : [],
"UIC_SKIP" : [],
"UIC_UI_FILES" : [],
"USE_BETTER_GRAPH" : false,
"VERBOSITY" : 0
}
@@ -0,0 +1,2 @@
moc:2b3067fb65bac22ca51e0d056c08e0f84e8813b9f62ded8e8640de66052b2fb8
uic:9d082049dcc84bde998575516c1dba6e21d906d2837bb84062af4b4afc351271

Some files were not shown because too many files have changed in this diff Show More