hoehermann / purple-gowhatsapp

Pidgin/libpurple plugin for WhatsApp Web.
GNU General Public License v3.0
277 stars 34 forks source link

Cannot build from a freshly created build directory #110

Closed Nardol closed 2 years ago

Nardol commented 2 years ago

I've just pulled the repository and cleared my build directory.

But it is now impossible to build Whatsmeow.

$ cmake ..
-- The C compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Checking for module 'purple'
--   Found purple, version 2.13.0
-- PURPLE_INCLUDE_DIRS: /usr/include/glib-2.0;/usr/lib/x86_64-linux-gnu/glib-2.0/include;/usr/include/libpurple
-- PURPLE_LIBRARY_DIRS: 
-- PURPLE_LIBRARIES: purple;glib-2.0
-- PURPLE_PLUGIN_DIR: /usr/lib/purple-2
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pzajda/git/pidgin/gowhatsapp/build
$ cmake --build .
Scanning dependencies of target purple-dummy
[  4%] Building C object src/go/CMakeFiles/purple-dummy.dir/purple-dummy.c.o
[  9%] Building C object src/go/CMakeFiles/purple-dummy.dir/__/c/constants.c.o
[ 14%] Linking C static library libpurple-dummy.a
[ 14%] Built target purple-dummy
Scanning dependencies of target purple-go-whatsapp
[ 19%] Generating purple-go-whatsapp.a, purple-go-whatsapp.h
go: downloading github.com/jackc/pgx v3.6.2+incompatible
go: downloading go.mau.fi/whatsmeow v0.0.0-20220226201719-1051bbd4727f
go: downloading github.com/go-sql-driver/mysql v1.6.0
go: downloading github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e
go: downloading github.com/mattn/go-sqlite3 v1.14.10
go: downloading github.com/mdp/qrterminal/v3 v3.0.0
go: downloading google.golang.org/protobuf v1.27.1
go: downloading rsc.io/qr v0.2.0
go: downloading github.com/pkg/errors v0.9.1
go: downloading golang.org/x/crypto v0.0.0-20220214200702-86341886e292
go: downloading golang.org/x/text v0.3.6
go: downloading go.mau.fi/libsignal v0.0.0-20211109153248-a67163214910
go: downloading filippo.io/edwards25519 v1.0.0-rc.1
go: downloading github.com/gorilla/websocket v1.4.2
[ 23%] Built target purple-go-whatsapp
src/c/CMakeFiles/whatsmeow.dir/flags.make:8: *** séparateur manquant. Arrêt.
make[1]: *** [CMakeFiles/Makefile2:178: src/c/CMakeFiles/whatsmeow.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

"Séparateur menquant": missing separator.

I try to compile on Debian Buster.

hoehermann commented 2 years ago

A wild newline has appeared!

How embarrassing. Thank you for letting me know. I fixed the version string and force-pushed the commit. Feel free to try again.

Nardol commented 2 years ago

I confirm the fix, thanks!