From: Alain A. <ala...@wa...> - 2017-07-03 12:59:34
|
Le 03/07/2017 à 12:40, al...@be... a écrit : > 01.07.2017, 16:14, "Alain Aupeix" <ala...@wa...>: >> >> I suppose its the same problem with Ubuntu or other builds using >> libpcre3-dev 8.19 >> >> The solution is to add -lpcre just before -lm on gcc command line. >> I use a variable $SYSTEM_LIBS = '-lpcre -lm' >> On gcc line, this variable must be located at the end of the line. >> > Does you suggest to change this in samples/gtk_samples/build.sh ? Yes, with Ubuntu (et others) 16.04, the version of the packet libpcre3-dev needs to use -lpcre parameter. To avoid errors, the parameters -lpcre and -lm needs to be at the end of the line (in this order). That's why I use a variable, and put it at the end of the line. I have tried with Ubuntu 12.04, and adding the parameter -lpcre doesn't makes problem. You have just to replace the value of SYSTEM_LIBS in gtk_samples and utils/* A+ -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.9-1 | H.arbour 3.2.0dev (2016-12-16 10:05) | Hw.Gui 2.20-3 (2630) ------------------------------------------------------------------------ |