![]() ![]() code changes to the rserver process (src/cpp/server) require you to stop it, recompile with ninja, and run it again.Note: important that you name this folder build or build-*.RServer and RSession (native C++ components) This is normally how you want to work only build RStudio Desktop if you are making desktop-specific changes (fairly rare).Good idea to re-run that script after each git pull (it doesn't take nearly as long on subsequent runs).The initial run takes a long time and may prompt you for credentials along the way.go to and clone the repo (steps below assume you cloned to ~/rstudio but that's not required).(M1 Only) If /usr/local/bin is first on the path you will need to adjust your path to put /opt/homebrew/bin first.(M1 Only) At this point confirm (in terminal) that which brew points to /opt/homebrew/bin/brew this is the native M1 brew and is what you normally want to use.(M1 Only) Run the install command again, prefixed with arch -x86_64 to force it to install the Intel flavor.(M1 Only) execute the two suggested commands at end of setup to ensure "brew" is on the path.Install using command shown at when it completes. ![]() Find Qt 5.12.10, expand it, and select the macOS and Qt WebEngine components.On "Select Components" screen, select Archive then click Filter button, otherwise you won't see version 5.12.10.Select "Custom installation" (the default).Use the default installation folder (~/Qt).You already installed the command-line tools and can ignore this erroneous warning. As of this writing, the installer warns that you need to install XCode and the command-line tools.(Spotted Wakerobin or older only) Install Qt 5.12.10 via "Download the Qt Online Installer" near bottom of.Install the XCode command-line tools (C++ compiler and friends), from the terminal: xcode-select -install.For M1, this is fine because when running RStudio Desktop because both will be x86_64 and run with Rosetta2. You might see a "Package Authoring Error" message when running this command.From the terminal: /usr/sbin/softwareupdate -install-rosetta -agree-to-license You will be prompted to do this when necessary, but I like to get it out of the way up front. (M1 Only) Install Rosetta2 so Intel binaries will work.RStudio Desktop (Qt) can only be built for Intel (Qt limitation) UPDATE: as of Elsbeth Geranium (starting summer 2022) we are no longer building the Qt-based open-source desktop, only Electron, so it is no longer necessary to install Qt unless you need to build Qt-based Desktop IDE for Spotted-Wakerobin or older or need to build RStudio Desktop Pro, which is still Qt-based but will be converted to Electron in a future release.RStudio Server and Electron desktop can be built and executed entirely M1 native.Homebrew package manager ( ) must be installed twice once for M1, once for Intel.If you're familiar with setting up an Intel Mac for RStudio development, here are the differences: Summary of Differences from Intel Machine Setup These steps can also be used on an Intel Mac just leave out the parts annotated with (M1 Only). This will enable building and debugging RStudio Server and RStudio Desktop (both QtWebEngine and Electron flavors). How to go from a clean M1 Mac to an RStudio IDE development machine. ![]()
0 Comments
Leave a Reply. |