On which env are you? If you're on Linux, did you follow https://wiki.documentfoundation.org/Development/BuildingOnLinux ? (see https://wiki.documentfoundation.org/Development in general) If not, what steps have you done precisely?