hoehermann / purple-gowhatsapp

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

CPack Error #174

Closed olevenets2 closed 11 months ago

olevenets2 commented 11 months ago

Looks like cpack doesn't work for this build:


oleg@home:~/src/purple-gowhatsapp-1.12.0/build$ cpack 
CPack Error: CPack generator not specified

Could you fix this?

hoehermann commented 11 months ago

Thank you for the report. @beadon Please take a look at this.

beadon commented 11 months ago

@hoehermann certainly.

@olevenets2 : I am unable to replicate the problem you are seeing.

Based on the directory structure, I see there is a version number applied to the directory representing the repo name. This means there was some modification of the directory. To be sure we are talking about the same problems can you grab a fresh copy of the repo in a different directory and test it?

For reference -- Here are the commands (as per the instructions) in my local machine - note that I skipped installing with cmake so I could package instead.

On branch whatsmeow
Your branch is up to date with 'origin/whatsmeow'.

nothing to commit, working tree clean

beadon@semiauto:~/build/purple-gowhatsapp$ git submodule update --init
mkdir build
cd build
cmake ..
cmake --build .
Submodule 'submodules/purple-cmake' (https://github.com/hoehermann/purple-cmake-template) registered for path 'submodules/purple-cmake'
Cloning into '/home/beadon/build/purple-gowhatsapp/submodules/purple-cmake'...
Submodule path 'submodules/purple-cmake': checked out 'efd162171d7fdf2cdc25702b14a356e7983802b4'
-- The C compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Checking for module 'purple'
--   Found purple, version 2.14.12
-- PURPLE_INCLUDE_DIRS: /usr/include/libpurple;/usr/include/glib-2.0;/usr/lib/x86_64-linux-gnu/glib-2.0/include
-- PURPLE_LIBRARY_DIRS: /usr/lib/x86_64-linux-gnu
-- PURPLE_LIBRARIES: purple;glib-2.0
-- PURPLE_PLUGIN_DIR: /usr/lib/x86_64-linux-gnu/purple-2
-- PURPLE_DATA_DIR: /usr/share
-- Checking for module 'gdk-pixbuf-2.0'
--   Found gdk-pixbuf-2.0, version 2.42.10
-- Checking for module 'opusfile'
--   Found opusfile, version 0.12
-- PIXBUF_INCLUDE_DIRS: /usr/include/gdk-pixbuf-2.0;/usr/include/glib-2.0;/usr/lib/x86_64-linux-gnu/glib-2.0/include;/usr/include/libpng16;/usr/include/x86_64-linux-gnu;/usr/include/libmount;/usr/include/blkid
-- OPUSFILE_INCLUDE_DIRS: /usr/include/opus
-- OPUSFILE_LIBRARIES: opusfile
-- Configuring done
-- Generating done
-- Build files have been written to: /home/beadon/build/purple-gowhatsapp/build
[  4%] Building C object src/go/CMakeFiles/purple-dummy.dir/purple-dummy.c.o
[  8%] Building C object src/go/CMakeFiles/purple-dummy.dir/__/c/constants.c.o
[ 12%] Linking C static library libpurple-dummy.a
[ 12%] Built target purple-dummy
[ 16%] Updating go modules...
go: downloading github.com/go-sql-driver/mysql v1.6.0
go: downloading github.com/alfg/mp4 v0.0.0-20210728035756-55ea58c08aeb
go: downloading github.com/lib/pq v1.10.4
go: downloading github.com/mattn/go-sqlite3 v1.14.10
go: downloading github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e
go: downloading github.com/mdp/qrterminal/v3 v3.0.0
go: downloading go.mau.fi/whatsmeow v0.0.0-20230727120640-c313a80ab292
go: downloading golang.org/x/net v0.5.0
go: downloading google.golang.org/protobuf v1.30.0
go: downloading rsc.io/qr v0.2.0
go: downloading go.mau.fi/libsignal v0.1.0
go: downloading golang.org/x/crypto v0.8.0
go: downloading filippo.io/edwards25519 v1.0.0
go: downloading github.com/gorilla/websocket v1.5.0
go: downloading golang.org/x/text v0.6.0
go: downloading golang.org/x/net v0.9.0
go: downloading github.com/google/go-cmp v0.5.5
go: downloading golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543
go: downloading golang.org/x/text v0.9.0
[ 20%] Generating purple-go-whatsapp.a, purple-go-whatsapp.h
[ 20%] Built target purple-go-whatsapp
[ 25%] Building C object src/c/CMakeFiles/whatsmeow.dir/init.c.o
[ 29%] Building C object src/c/CMakeFiles/whatsmeow.dir/login.c.o
[ 33%] Building C object src/c/CMakeFiles/whatsmeow.dir/qrcode.c.o
[ 37%] Building C object src/c/CMakeFiles/whatsmeow.dir/bridge.c.o
[ 41%] Building C object src/c/CMakeFiles/whatsmeow.dir/process_message.c.o
[ 45%] Building C object src/c/CMakeFiles/whatsmeow.dir/display_message.c.o
[ 50%] Building C object src/c/CMakeFiles/whatsmeow.dir/groups.c.o
[ 54%] Building C object src/c/CMakeFiles/whatsmeow.dir/blist.c.o
[ 58%] Building C object src/c/CMakeFiles/whatsmeow.dir/constants.c.o
[ 62%] Building C object src/c/CMakeFiles/whatsmeow.dir/send_message.c.o
[ 66%] Building C object src/c/CMakeFiles/whatsmeow.dir/handle_attachment.c.o
[ 70%] Building C object src/c/CMakeFiles/whatsmeow.dir/send_file.c.o
[ 75%] Building C object src/c/CMakeFiles/whatsmeow.dir/presence.c.o
[ 79%] Building C object src/c/CMakeFiles/whatsmeow.dir/options.c.o
[ 83%] Building C object src/c/CMakeFiles/whatsmeow.dir/receipt.c.o
[ 87%] Building C object src/c/CMakeFiles/whatsmeow.dir/pixbuf.c.o
[ 91%] Building C object src/c/CMakeFiles/whatsmeow.dir/commands.c.o
[ 95%] Building C object src/c/CMakeFiles/whatsmeow.dir/opusreader.c.o
[100%] Linking C shared library libwhatsmeow.so
[100%] Built target whatsmeow

beadon@semiauto:~/build/purple-gowhatsapp/build$ cpack
CPack: Create package using DEB
CPack: Install projects
CPack: - Run preinstall target for: purple-gowhatsapp
CPack: - Install project: purple-gowhatsapp []
CPack: Create package
CPackDeb: - Generating dependency list
CPack: - package: /home/beadon/build/purple-gowhatsapp/build/purple-gowhatsapp_1.12.0_amd64.deb generated.

Please give this a try and let us know how it goes. The error you are receiving is related to cpack not getting a cmake configuration file, this could mean that you have not yet run cmake for the first time -- the commands cmake .. and cmake --build . take the right steps so you can then cpack

beadon commented 11 months ago

I guess it's fixed for you ? Probably should close this one @hoehermann ?