| | | | | | | | | | | | | | | | | | | | | |
<?xml version="1.0" standalone="no" encoding="windows-1252"?> |
<!-- Field: Doc-Info; Name: Generator; Value: GoFiler Complete; Version: 4.26b --> |
<!-- Field: Doc-Info; Name: VendorURI; Value: http://www.novaworks.co --> |
<!-- Field: Doc-Info; Name: Source; Value: spi_20f%2D2018.xfr; Date: 2019%2D04%2D30T20:10:32Z --> |
<!-- Field: Doc-Info; Name: Status; Value: 0x00000000 --> |
<link:linkbase xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xmlns:xbrli="http://www.xbrl.org/2003/instance" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd"> |
| <link:roleRef roleURI="http://spisolar.com/role/DocumentDocumentAndEntityInformation" xlink:href="spi-20181231.xsd#DocumentDocumentAndEntityInformation" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/StatementConsolidatedBalanceSheets" xlink:href="spi-20181231.xsd#StatementConsolidatedBalanceSheets" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:href="spi-20181231.xsd#ConsolidatedBalanceSheetsParenthetical" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/ConsolidatedStatementsOfOperations" xlink:href="spi-20181231.xsd#ConsolidatedStatementsOfOperations" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/StatementConsolidatedStatementsOfComprehensiveLoss" xlink:href="spi-20181231.xsd#StatementConsolidatedStatementsOfComprehensiveLoss" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/ConsolidatedStatementsOfEquityDeficit" xlink:href="spi-20181231.xsd#ConsolidatedStatementsOfEquityDeficit" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/ConsolidatedStatementsOfCashFlows" xlink:href="spi-20181231.xsd#ConsolidatedStatementsOfCashFlows" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/ReconciliationOfCash" xlink:href="spi-20181231.xsd#ReconciliationOfCash" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/DescriptionOfBusinessAndOrganization" xlink:href="spi-20181231.xsd#DescriptionOfBusinessAndOrganization" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/GoingConcern" xlink:href="spi-20181231.xsd#GoingConcern" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/SummaryOfSignificantAccountingPolicies" xlink:href="spi-20181231.xsd#SummaryOfSignificantAccountingPolicies" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/DispositionOfSpiChina" xlink:href="spi-20181231.xsd#DispositionOfSpiChina" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/BusinessAcquisitions" xlink:href="spi-20181231.xsd#BusinessAcquisitions" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/DeconsolidationOfSinsin" xlink:href="spi-20181231.xsd#DeconsolidationOfSinsin" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/RestrictedCash" xlink:href="spi-20181231.xsd#RestrictedCash" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/AccountsReceivable" xlink:href="spi-20181231.xsd#AccountsReceivable" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/InventoriesNet" xlink:href="spi-20181231.xsd#InventoriesNet" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/ProjectAssets" xlink:href="spi-20181231.xsd#ProjectAssets" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/PrepaidExpensesAndOtherCurrentAssets" xlink:href="spi-20181231.xsd#PrepaidExpensesAndOtherCurrentAssets" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/IntangibleAssets" xlink:href="spi-20181231.xsd#IntangibleAssets" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/Goodwill" xlink:href="spi-20181231.xsd#Goodwill" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/PropertyPlantAndEquipment" xlink:href="spi-20181231.xsd#PropertyPlantAndEquipment" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/InvestmentInAffiliates" xlink:href="spi-20181231.xsd#InvestmentInAffiliates" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/FairValueMeasurement" xlink:href="spi-20181231.xsd#FairValueMeasurement" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/AccruedLiabilities" xlink:href="spi-20181231.xsd#AccruedLiabilities" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/AdvanceFromCustomers" xlink:href="spi-20181231.xsd#AdvanceFromCustomers" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/Short-termBorrowingsAndLong-termBorrowings" xlink:href="spi-20181231.xsd#Short-termBorrowingsAndLong-termBorrowings" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/ConvertibleBonds" xlink:href="spi-20181231.xsd#ConvertibleBonds" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/OtherLiabilities" xlink:href="spi-20181231.xsd#OtherLiabilities" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/ShareholdersEquityDeficit" xlink:href="spi-20181231.xsd#ShareholdersEquityDeficit" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/Share-basedCompensation" xlink:href="spi-20181231.xsd#Share-basedCompensation" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/IncomeTaxes" xlink:href="spi-20181231.xsd#IncomeTaxes" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/NetLossPerShare" xlink:href="spi-20181231.xsd#NetLossPerShare" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/CommitmentsAndContingencies" xlink:href="spi-20181231.xsd#CommitmentsAndContingencies" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/ConcentrationRisk" xlink:href="spi-20181231.xsd#ConcentrationRisk" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/SegmentInformation" xlink:href="spi-20181231.xsd#SegmentInformation" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/RelatedPartyTransactions" xlink:href="spi-20181231.xsd#RelatedPartyTransactions" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/SubsequentEvents" xlink:href="spi-20181231.xsd#SubsequentEvents" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:href="spi-20181231.xsd#SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/DescriptionOfBusinessAndOrganizationTables" xlink:href="spi-20181231.xsd#DescriptionOfBusinessAndOrganizationTables" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/SummaryOfSignificantAccountingPoliciesTables" xlink:href="spi-20181231.xsd#SummaryOfSignificantAccountingPoliciesTables" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/DispositionOfSpiChinaTables" xlink:href="spi-20181231.xsd#DispositionOfSpiChinaTables" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/BusinessAcquisitionsTables" xlink:href="spi-20181231.xsd#BusinessAcquisitionsTables" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/DeconsolidationOfSinsinTables" xlink:href="spi-20181231.xsd#DeconsolidationOfSinsinTables" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/AccountsReceivableTables" xlink:href="spi-20181231.xsd#AccountsReceivableTables" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/InventoriesNetTables" xlink:href="spi-20181231.xsd#InventoriesNetTables" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/ProjectAssetsTables" xlink:href="spi-20181231.xsd#ProjectAssetsTables" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/PrepaidExpensesAndOtherCurrentAssetsTables" xlink:href="spi-20181231.xsd#PrepaidExpensesAndOtherCurrentAssetsTables" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/IntangibleAssetsTables" xlink:href="spi-20181231.xsd#IntangibleAssetsTables" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/GoodwillTables" xlink:href="spi-20181231.xsd#GoodwillTables" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/PropertyPlantAndEquipmentTables" xlink:href="spi-20181231.xsd#PropertyPlantAndEquipmentTables" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/AccruedLiabilitiesTables" xlink:href="spi-20181231.xsd#AccruedLiabilitiesTables" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/Short-termBorrowingsAndLong-termBorrowingsTables" xlink:href="spi-20181231.xsd#Short-termBorrowingsAndLong-termBorrowingsTables" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/OtherLiabilitiesTables" xlink:href="spi-20181231.xsd#OtherLiabilitiesTables" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/Share-basedCompensationTables" xlink:href="spi-20181231.xsd#Share-basedCompensationTables" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/IncomeTaxesTables" xlink:href="spi-20181231.xsd#IncomeTaxesTables" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/NetLossPerShareTables" xlink:href="spi-20181231.xsd#NetLossPerShareTables" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/CommitmentsAndContingenciesTables" xlink:href="spi-20181231.xsd#CommitmentsAndContingenciesTables" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/ConcentrationRiskTables" xlink:href="spi-20181231.xsd#ConcentrationRiskTables" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/SegmentInformationTables" xlink:href="spi-20181231.xsd#SegmentInformationTables" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/GoingConcernDetailsNarrative" xlink:href="spi-20181231.xsd#GoingConcernDetailsNarrative" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/SummaryOfSignificantAccountingPoliciesDetails-PpeUsefulLives" xlink:href="spi-20181231.xsd#SummaryOfSignificantAccountingPoliciesDetails-PpeUsefulLives" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/SummaryOfSignificantAccountingPoliciesDetails-DisaggregationOfRevenueByRevenueStream" xlink:href="spi-20181231.xsd#SummaryOfSignificantAccountingPoliciesDetails-DisaggregationOfRevenueByRevenueStream" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/SummaryOfSignificantAccountingPoliciesDetails-ByTimingOfRevenueRecognition" xlink:href="spi-20181231.xsd#SummaryOfSignificantAccountingPoliciesDetails-ByTimingOfRevenueRecognition" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/SummaryOfSignificantAccountingPoliciesDetails-ContractBalance" xlink:href="spi-20181231.xsd#SummaryOfSignificantAccountingPoliciesDetails-ContractBalance" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/DisclosureSummaryOfSignificantAccountingPoliciesCapitalizedInterestDetails" xlink:href="spi-20181231.xsd#DisclosureSummaryOfSignificantAccountingPoliciesCapitalizedInterestDetails" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/SummaryOfSignificantAccountingPoliciesDetailsNarrative" xlink:href="spi-20181231.xsd#SummaryOfSignificantAccountingPoliciesDetailsNarrative" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/DispositionOfSpiChinaDetails-BalanceSheet" xlink:href="spi-20181231.xsd#DispositionOfSpiChinaDetails-BalanceSheet" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/DispositionOfSpiChinaDetails-StatementOfOperation" xlink:href="spi-20181231.xsd#DispositionOfSpiChinaDetails-StatementOfOperation" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/DispositionOfSpiChinaDetailsNarrative" xlink:href="spi-20181231.xsd#DispositionOfSpiChinaDetailsNarrative" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/BusinessAcquisitionsDetails" xlink:href="spi-20181231.xsd#BusinessAcquisitionsDetails" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/BusinessAcquisitionsDetailsNarrative" xlink:href="spi-20181231.xsd#BusinessAcquisitionsDetailsNarrative" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/DeconsolidationOfSinsinDetails" xlink:href="spi-20181231.xsd#DeconsolidationOfSinsinDetails" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/DeconsolidationOfSinsinDetailsNarrative" xlink:href="spi-20181231.xsd#DeconsolidationOfSinsinDetailsNarrative" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/RestrictedCashDetailsNarrative" xlink:href="spi-20181231.xsd#RestrictedCashDetailsNarrative" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/AccountsReceivableDetails-AccountsReceivable" xlink:href="spi-20181231.xsd#AccountsReceivableDetails-AccountsReceivable" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/AccountsReceivableDetails-AllowanceForDoubtfulAccounts" xlink:href="spi-20181231.xsd#AccountsReceivableDetails-AllowanceForDoubtfulAccounts" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/AccountsReceivableDetailsNarrative" xlink:href="spi-20181231.xsd#AccountsReceivableDetailsNarrative" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/InventoriesDetails" xlink:href="spi-20181231.xsd#InventoriesDetails" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/InventoriesDetailsNarrative" xlink:href="spi-20181231.xsd#InventoriesDetailsNarrative" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/ProjectAssetsDetails" xlink:href="spi-20181231.xsd#ProjectAssetsDetails" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/ProjectAssetsDetailsNarrative" xlink:href="spi-20181231.xsd#ProjectAssetsDetailsNarrative" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/PrepaidExpensesAndOtherCurrentAssetsDetails" xlink:href="spi-20181231.xsd#PrepaidExpensesAndOtherCurrentAssetsDetails" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/PrepaidExpensesAndOtherCurrentAssetsDetailsNarrative" xlink:href="spi-20181231.xsd#PrepaidExpensesAndOtherCurrentAssetsDetailsNarrative" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/IntangibleAssetsDetails-IntangibleAssets" xlink:href="spi-20181231.xsd#IntangibleAssetsDetails-IntangibleAssets" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/IntangibleAssetsDetails-FutureAmortization" xlink:href="spi-20181231.xsd#IntangibleAssetsDetails-FutureAmortization" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/IntangibleAssetsDetailsNarrative" xlink:href="spi-20181231.xsd#IntangibleAssetsDetailsNarrative" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/GoodwillDetails-Goodwill" xlink:href="spi-20181231.xsd#GoodwillDetails-Goodwill" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/GoodwilDetailsNarrative" xlink:href="spi-20181231.xsd#GoodwilDetailsNarrative" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/PropertyPlantAndEquipmentDetails" xlink:href="spi-20181231.xsd#PropertyPlantAndEquipmentDetails" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/PropertyPlantAndEquipmentDetailsNarrative" xlink:href="spi-20181231.xsd#PropertyPlantAndEquipmentDetailsNarrative" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/InvestmentInAffiliatesDetailsNarrative" xlink:href="spi-20181231.xsd#InvestmentInAffiliatesDetailsNarrative" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/FairValueMeasurementDetailsNarrative" xlink:href="spi-20181231.xsd#FairValueMeasurementDetailsNarrative" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/AccruedLiabilitiesDetails" xlink:href="spi-20181231.xsd#AccruedLiabilitiesDetails" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/Short-termBorrowingsAndLong-termBorrowingsDetails-Debt" xlink:href="spi-20181231.xsd#Short-termBorrowingsAndLong-termBorrowingsDetails-Debt" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/Short-termBorrowingsAndLong-termBorrowingsDetails-Maturities" xlink:href="spi-20181231.xsd#Short-termBorrowingsAndLong-termBorrowingsDetails-Maturities" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/Short-termBorrowingsAndLong-termBorrowingsDetailsNarrative" xlink:href="spi-20181231.xsd#Short-termBorrowingsAndLong-termBorrowingsDetailsNarrative" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/ConvertibleBondsDetailsNarrative" xlink:href="spi-20181231.xsd#ConvertibleBondsDetailsNarrative" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/OtherLiabilitiesDetails" xlink:href="spi-20181231.xsd#OtherLiabilitiesDetails" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/OtherLiabilitiesDetailsNarrative" xlink:href="spi-20181231.xsd#OtherLiabilitiesDetailsNarrative" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/StockholdersDeficitDetailsNarrative" xlink:href="spi-20181231.xsd#StockholdersDeficitDetailsNarrative" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/Stock-basedCompensationDetails-Stock-basedCompensationExpenseByAwardType" xlink:href="spi-20181231.xsd#Stock-basedCompensationDetails-Stock-basedCompensationExpenseByAwardType" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/Stock-basedCompensationDetails-CompensationExpenseByLineItem" xlink:href="spi-20181231.xsd#Stock-basedCompensationDetails-CompensationExpenseByLineItem" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/Stock-basedCompensationDetails-Assumptions" xlink:href="spi-20181231.xsd#Stock-basedCompensationDetails-Assumptions" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/Stock-basedCompensationDetails-OptionActivity" xlink:href="spi-20181231.xsd#Stock-basedCompensationDetails-OptionActivity" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/Stock-basedCompensationDetails-OptionsByExercisePrice" xlink:href="spi-20181231.xsd#Stock-basedCompensationDetails-OptionsByExercisePrice" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/Stock-basedCompensationDetails-Non-vestedOptions" xlink:href="spi-20181231.xsd#Stock-basedCompensationDetails-Non-vestedOptions" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/Stock-basedCompensationDetails-Rsus" xlink:href="spi-20181231.xsd#Stock-basedCompensationDetails-Rsus" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/Stock-basedCompensationDetailsNarrative" xlink:href="spi-20181231.xsd#Stock-basedCompensationDetailsNarrative" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/IncomeTaxesDetails-LossBeforeProvision" xlink:href="spi-20181231.xsd#IncomeTaxesDetails-LossBeforeProvision" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/IncomeTaxesDetails-ProvisionForIncomeTaxes" xlink:href="spi-20181231.xsd#IncomeTaxesDetails-ProvisionForIncomeTaxes" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/IncomeTaxesDetails-TaxReconciliation" xlink:href="spi-20181231.xsd#IncomeTaxesDetails-TaxReconciliation" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/IncomeTaxesDetails-DeferredIncomeTaxes" xlink:href="spi-20181231.xsd#IncomeTaxesDetails-DeferredIncomeTaxes" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/IncomeTaxesDetailsNarrative" xlink:href="spi-20181231.xsd#IncomeTaxesDetailsNarrative" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/NetLossPerShareDetails-BasicAndDiluted" xlink:href="spi-20181231.xsd#NetLossPerShareDetails-BasicAndDiluted" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/NetLossPerShareDetails-AntidilutiveShares" xlink:href="spi-20181231.xsd#NetLossPerShareDetails-AntidilutiveShares" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/CommitmentsAndContingenciesDetails-MinimumLeasePayments" xlink:href="spi-20181231.xsd#CommitmentsAndContingenciesDetails-MinimumLeasePayments" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/CommitmentsAndContingenciesDetailsNarrative" xlink:href="spi-20181231.xsd#CommitmentsAndContingenciesDetailsNarrative" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/ConcentrationRiskDetails-AccountsReceivableRisk" xlink:href="spi-20181231.xsd#ConcentrationRiskDetails-AccountsReceivableRisk" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/SegmentInformationDetails-ByProduct" xlink:href="spi-20181231.xsd#SegmentInformationDetails-ByProduct" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/SegmentInformationDetails-Geographic" xlink:href="spi-20181231.xsd#SegmentInformationDetails-Geographic" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/SegmentInformationDetails-Long-livedAssets" xlink:href="spi-20181231.xsd#SegmentInformationDetails-Long-livedAssets" xlink:type="simple"/> |
| <link:roleRef roleURI="http://spisolar.com/role/RelatedPartyTransactionsDetailsNarrative" xlink:href="spi-20181231.xsd#RelatedPartyTransactionsDetailsNarrative" xlink:type="simple"/> |
| <link:arcroleRef xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension" arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension"/> |
| <link:arcroleRef xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain" arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain"/> |
| <link:arcroleRef xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member" arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member"/> |
| <link:arcroleRef xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all" arcroleURI="http://xbrl.org/int/dim/arcrole/all"/> |
| <link:arcroleRef xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#notAll" arcroleURI="http://xbrl.org/int/dim/arcrole/notAll"/> |
| <link:arcroleRef xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default" arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/DocumentDocumentAndEntityInformation" xlink:title="00000001 - Document - Document and Entity Information"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/StatementConsolidatedBalanceSheets" xlink:title="00000002 - Statement - CONSOLIDATED BALANCE SHEETS"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:title="00000003 - Statement - CONSOLIDATED BALANCE SHEETS (Parenthetical)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/ConsolidatedStatementsOfOperations" xlink:title="00000004 - Statement - CONSOLIDATED STATEMENTS OF OPERATIONS"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/StatementConsolidatedStatementsOfComprehensiveLoss" xlink:title="00000005 - Statement - CONSOLIDATED STATEMENTS OF COMPREHENSIVE LOSS"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/ConsolidatedStatementsOfEquityDeficit" xlink:title="00000006 - Statement - CONSOLIDATED STATEMENTS OF EQUITY (DEFICIT)"> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaapStatementEquityComponentsAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapStatementEquityComponentsAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaapEquityComponentDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapStatementEquityComponentsAxis" xlink:to="loc_us-gaapEquityComponentDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaapEquityComponentDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementEquityComponentsAxis" xlink:to="loc_us-gaapEquityComponentDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockMember" xlink:label="loc_us-gaapCommonStockMember_0"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapEquityComponentDomain" xlink:to="loc_us-gaapCommonStockMember_0" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdditionalPaidInCapitalMember" xlink:label="loc_us-gaapAdditionalPaidInCapitalMember_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapEquityComponentDomain" xlink:to="loc_us-gaapAdditionalPaidInCapitalMember_10" xlink:type="arc" order="11"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RetainedEarningsMember" xlink:label="loc_us-gaapRetainedEarningsMember_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapEquityComponentDomain" xlink:to="loc_us-gaapRetainedEarningsMember_20" xlink:type="arc" order="21"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ComprehensiveIncomeMember" xlink:label="loc_us-gaapComprehensiveIncomeMember_30"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapEquityComponentDomain" xlink:to="loc_us-gaapComprehensiveIncomeMember_30" xlink:type="arc" order="31"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ParentMember" xlink:label="loc_us-gaapParentMember_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapEquityComponentDomain" xlink:to="loc_us-gaapParentMember_40" xlink:type="arc" order="41"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoncontrollingInterestMember" xlink:label="loc_us-gaapNoncontrollingInterestMember_50"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapEquityComponentDomain" xlink:to="loc_us-gaapNoncontrollingInterestMember_50" xlink:type="arc" order="51"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaapStockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_80" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SharesOutstanding" xlink:label="loc_us-gaapSharesOutstanding_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapSharesOutstanding_80" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProfitLoss" xlink:label="loc_us-gaapProfitLoss_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapProfitLoss_80" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossArisingDuringPeriodNetOfTax" xlink:label="loc_us-gaapOtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossArisingDuringPeriodNetOfTax_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapOtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossArisingDuringPeriodNetOfTax_80" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_DispositionOfSpiChinaHkLimited" xlink:label="loc_spiDispositionOfSpiChinaHkLimited_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiDispositionOfSpiChinaHkLimited_80" xlink:type="arc" order="5"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_StockOptionGrantedInDisposition" xlink:label="loc_spiStockOptionGrantedInDisposition_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiStockOptionGrantedInDisposition_80" xlink:type="arc" order="6"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_ForgivenessOfReceivableFromSpiChinaHkLimited" xlink:label="loc_spiForgivenessOfReceivableFromSpiChinaHkLimited_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiForgivenessOfReceivableFromSpiChinaHkLimited_80" xlink:type="arc" order="7"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoncontrollingInterestIncreaseFromSubsidiaryEquityIssuance" xlink:label="loc_us-gaapNoncontrollingInterestIncreaseFromSubsidiaryEquityIssuance_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapNoncontrollingInterestIncreaseFromSubsidiaryEquityIssuance_80" xlink:type="arc" order="8"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueNewIssues" xlink:label="loc_us-gaapStockIssuedDuringPeriodValueNewIssues_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStockIssuedDuringPeriodValueNewIssues_80" xlink:type="arc" order="9"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesNewIssues" xlink:label="loc_us-gaapStockIssuedDuringPeriodSharesNewIssues_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStockIssuedDuringPeriodSharesNewIssues_80" xlink:type="arc" order="10"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised" xlink:label="loc_us-gaapStockIssuedDuringPeriodValueStockOptionsExercised_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStockIssuedDuringPeriodValueStockOptionsExercised_80" xlink:type="arc" order="11"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised" xlink:label="loc_us-gaapStockIssuedDuringPeriodSharesStockOptionsExercised_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStockIssuedDuringPeriodSharesStockOptionsExercised_80" xlink:type="arc" order="12"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue" xlink:label="loc_us-gaapAdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapAdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_80" xlink:type="arc" order="13"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation" xlink:label="loc_us-gaapStockIssuedDuringPeriodSharesShareBasedCompensation_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStockIssuedDuringPeriodSharesShareBasedCompensation_80" xlink:type="arc" order="14"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_ReverseStockSplitRoundingSharesAmount" xlink:label="loc_spiReverseStockSplitRoundingSharesAmount_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiReverseStockSplitRoundingSharesAmount_80" xlink:type="arc" order="15"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesReverseStockSplits" xlink:label="loc_us-gaapStockIssuedDuringPeriodSharesReverseStockSplits_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStockIssuedDuringPeriodSharesReverseStockSplits_80" xlink:type="arc" order="16"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/ConsolidatedStatementsOfCashFlows" xlink:title="00000007 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/ReconciliationOfCash" xlink:title="00000008 - Statement - Reconciliation of Cash"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/DescriptionOfBusinessAndOrganization" xlink:title="00000009 - Disclosure - 1. Description of Business and Organization"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/GoingConcern" xlink:title="00000010 - Disclosure - 2. Going Concern"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/SummaryOfSignificantAccountingPolicies" xlink:title="00000011 - Disclosure - 3. Summary of Significant Accounting Policies"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/DispositionOfSpiChina" xlink:title="00000012 - Disclosure - 4. Disposition of SPI China"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/BusinessAcquisitions" xlink:title="00000013 - Disclosure - 5. Business Acquisitions"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/DeconsolidationOfSinsin" xlink:title="00000014 - Disclosure - 6. Deconsolidation of Sinsin"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/RestrictedCash" xlink:title="00000015 - Disclosure - 7. Restricted Cash"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/AccountsReceivable" xlink:title="00000016 - Disclosure - 8. Accounts Receivable"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/InventoriesNet" xlink:title="00000017 - Disclosure - 9. Inventories, net"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/ProjectAssets" xlink:title="00000018 - Disclosure - 10. Project Assets"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/PrepaidExpensesAndOtherCurrentAssets" xlink:title="00000019 - Disclosure - 11. Prepaid Expenses and Other Current Assets"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/IntangibleAssets" xlink:title="00000020 - Disclosure - 12. Intangible Assets"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/Goodwill" xlink:title="00000021 - Disclosure - 13. Goodwill"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/PropertyPlantAndEquipment" xlink:title="00000022 - Disclosure - 14. Property, Plant and Equipment"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/InvestmentInAffiliates" xlink:title="00000023 - Disclosure - 15. Investment in Affiliates"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/FairValueMeasurement" xlink:title="00000024 - Disclosure - 16. Fair Value Measurement"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/AccruedLiabilities" xlink:title="00000025 - Disclosure - 17. Accrued Liabilities"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/AdvanceFromCustomers" xlink:title="00000026 - Disclosure - 18. Advance From Customers"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/Short-termBorrowingsAndLong-termBorrowings" xlink:title="00000027 - Disclosure - 19. Short-term Borrowings and Long-term Borrowings"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/ConvertibleBonds" xlink:title="00000028 - Disclosure - 20. Convertible Bonds"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/OtherLiabilities" xlink:title="00000029 - Disclosure - 21. Other Liabilities"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/ShareholdersEquityDeficit" xlink:title="00000030 - Disclosure - 22. Shareholders' Equity (Deficit)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/Share-basedCompensation" xlink:title="00000031 - Disclosure - 23. Share-based Compensation"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/IncomeTaxes" xlink:title="00000032 - Disclosure - 24. Income Taxes"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/NetLossPerShare" xlink:title="00000033 - Disclosure - 25. Net Loss Per Share"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/CommitmentsAndContingencies" xlink:title="00000034 - Disclosure - 26. Commitments and Contingencies"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/ConcentrationRisk" xlink:title="00000035 - Disclosure - 27. Concentration Risk"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/SegmentInformation" xlink:title="00000036 - Disclosure - 28. Segment information"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/RelatedPartyTransactions" xlink:title="00000037 - Disclosure - 29. Related Party Transactions"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/SubsequentEvents" xlink:title="00000038 - Disclosure - 30. Subsequent Events"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:title="00000039 - Disclosure - 3. Summary of Significant Accounting Policies (Policies)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/DescriptionOfBusinessAndOrganizationTables" xlink:title="00000040 - Disclosure - 1. Description of Business and Organization (Tables)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/SummaryOfSignificantAccountingPoliciesTables" xlink:title="00000041 - Disclosure - 3. Summary of Significant Accounting Policies (Tables)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/DispositionOfSpiChinaTables" xlink:title="00000042 - Disclosure - 4. Disposition of SPI China (Tables)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/BusinessAcquisitionsTables" xlink:title="00000043 - Disclosure - 5. Business Acquisitions (Tables)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/DeconsolidationOfSinsinTables" xlink:title="00000044 - Disclosure - 6. Deconsolidation of Sinsin (Tables)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/AccountsReceivableTables" xlink:title="00000045 - Disclosure - 8. Accounts Receivable (Tables)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/InventoriesNetTables" xlink:title="00000046 - Disclosure - 9. Inventories, net (Tables)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/ProjectAssetsTables" xlink:title="00000047 - Disclosure - 10. Project Assets (Tables)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/PrepaidExpensesAndOtherCurrentAssetsTables" xlink:title="00000048 - Disclosure - 11. Prepaid Expenses and Other Current Assets (Tables)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/IntangibleAssetsTables" xlink:title="00000049 - Disclosure - 12. Intangible Assets (Tables)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/GoodwillTables" xlink:title="00000050 - Disclosure - 13. Goodwill (Tables)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/PropertyPlantAndEquipmentTables" xlink:title="00000051 - Disclosure - 14. Property, Plant and Equipment (Tables)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/AccruedLiabilitiesTables" xlink:title="00000052 - Disclosure - 17. Accrued liabilities (Tables)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/Short-termBorrowingsAndLong-termBorrowingsTables" xlink:title="00000053 - Disclosure - 19. Short-term borrowings and long-term borrowings (Tables)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/OtherLiabilitiesTables" xlink:title="00000054 - Disclosure - 21. Other liabilities (Tables)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/Share-basedCompensationTables" xlink:title="00000055 - Disclosure - 23. Share-based Compensation (Tables)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/IncomeTaxesTables" xlink:title="00000056 - Disclosure - 24. Income Taxes (Tables)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/NetLossPerShareTables" xlink:title="00000057 - Disclosure - 25. Net Loss Per Share (Tables)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/CommitmentsAndContingenciesTables" xlink:title="00000058 - Disclosure - 26. Commitments and Contingencies (Tables)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/ConcentrationRiskTables" xlink:title="00000059 - Disclosure - 27. Concentration Risk (Tables)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/SegmentInformationTables" xlink:title="00000060 - Disclosure - 28. Segment information (Tables)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/GoingConcernDetailsNarrative" xlink:title="00000061 - Disclosure - 2. Going Concern (Details Narrative)"> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventTypeAxis" xlink:label="loc_us-gaapSubsequentEventTypeAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapSubsequentEventTypeAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaapSubsequentEventTypeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapSubsequentEventTypeAxis" xlink:to="loc_us-gaapSubsequentEventTypeDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaapSubsequentEventTypeDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapSubsequentEventTypeAxis" xlink:to="loc_us-gaapSubsequentEventTypeDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventMember" xlink:label="loc_us-gaapSubsequentEventMember_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSubsequentEventTypeDomain" xlink:to="loc_us-gaapSubsequentEventMember_20" xlink:type="arc" order="21"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsidiarySaleOfStockAxis" xlink:label="loc_us-gaapSubsidiarySaleOfStockAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapSubsidiarySaleOfStockAxis" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SaleOfStockNameOfTransactionDomain" xlink:label="loc_us-gaapSaleOfStockNameOfTransactionDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapSubsidiarySaleOfStockAxis" xlink:to="loc_us-gaapSaleOfStockNameOfTransactionDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SaleOfStockNameOfTransactionDomain" xlink:label="loc_us-gaapSaleOfStockNameOfTransactionDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapSubsidiarySaleOfStockAxis" xlink:to="loc_us-gaapSaleOfStockNameOfTransactionDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PrivatePlacementMember" xlink:label="loc_us-gaapPrivatePlacementMember_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSaleOfStockNameOfTransactionDomain" xlink:to="loc_us-gaapPrivatePlacementMember_20" xlink:type="arc" order="22"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongtermDebtTypeAxis" xlink:label="loc_us-gaapLongtermDebtTypeAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapLongtermDebtTypeAxis" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaapLongtermDebtTypeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapLongtermDebtTypeAxis" xlink:to="loc_us-gaapLongtermDebtTypeDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaapLongtermDebtTypeDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapLongtermDebtTypeAxis" xlink:to="loc_us-gaapLongtermDebtTypeDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_ConvertibleBondsMember" xlink:label="loc_spiConvertibleBondsMember_30"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLongtermDebtTypeDomain" xlink:to="loc_spiConvertibleBondsMember_30" xlink:type="arc" order="31"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaapIncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest_50"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapIncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest_50" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_WorkingCapital" xlink:label="loc_spiWorkingCapital_50"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiWorkingCapital_50" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaapRetainedEarningsAccumulatedDeficit_50"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapRetainedEarningsAccumulatedDeficit_50" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConvertibleNotesPayableCurrent" xlink:label="loc_us-gaapConvertibleNotesPayableCurrent_50"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapConvertibleNotesPayableCurrent_50" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesNewIssues" xlink:label="loc_us-gaapStockIssuedDuringPeriodSharesNewIssues_50"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStockIssuedDuringPeriodSharesNewIssues_50" xlink:type="arc" order="6"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromIssuanceOrSaleOfEquity" xlink:label="loc_us-gaapProceedsFromIssuanceOrSaleOfEquity_50"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapProceedsFromIssuanceOrSaleOfEquity_50" xlink:type="arc" order="7"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/SummaryOfSignificantAccountingPoliciesDetails-PpeUsefulLives" xlink:title="00000062 - Disclosure - 3. Summary of Significant Accounting Policies (Details - PPE useful lives)"> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentLineItems" xlink:label="loc_us-gaapPropertyPlantAndEquipmentLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:label="loc_us-gaapScheduleOfPropertyPlantAndEquipmentTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapPropertyPlantAndEquipmentLineItems" xlink:to="loc_us-gaapScheduleOfPropertyPlantAndEquipmentTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaapPropertyPlantAndEquipmentByTypeAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapScheduleOfPropertyPlantAndEquipmentTable" xlink:to="loc_us-gaapPropertyPlantAndEquipmentByTypeAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaapPropertyPlantAndEquipmentTypeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapPropertyPlantAndEquipmentByTypeAxis" xlink:to="loc_us-gaapPropertyPlantAndEquipmentTypeDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaapPropertyPlantAndEquipmentTypeDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapPropertyPlantAndEquipmentByTypeAxis" xlink:to="loc_us-gaapPropertyPlantAndEquipmentTypeDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_PlantAndMachineryMember" xlink:label="loc_spiPlantAndMachineryMember_0"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentTypeDomain" xlink:to="loc_spiPlantAndMachineryMember_0" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FurnitureAndFixturesMember" xlink:label="loc_us-gaapFurnitureAndFixturesMember_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentTypeDomain" xlink:to="loc_us-gaapFurnitureAndFixturesMember_10" xlink:type="arc" order="11"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ComputerEquipmentMember" xlink:label="loc_us-gaapComputerEquipmentMember_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentTypeDomain" xlink:to="loc_us-gaapComputerEquipmentMember_20" xlink:type="arc" order="21"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AutomobilesMember" xlink:label="loc_us-gaapAutomobilesMember_30"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentTypeDomain" xlink:to="loc_us-gaapAutomobilesMember_30" xlink:type="arc" order="31"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LeaseholdImprovementsMember" xlink:label="loc_us-gaapLeaseholdImprovementsMember_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentTypeDomain" xlink:to="loc_us-gaapLeaseholdImprovementsMember_40" xlink:type="arc" order="41"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_PvSolarSystemMember" xlink:label="loc_spiPvSolarSystemMember_50"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentTypeDomain" xlink:to="loc_spiPvSolarSystemMember_50" xlink:type="arc" order="51"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentEstimatedUsefulLives" xlink:label="loc_us-gaapPropertyPlantAndEquipmentEstimatedUsefulLives_70"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentLineItems" xlink:to="loc_us-gaapPropertyPlantAndEquipmentEstimatedUsefulLives_70" xlink:type="arc" order="0"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/SummaryOfSignificantAccountingPoliciesDetails-DisaggregationOfRevenueByRevenueStream" xlink:title="00000063 - Disclosure - 3. Summary of Significant Accounting Policies (Details - Disaggregation of revenue by revenue stream)"> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductOrServiceAxis" xlink:label="loc_srtProductOrServiceAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_srtProductOrServiceAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srtProductsAndServicesDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtProductOrServiceAxis" xlink:to="loc_srtProductsAndServicesDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srtProductsAndServicesDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtProductOrServiceAxis" xlink:to="loc_srtProductsAndServicesDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_PhotoVoltaicSolarComponentsMember" xlink:label="loc_spiPhotoVoltaicSolarComponentsMember_0"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtProductsAndServicesDomain" xlink:to="loc_spiPhotoVoltaicSolarComponentsMember_0" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_PowerPurchaseAgreementsPPAMember" xlink:label="loc_spiPowerPurchaseAgreementsPPAMember_70"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtProductsAndServicesDomain" xlink:to="loc_spiPowerPurchaseAgreementsPPAMember_70" xlink:type="arc" order="71"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_PhotoVoltaicProjectAssetsMember" xlink:label="loc_spiPhotoVoltaicProjectAssetsMember_140"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtProductsAndServicesDomain" xlink:to="loc_spiPhotoVoltaicProjectAssetsMember_140" xlink:type="arc" order="141"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_BitcoinMiningEquipmentSaleAndHostingServiceMember" xlink:label="loc_spiBitcoinMiningEquipmentSaleAndHostingServiceMember_210"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtProductsAndServicesDomain" xlink:to="loc_spiBitcoinMiningEquipmentSaleAndHostingServiceMember_210" xlink:type="arc" order="211"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_PredevelopmentProjectSalesMember" xlink:label="loc_spiPredevelopmentProjectSalesMember_280"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtProductsAndServicesDomain" xlink:to="loc_spiPredevelopmentProjectSalesMember_280" xlink:type="arc" order="281"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_OtherServicesMember" xlink:label="loc_spiOtherServicesMember_350"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtProductsAndServicesDomain" xlink:to="loc_spiOtherServicesMember_350" xlink:type="arc" order="351"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_StatementGeographicalAxis" xlink:label="loc_srtStatementGeographicalAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_srtStatementGeographicalAxis" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srtSegmentGeographicalDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtStatementGeographicalAxis" xlink:to="loc_srtSegmentGeographicalDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srtSegmentGeographicalDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtStatementGeographicalAxis" xlink:to="loc_srtSegmentGeographicalDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_AU" xlink:label="loc_countryAU_0"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtSegmentGeographicalDomain" xlink:to="loc_countryAU_0" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_JP" xlink:label="loc_countryJP_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtSegmentGeographicalDomain" xlink:to="loc_countryJP_10" xlink:type="arc" order="12"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_IT" xlink:label="loc_countryIT_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtSegmentGeographicalDomain" xlink:to="loc_countryIT_20" xlink:type="arc" order="22"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_US" xlink:label="loc_countryUS_30"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtSegmentGeographicalDomain" xlink:to="loc_countryUS_30" xlink:type="arc" order="32"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_GB" xlink:label="loc_countryGB_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtSegmentGeographicalDomain" xlink:to="loc_countryGB_40" xlink:type="arc" order="42"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_GR" xlink:label="loc_countryGR_50"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtSegmentGeographicalDomain" xlink:to="loc_countryGR_50" xlink:type="arc" order="52"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_DE" xlink:label="loc_countryDE_1040"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtSegmentGeographicalDomain" xlink:to="loc_countryDE_1040" xlink:type="arc" order="1042"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Revenues" xlink:label="loc_us-gaapRevenues_1550"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapRevenues_1550" xlink:type="arc" order="0"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/SummaryOfSignificantAccountingPoliciesDetails-ByTimingOfRevenueRecognition" xlink:title="00000064 - Disclosure - 3. Summary of Significant Accounting Policies (Details - By timing of revenue recognition)"> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TimingOfTransferOfGoodOrServiceAxis" xlink:label="loc_us-gaapTimingOfTransferOfGoodOrServiceAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapTimingOfTransferOfGoodOrServiceAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TimingOfTransferOfGoodOrServiceDomain" xlink:label="loc_us-gaapTimingOfTransferOfGoodOrServiceDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapTimingOfTransferOfGoodOrServiceAxis" xlink:to="loc_us-gaapTimingOfTransferOfGoodOrServiceDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TimingOfTransferOfGoodOrServiceDomain" xlink:label="loc_us-gaapTimingOfTransferOfGoodOrServiceDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapTimingOfTransferOfGoodOrServiceAxis" xlink:to="loc_us-gaapTimingOfTransferOfGoodOrServiceDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransferredAtPointInTimeMember" xlink:label="loc_us-gaapTransferredAtPointInTimeMember_0"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapTimingOfTransferOfGoodOrServiceDomain" xlink:to="loc_us-gaapTransferredAtPointInTimeMember_0" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransferredOverTimeMember" xlink:label="loc_us-gaapTransferredOverTimeMember_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapTimingOfTransferOfGoodOrServiceDomain" xlink:to="loc_us-gaapTransferredOverTimeMember_10" xlink:type="arc" order="11"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductOrServiceAxis" xlink:label="loc_srtProductOrServiceAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_srtProductOrServiceAxis" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srtProductsAndServicesDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtProductOrServiceAxis" xlink:to="loc_srtProductsAndServicesDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srtProductsAndServicesDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtProductOrServiceAxis" xlink:to="loc_srtProductsAndServicesDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_PhotoVoltaicSolarComponentsMember" xlink:label="loc_spiPhotoVoltaicSolarComponentsMember_0"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtProductsAndServicesDomain" xlink:to="loc_spiPhotoVoltaicSolarComponentsMember_0" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_PowerPurchaseAgreementsPPAMember" xlink:label="loc_spiPowerPurchaseAgreementsPPAMember_30"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtProductsAndServicesDomain" xlink:to="loc_spiPowerPurchaseAgreementsPPAMember_30" xlink:type="arc" order="32"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_PhotoVoltaicProjectAssetsMember" xlink:label="loc_spiPhotoVoltaicProjectAssetsMember_60"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtProductsAndServicesDomain" xlink:to="loc_spiPhotoVoltaicProjectAssetsMember_60" xlink:type="arc" order="62"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_BitcoinMiningEquipmentSaleAndHostingServiceMember" xlink:label="loc_spiBitcoinMiningEquipmentSaleAndHostingServiceMember_90"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtProductsAndServicesDomain" xlink:to="loc_spiBitcoinMiningEquipmentSaleAndHostingServiceMember_90" xlink:type="arc" order="92"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_PredevelopmentProjectSalesMember" xlink:label="loc_spiPredevelopmentProjectSalesMember_120"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtProductsAndServicesDomain" xlink:to="loc_spiPredevelopmentProjectSalesMember_120" xlink:type="arc" order="122"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_OtherServicesMember" xlink:label="loc_spiOtherServicesMember_150"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtProductsAndServicesDomain" xlink:to="loc_spiOtherServicesMember_150" xlink:type="arc" order="152"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Revenues" xlink:label="loc_us-gaapRevenues_640"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapRevenues_640" xlink:type="arc" order="0"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/SummaryOfSignificantAccountingPoliciesDetails-ContractBalance" xlink:title="00000065 - Disclosure - 3. Summary of Significant Accounting Policies (Details - Contract balance)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/DisclosureSummaryOfSignificantAccountingPoliciesCapitalizedInterestDetails" xlink:title="00000066 - Disclosure - 3. Summary of Significant Accounting Policies (Details - Capitalized interest)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/SummaryOfSignificantAccountingPoliciesDetailsNarrative" xlink:title="00000067 - Disclosure - 3. Summary of Significant Accounting Policies (Details Narrative)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/DispositionOfSpiChinaDetails-BalanceSheet" xlink:title="00000068 - Disclosure - 4. Disposition of SPI China (Details - Balance Sheet)"> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DisposalGroupClassificationAxis" xlink:label="loc_us-gaapDisposalGroupClassificationAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapDisposalGroupClassificationAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DisposalGroupClassificationDomain" xlink:label="loc_us-gaapDisposalGroupClassificationDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapDisposalGroupClassificationAxis" xlink:to="loc_us-gaapDisposalGroupClassificationDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DisposalGroupClassificationDomain" xlink:label="loc_us-gaapDisposalGroupClassificationDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapDisposalGroupClassificationAxis" xlink:to="loc_us-gaapDisposalGroupClassificationDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_SPIChinaMember" xlink:label="loc_spiSPIChinaMember_0"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapDisposalGroupClassificationDomain" xlink:to="loc_spiSPIChinaMember_0" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperationCurrentAbstract" xlink:label="loc_us-gaapAssetsOfDisposalGroupIncludingDiscontinuedOperationCurrentAbstract_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapAssetsOfDisposalGroupIncludingDiscontinuedOperationCurrentAbstract_20" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationCashAndCashEquivalents" xlink:label="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationCashAndCashEquivalents_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationCashAndCashEquivalents_20" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_DisposalGroupIncludingDiscontinuedOperationRestrictedCash" xlink:label="loc_spiDisposalGroupIncludingDiscontinuedOperationRestrictedCash_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiDisposalGroupIncludingDiscontinuedOperationRestrictedCash_20" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationAccountsNotesAndLoansReceivableNet" xlink:label="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationAccountsNotesAndLoansReceivableNet_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationAccountsNotesAndLoansReceivableNet_20" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationPrepaidAndOtherAssetsCurrent" xlink:label="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationPrepaidAndOtherAssetsCurrent_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationPrepaidAndOtherAssetsCurrent_20" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_DisposalGroupIncludingDiscontinuedOperationFinanceLeaseReceivable" xlink:label="loc_spiDisposalGroupIncludingDiscontinuedOperationFinanceLeaseReceivable_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiDisposalGroupIncludingDiscontinuedOperationFinanceLeaseReceivable_20" xlink:type="arc" order="5"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationOtherCurrentAssets" xlink:label="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationOtherCurrentAssets_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationOtherCurrentAssets_20" xlink:type="arc" order="6"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperationCurrent" xlink:label="loc_us-gaapAssetsOfDisposalGroupIncludingDiscontinuedOperationCurrent_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapAssetsOfDisposalGroupIncludingDiscontinuedOperationCurrent_20" xlink:type="arc" order="7"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationOtherNoncurrentAssets" xlink:label="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationOtherNoncurrentAssets_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationOtherNoncurrentAssets_20" xlink:type="arc" order="8"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationPropertyPlantAndEquipmentNoncurrent" xlink:label="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationPropertyPlantAndEquipmentNoncurrent_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationPropertyPlantAndEquipmentNoncurrent_20" xlink:type="arc" order="9"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_DisposalGroupIncludingDiscontinuedOperationProjectAssetsNoncurrentAssets" xlink:label="loc_spiDisposalGroupIncludingDiscontinuedOperationProjectAssetsNoncurrentAssets_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiDisposalGroupIncludingDiscontinuedOperationProjectAssetsNoncurrentAssets_20" xlink:type="arc" order="10"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationDeferredTaxAssetsNoncurrent" xlink:label="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationDeferredTaxAssetsNoncurrent_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationDeferredTaxAssetsNoncurrent_20" xlink:type="arc" order="11"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_DisposalGroupIncludingDiscontinuedOperationFinanceLeaseReceivableNoncurrentAssets" xlink:label="loc_spiDisposalGroupIncludingDiscontinuedOperationFinanceLeaseReceivableNoncurrentAssets_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiDisposalGroupIncludingDiscontinuedOperationFinanceLeaseReceivableNoncurrentAssets_20" xlink:type="arc" order="12"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationAssetsNoncurrent" xlink:label="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationAssetsNoncurrent_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationAssetsNoncurrent_20" xlink:type="arc" order="13"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperation" xlink:label="loc_us-gaapAssetsOfDisposalGroupIncludingDiscontinuedOperation_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapAssetsOfDisposalGroupIncludingDiscontinuedOperation_20" xlink:type="arc" order="14"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperationAbstract" xlink:label="loc_us-gaapLiabilitiesOfDisposalGroupIncludingDiscontinuedOperationAbstract_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapLiabilitiesOfDisposalGroupIncludingDiscontinuedOperationAbstract_20" xlink:type="arc" order="15"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationAccountsPayableCurrent" xlink:label="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationAccountsPayableCurrent_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLiabilitiesOfDisposalGroupIncludingDiscontinuedOperationAbstract_20" xlink:to="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationAccountsPayableCurrent_20" xlink:type="arc" order="16"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_DisposalGroupIncludingDiscontinuedOperationAccountsPayableRelatedPartiesCurrent" xlink:label="loc_spiDisposalGroupIncludingDiscontinuedOperationAccountsPayableRelatedPartiesCurrent_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLiabilitiesOfDisposalGroupIncludingDiscontinuedOperationAbstract_20" xlink:to="loc_spiDisposalGroupIncludingDiscontinuedOperationAccountsPayableRelatedPartiesCurrent_20" xlink:type="arc" order="17"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationAccruedLiabilitiesCurrent" xlink:label="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationAccruedLiabilitiesCurrent_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLiabilitiesOfDisposalGroupIncludingDiscontinuedOperationAbstract_20" xlink:to="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationAccruedLiabilitiesCurrent_20" xlink:type="arc" order="18"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationAccruedIncomeTaxesPayable" xlink:label="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationAccruedIncomeTaxesPayable_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLiabilitiesOfDisposalGroupIncludingDiscontinuedOperationAbstract_20" xlink:to="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationAccruedIncomeTaxesPayable_20" xlink:type="arc" order="19"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_DisposalGroupIncludingDiscontinuedOperationDebtCurrent" xlink:label="loc_spiDisposalGroupIncludingDiscontinuedOperationDebtCurrent_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLiabilitiesOfDisposalGroupIncludingDiscontinuedOperationAbstract_20" xlink:to="loc_spiDisposalGroupIncludingDiscontinuedOperationDebtCurrent_20" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_DisposalGroupIncludingDiscontinuedOperationFinancingAndCapitalLeaseCurrent" xlink:label="loc_spiDisposalGroupIncludingDiscontinuedOperationFinancingAndCapitalLeaseCurrent_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLiabilitiesOfDisposalGroupIncludingDiscontinuedOperationAbstract_20" xlink:to="loc_spiDisposalGroupIncludingDiscontinuedOperationFinancingAndCapitalLeaseCurrent_20" xlink:type="arc" order="21"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationOtherCurrentLiabilities" xlink:label="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationOtherCurrentLiabilities_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLiabilitiesOfDisposalGroupIncludingDiscontinuedOperationAbstract_20" xlink:to="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationOtherCurrentLiabilities_20" xlink:type="arc" order="22"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperationCurrent" xlink:label="loc_us-gaapLiabilitiesOfDisposalGroupIncludingDiscontinuedOperationCurrent_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLiabilitiesOfDisposalGroupIncludingDiscontinuedOperationAbstract_20" xlink:to="loc_us-gaapLiabilitiesOfDisposalGroupIncludingDiscontinuedOperationCurrent_20" xlink:type="arc" order="23"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_DisposalGroupIncludingDiscontinuedOperationLongTermDebtCurrent" xlink:label="loc_spiDisposalGroupIncludingDiscontinuedOperationLongTermDebtCurrent_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLiabilitiesOfDisposalGroupIncludingDiscontinuedOperationAbstract_20" xlink:to="loc_spiDisposalGroupIncludingDiscontinuedOperationLongTermDebtCurrent_20" xlink:type="arc" order="24"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationOtherNoncurrentLiabilities" xlink:label="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationOtherNoncurrentLiabilities_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLiabilitiesOfDisposalGroupIncludingDiscontinuedOperationAbstract_20" xlink:to="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationOtherNoncurrentLiabilities_20" xlink:type="arc" order="25"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperationNoncurrent" xlink:label="loc_us-gaapLiabilitiesOfDisposalGroupIncludingDiscontinuedOperationNoncurrent_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLiabilitiesOfDisposalGroupIncludingDiscontinuedOperationAbstract_20" xlink:to="loc_us-gaapLiabilitiesOfDisposalGroupIncludingDiscontinuedOperationNoncurrent_20" xlink:type="arc" order="26"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperation" xlink:label="loc_us-gaapLiabilitiesOfDisposalGroupIncludingDiscontinuedOperation_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLiabilitiesOfDisposalGroupIncludingDiscontinuedOperationAbstract_20" xlink:to="loc_us-gaapLiabilitiesOfDisposalGroupIncludingDiscontinuedOperation_20" xlink:type="arc" order="27"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/DispositionOfSpiChinaDetails-StatementOfOperation" xlink:title="00000069 - Disclosure - 4. Disposition of SPI China (Details - Statement of operation)"> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementOperatingActivitiesSegmentAxis" xlink:label="loc_us-gaapStatementOperatingActivitiesSegmentAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapStatementOperatingActivitiesSegmentAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentOperatingActivitiesDomain" xlink:label="loc_us-gaapSegmentOperatingActivitiesDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapStatementOperatingActivitiesSegmentAxis" xlink:to="loc_us-gaapSegmentOperatingActivitiesDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentOperatingActivitiesDomain" xlink:label="loc_us-gaapSegmentOperatingActivitiesDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementOperatingActivitiesSegmentAxis" xlink:to="loc_us-gaapSegmentOperatingActivitiesDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDiscontinuedOperationsMember" xlink:label="loc_us-gaapSegmentDiscontinuedOperationsMember_0"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSegmentOperatingActivitiesDomain" xlink:to="loc_us-gaapSegmentDiscontinuedOperationsMember_0" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DisposalGroupClassificationAxis" xlink:label="loc_us-gaapDisposalGroupClassificationAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapDisposalGroupClassificationAxis" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DisposalGroupClassificationDomain" xlink:label="loc_us-gaapDisposalGroupClassificationDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapDisposalGroupClassificationAxis" xlink:to="loc_us-gaapDisposalGroupClassificationDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DisposalGroupClassificationDomain" xlink:label="loc_us-gaapDisposalGroupClassificationDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapDisposalGroupClassificationAxis" xlink:to="loc_us-gaapDisposalGroupClassificationDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_SPIChinaMember" xlink:label="loc_spiSPIChinaMember_0"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapDisposalGroupClassificationDomain" xlink:to="loc_spiSPIChinaMember_0" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationRevenue" xlink:label="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationRevenue_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationRevenue_40" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationCostsOfGoodsSold" xlink:label="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationCostsOfGoodsSold_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationCostsOfGoodsSold_40" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_DisposalGroupIncludingDiscontinuedOperationProvisionForLosses" xlink:label="loc_spiDisposalGroupIncludingDiscontinuedOperationProvisionForLosses_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiDisposalGroupIncludingDiscontinuedOperationProvisionForLosses_40" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationGrossProfitLoss" xlink:label="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationGrossProfitLoss_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationGrossProfitLoss_40" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationGeneralAndAdministrativeExpense" xlink:label="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationGeneralAndAdministrativeExpense_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationGeneralAndAdministrativeExpense_40" xlink:type="arc" order="5"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_DisposalGroupIncludingDiscontinuedOperationSalesAndMarketingExpense" xlink:label="loc_spiDisposalGroupIncludingDiscontinuedOperationSalesAndMarketingExpense_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiDisposalGroupIncludingDiscontinuedOperationSalesAndMarketingExpense_40" xlink:type="arc" order="6"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_DisposalGroupIncludingDiscontinuedOperationProvisionForDoubtfulAccounts" xlink:label="loc_spiDisposalGroupIncludingDiscontinuedOperationProvisionForDoubtfulAccounts_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiDisposalGroupIncludingDiscontinuedOperationProvisionForDoubtfulAccounts_40" xlink:type="arc" order="7"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_DisposalGroupIncludingDiscontinuedOperationImpairmentGoodwillAndIntangibleAssets" xlink:label="loc_spiDisposalGroupIncludingDiscontinuedOperationImpairmentGoodwillAndIntangibleAssets_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiDisposalGroupIncludingDiscontinuedOperationImpairmentGoodwillAndIntangibleAssets_40" xlink:type="arc" order="8"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_DisposalGroupIncludingDiscontinuedOperationImpairmentOnPropertyAndEquipment" xlink:label="loc_spiDisposalGroupIncludingDiscontinuedOperationImpairmentOnPropertyAndEquipment_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiDisposalGroupIncludingDiscontinuedOperationImpairmentOnPropertyAndEquipment_40" xlink:type="arc" order="9"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_DisposalGroupIncludingDiscontinuedOperationImpairmentOnProjectAssets" xlink:label="loc_spiDisposalGroupIncludingDiscontinuedOperationImpairmentOnProjectAssets_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiDisposalGroupIncludingDiscontinuedOperationImpairmentOnProjectAssets_40" xlink:type="arc" order="10"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_DisposalGroupIncludingDiscontinuedOperationImpairmentOnFinanceLeaseReceivable" xlink:label="loc_spiDisposalGroupIncludingDiscontinuedOperationImpairmentOnFinanceLeaseReceivable_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiDisposalGroupIncludingDiscontinuedOperationImpairmentOnFinanceLeaseReceivable_40" xlink:type="arc" order="11"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_DisposalGroupIncludingDiscontinuedOperationOperatingExpenses" xlink:label="loc_spiDisposalGroupIncludingDiscontinuedOperationOperatingExpenses_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiDisposalGroupIncludingDiscontinuedOperationOperatingExpenses_40" xlink:type="arc" order="12"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_DisposalGroupIncludingDiscontinuedOperationOtherIncomeExpense" xlink:label="loc_spiDisposalGroupIncludingDiscontinuedOperationOtherIncomeExpense_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiDisposalGroupIncludingDiscontinuedOperationOtherIncomeExpense_40" xlink:type="arc" order="13"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationBeforeIncomeTax" xlink:label="loc_us-gaapDiscontinuedOperationIncomeLossFromDiscontinuedOperationBeforeIncomeTax_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDiscontinuedOperationIncomeLossFromDiscontinuedOperationBeforeIncomeTax_40" xlink:type="arc" order="14"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DiscontinuedOperationTaxEffectOfDiscontinuedOperation" xlink:label="loc_us-gaapDiscontinuedOperationTaxEffectOfDiscontinuedOperation_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDiscontinuedOperationTaxEffectOfDiscontinuedOperation_40" xlink:type="arc" order="15"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTax" xlink:label="loc_us-gaapIncomeLossFromDiscontinuedOperationsNetOfTax_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapIncomeLossFromDiscontinuedOperationsNetOfTax_40" xlink:type="arc" order="16"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/DispositionOfSpiChinaDetailsNarrative" xlink:title="00000070 - Disclosure - 4. Disposition of SPI China (Details Narrative)"> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementOperatingActivitiesSegmentAxis" xlink:label="loc_us-gaapStatementOperatingActivitiesSegmentAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapStatementOperatingActivitiesSegmentAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentOperatingActivitiesDomain" xlink:label="loc_us-gaapSegmentOperatingActivitiesDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapStatementOperatingActivitiesSegmentAxis" xlink:to="loc_us-gaapSegmentOperatingActivitiesDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentOperatingActivitiesDomain" xlink:label="loc_us-gaapSegmentOperatingActivitiesDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementOperatingActivitiesSegmentAxis" xlink:to="loc_us-gaapSegmentOperatingActivitiesDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDiscontinuedOperationsMember" xlink:label="loc_us-gaapSegmentDiscontinuedOperationsMember_0"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSegmentOperatingActivitiesDomain" xlink:to="loc_us-gaapSegmentDiscontinuedOperationsMember_0" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DisposalGroupClassificationAxis" xlink:label="loc_us-gaapDisposalGroupClassificationAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapDisposalGroupClassificationAxis" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DisposalGroupClassificationDomain" xlink:label="loc_us-gaapDisposalGroupClassificationDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapDisposalGroupClassificationAxis" xlink:to="loc_us-gaapDisposalGroupClassificationDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DisposalGroupClassificationDomain" xlink:label="loc_us-gaapDisposalGroupClassificationDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapDisposalGroupClassificationAxis" xlink:to="loc_us-gaapDisposalGroupClassificationDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_SPIChinaMember" xlink:label="loc_spiSPIChinaMember_0"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapDisposalGroupClassificationDomain" xlink:to="loc_spiSPIChinaMember_0" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_CounterpartyNameAxis" xlink:label="loc_srtCounterpartyNameAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_srtCounterpartyNameAxis" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="loc_srtRepurchaseAgreementCounterpartyNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtCounterpartyNameAxis" xlink:to="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="loc_srtRepurchaseAgreementCounterpartyNameDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtCounterpartyNameAxis" xlink:to="loc_srtRepurchaseAgreementCounterpartyNameDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_LightingCharmMember" xlink:label="loc_spiLightingCharmMember_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:to="loc_spiLightingCharmMember_10" xlink:type="arc" order="11"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalOther" xlink:label="loc_us-gaapAdjustmentsToAdditionalPaidInCapitalOther_30"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapAdjustmentsToAdditionalPaidInCapitalOther_30" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriod" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriod_30"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriod_30" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_FairValueOfOptionsGranted" xlink:label="loc_spiFairValueOfOptionsGranted_30"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiFairValueOfOptionsGranted_30" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_LossOnDebtForgiveness" xlink:label="loc_spiLossOnDebtForgiveness_30"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiLossOnDebtForgiveness_30" xlink:type="arc" order="5"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/BusinessAcquisitionsDetails" xlink:title="00000071 - Disclosure - 5. Business Acquisitions (Details)"> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaapBusinessAcquisitionAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapBusinessAcquisitionAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaapBusinessAcquisitionAcquireeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapBusinessAcquisitionAxis" xlink:to="loc_us-gaapBusinessAcquisitionAcquireeDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaapBusinessAcquisitionAcquireeDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapBusinessAcquisitionAxis" xlink:to="loc_us-gaapBusinessAcquisitionAcquireeDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_HeliostixioMember" xlink:label="loc_spiHeliostixioMember_0"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessAcquisitionAcquireeDomain" xlink:to="loc_spiHeliostixioMember_0" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNetAbstract" xlink:label="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNetAbstract_30"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNetAbstract_30" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents" xlink:label="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_30"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNetAbstract_30" xlink:to="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_30" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables" xlink:label="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables_30"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNetAbstract_30" xlink:to="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables_30" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment" xlink:label="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_30"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNetAbstract_30" xlink:to="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_30" xlink:type="arc" order="5"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable" xlink:label="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable_30"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNetAbstract_30" xlink:to="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable_30" xlink:type="arc" order="6"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilitiesCurrent" xlink:label="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilitiesCurrent_30"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNetAbstract_30" xlink:to="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilitiesCurrent_30" xlink:type="arc" order="7"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther" xlink:label="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther_30"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNetAbstract_30" xlink:to="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther_30" xlink:type="arc" order="8"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet" xlink:label="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_30"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNetAbstract_30" xlink:to="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_30" xlink:type="arc" order="9"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationConsiderationTransferred1" xlink:label="loc_us-gaapBusinessCombinationConsiderationTransferred1_30"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNetAbstract_30" xlink:to="loc_us-gaapBusinessCombinationConsiderationTransferred1_30" xlink:type="arc" order="10"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaapGoodwill_30"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNetAbstract_30" xlink:to="loc_us-gaapGoodwill_30" xlink:type="arc" order="11"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/BusinessAcquisitionsDetailsNarrative" xlink:title="00000072 - Disclosure - 5. Business Acquisitions (Details Narrative)"> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaapBusinessAcquisitionAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapBusinessAcquisitionAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaapBusinessAcquisitionAcquireeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapBusinessAcquisitionAxis" xlink:to="loc_us-gaapBusinessAcquisitionAcquireeDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaapBusinessAcquisitionAcquireeDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapBusinessAcquisitionAxis" xlink:to="loc_us-gaapBusinessAcquisitionAcquireeDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_HeliostixioMember" xlink:label="loc_spiHeliostixioMember_0"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessAcquisitionAcquireeDomain" xlink:to="loc_spiHeliostixioMember_0" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_CurrencyAxis" xlink:label="loc_srtCurrencyAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_srtCurrencyAxis" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.sec.gov/currency/2017/currency-2017-01-31.xsd#currency_AllCurrenciesDomain" xlink:label="loc_currencyAllCurrenciesDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtCurrencyAxis" xlink:to="loc_currencyAllCurrenciesDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.sec.gov/currency/2017/currency-2017-01-31.xsd#currency_AllCurrenciesDomain" xlink:label="loc_currencyAllCurrenciesDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtCurrencyAxis" xlink:to="loc_currencyAllCurrenciesDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.sec.gov/currency/2017/currency-2017-01-31.xsd#currency_EUR" xlink:label="loc_currencyEUR_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currencyAllCurrenciesDomain" xlink:to="loc_currencyEUR_10" xlink:type="arc" order="12"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationConsiderationTransferred1" xlink:label="loc_us-gaapBusinessCombinationConsiderationTransferred1_50"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapBusinessCombinationConsiderationTransferred1_50" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaapGoodwill_50"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapGoodwill_50" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Revenues" xlink:label="loc_us-gaapRevenues_50"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapRevenues_50" xlink:type="arc" order="4"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/DeconsolidationOfSinsinDetails" xlink:title="00000073 - Disclosure - 6. Deconsolidation of Sinsin (Details)"> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidatedEntitiesAxis" xlink:label="loc_srtConsolidatedEntitiesAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_srtConsolidatedEntitiesAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srtConsolidatedEntitiesDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtConsolidatedEntitiesAxis" xlink:to="loc_srtConsolidatedEntitiesDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srtConsolidatedEntitiesDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtConsolidatedEntitiesAxis" xlink:to="loc_srtConsolidatedEntitiesDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_SinsinMember" xlink:label="loc_spiSinsinMember_0"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtConsolidatedEntitiesDomain" xlink:to="loc_spiSinsinMember_0" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RestrictedCash" xlink:label="loc_us-gaapRestrictedCash_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapRestrictedCash_20" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountsReceivableNetCurrent" xlink:label="loc_us-gaapAccountsReceivableNetCurrent_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapAccountsReceivableNetCurrent_20" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent" xlink:label="loc_us-gaapPrepaidExpenseAndOtherAssetsCurrent_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapPrepaidExpenseAndOtherAssetsCurrent_20" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_AmountDueFromIntergroupEntities" xlink:label="loc_spiAmountDueFromIntergroupEntities_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiAmountDueFromIntergroupEntities_20" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaapPropertyPlantAndEquipmentNet_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapPropertyPlantAndEquipmentNet_20" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxAssetsNetCurrent" xlink:label="loc_us-gaapDeferredTaxAssetsNetCurrent_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDeferredTaxAssetsNetCurrent_20" xlink:type="arc" order="5"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaapAssets_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapAssets_20" xlink:type="arc" order="6"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountsPayableCurrent" xlink:label="loc_us-gaapAccountsPayableCurrent_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapAccountsPayableCurrent_20" xlink:type="arc" order="7"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccruedIncomeTaxesCurrent" xlink:label="loc_us-gaapAccruedIncomeTaxesCurrent_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapAccruedIncomeTaxesCurrent_20" xlink:type="arc" order="8"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxLiabilitiesCurrent" xlink:label="loc_us-gaapDeferredTaxLiabilitiesCurrent_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDeferredTaxLiabilitiesCurrent_20" xlink:type="arc" order="9"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherLiabilitiesCurrent" xlink:label="loc_us-gaapOtherLiabilitiesCurrent_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapOtherLiabilitiesCurrent_20" xlink:type="arc" order="10"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Liabilities" xlink:label="loc_us-gaapLiabilities_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapLiabilities_20" xlink:type="arc" order="11"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/DeconsolidationOfSinsinDetailsNarrative" xlink:title="00000074 - Disclosure - 6. Deconsolidation of Sinsin (Details Narrative)"> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentsInAndAdvancesToAffiliatesCategorizationAxis" xlink:label="loc_us-gaapInvestmentsInAndAdvancesToAffiliatesCategorizationAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapInvestmentsInAndAdvancesToAffiliatesCategorizationAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentsInAndAdvancesToAffiliatesCategorizationDomain" xlink:label="loc_us-gaapInvestmentsInAndAdvancesToAffiliatesCategorizationDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapInvestmentsInAndAdvancesToAffiliatesCategorizationAxis" xlink:to="loc_us-gaapInvestmentsInAndAdvancesToAffiliatesCategorizationDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentsInAndAdvancesToAffiliatesCategorizationDomain" xlink:label="loc_us-gaapInvestmentsInAndAdvancesToAffiliatesCategorizationDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapInvestmentsInAndAdvancesToAffiliatesCategorizationAxis" xlink:to="loc_us-gaapInvestmentsInAndAdvancesToAffiliatesCategorizationDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_SinsinMember" xlink:label="loc_spiSinsinMember_0"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapInvestmentsInAndAdvancesToAffiliatesCategorizationDomain" xlink:to="loc_spiSinsinMember_0" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures" xlink:label="loc_us-gaapInvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures_30"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapInvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures_30" xlink:type="arc" order="0"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/RestrictedCashDetailsNarrative" xlink:title="00000075 - Disclosure - 7. Restricted cash (Details Narrative)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/AccountsReceivableDetails-AccountsReceivable" xlink:title="00000076 - Disclosure - 8. Accounts Receivable (Details - Accounts receivable)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/AccountsReceivableDetails-AllowanceForDoubtfulAccounts" xlink:title="00000077 - Disclosure - 8. Accounts Receivable (Details - Allowance for Doubtful Accounts)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/AccountsReceivableDetailsNarrative" xlink:title="00000078 - Disclosure - 8. Accounts Receivable (Details Narrative)"> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SaleLeasebackTransactionLineItems" xlink:label="loc_us-gaapSaleLeasebackTransactionLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SaleLeasebackTransactionTable" xlink:label="loc_us-gaapSaleLeasebackTransactionTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapSaleLeasebackTransactionLineItems" xlink:to="loc_us-gaapSaleLeasebackTransactionTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductOrServiceAxis" xlink:label="loc_srtProductOrServiceAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapSaleLeasebackTransactionTable" xlink:to="loc_srtProductOrServiceAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srtProductsAndServicesDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtProductOrServiceAxis" xlink:to="loc_srtProductsAndServicesDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srtProductsAndServicesDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtProductOrServiceAxis" xlink:to="loc_srtProductsAndServicesDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_PhotoVoltaicSolarComponentsMember" xlink:label="loc_spiPhotoVoltaicSolarComponentsMember_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtProductsAndServicesDomain" xlink:to="loc_spiPhotoVoltaicSolarComponentsMember_20" xlink:type="arc" order="21"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_OtherRevenueMember" xlink:label="loc_spiOtherRevenueMember_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtProductsAndServicesDomain" xlink:to="loc_spiOtherRevenueMember_40" xlink:type="arc" order="41"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountsReceivableGross" xlink:label="loc_us-gaapAccountsReceivableGross_70"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSaleLeasebackTransactionLineItems" xlink:to="loc_us-gaapAccountsReceivableGross_70" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivable" xlink:label="loc_us-gaapAllowanceForDoubtfulAccountsReceivable_70"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSaleLeasebackTransactionLineItems" xlink:to="loc_us-gaapAllowanceForDoubtfulAccountsReceivable_70" xlink:type="arc" order="2"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/InventoriesDetails" xlink:title="00000079 - Disclosure - 9. Inventories (Details)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/InventoriesDetailsNarrative" xlink:title="00000080 - Disclosure - 9. Inventories (Details Narrative)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/ProjectAssetsDetails" xlink:title="00000081 - Disclosure - 10. Project Assets (Details)"> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongLivedAssetsHeldForSaleByAssetTypeAxis" xlink:label="loc_us-gaapLongLivedAssetsHeldForSaleByAssetTypeAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapLongLivedAssetsHeldForSaleByAssetTypeAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongLivedAssetsHeldForSaleNameDomain" xlink:label="loc_us-gaapLongLivedAssetsHeldForSaleNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapLongLivedAssetsHeldForSaleByAssetTypeAxis" xlink:to="loc_us-gaapLongLivedAssetsHeldForSaleNameDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongLivedAssetsHeldForSaleNameDomain" xlink:label="loc_us-gaapLongLivedAssetsHeldForSaleNameDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapLongLivedAssetsHeldForSaleByAssetTypeAxis" xlink:to="loc_us-gaapLongLivedAssetsHeldForSaleNameDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_CompletedForSaleMember" xlink:label="loc_spiCompletedForSaleMember_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLongLivedAssetsHeldForSaleNameDomain" xlink:to="loc_spiCompletedForSaleMember_20" xlink:type="arc" order="21"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_UnderDevelopmentMember" xlink:label="loc_spiUnderDevelopmentMember_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLongLivedAssetsHeldForSaleNameDomain" xlink:to="loc_spiUnderDevelopmentMember_40" xlink:type="arc" order="41"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_ProjectAssets" xlink:label="loc_spiProjectAssets_70"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiProjectAssets_70" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_ProjectAssetsCurrent" xlink:label="loc_spiProjectAssetsCurrent_70"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiProjectAssetsCurrent_70" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_ProjectAssetsNoncurrent" xlink:label="loc_spiProjectAssetsNoncurrent_70"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiProjectAssetsNoncurrent_70" xlink:type="arc" order="3"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/ProjectAssetsDetailsNarrative" xlink:title="00000082 - Disclosure - 10. Project Assets (Details Narrative)"> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_StatementGeographicalAxis" xlink:label="loc_srtStatementGeographicalAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_srtStatementGeographicalAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srtSegmentGeographicalDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtStatementGeographicalAxis" xlink:to="loc_srtSegmentGeographicalDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srtSegmentGeographicalDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtStatementGeographicalAxis" xlink:to="loc_srtSegmentGeographicalDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_US" xlink:label="loc_countryUS_0"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtSegmentGeographicalDomain" xlink:to="loc_countryUS_0" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_JP" xlink:label="loc_countryJP_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtSegmentGeographicalDomain" xlink:to="loc_countryJP_20" xlink:type="arc" order="21"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsegmentsAxis" xlink:label="loc_us-gaapSubsegmentsAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapSubsegmentsAxis" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsegmentsDomain" xlink:label="loc_us-gaapSubsegmentsDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapSubsegmentsAxis" xlink:to="loc_us-gaapSubsegmentsDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsegmentsDomain" xlink:label="loc_us-gaapSubsegmentsDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapSubsegmentsAxis" xlink:to="loc_us-gaapSubsegmentsDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_CertainAssetsMember" xlink:label="loc_spiCertainAssetsMember_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSubsegmentsDomain" xlink:to="loc_spiCertainAssetsMember_40" xlink:type="arc" order="41"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductOrServiceAxis" xlink:label="loc_srtProductOrServiceAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_srtProductOrServiceAxis" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srtProductsAndServicesDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtProductOrServiceAxis" xlink:to="loc_srtProductsAndServicesDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srtProductsAndServicesDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtProductOrServiceAxis" xlink:to="loc_srtProductsAndServicesDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_PvProjectAssetsAndPredevelopmentSolarProjectsMember" xlink:label="loc_spiPvProjectAssetsAndPredevelopmentSolarProjectsMember_70"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtProductsAndServicesDomain" xlink:to="loc_spiPvProjectAssetsAndPredevelopmentSolarProjectsMember_70" xlink:type="arc" order="71"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_ProjectAssets" xlink:label="loc_spiProjectAssets_110"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiProjectAssets_110" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairmentOfOngoingProject" xlink:label="loc_us-gaapImpairmentOfOngoingProject_110"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapImpairmentOfOngoingProject_110" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Revenues" xlink:label="loc_us-gaapRevenues_110"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapRevenues_110" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CostOfRevenue" xlink:label="loc_us-gaapCostOfRevenue_110"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapCostOfRevenue_110" xlink:type="arc" order="5"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/PrepaidExpensesAndOtherCurrentAssetsDetails" xlink:title="00000083 - Disclosure - 11. Prepaid expenses and other current assets (Details)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/PrepaidExpensesAndOtherCurrentAssetsDetailsNarrative" xlink:title="00000084 - Disclosure - 11. Prepaid expenses and other current assets (Details Narrative)"> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaapBusinessAcquisitionAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapBusinessAcquisitionAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaapBusinessAcquisitionAcquireeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapBusinessAcquisitionAxis" xlink:to="loc_us-gaapBusinessAcquisitionAcquireeDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaapBusinessAcquisitionAcquireeDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapBusinessAcquisitionAxis" xlink:to="loc_us-gaapBusinessAcquisitionAcquireeDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_ReCapitalMember" xlink:label="loc_spiReCapitalMember_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessAcquisitionAcquireeDomain" xlink:to="loc_spiReCapitalMember_20" xlink:type="arc" order="21"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_KashimaPVstationMember" xlink:label="loc_spiKashimaPVstationMember_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessAcquisitionAcquireeDomain" xlink:to="loc_spiKashimaPVstationMember_40" xlink:type="arc" order="41"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_GeneralEnergySolutionsMember" xlink:label="loc_spiGeneralEnergySolutionsMember_60"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessAcquisitionAcquireeDomain" xlink:to="loc_spiGeneralEnergySolutionsMember_60" xlink:type="arc" order="61"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_CounterpartyNameAxis" xlink:label="loc_srtCounterpartyNameAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_srtCounterpartyNameAxis" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="loc_srtRepurchaseAgreementCounterpartyNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtCounterpartyNameAxis" xlink:to="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="loc_srtRepurchaseAgreementCounterpartyNameDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtCounterpartyNameAxis" xlink:to="loc_srtRepurchaseAgreementCounterpartyNameDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_TacooCorporationMember" xlink:label="loc_spiTacooCorporationMember_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:to="loc_spiTacooCorporationMember_80" xlink:type="arc" order="81"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_ThirdPartiesMember" xlink:label="loc_spiThirdPartiesMember_100"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:to="loc_spiThirdPartiesMember_100" xlink:type="arc" order="101"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_ProvisionForDepositAndPrepaymentForAcquisitions" xlink:label="loc_spiProvisionForDepositAndPrepaymentForAcquisitions_130"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiProvisionForDepositAndPrepaymentForAcquisitions_130" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_ProvisionForOtherDepositsAndPrepayments" xlink:label="loc_spiProvisionForOtherDepositsAndPrepayments_130"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiProvisionForOtherDepositsAndPrepayments_130" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_ProvisionForOtherReceivables" xlink:label="loc_spiProvisionForOtherReceivables_130"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiProvisionForOtherReceivables_130" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherReceivablesNetCurrent" xlink:label="loc_us-gaapOtherReceivablesNetCurrent_130"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapOtherReceivablesNetCurrent_130" xlink:type="arc" order="4"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/IntangibleAssetsDetails-IntangibleAssets" xlink:title="00000085 - Disclosure - 12. Intangible Assets (Details - Intangible Assets)"> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaapFiniteLivedIntangibleAssetsLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" xlink:label="loc_us-gaapScheduleOfFiniteLivedIntangibleAssetsTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapFiniteLivedIntangibleAssetsLineItems" xlink:to="loc_us-gaapScheduleOfFiniteLivedIntangibleAssetsTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaapFiniteLivedIntangibleAssetsByMajorClassAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapScheduleOfFiniteLivedIntangibleAssetsTable" xlink:to="loc_us-gaapFiniteLivedIntangibleAssetsByMajorClassAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaapFiniteLivedIntangibleAssetsMajorClassNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapFiniteLivedIntangibleAssetsByMajorClassAxis" xlink:to="loc_us-gaapFiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaapFiniteLivedIntangibleAssetsMajorClassNameDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapFiniteLivedIntangibleAssetsByMajorClassAxis" xlink:to="loc_us-gaapFiniteLivedIntangibleAssetsMajorClassNameDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CustomerRelationshipsMember" xlink:label="loc_us-gaapCustomerRelationshipsMember_0"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapFiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:to="loc_us-gaapCustomerRelationshipsMember_0" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PatentsMember" xlink:label="loc_us-gaapPatentsMember_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapFiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:to="loc_us-gaapPatentsMember_10" xlink:type="arc" order="11"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife" xlink:label="loc_us-gaapFiniteLivedIntangibleAssetUsefulLife_110"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapFiniteLivedIntangibleAssetsLineItems" xlink:to="loc_us-gaapFiniteLivedIntangibleAssetUsefulLife_110" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsGross" xlink:label="loc_us-gaapFiniteLivedIntangibleAssetsGross_110"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapFiniteLivedIntangibleAssetsLineItems" xlink:to="loc_us-gaapFiniteLivedIntangibleAssetsGross_110" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization" xlink:label="loc_us-gaapFiniteLivedIntangibleAssetsAccumulatedAmortization_110"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapFiniteLivedIntangibleAssetsLineItems" xlink:to="loc_us-gaapFiniteLivedIntangibleAssetsAccumulatedAmortization_110" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_FiniteLivedIntangibleAssetsImpairmentCharge" xlink:label="loc_spiFiniteLivedIntangibleAssetsImpairmentCharge_110"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapFiniteLivedIntangibleAssetsLineItems" xlink:to="loc_spiFiniteLivedIntangibleAssetsImpairmentCharge_110" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet" xlink:label="loc_us-gaapFiniteLivedIntangibleAssetsNet_110"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapFiniteLivedIntangibleAssetsLineItems" xlink:to="loc_us-gaapFiniteLivedIntangibleAssetsNet_110" xlink:type="arc" order="4"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/IntangibleAssetsDetails-FutureAmortization" xlink:title="00000086 - Disclosure - 12. Intangible Assets (Details - Future Amortization)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/IntangibleAssetsDetailsNarrative" xlink:title="00000087 - Disclosure - 12. Intangible Assets (Details Narrative)"> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaapBusinessAcquisitionAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapBusinessAcquisitionAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaapBusinessAcquisitionAcquireeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapBusinessAcquisitionAxis" xlink:to="loc_us-gaapBusinessAcquisitionAcquireeDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaapBusinessAcquisitionAcquireeDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapBusinessAcquisitionAxis" xlink:to="loc_us-gaapBusinessAcquisitionAcquireeDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaapFiniteLivedIntangibleAssetsByMajorClassAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapFiniteLivedIntangibleAssetsByMajorClassAxis" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaapFiniteLivedIntangibleAssetsMajorClassNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapFiniteLivedIntangibleAssetsByMajorClassAxis" xlink:to="loc_us-gaapFiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaapFiniteLivedIntangibleAssetsMajorClassNameDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapFiniteLivedIntangibleAssetsByMajorClassAxis" xlink:to="loc_us-gaapFiniteLivedIntangibleAssetsMajorClassNameDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CustomerRelationshipsMember" xlink:label="loc_us-gaapCustomerRelationshipsMember_0"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapFiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:to="loc_us-gaapCustomerRelationshipsMember_0" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairmentOfIntangibleAssetsFinitelived" xlink:label="loc_us-gaapImpairmentOfIntangibleAssetsFinitelived_70"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapImpairmentOfIntangibleAssetsFinitelived_70" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AmortizationOfIntangibleAssets" xlink:label="loc_us-gaapAmortizationOfIntangibleAssets_70"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapAmortizationOfIntangibleAssets_70" xlink:type="arc" order="2"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/GoodwillDetails-Goodwill" xlink:title="00000088 - Disclosure - 13. Goodwill (Details - Goodwill)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/GoodwilDetailsNarrative" xlink:title="00000089 - Disclosure - 13. Goodwil (Details Narrative)"> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaapBusinessAcquisitionAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapBusinessAcquisitionAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaapBusinessAcquisitionAcquireeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapBusinessAcquisitionAxis" xlink:to="loc_us-gaapBusinessAcquisitionAcquireeDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaapBusinessAcquisitionAcquireeDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapBusinessAcquisitionAxis" xlink:to="loc_us-gaapBusinessAcquisitionAcquireeDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_HeliostixioMember" xlink:label="loc_spiHeliostixioMember_0"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessAcquisitionAcquireeDomain" xlink:to="loc_spiHeliostixioMember_0" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaapGoodwill_50"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapGoodwill_50" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillImpairmentLoss" xlink:label="loc_us-gaapGoodwillImpairmentLoss_50"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapGoodwillImpairmentLoss_50" xlink:type="arc" order="2"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/PropertyPlantAndEquipmentDetails" xlink:title="00000090 - Disclosure - 14. Property, Plant and Equipment (Details)"> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentLineItems" xlink:label="loc_us-gaapPropertyPlantAndEquipmentLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:label="loc_us-gaapScheduleOfPropertyPlantAndEquipmentTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapPropertyPlantAndEquipmentLineItems" xlink:to="loc_us-gaapScheduleOfPropertyPlantAndEquipmentTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaapPropertyPlantAndEquipmentByTypeAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapScheduleOfPropertyPlantAndEquipmentTable" xlink:to="loc_us-gaapPropertyPlantAndEquipmentByTypeAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaapPropertyPlantAndEquipmentTypeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapPropertyPlantAndEquipmentByTypeAxis" xlink:to="loc_us-gaapPropertyPlantAndEquipmentTypeDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaapPropertyPlantAndEquipmentTypeDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapPropertyPlantAndEquipmentByTypeAxis" xlink:to="loc_us-gaapPropertyPlantAndEquipmentTypeDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_PVSolarSystemsMember" xlink:label="loc_spiPVSolarSystemsMember_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentTypeDomain" xlink:to="loc_spiPVSolarSystemsMember_20" xlink:type="arc" order="21"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FurnitureAndFixturesMember" xlink:label="loc_us-gaapFurnitureAndFixturesMember_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentTypeDomain" xlink:to="loc_us-gaapFurnitureAndFixturesMember_40" xlink:type="arc" order="41"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AutomobilesMember" xlink:label="loc_us-gaapAutomobilesMember_60"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentTypeDomain" xlink:to="loc_us-gaapAutomobilesMember_60" xlink:type="arc" order="61"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ComputerEquipmentMember" xlink:label="loc_us-gaapComputerEquipmentMember_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentTypeDomain" xlink:to="loc_us-gaapComputerEquipmentMember_80" xlink:type="arc" order="81"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LeaseholdImprovementsMember" xlink:label="loc_us-gaapLeaseholdImprovementsMember_100"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentTypeDomain" xlink:to="loc_us-gaapLeaseholdImprovementsMember_100" xlink:type="arc" order="101"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentGross" xlink:label="loc_us-gaapPropertyPlantAndEquipmentGross_130"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentLineItems" xlink:to="loc_us-gaapPropertyPlantAndEquipmentGross_130" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" xlink:label="loc_us-gaapAccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_130"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentLineItems" xlink:to="loc_us-gaapAccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_130" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_PropertyPlantAndEquipmentNetBeforeConstructionInProgressAndImpairment" xlink:label="loc_spiPropertyPlantAndEquipmentNetBeforeConstructionInProgressAndImpairment_130"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentLineItems" xlink:to="loc_spiPropertyPlantAndEquipmentNetBeforeConstructionInProgressAndImpairment_130" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_AccumulatedImpairmentOfPropertyPlantAndEquipment" xlink:label="loc_spiAccumulatedImpairmentOfPropertyPlantAndEquipment_130"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentLineItems" xlink:to="loc_spiAccumulatedImpairmentOfPropertyPlantAndEquipment_130" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaapPropertyPlantAndEquipmentNet_130"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentLineItems" xlink:to="loc_us-gaapPropertyPlantAndEquipmentNet_130" xlink:type="arc" order="4"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/PropertyPlantAndEquipmentDetailsNarrative" xlink:title="00000091 - Disclosure - 14. Property, Plant and Equipment (Details Narrative)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/InvestmentInAffiliatesDetailsNarrative" xlink:title="00000092 - Disclosure - 15. Investment in Affiliates (Details Narrative)"> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfEquityMethodInvestmentsLineItems" xlink:label="loc_us-gaapScheduleOfEquityMethodInvestmentsLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfEquityMethodInvestmentsTable" xlink:label="loc_us-gaapScheduleOfEquityMethodInvestmentsTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapScheduleOfEquityMethodInvestmentsLineItems" xlink:to="loc_us-gaapScheduleOfEquityMethodInvestmentsTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentsInAndAdvancesToAffiliatesCategorizationAxis" xlink:label="loc_us-gaapInvestmentsInAndAdvancesToAffiliatesCategorizationAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapScheduleOfEquityMethodInvestmentsTable" xlink:to="loc_us-gaapInvestmentsInAndAdvancesToAffiliatesCategorizationAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentsInAndAdvancesToAffiliatesCategorizationDomain" xlink:label="loc_us-gaapInvestmentsInAndAdvancesToAffiliatesCategorizationDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapInvestmentsInAndAdvancesToAffiliatesCategorizationAxis" xlink:to="loc_us-gaapInvestmentsInAndAdvancesToAffiliatesCategorizationDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentsInAndAdvancesToAffiliatesCategorizationDomain" xlink:label="loc_us-gaapInvestmentsInAndAdvancesToAffiliatesCategorizationDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapInvestmentsInAndAdvancesToAffiliatesCategorizationAxis" xlink:to="loc_us-gaapInvestmentsInAndAdvancesToAffiliatesCategorizationDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_EnsyncMember" xlink:label="loc_spiEnsyncMember_0"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapInvestmentsInAndAdvancesToAffiliatesCategorizationDomain" xlink:to="loc_spiEnsyncMember_0" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_SinsinMember" xlink:label="loc_spiSinsinMember_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapInvestmentsInAndAdvancesToAffiliatesCategorizationDomain" xlink:to="loc_spiSinsinMember_20" xlink:type="arc" order="21"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentTypeAxis" xlink:label="loc_us-gaapInvestmentTypeAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapScheduleOfEquityMethodInvestmentsTable" xlink:to="loc_us-gaapInvestmentTypeAxis" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentTypeCategorizationMember" xlink:label="loc_us-gaapInvestmentTypeCategorizationMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapInvestmentTypeAxis" xlink:to="loc_us-gaapInvestmentTypeCategorizationMember" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentTypeCategorizationMember" xlink:label="loc_us-gaapInvestmentTypeCategorizationMember_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapInvestmentTypeAxis" xlink:to="loc_us-gaapInvestmentTypeCategorizationMember_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_PurchasedCommonStockMember" xlink:label="loc_spiPurchasedCommonStockMember_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapInvestmentTypeCategorizationMember" xlink:to="loc_spiPurchasedCommonStockMember_40" xlink:type="arc" order="42"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_WarrantsMember" xlink:label="loc_spiWarrantsMember_60"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapInvestmentTypeCategorizationMember" xlink:to="loc_spiWarrantsMember_60" xlink:type="arc" order="62"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransactionTypeAxis" xlink:label="loc_us-gaapTransactionTypeAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapScheduleOfEquityMethodInvestmentsTable" xlink:to="loc_us-gaapTransactionTypeAxis" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransactionDomain" xlink:label="loc_us-gaapTransactionDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapTransactionTypeAxis" xlink:to="loc_us-gaapTransactionDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransactionDomain" xlink:label="loc_us-gaapTransactionDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapTransactionTypeAxis" xlink:to="loc_us-gaapTransactionDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_ConvPrefStockMember" xlink:label="loc_spiConvPrefStockMember_50"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapTransactionDomain" xlink:to="loc_spiConvPrefStockMember_50" xlink:type="arc" order="52"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures" xlink:label="loc_us-gaapInvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures_120"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapScheduleOfEquityMethodInvestmentsLineItems" xlink:to="loc_us-gaapInvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures_120" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentOwnedBalanceShares" xlink:label="loc_us-gaapInvestmentOwnedBalanceShares_120"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapScheduleOfEquityMethodInvestmentsLineItems" xlink:to="loc_us-gaapInvestmentOwnedBalanceShares_120" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAdjustmentOfWarrants" xlink:label="loc_us-gaapFairValueAdjustmentOfWarrants_120"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapScheduleOfEquityMethodInvestmentsLineItems" xlink:to="loc_us-gaapFairValueAdjustmentOfWarrants_120" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairmentOfInvestments" xlink:label="loc_us-gaapImpairmentOfInvestments_120"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapScheduleOfEquityMethodInvestmentsLineItems" xlink:to="loc_us-gaapImpairmentOfInvestments_120" xlink:type="arc" order="4"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/FairValueMeasurementDetailsNarrative" xlink:title="00000093 - Disclosure - 16. Fair value measurement (Details Narrative)"> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_ScheduleOfFairValueMeasurementDetailsLineItems" xlink:label="loc_spiScheduleOfFairValueMeasurementDetailsLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_ScheduleOfFairValueMeasurementDetailsTable" xlink:label="loc_spiScheduleOfFairValueMeasurementDetailsTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_spiScheduleOfFairValueMeasurementDetailsLineItems" xlink:to="loc_spiScheduleOfFairValueMeasurementDetailsTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByMeasurementFrequencyAxis" xlink:label="loc_us-gaapFairValueByMeasurementFrequencyAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_spiScheduleOfFairValueMeasurementDetailsTable" xlink:to="loc_us-gaapFairValueByMeasurementFrequencyAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="loc_us-gaapFairValueMeasurementFrequencyDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapFairValueByMeasurementFrequencyAxis" xlink:to="loc_us-gaapFairValueMeasurementFrequencyDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="loc_us-gaapFairValueMeasurementFrequencyDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapFairValueByMeasurementFrequencyAxis" xlink:to="loc_us-gaapFairValueMeasurementFrequencyDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsRecurringMember" xlink:label="loc_us-gaapFairValueMeasurementsRecurringMember_0"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapFairValueMeasurementFrequencyDomain" xlink:to="loc_us-gaapFairValueMeasurementsRecurringMember_0" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:label="loc_us-gaapFairValueByFairValueHierarchyLevelAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_spiScheduleOfFairValueMeasurementDetailsTable" xlink:to="loc_us-gaapFairValueByFairValueHierarchyLevelAxis" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaapFairValueMeasurementsFairValueHierarchyDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapFairValueByFairValueHierarchyLevelAxis" xlink:to="loc_us-gaapFairValueMeasurementsFairValueHierarchyDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaapFairValueMeasurementsFairValueHierarchyDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapFairValueByFairValueHierarchyLevelAxis" xlink:to="loc_us-gaapFairValueMeasurementsFairValueHierarchyDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueInputsLevel3Member" xlink:label="loc_us-gaapFairValueInputsLevel3Member_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapFairValueMeasurementsFairValueHierarchyDomain" xlink:to="loc_us-gaapFairValueInputsLevel3Member_20" xlink:type="arc" order="21"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AssetsFairValueDisclosure" xlink:label="loc_us-gaapAssetsFairValueDisclosure_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiScheduleOfFairValueMeasurementDetailsLineItems" xlink:to="loc_us-gaapAssetsFairValueDisclosure_40" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LiabilitiesFairValueDisclosure" xlink:label="loc_us-gaapLiabilitiesFairValueDisclosure_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiScheduleOfFairValueMeasurementDetailsLineItems" xlink:to="loc_us-gaapLiabilitiesFairValueDisclosure_40" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConvertibleDebtFairValueDisclosures" xlink:label="loc_us-gaapConvertibleDebtFairValueDisclosures_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiScheduleOfFairValueMeasurementDetailsLineItems" xlink:to="loc_us-gaapConvertibleDebtFairValueDisclosures_40" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherLiabilitiesFairValueDisclosure" xlink:label="loc_us-gaapOtherLiabilitiesFairValueDisclosure_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiScheduleOfFairValueMeasurementDetailsLineItems" xlink:to="loc_us-gaapOtherLiabilitiesFairValueDisclosure_40" xlink:type="arc" order="4"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/AccruedLiabilitiesDetails" xlink:title="00000094 - Disclosure - 17. Accrued liabilities (Details)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/Short-termBorrowingsAndLong-termBorrowingsDetails-Debt" xlink:title="00000095 - Disclosure - 19. Short-term borrowings and long-term borrowings (Details - Debt)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/Short-termBorrowingsAndLong-termBorrowingsDetails-Maturities" xlink:title="00000096 - Disclosure - 19. Short-term borrowings and long-term borrowings (Details - Maturities)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/Short-termBorrowingsAndLong-termBorrowingsDetailsNarrative" xlink:title="00000097 - Disclosure - 19. Short-term borrowings and long-term borrowings (Details Narrative)"> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_ScheduleOfLoansPayableDetailsLineItems" xlink:label="loc_spiScheduleOfLoansPayableDetailsLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_ScheduleOfDebtInstrumentsTable" xlink:label="loc_spiScheduleOfDebtInstrumentsTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_spiScheduleOfLoansPayableDetailsLineItems" xlink:to="loc_spiScheduleOfDebtInstrumentsTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongtermDebtTypeAxis" xlink:label="loc_us-gaapLongtermDebtTypeAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_spiScheduleOfDebtInstrumentsTable" xlink:to="loc_us-gaapLongtermDebtTypeAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaapLongtermDebtTypeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapLongtermDebtTypeAxis" xlink:to="loc_us-gaapLongtermDebtTypeDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaapLongtermDebtTypeDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapLongtermDebtTypeAxis" xlink:to="loc_us-gaapLongtermDebtTypeDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_SantanderBankMember" xlink:label="loc_spiSantanderBankMember_0"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLongtermDebtTypeDomain" xlink:to="loc_spiSantanderBankMember_0" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_ScottishPacificMember" xlink:label="loc_spiScottishPacificMember_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLongtermDebtTypeDomain" xlink:to="loc_spiScottishPacificMember_20" xlink:type="arc" order="22"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShortTermDebtTypeAxis" xlink:label="loc_us-gaapShortTermDebtTypeAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_spiScheduleOfDebtInstrumentsTable" xlink:to="loc_us-gaapShortTermDebtTypeAxis" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShortTermDebtTypeDomain" xlink:label="loc_us-gaapShortTermDebtTypeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapShortTermDebtTypeAxis" xlink:to="loc_us-gaapShortTermDebtTypeDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShortTermDebtTypeDomain" xlink:label="loc_us-gaapShortTermDebtTypeDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapShortTermDebtTypeAxis" xlink:to="loc_us-gaapShortTermDebtTypeDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShortTermDebtMember" xlink:label="loc_us-gaapShortTermDebtMember_60"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShortTermDebtTypeDomain" xlink:to="loc_us-gaapShortTermDebtMember_60" xlink:type="arc" order="61"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentsInAndAdvancesToAffiliatesCategorizationAxis" xlink:label="loc_us-gaapInvestmentsInAndAdvancesToAffiliatesCategorizationAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_spiScheduleOfDebtInstrumentsTable" xlink:to="loc_us-gaapInvestmentsInAndAdvancesToAffiliatesCategorizationAxis" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentsInAndAdvancesToAffiliatesCategorizationDomain" xlink:label="loc_us-gaapInvestmentsInAndAdvancesToAffiliatesCategorizationDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapInvestmentsInAndAdvancesToAffiliatesCategorizationAxis" xlink:to="loc_us-gaapInvestmentsInAndAdvancesToAffiliatesCategorizationDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentsInAndAdvancesToAffiliatesCategorizationDomain" xlink:label="loc_us-gaapInvestmentsInAndAdvancesToAffiliatesCategorizationDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapInvestmentsInAndAdvancesToAffiliatesCategorizationAxis" xlink:to="loc_us-gaapInvestmentsInAndAdvancesToAffiliatesCategorizationDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_SolarJuiceMember" xlink:label="loc_spiSolarJuiceMember_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapInvestmentsInAndAdvancesToAffiliatesCategorizationDomain" xlink:to="loc_spiSolarJuiceMember_20" xlink:type="arc" order="21"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BankLoans" xlink:label="loc_us-gaapBankLoans_100"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiScheduleOfLoansPayableDetailsLineItems" xlink:to="loc_us-gaapBankLoans_100" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage" xlink:label="loc_us-gaapDebtInstrumentInterestRateStatedPercentage_100"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiScheduleOfLoansPayableDetailsLineItems" xlink:to="loc_us-gaapDebtInstrumentInterestRateStatedPercentage_100" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentInterestRateTerms" xlink:label="loc_us-gaapDebtInstrumentInterestRateTerms_100"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiScheduleOfLoansPayableDetailsLineItems" xlink:to="loc_us-gaapDebtInstrumentInterestRateTerms_100" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentMaturityDateDescription" xlink:label="loc_us-gaapDebtInstrumentMaturityDateDescription_100"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiScheduleOfLoansPayableDetailsLineItems" xlink:to="loc_us-gaapDebtInstrumentMaturityDateDescription_100" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherLongTermDebt" xlink:label="loc_us-gaapOtherLongTermDebt_100"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiScheduleOfLoansPayableDetailsLineItems" xlink:to="loc_us-gaapOtherLongTermDebt_100" xlink:type="arc" order="5"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_DebtorFinanceBalance" xlink:label="loc_spiDebtorFinanceBalance_100"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiScheduleOfLoansPayableDetailsLineItems" xlink:to="loc_spiDebtorFinanceBalance_100" xlink:type="arc" order="6"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestExpenseBorrowings" xlink:label="loc_us-gaapInterestExpenseBorrowings_100"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiScheduleOfLoansPayableDetailsLineItems" xlink:to="loc_us-gaapInterestExpenseBorrowings_100" xlink:type="arc" order="7"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentInterestRateEffectivePercentage" xlink:label="loc_us-gaapDebtInstrumentInterestRateEffectivePercentage_100"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiScheduleOfLoansPayableDetailsLineItems" xlink:to="loc_us-gaapDebtInstrumentInterestRateEffectivePercentage_100" xlink:type="arc" order="8"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/ConvertibleBondsDetailsNarrative" xlink:title="00000098 - Disclosure - 20. Convertible Bonds (Details Narrative)"> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongtermDebtTypeAxis" xlink:label="loc_us-gaapLongtermDebtTypeAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapLongtermDebtTypeAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaapLongtermDebtTypeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapLongtermDebtTypeAxis" xlink:to="loc_us-gaapLongtermDebtTypeDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaapLongtermDebtTypeDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapLongtermDebtTypeAxis" xlink:to="loc_us-gaapLongtermDebtTypeDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_ConvertibleBondsMember" xlink:label="loc_spiConvertibleBondsMember_0"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLongtermDebtTypeDomain" xlink:to="loc_spiConvertibleBondsMember_0" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_CounterpartyNameAxis" xlink:label="loc_srtCounterpartyNameAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_srtCounterpartyNameAxis" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="loc_srtRepurchaseAgreementCounterpartyNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtCounterpartyNameAxis" xlink:to="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="loc_srtRepurchaseAgreementCounterpartyNameDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtCounterpartyNameAxis" xlink:to="loc_srtRepurchaseAgreementCounterpartyNameDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_UnionSkyMember" xlink:label="loc_spiUnionSkyMember_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:to="loc_spiUnionSkyMember_10" xlink:type="arc" order="12"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransactionTypeAxis" xlink:label="loc_us-gaapTransactionTypeAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapTransactionTypeAxis" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransactionDomain" xlink:label="loc_us-gaapTransactionDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapTransactionTypeAxis" xlink:to="loc_us-gaapTransactionDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransactionDomain" xlink:label="loc_us-gaapTransactionDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapTransactionTypeAxis" xlink:to="loc_us-gaapTransactionDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_FistAmendmentMember" xlink:label="loc_spiFistAmendmentMember_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapTransactionDomain" xlink:to="loc_spiFistAmendmentMember_10" xlink:type="arc" order="13"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_SecondAmendmentMember" xlink:label="loc_spiSecondAmendmentMember_30"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapTransactionDomain" xlink:to="loc_spiSecondAmendmentMember_30" xlink:type="arc" order="33"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SecuritiesFinancingTransactionAxis" xlink:label="loc_us-gaapSecuritiesFinancingTransactionAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapSecuritiesFinancingTransactionAxis" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SecuritiesFinancingTransactionTypeDomain" xlink:label="loc_us-gaapSecuritiesFinancingTransactionTypeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapSecuritiesFinancingTransactionAxis" xlink:to="loc_us-gaapSecuritiesFinancingTransactionTypeDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SecuritiesFinancingTransactionTypeDomain" xlink:label="loc_us-gaapSecuritiesFinancingTransactionTypeDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapSecuritiesFinancingTransactionAxis" xlink:to="loc_us-gaapSecuritiesFinancingTransactionTypeDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_Note1Member" xlink:label="loc_spiNote1Member_30"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSecuritiesFinancingTransactionTypeDomain" xlink:to="loc_spiNote1Member_30" xlink:type="arc" order="34"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_Note2Member" xlink:label="loc_spiNote2Member_50"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSecuritiesFinancingTransactionTypeDomain" xlink:to="loc_spiNote2Member_50" xlink:type="arc" order="54"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_Note3Member" xlink:label="loc_spiNote3Member_70"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSecuritiesFinancingTransactionTypeDomain" xlink:to="loc_spiNote3Member_70" xlink:type="arc" order="74"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtDefaultLongtermDebtAmount" xlink:label="loc_us-gaapDebtDefaultLongtermDebtAmount_120"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDebtDefaultLongtermDebtAmount_120" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage" xlink:label="loc_us-gaapDebtInstrumentInterestRateStatedPercentage_120"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDebtInstrumentInterestRateStatedPercentage_120" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentFairValue" xlink:label="loc_us-gaapDebtInstrumentFairValue_120"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDebtInstrumentFairValue_120" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ExtinguishmentOfDebtGainLossNetOfTax" xlink:label="loc_us-gaapExtinguishmentOfDebtGainLossNetOfTax_120"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapExtinguishmentOfDebtGainLossNetOfTax_120" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentUnamortizedDiscount" xlink:label="loc_us-gaapDebtInstrumentUnamortizedDiscount_120"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDebtInstrumentUnamortizedDiscount_120" xlink:type="arc" order="5"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AmortizationOfFinancingCostsAndDiscounts" xlink:label="loc_us-gaapAmortizationOfFinancingCostsAndDiscounts_120"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapAmortizationOfFinancingCostsAndDiscounts_120" xlink:type="arc" order="6"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConvertibleNotesPayable" xlink:label="loc_us-gaapConvertibleNotesPayable_120"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapConvertibleNotesPayable_120" xlink:type="arc" order="7"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentMaturityDate" xlink:label="loc_us-gaapDebtInstrumentMaturityDate_120"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDebtInstrumentMaturityDate_120" xlink:type="arc" order="8"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConvertibleNotesPayableCurrent" xlink:label="loc_us-gaapConvertibleNotesPayableCurrent_120"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapConvertibleNotesPayableCurrent_120" xlink:type="arc" order="9"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConvertibleLongTermNotesPayable" xlink:label="loc_us-gaapConvertibleLongTermNotesPayable_120"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapConvertibleLongTermNotesPayable_120" xlink:type="arc" order="10"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/OtherLiabilitiesDetails" xlink:title="00000099 - Disclosure - 21. Other liabilities (Details)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/OtherLiabilitiesDetailsNarrative" xlink:title="00000100 - Disclosure - 21. Other liabilities (Details Narrative)"> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_CounterpartyNameAxis" xlink:label="loc_srtCounterpartyNameAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_srtCounterpartyNameAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="loc_srtRepurchaseAgreementCounterpartyNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtCounterpartyNameAxis" xlink:to="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="loc_srtRepurchaseAgreementCounterpartyNameDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtCounterpartyNameAxis" xlink:to="loc_srtRepurchaseAgreementCounterpartyNameDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_SinsinMember" xlink:label="loc_spiSinsinMember_0"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:to="loc_spiSinsinMember_0" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_HeliostixioMember" xlink:label="loc_spiHeliostixioMember_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:to="loc_spiHeliostixioMember_40" xlink:type="arc" order="41"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_SinsinRenewableInvestmentLtdMember" xlink:label="loc_spiSinsinRenewableInvestmentLtdMember_60"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:to="loc_spiSinsinRenewableInvestmentLtdMember_60" xlink:type="arc" order="61"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationAxis" xlink:label="loc_us-gaapBalanceSheetLocationAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapBalanceSheetLocationAxis" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaapBalanceSheetLocationDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapBalanceSheetLocationAxis" xlink:to="loc_us-gaapBalanceSheetLocationDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaapBalanceSheetLocationDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapBalanceSheetLocationAxis" xlink:to="loc_us-gaapBalanceSheetLocationDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_AccruedInterestMember" xlink:label="loc_spiAccruedInterestMember_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBalanceSheetLocationDomain" xlink:to="loc_spiAccruedInterestMember_20" xlink:type="arc" order="22"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_UnpaidPurchaseConsiderationMember" xlink:label="loc_spiUnpaidPurchaseConsiderationMember_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBalanceSheetLocationDomain" xlink:to="loc_spiUnpaidPurchaseConsiderationMember_40" xlink:type="arc" order="42"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_UnpaidAcquisitionPayable" xlink:label="loc_spiUnpaidAcquisitionPayable_90"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiUnpaidAcquisitionPayable_90" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherSundryLiabilitiesCurrent" xlink:label="loc_us-gaapOtherSundryLiabilitiesCurrent_90"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapOtherSundryLiabilitiesCurrent_90" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProductWarrantyAccrualNoncurrent" xlink:label="loc_us-gaapProductWarrantyAccrualNoncurrent_90"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapProductWarrantyAccrualNoncurrent_90" xlink:type="arc" order="2"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/StockholdersDeficitDetailsNarrative" xlink:title="00000101 - Disclosure - 22. Stockholders' Deficit (Details Narrative)"> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_CounterpartyNameAxis" xlink:label="loc_srtCounterpartyNameAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_srtCounterpartyNameAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="loc_srtRepurchaseAgreementCounterpartyNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtCounterpartyNameAxis" xlink:to="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="loc_srtRepurchaseAgreementCounterpartyNameDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtCounterpartyNameAxis" xlink:to="loc_srtRepurchaseAgreementCounterpartyNameDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_ManagementMembersMember" xlink:label="loc_spiManagementMembersMember_30"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:to="loc_spiManagementMembersMember_30" xlink:type="arc" order="31"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsidiarySaleOfStockAxis" xlink:label="loc_us-gaapSubsidiarySaleOfStockAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapSubsidiarySaleOfStockAxis" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SaleOfStockNameOfTransactionDomain" xlink:label="loc_us-gaapSaleOfStockNameOfTransactionDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapSubsidiarySaleOfStockAxis" xlink:to="loc_us-gaapSaleOfStockNameOfTransactionDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SaleOfStockNameOfTransactionDomain" xlink:label="loc_us-gaapSaleOfStockNameOfTransactionDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapSubsidiarySaleOfStockAxis" xlink:to="loc_us-gaapSaleOfStockNameOfTransactionDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_OrdinaryShares1Member" xlink:label="loc_spiOrdinaryShares1Member_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSaleOfStockNameOfTransactionDomain" xlink:to="loc_spiOrdinaryShares1Member_40" xlink:type="arc" order="41"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockholdersEquityReverseStockSplit" xlink:label="loc_us-gaapStockholdersEquityReverseStockSplit_60"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStockholdersEquityReverseStockSplit_60" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardGross" xlink:label="loc_us-gaapStockIssuedDuringPeriodSharesRestrictedStockAwardGross_60"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStockIssuedDuringPeriodSharesRestrictedStockAwardGross_60" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesNewIssues" xlink:label="loc_us-gaapStockIssuedDuringPeriodSharesNewIssues_60"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStockIssuedDuringPeriodSharesNewIssues_60" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaapIncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest_60"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapIncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest_60" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeLossIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaapIncomeLossIncludingPortionAttributableToNoncontrollingInterest_60"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapIncomeLossIncludingPortionAttributableToNoncontrollingInterest_60" xlink:type="arc" order="5"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToNoncontrollingInterest" xlink:label="loc_us-gaapIncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToNoncontrollingInterest_60"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapIncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToNoncontrollingInterest_60" xlink:type="arc" order="6"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/Stock-basedCompensationDetails-Stock-basedCompensationExpenseByAwardType" xlink:title="00000102 - Disclosure - 23. Stock-based Compensation (Details - Stock-Based Compensation Expense by Award type)"> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaapScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="loc_us-gaapScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaapAwardTypeAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:to="loc_us-gaapAwardTypeAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapAwardTypeAxis" xlink:to="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapAwardTypeAxis" xlink:to="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="loc_us-gaapEmployeeStockOptionMember_0"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_us-gaapEmployeeStockOptionMember_0" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RestrictedStockMember" xlink:label="loc_us-gaapRestrictedStockMember_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_us-gaapRestrictedStockMember_10" xlink:type="arc" order="11"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense" xlink:label="loc_us-gaapAllocatedShareBasedCompensationExpense_100"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="loc_us-gaapAllocatedShareBasedCompensationExpense_100" xlink:type="arc" order="0"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/Stock-basedCompensationDetails-CompensationExpenseByLineItem" xlink:title="00000103 - Disclosure - 23. Stock-based Compensation (Details - Compensation expense by line item)"> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems" xlink:label="loc_us-gaapEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable" xlink:label="loc_us-gaapScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems" xlink:to="loc_us-gaapScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeStatementLocationAxis" xlink:label="loc_us-gaapIncomeStatementLocationAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable" xlink:to="loc_us-gaapIncomeStatementLocationAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaapIncomeStatementLocationDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapIncomeStatementLocationAxis" xlink:to="loc_us-gaapIncomeStatementLocationDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaapIncomeStatementLocationDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapIncomeStatementLocationAxis" xlink:to="loc_us-gaapIncomeStatementLocationDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GeneralAndAdministrativeExpenseMember" xlink:label="loc_us-gaapGeneralAndAdministrativeExpenseMember_0"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapIncomeStatementLocationDomain" xlink:to="loc_us-gaapGeneralAndAdministrativeExpenseMember_0" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SellingAndMarketingExpenseMember" xlink:label="loc_us-gaapSellingAndMarketingExpenseMember_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapIncomeStatementLocationDomain" xlink:to="loc_us-gaapSellingAndMarketingExpenseMember_10" xlink:type="arc" order="11"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense" xlink:label="loc_us-gaapAllocatedShareBasedCompensationExpense_100"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems" xlink:to="loc_us-gaapAllocatedShareBasedCompensationExpense_100" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax" xlink:label="loc_us-gaapAllocatedShareBasedCompensationExpenseNetOfTax_100"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems" xlink:to="loc_us-gaapAllocatedShareBasedCompensationExpenseNetOfTax_100" xlink:type="arc" order="1"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/Stock-basedCompensationDetails-Assumptions" xlink:title="00000104 - Disclosure - 23. Stock-based Compensation (Details - Assumptions)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/Stock-basedCompensationDetails-OptionActivity" xlink:title="00000105 - Disclosure - 23. Stock-based Compensation (Details - Option Activity)"> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaapAwardTypeAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapAwardTypeAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapAwardTypeAxis" xlink:to="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapAwardTypeAxis" xlink:to="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_StockOptionsMember" xlink:label="loc_spiStockOptionsMember_0"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_spiStockOptionsMember_0" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_80" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_80" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_80" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_80" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross_80" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised" xlink:label="loc_us-gaapStockIssuedDuringPeriodSharesStockOptionsExercised_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_80" xlink:to="loc_us-gaapStockIssuedDuringPeriodSharesStockOptionsExercised_80" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresInPeriod" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresInPeriod_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_80" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresInPeriod_80" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableNumber" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableNumber_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_80" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableNumber_80" xlink:type="arc" order="6"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingNumber" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingNumber_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_80" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingNumber_80" xlink:type="arc" order="7"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_80" xlink:type="arc" order="8"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_80" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice_80" xlink:type="arc" order="9"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice" xlink:label="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_80" xlink:to="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice_80" xlink:type="arc" order="10"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice" xlink:label="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_80" xlink:to="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice_80" xlink:type="arc" order="11"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice" xlink:label="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_80" xlink:to="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice_80" xlink:type="arc" order="12"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageExercisePrice" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageExercisePrice_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_80" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageExercisePrice_80" xlink:type="arc" order="14"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_80" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice_80" xlink:type="arc" order="15"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedRemainingContractualTermAbstract" xlink:label="loc_spiShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedRemainingContractualTermAbstract_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedRemainingContractualTermAbstract_80" xlink:type="arc" order="16"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2" xlink:label="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedRemainingContractualTermAbstract_80" xlink:to="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2_80" xlink:type="arc" order="17"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageRemainingContractualTerm1" xlink:label="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageRemainingContractualTerm1_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedRemainingContractualTermAbstract_80" xlink:to="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageRemainingContractualTerm1_80" xlink:type="arc" order="18"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageRemainingContractualTerm1" xlink:label="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageRemainingContractualTerm1_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedRemainingContractualTermAbstract_80" xlink:to="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageRemainingContractualTerm1_80" xlink:type="arc" order="19"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingAggregateIntrinsicValueAbstract" xlink:label="loc_spiShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingAggregateIntrinsicValueAbstract_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingAggregateIntrinsicValueAbstract_80" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingAggregateIntrinsicValueAbstract_80" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue_80" xlink:type="arc" order="21"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableAggregateIntrinsicValue" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableAggregateIntrinsicValue_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingAggregateIntrinsicValueAbstract_80" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableAggregateIntrinsicValue_80" xlink:type="arc" order="22"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingAggregateIntrinsicValue" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingAggregateIntrinsicValue_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingAggregateIntrinsicValueAbstract_80" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingAggregateIntrinsicValue_80" xlink:type="arc" order="23"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/Stock-basedCompensationDetails-OptionsByExercisePrice" xlink:title="00000106 - Disclosure - 23. Stock-based Compensation (Details - Options by Exercise Price)"> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" xlink:label="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeTable" xlink:label="loc_us-gaapScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" xlink:to="loc_us-gaapScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis" xlink:label="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeTable" xlink:to="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:label="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis" xlink:to="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:label="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis" xlink:to="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_PriceRange1Member" xlink:label="loc_spiPriceRange1Member_0"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:to="loc_spiPriceRange1Member_0" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_PriceRange2Member" xlink:label="loc_spiPriceRange2Member_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:to="loc_spiPriceRange2Member_10" xlink:type="arc" order="11"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_PriceRange3Member" xlink:label="loc_spiPriceRange3Member_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:to="loc_spiPriceRange3Member_20" xlink:type="arc" order="21"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLowerRangeLimit" xlink:label="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLowerRangeLimit_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" xlink:to="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLowerRangeLimit_80" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeUpperRangeLimit" xlink:label="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeUpperRangeLimit_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" xlink:to="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeUpperRangeLimit_80" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeNumberOfExercisableOptions" xlink:label="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeNumberOfExercisableOptions_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" xlink:to="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeNumberOfExercisableOptions_80" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SharebasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeExercisableOptionsWeightedAverageRemainingContractualTerm2" xlink:label="loc_us-gaapSharebasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeExercisableOptionsWeightedAverageRemainingContractualTerm2_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" xlink:to="loc_us-gaapSharebasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeExercisableOptionsWeightedAverageRemainingContractualTerm2_80" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SharebasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeExercisableOptionsWeightedAverageExercisePrice1" xlink:label="loc_us-gaapSharebasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeExercisableOptionsWeightedAverageExercisePrice1_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" xlink:to="loc_us-gaapSharebasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeExercisableOptionsWeightedAverageExercisePrice1_80" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableIntrinsicValue1" xlink:label="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableIntrinsicValue1_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" xlink:to="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableIntrinsicValue1_80" xlink:type="arc" order="5"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/Stock-basedCompensationDetails-Non-vestedOptions" xlink:title="00000107 - Disclosure - 23. Stock-based Compensation (Details - Non-vested options)"> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaapScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="loc_us-gaapScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaapAwardTypeAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:to="loc_us-gaapAwardTypeAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapAwardTypeAxis" xlink:to="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapAwardTypeAxis" xlink:to="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_StockOptionsMember" xlink:label="loc_spiStockOptionsMember_0"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_spiStockOptionsMember_0" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RestrictedStockMember" xlink:label="loc_us-gaapRestrictedStockMember_30"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_us-gaapRestrictedStockMember_30" xlink:type="arc" order="31"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VestingAxis" xlink:label="loc_us-gaapVestingAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:to="loc_us-gaapVestingAxis" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VestingDomain" xlink:label="loc_us-gaapVestingDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapVestingAxis" xlink:to="loc_us-gaapVestingDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VestingDomain" xlink:label="loc_us-gaapVestingDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapVestingAxis" xlink:to="loc_us-gaapVestingDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_NonvestedMember" xlink:label="loc_spiNonvestedMember_0"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapVestingDomain" xlink:to="loc_spiNonvestedMember_0" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfSharesRollForward" xlink:label="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfSharesRollForward_70"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfSharesRollForward_70" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfShares" xlink:label="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfShares_70"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfSharesRollForward_70" xlink:to="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfShares_70" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross_70"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfSharesRollForward_70" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross_70" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedNumberOfShares" xlink:label="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedNumberOfShares_70"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfSharesRollForward_70" xlink:to="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedNumberOfShares_70" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedOptionsForfeitedNumberOfShares" xlink:label="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedOptionsForfeitedNumberOfShares_70"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfSharesRollForward_70" xlink:to="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedOptionsForfeitedNumberOfShares_70" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedWeightedAverageGrantDateFairValueAbstract" xlink:label="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedWeightedAverageGrantDateFairValueAbstract_70"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedWeightedAverageGrantDateFairValueAbstract_70" xlink:type="arc" order="6"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice_70"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedWeightedAverageGrantDateFairValueAbstract_70" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice_70" xlink:type="arc" order="7"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice" xlink:label="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice_70"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedWeightedAverageGrantDateFairValueAbstract_70" xlink:to="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice_70" xlink:type="arc" order="8"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsVestedInPeriodWeightedAverageExercisePrice" xlink:label="loc_spiShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsVestedInPeriodWeightedAverageExercisePrice_70"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedWeightedAverageGrantDateFairValueAbstract_70" xlink:to="loc_spiShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsVestedInPeriodWeightedAverageExercisePrice_70" xlink:type="arc" order="9"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice" xlink:label="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice_70"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedWeightedAverageGrantDateFairValueAbstract_70" xlink:to="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice_70" xlink:type="arc" order="10"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_70"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_70" xlink:type="arc" order="12"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_70"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_70" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_70" xlink:type="arc" order="13"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_70"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_70" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_70" xlink:type="arc" order="14"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_70"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_70" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_70" xlink:type="arc" order="15"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_70"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_70" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_70" xlink:type="arc" order="16"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_70"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_70" xlink:type="arc" order="18"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_70"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_70" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_70" xlink:type="arc" order="19"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_70"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_70" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_70" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_70"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_70" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_70" xlink:type="arc" order="21"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_70"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_70" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_70" xlink:type="arc" order="22"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/Stock-basedCompensationDetails-Rsus" xlink:title="00000108 - Disclosure - 23. Stock-based Compensation (Details - RSU's)"> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaapScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="loc_us-gaapScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaapAwardTypeAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:to="loc_us-gaapAwardTypeAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapAwardTypeAxis" xlink:to="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapAwardTypeAxis" xlink:to="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember" xlink:label="loc_us-gaapRestrictedStockUnitsRSUMember_0"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_us-gaapRestrictedStockUnitsRSUMember_0" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_40" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingNumber" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingNumber_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_40" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingNumber_40" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsGranted" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsGranted_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_40" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsGranted_40" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsForfeitures" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsForfeitures_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_40" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsForfeitures_40" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_WeightedAverageGrantdateFairValueAbstract" xlink:label="loc_spiWeightedAverageGrantdateFairValueAbstract_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="loc_spiWeightedAverageGrantdateFairValueAbstract_40" xlink:type="arc" order="7"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageGrantDateFairValue" xlink:label="loc_spiShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageGrantDateFairValue_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiWeightedAverageGrantdateFairValueAbstract_40" xlink:to="loc_spiShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageGrantDateFairValue_40" xlink:type="arc" order="8"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiWeightedAverageGrantdateFairValueAbstract_40" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_40" xlink:type="arc" order="9"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiWeightedAverageGrantdateFairValueAbstract_40" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_40" xlink:type="arc" order="10"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/Stock-basedCompensationDetailsNarrative" xlink:title="00000109 - Disclosure - 23. Stock-based Compensation (Details Narrative)"> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementOperatingActivitiesSegmentAxis" xlink:label="loc_us-gaapStatementOperatingActivitiesSegmentAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapStatementOperatingActivitiesSegmentAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentOperatingActivitiesDomain" xlink:label="loc_us-gaapSegmentOperatingActivitiesDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapStatementOperatingActivitiesSegmentAxis" xlink:to="loc_us-gaapSegmentOperatingActivitiesDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentOperatingActivitiesDomain" xlink:label="loc_us-gaapSegmentOperatingActivitiesDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementOperatingActivitiesSegmentAxis" xlink:to="loc_us-gaapSegmentOperatingActivitiesDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentContinuingOperationsMember" xlink:label="loc_us-gaapSegmentContinuingOperationsMember_30"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSegmentOperatingActivitiesDomain" xlink:to="loc_us-gaapSegmentContinuingOperationsMember_30" xlink:type="arc" order="31"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedInPeriodFairValue1" xlink:label="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedInPeriodFairValue1_70"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedInPeriodFairValue1_70" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensation" xlink:label="loc_us-gaapShareBasedCompensation_70"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapShareBasedCompensation_70" xlink:type="arc" order="2"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/IncomeTaxesDetails-LossBeforeProvision" xlink:title="00000110 - Disclosure - 24. Income Taxes (Details - Loss before Provision)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/IncomeTaxesDetails-ProvisionForIncomeTaxes" xlink:title="00000111 - Disclosure - 24. Income Taxes (Details - Provision for income taxes)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/IncomeTaxesDetails-TaxReconciliation" xlink:title="00000112 - Disclosure - 24. Income Taxes (Details - Tax reconciliation)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/IncomeTaxesDetails-DeferredIncomeTaxes" xlink:title="00000113 - Disclosure - 24. Income Taxes (Details - Deferred income taxes)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/IncomeTaxesDetailsNarrative" xlink:title="00000114 - Disclosure - 24. Income Taxes (Details Narrative)"> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxAuthorityAxis" xlink:label="loc_us-gaapIncomeTaxAuthorityAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapIncomeTaxAuthorityAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:label="loc_us-gaapIncomeTaxAuthorityDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapIncomeTaxAuthorityAxis" xlink:to="loc_us-gaapIncomeTaxAuthorityDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:label="loc_us-gaapIncomeTaxAuthorityDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapIncomeTaxAuthorityAxis" xlink:to="loc_us-gaapIncomeTaxAuthorityDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_FederalMember" xlink:label="loc_spiFederalMember_0"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapIncomeTaxAuthorityDomain" xlink:to="loc_spiFederalMember_0" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_StateMember" xlink:label="loc_spiStateMember_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapIncomeTaxAuthorityDomain" xlink:to="loc_spiStateMember_20" xlink:type="arc" order="21"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_ForeignMember" xlink:label="loc_spiForeignMember_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapIncomeTaxAuthorityDomain" xlink:to="loc_spiForeignMember_40" xlink:type="arc" order="41"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLossCarryforwards" xlink:label="loc_us-gaapOperatingLossCarryforwards_120"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapOperatingLossCarryforwards_120" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLossCarryforwardsExpirationDate" xlink:label="loc_us-gaapOperatingLossCarryforwardsExpirationDate_120"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapOperatingLossCarryforwardsExpirationDate_120" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsAlternativeMinimumTax" xlink:label="loc_us-gaapDeferredTaxAssetsTaxCreditCarryforwardsAlternativeMinimumTax_120"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDeferredTaxAssetsTaxCreditCarryforwardsAlternativeMinimumTax_120" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ValuationAllowanceDeferredTaxAssetChangeInAmount" xlink:label="loc_us-gaapValuationAllowanceDeferredTaxAssetChangeInAmount_120"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapValuationAllowanceDeferredTaxAssetChangeInAmount_120" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_UndistributedEarningsOfForeignSubsidiaries" xlink:label="loc_us-gaapUndistributedEarningsOfForeignSubsidiaries_120"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapUndistributedEarningsOfForeignSubsidiaries_120" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_UnrecognizedTaxBenefits" xlink:label="loc_us-gaapUnrecognizedTaxBenefits_120"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapUnrecognizedTaxBenefits_120" xlink:type="arc" order="5"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/NetLossPerShareDetails-BasicAndDiluted" xlink:title="00000115 - Disclosure - 25. Net Loss Per Share (Details - Basic and Diluted)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/NetLossPerShareDetails-AntidilutiveShares" xlink:title="00000116 - Disclosure - 25. Net Loss Per Share (Details - Antidilutive shares)"> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems" xlink:label="loc_us-gaapAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable" xlink:label="loc_us-gaapScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems" xlink:to="loc_us-gaapScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" xlink:label="loc_us-gaapAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable" xlink:to="loc_us-gaapAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain" xlink:label="loc_us-gaapAntidilutiveSecuritiesNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" xlink:to="loc_us-gaapAntidilutiveSecuritiesNameDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain" xlink:label="loc_us-gaapAntidilutiveSecuritiesNameDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" xlink:to="loc_us-gaapAntidilutiveSecuritiesNameDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_OptionsAndRestrictedMember" xlink:label="loc_spiOptionsAndRestrictedMember_0"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapAntidilutiveSecuritiesNameDomain" xlink:to="loc_spiOptionsAndRestrictedMember_0" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_ConvertibleBondsMember" xlink:label="loc_spiConvertibleBondsMember_30"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapAntidilutiveSecuritiesNameDomain" xlink:to="loc_spiConvertibleBondsMember_30" xlink:type="arc" order="31"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount" xlink:label="loc_us-gaapAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_100"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems" xlink:to="loc_us-gaapAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_100" xlink:type="arc" order="1"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/CommitmentsAndContingenciesDetails-MinimumLeasePayments" xlink:title="00000117 - Disclosure - 26. Commitments and Contingencies (Details - Minimum lease payments)"/> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/CommitmentsAndContingenciesDetailsNarrative" xlink:title="00000118 - Disclosure - 26. Commitments and Contingencies (Details Narrative)"> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_LitigationCaseAxis" xlink:label="loc_srtLitigationCaseAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_srtLitigationCaseAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_LitigationCaseTypeDomain" xlink:label="loc_srtLitigationCaseTypeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtLitigationCaseAxis" xlink:to="loc_srtLitigationCaseTypeDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_LitigationCaseTypeDomain" xlink:label="loc_srtLitigationCaseTypeDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtLitigationCaseAxis" xlink:to="loc_srtLitigationCaseTypeDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmploymentContractsMember" xlink:label="loc_us-gaapEmploymentContractsMember_50"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtLitigationCaseTypeDomain" xlink:to="loc_us-gaapEmploymentContractsMember_50" xlink:type="arc" order="51"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeaseExpense" xlink:label="loc_us-gaapOperatingLeaseExpense_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapOperatingLeaseExpense_80" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ContractualObligation" xlink:label="loc_us-gaapContractualObligation_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapContractualObligation_80" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LitigationReserve" xlink:label="loc_us-gaapLitigationReserve_80"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapLitigationReserve_80" xlink:type="arc" order="3"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/ConcentrationRiskDetails-AccountsReceivableRisk" xlink:title="00000119 - Disclosure - 27. Concentration Risk (Details - Accounts receivable risk)"> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskLineItems" xlink:label="loc_us-gaapConcentrationRiskLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskTable" xlink:label="loc_us-gaapConcentrationRiskTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapConcentrationRiskLineItems" xlink:to="loc_us-gaapConcentrationRiskTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:label="loc_us-gaapConcentrationRiskByBenchmarkAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapConcentrationRiskTable" xlink:to="loc_us-gaapConcentrationRiskByBenchmarkAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaapConcentrationRiskBenchmarkDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapConcentrationRiskByBenchmarkAxis" xlink:to="loc_us-gaapConcentrationRiskBenchmarkDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaapConcentrationRiskBenchmarkDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapConcentrationRiskByBenchmarkAxis" xlink:to="loc_us-gaapConcentrationRiskBenchmarkDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountsReceivableMember" xlink:label="loc_us-gaapAccountsReceivableMember_0"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapConcentrationRiskBenchmarkDomain" xlink:to="loc_us-gaapAccountsReceivableMember_0" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskByTypeAxis" xlink:label="loc_us-gaapConcentrationRiskByTypeAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapConcentrationRiskTable" xlink:to="loc_us-gaapConcentrationRiskByTypeAxis" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaapConcentrationRiskTypeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapConcentrationRiskByTypeAxis" xlink:to="loc_us-gaapConcentrationRiskTypeDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaapConcentrationRiskTypeDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapConcentrationRiskByTypeAxis" xlink:to="loc_us-gaapConcentrationRiskTypeDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditConcentrationRiskMember" xlink:label="loc_us-gaapCreditConcentrationRiskMember_0"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapConcentrationRiskTypeDomain" xlink:to="loc_us-gaapCreditConcentrationRiskMember_0" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MajorCustomersAxis" xlink:label="loc_srtMajorCustomersAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapConcentrationRiskTable" xlink:to="loc_srtMajorCustomersAxis" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_NameOfMajorCustomerDomain" xlink:label="loc_srtNameOfMajorCustomerDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtMajorCustomersAxis" xlink:to="loc_srtNameOfMajorCustomerDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_NameOfMajorCustomerDomain" xlink:label="loc_srtNameOfMajorCustomerDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtMajorCustomersAxis" xlink:to="loc_srtNameOfMajorCustomerDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_ValtaSolarLLCMember" xlink:label="loc_spiValtaSolarLLCMember_0"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtNameOfMajorCustomerDomain" xlink:to="loc_spiValtaSolarLLCMember_0" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_ThermiVentureSAMember" xlink:label="loc_spiThermiVentureSAMember_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtNameOfMajorCustomerDomain" xlink:to="loc_spiThermiVentureSAMember_10" xlink:type="arc" order="13"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_AESDistributionEnergyLLCMember" xlink:label="loc_spiAESDistributionEnergyLLCMember_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtNameOfMajorCustomerDomain" xlink:to="loc_spiAESDistributionEnergyLLCMember_20" xlink:type="arc" order="23"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_KDCSolarDesignedLLCMember" xlink:label="loc_spiKDCSolarDesignedLLCMember_30"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtNameOfMajorCustomerDomain" xlink:to="loc_spiKDCSolarDesignedLLCMember_30" xlink:type="arc" order="33"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountsReceivableGross" xlink:label="loc_us-gaapAccountsReceivableGross_210"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapConcentrationRiskLineItems" xlink:to="loc_us-gaapAccountsReceivableGross_210" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskPercentage1" xlink:label="loc_us-gaapConcentrationRiskPercentage1_210"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapConcentrationRiskLineItems" xlink:to="loc_us-gaapConcentrationRiskPercentage1_210" xlink:type="arc" order="2"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/SegmentInformationDetails-ByProduct" xlink:title="00000120 - Disclosure - 28. Segment information (Details - By Product)"> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems" xlink:label="loc_us-gaapEntityWideInformationRevenueFromExternalCustomerLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable" xlink:label="loc_us-gaapScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapEntityWideInformationRevenueFromExternalCustomerLineItems" xlink:to="loc_us-gaapScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductOrServiceAxis" xlink:label="loc_srtProductOrServiceAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable" xlink:to="loc_srtProductOrServiceAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srtProductsAndServicesDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtProductOrServiceAxis" xlink:to="loc_srtProductsAndServicesDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srtProductsAndServicesDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtProductOrServiceAxis" xlink:to="loc_srtProductsAndServicesDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_PhotoVoltaicSolarComponentsMember" xlink:label="loc_spiPhotoVoltaicSolarComponentsMember_0"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtProductsAndServicesDomain" xlink:to="loc_spiPhotoVoltaicSolarComponentsMember_0" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_PredevelopmentProjectSalesMember" xlink:label="loc_spiPredevelopmentProjectSalesMember_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtProductsAndServicesDomain" xlink:to="loc_spiPredevelopmentProjectSalesMember_10" xlink:type="arc" order="11"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_PhotoVoltaicProjectAssetsMember" xlink:label="loc_spiPhotoVoltaicProjectAssetsMember_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtProductsAndServicesDomain" xlink:to="loc_spiPhotoVoltaicProjectAssetsMember_20" xlink:type="arc" order="21"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_PowerPurchaseAgreementsPPAMember" xlink:label="loc_spiPowerPurchaseAgreementsPPAMember_30"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtProductsAndServicesDomain" xlink:to="loc_spiPowerPurchaseAgreementsPPAMember_30" xlink:type="arc" order="31"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_BitcoinMiningEquipmentSaleAndHostingServiceMember" xlink:label="loc_spiBitcoinMiningEquipmentSaleAndHostingServiceMember_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtProductsAndServicesDomain" xlink:to="loc_spiBitcoinMiningEquipmentSaleAndHostingServiceMember_40" xlink:type="arc" order="41"/> |
| | <link:loc xlink:type="locator" xlink:href="spi-20181231.xsd#spi_OtherServicesMember" xlink:label="loc_spiOtherServicesMember_50"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtProductsAndServicesDomain" xlink:to="loc_spiOtherServicesMember_50" xlink:type="arc" order="51"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Revenues" xlink:label="loc_us-gaapRevenues_220"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapEntityWideInformationRevenueFromExternalCustomerLineItems" xlink:to="loc_us-gaapRevenues_220" xlink:type="arc" order="0"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/SegmentInformationDetails-Geographic" xlink:title="00000121 - Disclosure - 28. Segment information (Details - Geographic)"> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentReportingInformationLineItems" xlink:label="loc_us-gaapSegmentReportingInformationLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:label="loc_us-gaapScheduleOfSegmentReportingInformationBySegmentTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapSegmentReportingInformationLineItems" xlink:to="loc_us-gaapScheduleOfSegmentReportingInformationBySegmentTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_StatementGeographicalAxis" xlink:label="loc_srtStatementGeographicalAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapScheduleOfSegmentReportingInformationBySegmentTable" xlink:to="loc_srtStatementGeographicalAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srtSegmentGeographicalDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtStatementGeographicalAxis" xlink:to="loc_srtSegmentGeographicalDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srtSegmentGeographicalDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtStatementGeographicalAxis" xlink:to="loc_srtSegmentGeographicalDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_GB" xlink:label="loc_countryGB_0"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtSegmentGeographicalDomain" xlink:to="loc_countryGB_0" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_AU" xlink:label="loc_countryAU_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtSegmentGeographicalDomain" xlink:to="loc_countryAU_10" xlink:type="arc" order="11"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_US" xlink:label="loc_countryUS_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtSegmentGeographicalDomain" xlink:to="loc_countryUS_20" xlink:type="arc" order="21"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_GR" xlink:label="loc_countryGR_30"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtSegmentGeographicalDomain" xlink:to="loc_countryGR_30" xlink:type="arc" order="31"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_JP" xlink:label="loc_countryJP_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtSegmentGeographicalDomain" xlink:to="loc_countryJP_40" xlink:type="arc" order="41"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_IT" xlink:label="loc_countryIT_50"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtSegmentGeographicalDomain" xlink:to="loc_countryIT_50" xlink:type="arc" order="51"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_DE" xlink:label="loc_countryDE_60"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtSegmentGeographicalDomain" xlink:to="loc_countryDE_60" xlink:type="arc" order="61"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Revenues" xlink:label="loc_us-gaapRevenues_250"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSegmentReportingInformationLineItems" xlink:to="loc_us-gaapRevenues_250" xlink:type="arc" order="0"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/SegmentInformationDetails-Long-livedAssets" xlink:title="00000122 - Disclosure - 28. Segment information (Details - Long-lived assets)"> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems" xlink:label="loc_us-gaapRevenuesFromExternalCustomersAndLongLivedAssetsLineItems"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable" xlink:label="loc_us-gaapScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapRevenuesFromExternalCustomersAndLongLivedAssetsLineItems" xlink:to="loc_us-gaapScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable" xlink:type="arc" order="10" xbrldt:closed="true"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_StatementGeographicalAxis" xlink:label="loc_srtStatementGeographicalAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable" xlink:to="loc_srtStatementGeographicalAxis" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srtSegmentGeographicalDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtStatementGeographicalAxis" xlink:to="loc_srtSegmentGeographicalDomain" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srtSegmentGeographicalDomain_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtStatementGeographicalAxis" xlink:to="loc_srtSegmentGeographicalDomain_10" xlink:type="arc" order="30"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_GR" xlink:label="loc_countryGR_0"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtSegmentGeographicalDomain" xlink:to="loc_countryGR_0" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_US" xlink:label="loc_countryUS_10"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtSegmentGeographicalDomain" xlink:to="loc_countryUS_10" xlink:type="arc" order="11"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_IT" xlink:label="loc_countryIT_20"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtSegmentGeographicalDomain" xlink:to="loc_countryIT_20" xlink:type="arc" order="21"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_JP" xlink:label="loc_countryJP_30"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtSegmentGeographicalDomain" xlink:to="loc_countryJP_30" xlink:type="arc" order="31"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_GB" xlink:label="loc_countryGB_40"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtSegmentGeographicalDomain" xlink:to="loc_countryGB_40" xlink:type="arc" order="41"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_AU" xlink:label="loc_countryAU_50"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtSegmentGeographicalDomain" xlink:to="loc_countryAU_50" xlink:type="arc" order="51"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_DE" xlink:label="loc_countryDE_60"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtSegmentGeographicalDomain" xlink:to="loc_countryDE_60" xlink:type="arc" order="61"/> |
| | <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoncurrentAssets" xlink:label="loc_us-gaapNoncurrentAssets_170"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapRevenuesFromExternalCustomersAndLongLivedAssetsLineItems" xlink:to="loc_us-gaapNoncurrentAssets_170" xlink:type="arc" order="0"/> |
| | </link:definitionLink> |
| <link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/RelatedPartyTransactionsDetailsNarrative" xlink:title="00000123 - Disclosure - 29. Related Party Transactions (Details Narrative)"/> |
| </link:linkbase> |