mac initial use record 1

  1. Turn off automatic sleep
    this is really annoying, give me one minute auto-sleep the
    upper left corner click on the display , or by clicking the bottom of the set stuff like icons (actually System Preferences) -> Click saving -> Click Power Adapter -> choose to never turn off the display

  2. Apple application development tools: Xcode, update about the system and Xcode, finished updating the system after the update go to Xcode, encounters an error, it has been unable to solve.
    Later choose to uninstall existing Xcode, then go to the app store appstore download Xcode, this software is free, but you need to log in to your AppleID
    uninstall Xcode

  3. By installing the software installation package
    directly click, unpack, and then copied to the under / usr / local

  4. Quick access to up to a folder
    shift + command + g then enter your directory path

  5. Create a c ++ program
    Click create a new Xcode project -> Click macos -> click on the command line tool -> select c ++ language - after> created, the project will be main.cpp File -> press command + R to run (you can also point the upper left corner of the run button S), wait for it, the console will appear Hello, World!

  6. Hope written before can run c ++ program, according to this, the feeling is run directly

  7. Then compile DBoW2
    the make -j8 encountered an error

    DBoW2/DBoW2/FORB.cpp:16:10: fatal error:
    			'stdint-gcc.h' file not found
    #include <stdint-gcc.h>
    

    Compile g2o also encountered some mistakes: tr1/unordered_map file not found
    find a moment, not how to find a solution, then suddenly thought of these should have a corresponding system version, and then git up and down in the corresponding version, compiled directly by the

  8. And then directly on the git downloaded a version orbslam-macos project links , but make -j last the entire project has encountered an error no rule to make traget '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/OpenGL.framework', then find someone like me wrong solution
    but this does not completely solve my problem (but feel pretty fly, because I itself, there are other issues), carefully looked at the error /Frameworks/OpenGL.framework我这个不存在
    and then look at the tutorial that you want to install all the libraries through the brew, so I plan to install it through the brew opencv2
    opencv2 installation tutorial

    brew tap homebrew/science
    brew install opencv
    

    But encountered a problem that 我的Xcode版本太低 Your Xcode (1) is too outdated. please update to Xcode 9.2, but I was directly uninstall Xcode, then installed directly through the AppStore, in general, the default install the latest version of the system is suitable, so I decided to update the look system, do not bother thinking about other ways , then I should be able to update directly from the AppStore version of Xcode
    so now update your system 点击AppStore--> 搜索macOS--> 然后有一个macOS Catalina(这个自己根据自己搜索出来的选择),选择获取-->然后开始检测系统更新--> 后来弹出来说这个和我现有系统不兼容,然后可以选择将现有系统更新,点更新就好了
    after the update finished, go AppStore update this option or not, you had to follow the terminal prompts to manually https://developer.apple.com/download / more / download the official website, but the hard-working one, go to Baidu a bit, to see other people have this wrong
    and sure enough, my silly, Xcode has the latest version of the solution is to update the homebrew reference links

    ```
    brew update-reset
    ```
    
  9. Shortcuts: win and Ubuntu from ctrl replaced Command

    Command+x 剪切
    Command+c 复制
    Command+v 粘贴
    Shift+Command+z 反向执行撤销命令
    Command+a 全选
    Command+f 查找
    Command+del 删除
    
发布了93 篇原创文章 · 获赞 29 · 访问量 4万+

Guess you like

Origin blog.csdn.net/ljl1015ljl/article/details/102771781