FooBar's Note-To-Self¶
This has some details on how to set up a compile environment on Windows using a virtual Linux environment. There are no detailed instructions, just some hints on what I need to set everything up again after a format-C.
Mercurial
TortoiseHg will do just fine on Windows. Download and install keeping the default settings.¶
There will be a Mercurial.ini in userprofile. In case you were a fool and didn't backup it, it needs to have the following:
[ui] merge = kdiff3 username = username <user@example.net> ssh = "C:\Program Files\TortoiseHg\TortoisePlink.exe" -ssh -2 -i D:\dev\connectivity\foobar-hg.ppk [tortoisehg] vdiff = vdiff overlayicons = localdisks [extensions] mq = eol =
In case I lost D:\dev, I probably should use the ssh link on the repository page and use that instead. Figure out how to use that; that also involves changing the current clone/update paths configured for the repositories I already have.
Text editor¶
Use Notepad++
Linux virtual environment¶
Virtualbox- No need to install network bridge and host-only adapters. Then you don't have Windows cluttered with two additional network adapters you don't use anyways.
- Set up shared folder to D:\TTD\grf-dev
- It looks nicer than Ubuntu and comes with less crap-you-don't-need.
- Use sudo bash for root terminal access
- Use Applications > System Tools > Add/Remove Software to install the following
- kernel-devel (used by vboxadditions)
- kernel-headers (used by vboxadditions)
- gcc (used by makefile)
- gcc-c++ (possibly not used at all, but I assume it's used by vboxadditions)
- binutils (possibly not used at all)
- mercurial (used by makefile to determine version etc.)
- python (used by makefile and nml)
- When asked to confirm dependent packages, you can't see the confirm button. Use 4x tab and enter instead to reach it.
- Vboxadditions
- Install in order to use shared folders
- Shared folder
- shared folder can be found in /media if automount is enabled in virtualbox settings
- Applications > Other > Users and Groups to become member of group vboxsf; relogin to apply change.
- Classic Gnome layout that actually works in virtualbox
- Don't fall in the trap of Gnome 3: you cannot find anything as it's hidden behind 6 billion mouse clicks plus you have to wait 3 million lightyears for it to respond.
- Disable 3D video support in virtualbox settings
- In Fedora, go into System Settings > System Info > Graphics
- Enable Forced Fallback mode
- Enable 3D video support in virtualbox settings
GRFCodec/NFORenum
Get them from the package manager:
- grfcodec
- nforenum
NML
First get from the package manager:
- python-imaging
- python-ply
- python-setuptools
Also get the nml repository, then run python setup.py install from the nml repository
Mercurial
- To avoid "untrusted group" messages from mercurial, create:
- ~/.hgrc
- add content:
[trusted] users = foobar groups = foobar, vboxsf