compiling a 3rd party library under linux

Posted on 2007-10-10
Last Modified: 2010-04-01

As most of you know I'm trying to get somewhat up to speed with development under linux. I was able to compile and link to some simple example libraries I made myself using g++ just to see how linking works etc.

Now I have a massive 3rd party library I want to link to, but I need to compile it first (you just download the source files from their website and compile it). Under windows, I would use CMake to generate the vc++ project files and compile it. What do we do for linux? I see the source files include a Makefile file that I guess we can use to compile using g++? Where do I start?

Thanks for all your help
Question by:DJ_AM_Juicebox
    LVL 86

    Accepted Solution

    Usually, you'd start by cd'ing to that direcotry where the makefile resides and type

    $ make config
    $ make all
    $ make install

    which should perform all the necessary steps to configure, build and install the library.
    LVL 86

    Expert Comment

    BTW, the sources should also ship with som READMO or HOWTO file, I'd check that out forst.
    LVL 53

    Expert Comment

    >> BTW, the sources should also ship with som READMO or HOWTO file, I'd check that out forst.

    dito ... certain libraries require different steps to be performed. If so, they will be detailed in the text files that come with the source.

    Author Comment

    thanks, seemed to work.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Suggested Solutions

    Article by: SunnyDark
    This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
    Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
    The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
    The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now