Re: [OpenSIPStack] =?iso-8859-1?q?R=E9f=2E_=3A__R=E9f=2E_=3A_Re=3A_OS?= =?iso-8859-1?q?S_=3A_Cross
Brought to you by:
joegenbaclor
From: Joegen E. B. <joe...@gm...> - 2007-08-03 10:14:56
|
If I am not mistaken, If you are cross compiling, the first thing that=20 you need to cross compile would be expat itself. You need to modify=20 the configure script to not bother looking for expat. So you might need = to remove the block that checks for expat. After the configure script=20 has succeeded, you may then manually modify ptbuildopts.h to enable=20 expat and modify the linker flags in the makefile to point to your cross = compiled expat lib. Joegen E. Baclor wrote: > Expat is a dependency of OpenSIPStack applications. You will not be=20 > able to compile them without it. Expat is used in both ATLSIP and=20 > OpenSBC code. If you need to get rid of the XML classes, you will hav= e=20 > to manually remove these classes from the Makefile and modify OpenSBC t= o=20 > not use the classes. OpenSBC uses XML for the HTTP Admin. I think= =20 > this is doable with some amount of work. However, I think you should=20 > dig deeper how to actually make expat work instead of hacking the libra= ry. > > > Kolneath SOMETH wrote: > =20 >> Hi Joegen, >> >> While I passed the arguments such as --disable-expat --disable-vxml...= =2E to=20 >> ./configure in the folder of opensipstack, I see that the existence=20 >> checking of this associated library ie. expat.h vxml.h.... are still=20 >> lauched by configure. Hence, in opensbc, while I compiled opensbc it s= eems=20 >> that those associated classes still get compiled and ( there are some = >> errors : undefined reference). >> >> But, I have a look in the pwlib folder, I tried to run=20 >> opensipstack/src/pwlib/configure --disable-expat.... I see that the=20 >> existence checking are not lauched, this might help to eliminate the=20 >> undesired class.=20 >> >> Would you have a look so that we can eliminate the classes that we don= 't=20 >> want to compile. >> >> Thank you in advance, >> >> Best regards, >> Kolneath SOMETH >> kol...@sa... >> kol...@en... >> Mobile : +33 (0)6 18 17 32 45 >> >> >> >> >> >> "Kolneath SOMETH" <kol...@sa...> >> >> Envoy=E9 par : ope...@li... >> 02/08/2007 13:52 >> Veuillez r=E9pondre =E0 opensipstack-devel >> Remis le : 02/08/2007 13:53 >> >> =20 >> Pour : jb...@so... >> cc : ope...@li..., (ccc : Kolne= ath=20 >> SOMETH/DRD/SAGEM) >> Objet : [OpenSIPStack] R=E9f. : Re: OSS : Crosscompiling compi= lation problem >> >> >> >> Hi Joegen, >> >> Thank you for your help.=20 >> I modified at the line " for ac_header in `echo=20 >> "${OPENSIPSTACKDIR}/external/Expat-2.0.0/lib/expat.h"` " to point to t= he=20 >> expat directory. >> I did the same way too (as decribe in the forum u provided) by disable= the=20 >> >> exit(1) of every existence checking expat, sdl, sqlite,... >> But the compilation error still persists for the (-lexpat)....I am fin= ding=20 >> >> it out... >> >> I will let you know for further findings... >> >> Thanks and Best regards, >> Kolneath SOMETH >> kol...@sa... >> kol...@en... >> Mobile : +33 (0)6 18 17 32 45 >> >> >> >> >> >> "Joegen E. Baclor" <joe...@gm...> >> >> 02/08/2007 04:51 >> Veuillez r=E9pondre =E0 jbaclor >> Remis le : 02/08/2007 04:51 >> >> =20 >> Pour : Kolneath SOMETH <kol...@sa...> >> cc : ope...@li... >> Objet : Re: OSS : Crosscompiling compilation problem >> >> >> >> Hi Kolneath, >> >> I can't really help you out with cross compiling issues because I do n= ot=20 >> have prior experience cross compiling OpenSIPStack myself. It would b= e=20 >> a case of the blind leading the blind. Anyway, it seems your problem = >> has already been discussed in OpenH323 mailing list. See this thread >> =20 >> http://www.openh323.org/pipermail/openh323/Week-of-Mon-20060911/077847= =2Ehtml >> >> >> If you are able to solve this problem, please provide your findings to= =20 >> me so I could update the documentations so that others with the same=20 >> problems as yours may have some reference to work with in the future. >> >> Good luck. >> >> Joegen >> >> Kolneath SOMETH wrote: >> =20 >> =20 >>> Hello Everyone, >>> >>> I launched the ./configure script followed by --host mips-linux (cros= s=20 >>> compiling). The error says that *checking for=20 >>> /usr/local/include/expat.h... configure: error: cannot check for file= =20 >>> existence when cross compiling * >>> >>> As I am root (on my own machine), I copied the expat.h which exists=20 >>> normally under /usr/include into the needed directory=20 >>> /usr/local/include/ in order to cope with this problem. >>> >>> But the previous message still shows even I am able to locate the=20 >>> missing file in that folder. So this means that when the system is=20 >>> crosscompiling, it is unable to check for the existence of the the .h= =20 >>> files ? >>> >>> Could any of you kindly give me the direction in order to get through= =20 >>> this problem please. >>> >>> Thanks and best regards, >>> >>> Kolneath SOMETH >>> >>> " Ce courriel et les documents qui y sont attaches peuvent contenir=20 >>> des informations confidentielles. Si vous n'etes pas le destinataire = >>> escompte, merci d'en informer l'expediteur immediatement et de=20 >>> detruire ce courriel ainsi que tous les documents attaches de votre=20 >>> systeme informatique. Toute divulgation, distribution ou copie du=20 >>> present courriel et des documents attaches sans autorisation prealabl= e=20 >>> de son emetteur est interdite." >>> >>> " This e-mail and any attached documents may contain confidential or = >>> proprietary information. If you are not the intended recipient, pleas= e=20 >>> advise the sender immediately and delete this e-mail and all attached= =20 >>> documents from your computer system. Any unauthorised disclosure,=20 >>> distribution or copying hereof is prohibited." >>> =20 >>> =20 >> >> >> >> >> " Ce courriel et les documents qui y sont attaches peuvent contenir de= s=20 >> informations confidentielles. Si vous n'etes pas le destinataire=20 >> escompte, merci d'en informer l'expediteur immediatement et de detruir= e ce=20 >> courriel ainsi que tous les documents attaches de votre systeme=20 >> informatique. Toute divulgation, distribution ou copie du present cour= riel=20 >> et des documents attaches sans autorisation prealable de son emetteur = est=20 >> interdite."=20 >> >> " This e-mail and any attached documents may contain confidential or=20 >> proprietary information. If you are not the intended recipient, please= =20 >> advise the sender immediately and delete this e-mail and all attached = >> documents from your computer system. Any unauthorised disclosure,=20 >> distribution or copying hereof is prohibited." >> ----------------------------------------------------------------------= --- >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser= =2E >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> opensipstack-devel mailing list >> ope...@li... >> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >> >> >> >> >> >> " Ce courriel et les documents qui y sont attaches peuvent contenir de= s informations confidentielles. Si vous n'etes pas le destinataire escom= pte, merci d'en informer l'expediteur immediatement et de detruire ce cou= rriel ainsi que tous les documents attaches de votre systeme informatiqu= e. Toute divulgation, distribution ou copie du present courriel et des do= cuments attaches sans autorisation prealable de son emetteur est interdit= e."=20 >> >> " This e-mail and any attached documents may contain confidential or p= roprietary information. If you are not the intended recipient, please adv= ise the sender immediately and delete this e-mail and all attached docume= nts from your computer system. Any unauthorised disclosure, distribution = or copying hereof is prohibited." >> ----------------------------------------------------------------------= --- >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser= =2E >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> opensipstack-devel mailing list >> ope...@li... >> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >> >> >> =20 >> =20 > > > > -----------------------------------------------------------------------= -- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser.= > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > > > =20 |