I take it you mean, automate the install of the deps the same way I install the project? I spoke to one of the team leaders, he says that wouldn't be efficient and it's not the way things are done. Besides, there would be far too many to include...
I mean, include the dependencies in the project repo, so the build system will get them at the same time as the project.
"Not the way things are done" isn't a complete argument, and i think the efficiency argument needs some more fleshing out. You need to get the dependencies some way, and it's best if it is automatically reproducible.
Like I said there are a lot of deps. If you're interested trying running "apt-rdepends wireshark"...
The build system builds my project source just like it would have to with the dependencies. I could find RPMs for some of them but it would still be a hefty task.
Anyway the team leader suggested I pull in the dependencies from a public server that the company uses and that's what I'm working on right now. It's not on the same server as projects but it'll insure that the program can be build in our labs...
Anyway, I'm a student on my first work term so sorry if I don't fully grasp what you mean...
If you can pull in well-specified dependencies from a central server, that is fine too. As long as it is automatically reproducible.
What i was talking about was for example having a subdirectory "lib" or similar, which contained all the already built dependencies. In the Java case that would be a bunch of jar-files. But as i understand it you're coding in C which is slightly harder with its platform dependency.
I've never done it with C code myself, but you'd probably use the -I and -L parameters of the C compiler to tell it where to find the includes and libraries in the project. And you'd need a <project>/deps/include for the *.h files.
Uggh! Sounds like a lot of reading and troubleshooting to me lol.
The thing is any of the upper level dev team members could probably solve this issue in less than a day. It would be no problem for them. But I'm brand new to all of this. The build system, using git, even linux(I've only been using it for 3 months).
Anyway, thanks for your input. In all likelihood I'll have to ask someone to sit down with me and help me out.
1
u/kreiger Mar 14 '11
Include the dependencies in the project instead of installing them.