Build log4cxx [DEBIAN]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












Where to start when building log4cxx package, do I need some other packages for bulding this?



I tried with this tutorial but unsuccessful.



If it's possible I would like someone to explain to me whole process of building, installing this log4cxx package. .










share|improve this question























  • Why do you want to built the package by hand? There is already a pre-built Log4cxx package for Debian. The build-dependencies are listed in debian/control of the corresponding source package.
    – jofel
    Jul 1 '15 at 14:35














up vote
0
down vote

favorite












Where to start when building log4cxx package, do I need some other packages for bulding this?



I tried with this tutorial but unsuccessful.



If it's possible I would like someone to explain to me whole process of building, installing this log4cxx package. .










share|improve this question























  • Why do you want to built the package by hand? There is already a pre-built Log4cxx package for Debian. The build-dependencies are listed in debian/control of the corresponding source package.
    – jofel
    Jul 1 '15 at 14:35












up vote
0
down vote

favorite









up vote
0
down vote

favorite











Where to start when building log4cxx package, do I need some other packages for bulding this?



I tried with this tutorial but unsuccessful.



If it's possible I would like someone to explain to me whole process of building, installing this log4cxx package. .










share|improve this question















Where to start when building log4cxx package, do I need some other packages for bulding this?



I tried with this tutorial but unsuccessful.



If it's possible I would like someone to explain to me whole process of building, installing this log4cxx package. .







debian c++ api






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 18 at 10:07









Rui F Ribeiro

38.2k1475123




38.2k1475123










asked Jul 1 '15 at 12:07







user120425


















  • Why do you want to built the package by hand? There is already a pre-built Log4cxx package for Debian. The build-dependencies are listed in debian/control of the corresponding source package.
    – jofel
    Jul 1 '15 at 14:35
















  • Why do you want to built the package by hand? There is already a pre-built Log4cxx package for Debian. The build-dependencies are listed in debian/control of the corresponding source package.
    – jofel
    Jul 1 '15 at 14:35















Why do you want to built the package by hand? There is already a pre-built Log4cxx package for Debian. The build-dependencies are listed in debian/control of the corresponding source package.
– jofel
Jul 1 '15 at 14:35




Why do you want to built the package by hand? There is already a pre-built Log4cxx package for Debian. The build-dependencies are listed in debian/control of the corresponding source package.
– jofel
Jul 1 '15 at 14:35










1 Answer
1






active

oldest

votes

















up vote
2
down vote



accepted










I'm assuming that the default version of the package does not fulfil your needs and that you need to either tweak the source or configuration.



Try following these steps:



Get all of the dependencies required to build log4cxx



sudo apt-get build-deps log4cxx



Download the source for the log4cxx package



apt-get source log4cxx



Change directory to source directory



cd log4cxx-0.10.0



Note you may need to tweak this for the version number that came with your system



You should make any changes you require at this point. Note that if you take a copy of the source directory at this point it will be easy to create a patch with your changes later.



If you want to change configure options look in debian/rules for "./configure", this is where configure is called when the debian package is built, add anything you require here. For example, try changing the line to:



./configure --prefix=/usr --with-SMTP



This will build the package with SMTP support.



The final step is to rebuild the package:



dpkg-buildpackage -b



The result will be a newly created debian configured for your purposes.



You can install the debian with



sudo dpkg -i ../liblog4cxx10_0.10.0-1.2ubuntu2_amd64.deb



Note that your file name may be slightly different here depending on your system architecture and the version of log4cxx you retrieved from the repositories.



I would recommend you also change the packages version number and maintainer in debian/control so that you can differentiate between your package and the default one. Beware that if another package depends on a specific version of log4cxx then your package will no longer satisfy the dependency.



I recommend this question for further information.






share|improve this answer






















    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f213299%2fbuild-log4cxx-debian%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown
























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    2
    down vote



    accepted










    I'm assuming that the default version of the package does not fulfil your needs and that you need to either tweak the source or configuration.



    Try following these steps:



    Get all of the dependencies required to build log4cxx



    sudo apt-get build-deps log4cxx



    Download the source for the log4cxx package



    apt-get source log4cxx



    Change directory to source directory



    cd log4cxx-0.10.0



    Note you may need to tweak this for the version number that came with your system



    You should make any changes you require at this point. Note that if you take a copy of the source directory at this point it will be easy to create a patch with your changes later.



    If you want to change configure options look in debian/rules for "./configure", this is where configure is called when the debian package is built, add anything you require here. For example, try changing the line to:



    ./configure --prefix=/usr --with-SMTP



    This will build the package with SMTP support.



    The final step is to rebuild the package:



    dpkg-buildpackage -b



    The result will be a newly created debian configured for your purposes.



    You can install the debian with



    sudo dpkg -i ../liblog4cxx10_0.10.0-1.2ubuntu2_amd64.deb



    Note that your file name may be slightly different here depending on your system architecture and the version of log4cxx you retrieved from the repositories.



    I would recommend you also change the packages version number and maintainer in debian/control so that you can differentiate between your package and the default one. Beware that if another package depends on a specific version of log4cxx then your package will no longer satisfy the dependency.



    I recommend this question for further information.






    share|improve this answer


























      up vote
      2
      down vote



      accepted










      I'm assuming that the default version of the package does not fulfil your needs and that you need to either tweak the source or configuration.



      Try following these steps:



      Get all of the dependencies required to build log4cxx



      sudo apt-get build-deps log4cxx



      Download the source for the log4cxx package



      apt-get source log4cxx



      Change directory to source directory



      cd log4cxx-0.10.0



      Note you may need to tweak this for the version number that came with your system



      You should make any changes you require at this point. Note that if you take a copy of the source directory at this point it will be easy to create a patch with your changes later.



      If you want to change configure options look in debian/rules for "./configure", this is where configure is called when the debian package is built, add anything you require here. For example, try changing the line to:



      ./configure --prefix=/usr --with-SMTP



      This will build the package with SMTP support.



      The final step is to rebuild the package:



      dpkg-buildpackage -b



      The result will be a newly created debian configured for your purposes.



      You can install the debian with



      sudo dpkg -i ../liblog4cxx10_0.10.0-1.2ubuntu2_amd64.deb



      Note that your file name may be slightly different here depending on your system architecture and the version of log4cxx you retrieved from the repositories.



      I would recommend you also change the packages version number and maintainer in debian/control so that you can differentiate between your package and the default one. Beware that if another package depends on a specific version of log4cxx then your package will no longer satisfy the dependency.



      I recommend this question for further information.






      share|improve this answer
























        up vote
        2
        down vote



        accepted







        up vote
        2
        down vote



        accepted






        I'm assuming that the default version of the package does not fulfil your needs and that you need to either tweak the source or configuration.



        Try following these steps:



        Get all of the dependencies required to build log4cxx



        sudo apt-get build-deps log4cxx



        Download the source for the log4cxx package



        apt-get source log4cxx



        Change directory to source directory



        cd log4cxx-0.10.0



        Note you may need to tweak this for the version number that came with your system



        You should make any changes you require at this point. Note that if you take a copy of the source directory at this point it will be easy to create a patch with your changes later.



        If you want to change configure options look in debian/rules for "./configure", this is where configure is called when the debian package is built, add anything you require here. For example, try changing the line to:



        ./configure --prefix=/usr --with-SMTP



        This will build the package with SMTP support.



        The final step is to rebuild the package:



        dpkg-buildpackage -b



        The result will be a newly created debian configured for your purposes.



        You can install the debian with



        sudo dpkg -i ../liblog4cxx10_0.10.0-1.2ubuntu2_amd64.deb



        Note that your file name may be slightly different here depending on your system architecture and the version of log4cxx you retrieved from the repositories.



        I would recommend you also change the packages version number and maintainer in debian/control so that you can differentiate between your package and the default one. Beware that if another package depends on a specific version of log4cxx then your package will no longer satisfy the dependency.



        I recommend this question for further information.






        share|improve this answer














        I'm assuming that the default version of the package does not fulfil your needs and that you need to either tweak the source or configuration.



        Try following these steps:



        Get all of the dependencies required to build log4cxx



        sudo apt-get build-deps log4cxx



        Download the source for the log4cxx package



        apt-get source log4cxx



        Change directory to source directory



        cd log4cxx-0.10.0



        Note you may need to tweak this for the version number that came with your system



        You should make any changes you require at this point. Note that if you take a copy of the source directory at this point it will be easy to create a patch with your changes later.



        If you want to change configure options look in debian/rules for "./configure", this is where configure is called when the debian package is built, add anything you require here. For example, try changing the line to:



        ./configure --prefix=/usr --with-SMTP



        This will build the package with SMTP support.



        The final step is to rebuild the package:



        dpkg-buildpackage -b



        The result will be a newly created debian configured for your purposes.



        You can install the debian with



        sudo dpkg -i ../liblog4cxx10_0.10.0-1.2ubuntu2_amd64.deb



        Note that your file name may be slightly different here depending on your system architecture and the version of log4cxx you retrieved from the repositories.



        I would recommend you also change the packages version number and maintainer in debian/control so that you can differentiate between your package and the default one. Beware that if another package depends on a specific version of log4cxx then your package will no longer satisfy the dependency.



        I recommend this question for further information.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Apr 13 '17 at 12:22









        Community

        1




        1










        answered Jul 1 '15 at 15:13









        Michael Shaw

        61137




        61137



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f213299%2fbuild-log4cxx-debian%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown






            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?