Changeset 107100 in vbox for trunk/src/VBox
- Timestamp:
- Nov 22, 2024 2:22:42 AM (2 months ago)
- Location:
- trunk/src/VBox/Frontends
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp
r106061 r107100 43 43 #include <VBox/log.h> 44 44 #include <VBox/version.h> 45 #include <iprt/arch.h> 45 46 #include <iprt/buildconfig.h> 46 47 #include <iprt/ctype.h> … … 55 56 #include <iprt/errcore.h> 56 57 #include <iprt/thread.h> 58 #include <iprt/system.h> 57 59 #include <VBoxVideo.h> 58 60 … … 1152 1154 } 1153 1155 1156 /* Before we try to initialize COM, make sure we're not running inside 1157 an emulator (these days, running amd64 code in an emulator on arm64). */ 1158 uint32_t const uNativeArch = RTSystemGetNativeArch(); 1159 if (uNativeArch != RT_ARCH_VAL && uNativeArch != 0) 1160 { 1161 RTMsgError("Binary (%s) doesn't match the host CPU (%s)!", 1162 RTArchValToString(RT_ARCH_VAL), RTArchValToString(uNativeArch)); 1163 return RTEXITCODE_FAILURE; 1164 } 1165 1154 1166 HRESULT hrc; 1155 1167 int vrc; -
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r106061 r107100 47 47 #include <VBox/version.h> 48 48 49 #include <iprt/arch.h> 49 50 #include <iprt/asm.h> 50 51 #include <iprt/buildconfig.h> … … 57 58 #include <iprt/stream.h> 58 59 #include <iprt/string.h> 60 #include <iprt/system.h> 59 61 60 62 #include <signal.h> … … 787 789 { 788 790 /* 791 * Before we try to initialize COM, make sure we're not running inside 792 * an emulator (these days, running amd64 code in an emulator on arm64). 793 */ 794 uint32_t const uNativeArch = RTSystemGetNativeArch(); 795 if (uNativeArch != RT_ARCH_VAL && uNativeArch != 0) 796 { 797 RTMsgError("Binary (%s) doesn't match the host CPU (%s)!", 798 RTArchValToString(RT_ARCH_VAL), RTArchValToString(uNativeArch)); 799 return RTEXITCODE_FAILURE; 800 } 801 802 /* 789 803 * Initialize COM. 790 804 */ -
trunk/src/VBox/Frontends/VirtualBox/src/main.cpp
r106350 r107100 49 49 50 50 /* Other VBox includes: */ 51 #include <iprt/arch.h> 51 52 #include <iprt/buildconfig.h> 52 53 #include <iprt/stream.h> 54 #include <iprt/system.h> 53 55 #include <VBox/err.h> 54 56 #include <VBox/version.h> … … 554 556 #endif /* VBOX_WS_NIX */ 555 557 558 /* Make sure we're not running inside an emulator (these days, 559 * running amd64 code in an emulator on arm64). */ 560 uint32_t const uNativeArch = RTSystemGetNativeArch(); 561 if (uNativeArch != RT_ARCH_VAL && uNativeArch != 0) 562 { 563 QString strMsg = QApplication::tr("This VirtualBox application was built for a different CPU architecture (<b>%1</b>) than the host (<b>%2</b>). Please reinstall.") 564 .arg(RTArchValToString(RT_ARCH_VAL)) 565 .arg(RTArchValToString(uNativeArch)); 566 QMessageBox::critical(0, QApplication::tr("Mismatching CPU Architecture"), 567 strMsg, QMessageBox::Abort, QMessageBox::NoButton); 568 break; 569 } 570 556 571 /* Create modal-window manager: */ 557 572 UIModalWindowManager::create();
Note:
See TracChangeset
for help on using the changeset viewer.