waf -how to add external library to wscript_build fileWaf - How to add a library to a wscript file?How do I use waf to build a shared library?Waf throwing errors on c++ buildsBuilding fortran library with waf, installing .mod filewaf cannot find an existing libraryLinking program with Boost.Asio using waf build systemHow do I create a new compiler profile with Waf?Download, patch, and build an external libraryLinking local shared library with Waf (no lib compilation)Waf - How to add a library to a wscript file?Waf script '1.9.15' and library '1.8.19' do not match

How would a physicist explain this starship engine?

can conjure barrage stack with martial adept- disarming or tripping attack?

Keeping the dodos out of the field

Managing heat dissipation in a magic wand

What defines a person who is circumcised "of the heart"?

Is the default 512 byte physical sector size appropriate for SSD disks under Linux?

Were there any developed countries that became "undeveloped" for reasons other than war?

Why is Ni[(PPh₃)₂Cl₂] tetrahedral?

Why "strap-on" boosters, and how do other people say it?

Existence of a model of ZFC in which the natural numbers are really the natural numbers

How to become an Editorial board member?

Ribbon Cable Cross Talk - Is there a fix after the fact?

amsmath: How can I use the equation numbering and label manually and anywhere?

Shell builtin `printf` line limit?

Island Perimeter

How do I write real-world stories separate from my country of origin?

Can someone get a spouse off a deed that never lived together and was incarcerated?

Department head said that group project may be rejected. How to mitigate?

Way of refund if scammed?

Variable does not Exist: CaseTrigger

Hook second router to internet wirelessly?

Is there any mention of ghosts who live outside the Hogwarts castle?

Find this Unique UVC Palindrome ( ignoring signs and decimal) from Given Fractional Relationship

How do you earn the reader's trust?



waf -how to add external library to wscript_build file


Waf - How to add a library to a wscript file?How do I use waf to build a shared library?Waf throwing errors on c++ buildsBuilding fortran library with waf, installing .mod filewaf cannot find an existing libraryLinking program with Boost.Asio using waf build systemHow do I create a new compiler profile with Waf?Download, patch, and build an external libraryLinking local shared library with Waf (no lib compilation)Waf - How to add a library to a wscript file?Waf script '1.9.15' and library '1.8.19' do not match






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I tried to add an external library to my waf: the winmm.lib library



it looks like this now:



srcs = ['timers.cpp']

LIBS ='winmm.lib';
create_lib('timers', srcs,LIBS)


it doesn't work. It says I vmp library 'winmm.lib.py' was not found in the current library.



can someone help?










share|improve this question




























    0















    I tried to add an external library to my waf: the winmm.lib library



    it looks like this now:



    srcs = ['timers.cpp']

    LIBS ='winmm.lib';
    create_lib('timers', srcs,LIBS)


    it doesn't work. It says I vmp library 'winmm.lib.py' was not found in the current library.



    can someone help?










    share|improve this question
























      0












      0








      0








      I tried to add an external library to my waf: the winmm.lib library



      it looks like this now:



      srcs = ['timers.cpp']

      LIBS ='winmm.lib';
      create_lib('timers', srcs,LIBS)


      it doesn't work. It says I vmp library 'winmm.lib.py' was not found in the current library.



      can someone help?










      share|improve this question














      I tried to add an external library to my waf: the winmm.lib library



      it looks like this now:



      srcs = ['timers.cpp']

      LIBS ='winmm.lib';
      create_lib('timers', srcs,LIBS)


      it doesn't work. It says I vmp library 'winmm.lib.py' was not found in the current library.



      can someone help?







      wsh waf






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 26 '12 at 10:03









      kakushkakush

      1,109113655




      1,109113655






















          2 Answers
          2






          active

          oldest

          votes


















          6














          I have never heard of "create_lib" in waf, so I have no idea what that function is or does, but I'll try to answer your question anyway. Below I have a very basic wscript that is my typical way of setting up a simple project (on linux). If waf is as platform independent as it claims, then this should work for windows as well; I have not tested it. This should create a simple shared library.



          def options(opt):
          opt.load('compiler_cxx')

          def configure(cfg):
          cfg.load('compiler_cxx')
          cfg.check(compiler='cxx',
          lib='winmm',
          mandatory=True,
          uselib_store='WINMM')
          def build(bld)
          srcs = ['timers.cpp']
          libs = ['WINMM']
          incs = ['.']
          bld(features=['cxx','cxxshlib'],
          source=srcs,
          includes=incs,
          target='timers',,
          use=libs,
          )


          In the future please provide your whole wscript and the stack trace so its easier to answer your question.






          share|improve this answer

























          • thanks a lot !!!

            – kakush
            Jan 26 '12 at 16:23






          • 1





            If this answers your question, please accept it as the answer.

            – Doran
            Jan 26 '12 at 16:26



















          0














          I figured this out and the steps are as follows:



          Added following check in the configure function in wscript file. This tells the script to check for the given library file (libmongoclient in this case), and we store the results of this check in MONGOCLIENT.



          conf.check_cfg(package='libmongoclient', args=['--cflags', '--libs'], uselib_store='MONGOCLIENT', mandatory=True)


          After this step, we need to add a package configuration file (.pc) into /usr/local/lib/pkgconfig path. This is the file where we specify the paths to lib and headers. Pasting the content of this file below.



          prefix=/usr/local 
          libdir=/usr/local/lib
          includedir=/usr/local/include/mongo

          Name: libmongoclient
          Description: Mongodb C++ driver
          Version: 0.2
          Libs: -L$libdir -lmongoclient
          Cflags: -I$includedir


          Added the dependency into the build function of the sepcific program which depends on the above library (i.e. MongoClient). Below is an example.



          mobility = bld( target='bin/mobility', features='cxx cxxprogram', source='src/main.cpp', use='mob-objects MONGOCLIENT', )


          After this, run the configure again, and build your code.






          share|improve this answer























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            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',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            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%2fstackoverflow.com%2fquestions%2f9016448%2fwaf-how-to-add-external-library-to-wscript-build-file%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            6














            I have never heard of "create_lib" in waf, so I have no idea what that function is or does, but I'll try to answer your question anyway. Below I have a very basic wscript that is my typical way of setting up a simple project (on linux). If waf is as platform independent as it claims, then this should work for windows as well; I have not tested it. This should create a simple shared library.



            def options(opt):
            opt.load('compiler_cxx')

            def configure(cfg):
            cfg.load('compiler_cxx')
            cfg.check(compiler='cxx',
            lib='winmm',
            mandatory=True,
            uselib_store='WINMM')
            def build(bld)
            srcs = ['timers.cpp']
            libs = ['WINMM']
            incs = ['.']
            bld(features=['cxx','cxxshlib'],
            source=srcs,
            includes=incs,
            target='timers',,
            use=libs,
            )


            In the future please provide your whole wscript and the stack trace so its easier to answer your question.






            share|improve this answer

























            • thanks a lot !!!

              – kakush
              Jan 26 '12 at 16:23






            • 1





              If this answers your question, please accept it as the answer.

              – Doran
              Jan 26 '12 at 16:26
















            6














            I have never heard of "create_lib" in waf, so I have no idea what that function is or does, but I'll try to answer your question anyway. Below I have a very basic wscript that is my typical way of setting up a simple project (on linux). If waf is as platform independent as it claims, then this should work for windows as well; I have not tested it. This should create a simple shared library.



            def options(opt):
            opt.load('compiler_cxx')

            def configure(cfg):
            cfg.load('compiler_cxx')
            cfg.check(compiler='cxx',
            lib='winmm',
            mandatory=True,
            uselib_store='WINMM')
            def build(bld)
            srcs = ['timers.cpp']
            libs = ['WINMM']
            incs = ['.']
            bld(features=['cxx','cxxshlib'],
            source=srcs,
            includes=incs,
            target='timers',,
            use=libs,
            )


            In the future please provide your whole wscript and the stack trace so its easier to answer your question.






            share|improve this answer

























            • thanks a lot !!!

              – kakush
              Jan 26 '12 at 16:23






            • 1





              If this answers your question, please accept it as the answer.

              – Doran
              Jan 26 '12 at 16:26














            6












            6








            6







            I have never heard of "create_lib" in waf, so I have no idea what that function is or does, but I'll try to answer your question anyway. Below I have a very basic wscript that is my typical way of setting up a simple project (on linux). If waf is as platform independent as it claims, then this should work for windows as well; I have not tested it. This should create a simple shared library.



            def options(opt):
            opt.load('compiler_cxx')

            def configure(cfg):
            cfg.load('compiler_cxx')
            cfg.check(compiler='cxx',
            lib='winmm',
            mandatory=True,
            uselib_store='WINMM')
            def build(bld)
            srcs = ['timers.cpp']
            libs = ['WINMM']
            incs = ['.']
            bld(features=['cxx','cxxshlib'],
            source=srcs,
            includes=incs,
            target='timers',,
            use=libs,
            )


            In the future please provide your whole wscript and the stack trace so its easier to answer your question.






            share|improve this answer















            I have never heard of "create_lib" in waf, so I have no idea what that function is or does, but I'll try to answer your question anyway. Below I have a very basic wscript that is my typical way of setting up a simple project (on linux). If waf is as platform independent as it claims, then this should work for windows as well; I have not tested it. This should create a simple shared library.



            def options(opt):
            opt.load('compiler_cxx')

            def configure(cfg):
            cfg.load('compiler_cxx')
            cfg.check(compiler='cxx',
            lib='winmm',
            mandatory=True,
            uselib_store='WINMM')
            def build(bld)
            srcs = ['timers.cpp']
            libs = ['WINMM']
            incs = ['.']
            bld(features=['cxx','cxxshlib'],
            source=srcs,
            includes=incs,
            target='timers',,
            use=libs,
            )


            In the future please provide your whole wscript and the stack trace so its easier to answer your question.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Mar 23 at 20:36









            Yan Foto

            6,67033562




            6,67033562










            answered Jan 26 '12 at 15:37









            DoranDoran

            2,10222137




            2,10222137












            • thanks a lot !!!

              – kakush
              Jan 26 '12 at 16:23






            • 1





              If this answers your question, please accept it as the answer.

              – Doran
              Jan 26 '12 at 16:26


















            • thanks a lot !!!

              – kakush
              Jan 26 '12 at 16:23






            • 1





              If this answers your question, please accept it as the answer.

              – Doran
              Jan 26 '12 at 16:26

















            thanks a lot !!!

            – kakush
            Jan 26 '12 at 16:23





            thanks a lot !!!

            – kakush
            Jan 26 '12 at 16:23




            1




            1





            If this answers your question, please accept it as the answer.

            – Doran
            Jan 26 '12 at 16:26






            If this answers your question, please accept it as the answer.

            – Doran
            Jan 26 '12 at 16:26














            0














            I figured this out and the steps are as follows:



            Added following check in the configure function in wscript file. This tells the script to check for the given library file (libmongoclient in this case), and we store the results of this check in MONGOCLIENT.



            conf.check_cfg(package='libmongoclient', args=['--cflags', '--libs'], uselib_store='MONGOCLIENT', mandatory=True)


            After this step, we need to add a package configuration file (.pc) into /usr/local/lib/pkgconfig path. This is the file where we specify the paths to lib and headers. Pasting the content of this file below.



            prefix=/usr/local 
            libdir=/usr/local/lib
            includedir=/usr/local/include/mongo

            Name: libmongoclient
            Description: Mongodb C++ driver
            Version: 0.2
            Libs: -L$libdir -lmongoclient
            Cflags: -I$includedir


            Added the dependency into the build function of the sepcific program which depends on the above library (i.e. MongoClient). Below is an example.



            mobility = bld( target='bin/mobility', features='cxx cxxprogram', source='src/main.cpp', use='mob-objects MONGOCLIENT', )


            After this, run the configure again, and build your code.






            share|improve this answer



























              0














              I figured this out and the steps are as follows:



              Added following check in the configure function in wscript file. This tells the script to check for the given library file (libmongoclient in this case), and we store the results of this check in MONGOCLIENT.



              conf.check_cfg(package='libmongoclient', args=['--cflags', '--libs'], uselib_store='MONGOCLIENT', mandatory=True)


              After this step, we need to add a package configuration file (.pc) into /usr/local/lib/pkgconfig path. This is the file where we specify the paths to lib and headers. Pasting the content of this file below.



              prefix=/usr/local 
              libdir=/usr/local/lib
              includedir=/usr/local/include/mongo

              Name: libmongoclient
              Description: Mongodb C++ driver
              Version: 0.2
              Libs: -L$libdir -lmongoclient
              Cflags: -I$includedir


              Added the dependency into the build function of the sepcific program which depends on the above library (i.e. MongoClient). Below is an example.



              mobility = bld( target='bin/mobility', features='cxx cxxprogram', source='src/main.cpp', use='mob-objects MONGOCLIENT', )


              After this, run the configure again, and build your code.






              share|improve this answer

























                0












                0








                0







                I figured this out and the steps are as follows:



                Added following check in the configure function in wscript file. This tells the script to check for the given library file (libmongoclient in this case), and we store the results of this check in MONGOCLIENT.



                conf.check_cfg(package='libmongoclient', args=['--cflags', '--libs'], uselib_store='MONGOCLIENT', mandatory=True)


                After this step, we need to add a package configuration file (.pc) into /usr/local/lib/pkgconfig path. This is the file where we specify the paths to lib and headers. Pasting the content of this file below.



                prefix=/usr/local 
                libdir=/usr/local/lib
                includedir=/usr/local/include/mongo

                Name: libmongoclient
                Description: Mongodb C++ driver
                Version: 0.2
                Libs: -L$libdir -lmongoclient
                Cflags: -I$includedir


                Added the dependency into the build function of the sepcific program which depends on the above library (i.e. MongoClient). Below is an example.



                mobility = bld( target='bin/mobility', features='cxx cxxprogram', source='src/main.cpp', use='mob-objects MONGOCLIENT', )


                After this, run the configure again, and build your code.






                share|improve this answer













                I figured this out and the steps are as follows:



                Added following check in the configure function in wscript file. This tells the script to check for the given library file (libmongoclient in this case), and we store the results of this check in MONGOCLIENT.



                conf.check_cfg(package='libmongoclient', args=['--cflags', '--libs'], uselib_store='MONGOCLIENT', mandatory=True)


                After this step, we need to add a package configuration file (.pc) into /usr/local/lib/pkgconfig path. This is the file where we specify the paths to lib and headers. Pasting the content of this file below.



                prefix=/usr/local 
                libdir=/usr/local/lib
                includedir=/usr/local/include/mongo

                Name: libmongoclient
                Description: Mongodb C++ driver
                Version: 0.2
                Libs: -L$libdir -lmongoclient
                Cflags: -I$includedir


                Added the dependency into the build function of the sepcific program which depends on the above library (i.e. MongoClient). Below is an example.



                mobility = bld( target='bin/mobility', features='cxx cxxprogram', source='src/main.cpp', use='mob-objects MONGOCLIENT', )


                After this, run the configure again, and build your code.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered May 5 '15 at 17:32









                AnilJAnilJ

                88411432




                88411432



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f9016448%2fwaf-how-to-add-external-library-to-wscript-build-file%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

                    SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                    용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

                    155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해