Building libphonenumbers C++ on windows

189 views
Skip to first unread message

Andre C

unread,
Jun 1, 2012, 7:00:03 AM6/1/12
to libphonenumber-discuss
Hi I'm trying to build the library on windows using cmake as
instructed in the readme file. However I'm having a problem with
boost. The cmake doesn't seem to be finding boost, and when I point it
to the folder that I have just downloaded and install it still
complains that it cannot find it Boost_DIR-NOTFOUND. Any help with
this please ? Do I need to set some environment variables for it to
find boost or something? Any help would really be appreciated. Many
thanks beforehand.


Andre.

Philippe Liard

unread,
Jun 1, 2012, 8:03:54 AM6/1/12
to libphonenum...@googlegroups.com
Hi Andre,

It seems that you need to specify manually the Boost include directory and the path to the appropriate Boost libraries using cmake-gui. CMake can't guess that you have Boost installed in a non-standard directory (although I don't exactly remember where Boost goes when you install it).

Please let me know if this doesn't help.

Cheers,
Philippe.

--
Philippe Liard

Andre Cassar

unread,
Jun 1, 2012, 8:12:39 AM6/1/12
to libphonenum...@googlegroups.com
Where and how should I include them? What I'm doing is that when I first press configure it complains that the boost wasn't found, so I populate the boost_DIR paramater with the appropriate path to the one that I installed. However when I press Generate to build the module it still complains that the boost cannot be found and resets the  boost_DIR parameter to a not found value again. 

On this group I found this thread which describes the very exact problem, however the solution proposed over there still doesn't work for me. Do you happen to recall exactly what you did to solve it maybe?  https://groups.google.com/group/libphonenumber-discuss/browse_thread/thread/0d71788ac77fbe8d/fb9ddb9f668caf36?lnk=raot&fwc=2&pli=1 

Thanks a lot once again for your help.
Andre. 

Philippe Liard

unread,
Jun 1, 2012, 8:15:37 AM6/1/12
to libphonenum...@googlegroups.com
Have you installed Boost Pro (http://www.boostpro.com/download/) rather than Boost as I suggested to John last time?

--
Philippe Liard

Andre Cassar

unread,
Jun 1, 2012, 8:23:16 AM6/1/12
to libphonenum...@googlegroups.com
yes I did, I installed version 1.44 as mentioned there, but in vain. It looks like it is expecting to find some cmakelist file for boost as well in the folder selected. Could that be the case? Or could it be that in the cmakelist file for libphonenumber it is specifically expecting a certain version of boost? 

Thanks.
Andre. 

Philippe Liard

unread,
Jun 1, 2012, 8:28:21 AM6/1/12
to libphonenum...@googlegroups.com
It should work with Boost >= 1.40. Do you a more detailed error message?

Also you should see some other Boost variables not set (other than Boost_DIR). You might have to set them manually to get the whole thing working. To do that you might have to switch to the advanced mode in cmake-gui to see all the variables.

Unfortunately I can't be more precise, I have no Windows workstation anymore :/

--
Philippe Liard
Reply all
Reply to author
Forward
0 new messages