Where to put development files - Ubuntu

Sorry if this is a noob question (I'm pretty sure it is...)

On Windows I've always put libraries in c:/library_name/. What is the conventional location on Ubuntu? Is it just '/', or somewhere more specific?
On Windows I've always put libraries in c:/library_name/.


Xander314 -- doesn't your root get rather cluttered?

I would at least create (e.g.)

C:\Development\<lib name>

or C:\Source\... / C:\Sources\... etc.

At work, we have a standard layout mandated for source and standard tools, so if you're away on holiday (and forgot to commit something before leaving) or ill, and someone needs to find something on your machine they no exactly where to look. (You were allowed to switch root, so D:\Development, etc were also OK)

C:\Development\SDKs\<lib name>

And

C:\Development\3rdParty\<lib name>

are common names for folder where 3rd party SDKs live.

Andy

P.S. I did used to install the Microsoft SDK in the root, as it was so big. But it now installs itself in C:\Program Files\...
Xander314 -- doesn't your root get rather cluttered?

Yep ;)

Mind you, this was only libraries without installers. As you said, the Windows SDK installs to Program Files, as did the DirectX when I used that ages ago IIRC.

Previously I had FreeType, SDL, SFML, DevIL and all sorts loose on my root drive. However, most of them were only ever installed for experimentation. I've now reinstalled Windows and as I don't currently have much time for development (and because I'm now using Linux), I shan't be getting many libraries to clutter things up.

Maybe I shall do something like that now, though.
Last edited on
Just my two cents: I prefer to have a directory structure like this:
(My Documents)/C++/include/
(My Documents)/C++/lib/
The exceptions being libraries with installers, like DirectX and Windows SDK, or large libraries, like Boost and Qt, which I keep in trees of their own.
And do I then put the built binaries (.a and .so) loose in /usr/lib? Or do I add /usr/lib/sfml2/lib to /etc/ld.so.conf?
Topic archived. No new replies allowed.