[Libwebsockets] Upgrade from 2.2 to 2.4

Brice Hamon brice at ydotm.com
Thu Dec 7 17:50:50 CET 2017


Hi Silas,

No the Cmake was plain vanilla. Here is the build script I used up to 2.2

git clone git://git.warmcat.com/libwebsockets
cd libwebsockets
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/export/home/development/3rdparty -G
"Unix Makefiles"
make
make install

Thank you,
Brice.


On Thu, Dec 7, 2017 at 11:39 AM, Silas Parker <
skyhisi+libwebsockets at gmail.com> wrote:

> On 7 December 2017 at 16:29, Brice Hamon <normandviking at gmail.com> wrote:
> > Hi guys,
> >
> > I upgraded from 2.2 to 2.4 and I am facing a link issue with
> libwebsockets
> > when I tried to compile a simple client test program:
> >
> > g++ -W -Wall -Wpointer-arith -Werror=uninitialized  -g -pipe
> -D_REENTRANT
> > -D_GNU_SOURCE  -I../ -I/export/home/bhamon/work/bs/include
> > -I/usr/local/include -I/export/home/development/3rdparty/include
> > -I/export/home/development/tools  -L/export/home/bhamon/work/bs/lib
> > -L/export/home/bhamon/work/bs/lib -L./ -L/usr/local/lib
> > -L/export/home/development/3rdparty/lib
> > -L/export/home/development/3rdparty/lib64 -Wl,-E -o wsclient
> ./wsclient.o
> > -lwebsockets -ldl -lpthread
> > ./wsclient.o:(.rodata+0xe08): undefined reference to
> > `lws_extension_callback_pm_deflate'
> > ./wsclient.o:(.rodata+0xe20): undefined reference to
> > `lws_extension_callback_pm_deflate'
> > collect2: error: ld returned 1 exit status
> >
> > I checked your test-client program and we have the same code.
> > I noticed that you link your program in static. I do use the shared
> library.
> >
> > Is there anything special I need to add when I compile that .4 version?
> >
> > Thank you,
> > Brice.
> >
> > _______________________________________________
> > Libwebsockets mailing list
> > Libwebsockets at ml.libwebsockets.org
> > https://libwebsockets.org/mailman/listinfo/libwebsockets
> >
>
>
> Hi Brice,
>
> Have you set LWS_WITHOUT_EXTENSIONS to Off in CMake?
>
> Thanks,
> Silas
> _______________________________________________
> Libwebsockets mailing list
> Libwebsockets at ml.libwebsockets.org
> https://libwebsockets.org/mailman/listinfo/libwebsockets
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20171207/2210a0b6/attachment-0002.html>


More information about the Libwebsockets mailing list