Quad boot

  1. ใช้ Disk Utilities จัดเตรียม Partition ดังนี้
    • /dev/hda2 MacOS
    • /dev/hda3 Windows 7
    • /dev/hda4 Windows XP
    • /dev/hda5 Ubuntu
    • /dev/hda6 Swap
  2. ติดตั้ง MacOS X
  3. ติดตั้ง rEFIt แล้ว Restart สัก 2 ครั้ง
  4. ติดตั้ง Ubuntu
  5. ติดตั้ง Windows 7
  6. ติดตั้ง Windows XP
  7. กู้คืน bootloader ของ Windows 7
  8. ติดตั้ง dual boot (Windows XP & Windows 7)
  9. กู้คืน GRUB2

Note: GRUB2 ติดตั้งที่ MBR, bootloader ของ Windows ติดตั้งที่ Partition ของ Windows 7

How to install Windows XP over Windows 7 in a dual boot ?

ติดตั้ง Windows 7 และ Windows XP ตัวเต็มในเครื่องเดียวกัน โดยสามารถเลือกได้ว่าจะใช้งาน OS ตัวไหน

DSC00107

  1. Windows 7 บน Drive C
  2. Windows XP บน Drive D โดยหลังจาก Restart เครื่อง จะ boot เข้า Windows XP เพราะ bootloader ของ Windows XP ทำการเขียนทับ bootloader ของ Windows 7
  3. To restore Windows 7, you need to Boot from the Windows 7 DVD and “Repair your computer
  4. After repairing, your system will restart and boot into Windows 7.
  5. Download and Install EasyBCD (2.0.2) on your Windows 7 to add boot entry for XP.
  6. Launch the program and select ‘Add New Entry’. Under “Operating Systems” open the Windows tab, select the Type as “Windows NT/2k/XP/2k3” and click on ‘Add Entry’.
    EasyBCD
  7. The entry for Windows XP would be added instantly. You can choose the default OS to boot and modify the boot menu time-out from “Edit Boot Menu” option.

ที่มา: webtrickz.com/

How To Perform a Startup Repair in Windows 7

  1. Boot From the Windows 7 DVD
  2. Wait for Windows 7 to Load Files
  3. Choose Windows 7 Setup Language and Other Settings
  4. Click on the Repair Your Computer Link
  5. Wait for System Recovery Options to Locate Windows 7 on Your Computer
  6. Choose Your Windows 7 Installation
  7. Choose the Startup Repair Recovery Tool
  8. Wait While Startup Repair Searches for Problems with Windows 7 Files
  9. Wait While Startup Repair Attempts to Repair Windows 7 Files
  10. Click Finish to Restart to Windows 7

ที่มา: pcsupport.about.com

Using OpenCV-2.1.0 with MS Visual C++ 2010 on Windows 7

ที่มา: Using OpenCV-2.1.0 with MS Visual C++ 2010 on Windows 7

 

หลังจากติดตั้งเสร็จ พอรัน helloworld เจอ error ดังนี้

The application was unable to start correctly (0*0150002). Click Ok to close the application.

วิธีแก้

ไปที่ Project -> Proporties -> Linker-> Input -> Additional Dependencies

จากนั้นเปลี่ยนจาก cv210d.lib; cvaux210d.lib; cxcore210d.lib; highgui210d.lib; ml210d.lib;

เป็น cv210.lib; cvaux210.lib; cxcore210.lib; highgui210.lib; ml210.lib; opencv_ffmpeg210.lib;

ก็จะไม่ error อีก

 

นอกจาก error แล้ว ยังมีคำเตือนคำเตือนเหล่านี้อีก

‘C:\Windows\SysWOW64\ntdll.dll’, Cannot find or open the PDB file
‘C:\Windows\SysWOW64\kernel32.dll’, Cannot find or open the PDB file
‘C:\Windows\SysWOW64\kernellbase.dll’, Cannot find or open the PDB file

วิธีแก้

Go to Tools->Options->Debugging->Symbols and select checkbox “Microsoft Symbol Servers”

http://stackoverflow.com/questions/4813975/why-is-visual-studio-2010-not-able-to-find-open-pdb-files

แต่หลังจากแก้ไข้แล้ว เจอ คำเตือนอันใหม่ดังนี้

‘OpenCV_helloworld.exe’: Loaded ‘C:\OpenCV2.2\bin\opencv_imgproc220d.dll’, Cannot find or open the PDB file
‘OpenCV_helloworld.exe’: Loaded ‘C:\WINDOWS\system32\imm32.dll’, Symbols loaded (source information stripped).

ยังไม่รู้ว่าแก้ยังไง

 

VS2010: IntelliSense: #error directive: Please use the /MD switch for _AFXDLL builds

สร้าง Project ใหม่แบบ MFC และเลือก Shared Library พอสั่งรันแล้วเกิด Error ดังนี้

IntelliSense: #error directive: Please use the /MD switch for _AFXDLL builds

ให้แก้ไขโดยคลิกขวาที่ Project เลือก properties > Configuration Properties > C/C++ > Code Generation

จากนั้นให้ดูที่ Runtime Libraryจะมีค่า default เป็น Multi-threaded Debug DLL (/MDd) แต่ไม่ใช่ตัวหนา

จากนั้นให้เปลี่ยนเป็นค่าอื่นก่อน แล้วเลือกกลับมาเป็น Runtime Library ให้เป็น Multi-threaded Debug DLL (/MDd) อีกครั้ง จะสังเกตุเห็นได้ว่า คำว่า Multi-threaded Debug DLL (/MDd) กลายเป็นตัวหนาแล้ว เป็นอันเสร็จ

อันนี้เข้าใจว่าเป็น Bug ของ VC 2010

vs2010

ที่มา: connect.microsoft.combasharatspace.blogspot.com