hoehermann / purple-gowhatsapp

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

build of v1.13.0 fails on CentOS9 #178

Closed gzuaps closed 8 months ago

gzuaps commented 8 months ago

Hi,

build fails of v1.13.0 on CentOS9 build successful of v1.12.0 on CentOS9 If I copy the CMakeLists.txt file from v1.12.0 to v1.13.0 then build appears to complete OK seems related to finding the libpurple config

FAILED v1.13.0 cmake output below

-- The C compiler identification is GNU 11.4.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at CMakeLists.txt:6 (find_package):
  By not providing "FindPurple.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Purple", but
  CMake did not find one.

  Could not find a package configuration file provided by "Purple" with any
  of the following names:

    PurpleConfig.cmake
    purple-config.cmake

  Add the installation prefix of "Purple" to CMAKE_PREFIX_PATH or set
  "Purple_DIR" to a directory containing one of the above files.  If "Purple"
  provides a separate development package or SDK, be sure it has been
  installed.

-- Configuring incomplete, errors occurred!
See also "/home/xxxxxx/Downloads/purple-gowhatsapp-1.13.0/build/CMakeFiles/CMakeOutput.log".

===========================================================================

SUCCESS WITH CMakeLists.txt COPIED FROM v1.12.0

-- Checking for module 'purple'
--   Found purple, version 2.14.12
-- Checking for module 'gdk-pixbuf-2.0'
--   Found gdk-pixbuf-2.0, version 2.42.6
-- Checking for module 'opusfile'
--   Found opusfile, version 0.12
-- PURPLE_INCLUDE_DIRS: /usr/include/libpurple;/usr/include/glib-2.0;/usr/lib64/glib-2.0/include;/usr/include/sysprof-4
-- PURPLE_LIBRARY_DIRS: 
-- PURPLE_LIBRARIES: purple;glib-2.0
-- Configuring done
-- Generating done
-- Build files have been written to: /home/xxxxxxx/Downloads/purple-gowhatsapp-1.13.0/build

Thanks,

hoehermann commented 8 months ago

I moved the cmake commands related to finding libpurple into a separate repository so I do not have a copy in each and every repository. Did you run git submodule update --init? In case you are building from a tarball, you need to put purple-config.cmake into submodules/purple-cmake.

gzuaps commented 8 months ago

Thanks, copying purple-config.cmake fixed the build for me. I think I had assumed that because the folder submodules/purple-cmake had been created the cmake file was also there.