Thank you so much for this information. I think it should be in the documentation. If you just read the documentation it is just impossible to build anything.
My library is now working and tested. Thank you Guillaume Leclerc Le lundi 6 juillet 2015 18:02:30 UTC+2, Brion Vibber a écrit : > > Make sure you use a separate build subdirectory for each library you have > to build; you may have to wipe them on each fresh build just to be sure. > > (For googly reference -- my examples are doing an 'out-of-tree build' > where you call the 'configure' script from a separate directory from the > source dir. This is cleaner in some ways because it keeps your source dir > clean, but if you've already been building it can get confusing when old > files are left around.) > > -- brion > > On Mon, Jul 6, 2015 at 2:42 AM, Guillaume Leclerc < > guillaume.l...@gmail.com <javascript:>> wrote: > >> Thank you for your help I truly appreciate. >> >> I tried to do something similar (sh script) but as soon as I try to >> compile inside another >> directory ("/build/libogg") in your example. I get a strange error when I >> run configure : >> >> source directory already configured; run "make distclean" there first >> >> And I keep getting this even if I run distclean (in the source foler) >> >> Thank you >> >> >> Le lundi 6 juillet 2015 10:10:32 UTC+2, Brion Vibber a écrit : >>> >>> Note you should *not* try to install the library to your system; you >>> need to build it to LLVM bitcode with emscripten and use that local copy to >>> build and link against. >>> >>> To get the compiler to see your include files, you need to set the >>> appropriate include paths via the standard compiler -I option (capital 'i'). >>> >>> >>> If the library is an autoconf-based project you may consider installing >>> it into a specific local directory rather than trying to use the build >>> directory; use the --prefix option on 'emconfigure configure' then do the >>> 'emmake make && emmake make install'. Do *not* install if you don't use a >>> specific directory! >>> >>> For an example, here's the build command for one of the libraries I use >>> in my video player widget: >>> >>> https://github.com/brion/ogv.js/blob/master/compileOggJs.sh >>> >>> and here's the final .js build pulling in the combined libraries and my >>> wrapper code: >>> >>> https://github.com/brion/ogv.js/blob/master/compileOgvJs.sh >>> >>> -- brion >>> >>> >>> >>> On Mon, Jul 6, 2015 at 12:49 AM, Guillaume Leclerc < >>> guillaume.l...@gmail.com> wrote: >>> >>>> Hello, >>>> >>>> I want to build something using a single library. I followed the second >>>> option of the documentation ( >>>> http://kripken.github.io/emscripten-site/docs/compiling/Building-Projects.html#using-libraries). >>>> >>>> I built the library. And now I want to build the main code and I get this >>>> error : >>>> >>>> bouncingBall.cpp:2:10: fatal error: 'ode/ode.h' file not found >>>> >>>> I seems llvm cannot find the headers of the library. I checked and they >>>> are present in the system (in the normal include path : >>>> "usr/local/include/ode/ode.h"). When I run g++ it finds the library and >>>> the >>>> code works fine. >>>> >>>> Maybe there is a way to tell LLVM where the headers are (I already >>>> tried changin *LLVM_LIB_SEARCH_PATH) * >>>> >>>> Thank you >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "emscripten-discuss" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to emscripten-discuss+unsubscr...@googlegroups.com. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "emscripten-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to emscripten-discuss+unsubscr...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.