Installing GrandOrgue in Ubuntu

  • I am attempting to install GrandOrgue in Ubuntu. The deb binary will not install. Manual install fails as the public key expired in June and has not yet been updated. I do not have the skills to attempt to build a version from scratch. This problem has been raised on other user forums. Does anyone have any ideas?

  • Hi.


    I cannot help you with the public key issue, but I can write a short build-from-source guide that may help you. There is a short installation guide in the GrandOrgue repository, but I'll adapt it so that the commands can be used as is in Ubuntu. Commands with the sudo prefix will ask the superuser password, which is usually your login password.

    1. Open a terminal.
    2. Update your repos using
      sudo apt-get update
    3. Install the packages using the following command
      sudo apt-get install gcc make cmake pkg-config wx-common libjack-jackd2-0 libasound2 libfftw3-dev wavpack
    4. Install more packages
      sudo apt-get install docbook-xsl xsltproc zip gettext po4a
    5. Download the source code using the "Download snapshot" button on https://sourceforge.net/p/ourorgan/code/ci/master/tree/
    6. Extract the download, e.g. into ~/Downloads/go-sources
    7. Create a new directory, e.g. ~/Downloads/go-build
    8. Using the terminal, go to the build directory (path in the command below has to be adapted according to directory name)
      cd ~/Downloads/go-build
    9. Using the terminal (again, adaptation of paths if necessary):
      1. cmake -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles" ~/Downloads/go-sources
      2. wait until it's finished
      3. make
      4. wait until it's finished (takes quite a while)
      5. sudo make install
    10. Now "GrandOrgue" should be listed amongst our programs

    I tested this in my Ubuntu VM so it should work without problems. If you do have any questions or if there are any problems, feel free to ask and I'll try to help.


    Cheers!

  • Hi raynswor


    I have reached point 9 in your list and get an error message.

    CMake Error: The source directory "/home/john/Downloads/go-sources" does not appear to contain CMakeLists.txt.

    I have looked in the go-sources directory and the file is definatly there.

    I have just updated Ubuntu to the latest release. Could this be causing a problem?


    Regards

  • Hi John,


    the update to the latest Ubuntu shouldn't cause any problems.

    That you made it to step 9 without problems is quite a good sign.


    I should have specified that in my guide and I know you already looked, but my first guess is:

    If you unzip the downloaded file, the contents are usually contained within another folder. So it's possible that "go-sources" contains only one folder that has everything needed. (in my case that's the beautiful name "ourorgan-code-bb6f6d25b6e7ac3000a172d7d9caf5989d0d8dc6") If that's the case, then you either have to adapt the command to

    cmake -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles" ~/Downloads/go-sources/whatever-the-folder-is-called

    or you move all files in that folder to the level above (the go-sources folder).


    If you've made sure of that and the error persists, you could post a screenshot of the Terminal and the go-sources folder and I'll try to figure things out.


    Cheers!

  • Hi again

    I have rearranged the files in Downloads/go-sources directory and get the make report attached.

    Please comment and advise.


    Regards

    john@john-Hybris:~/Downloads/go-build$ cmake -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles" ~/Downloads/go-sources

    -- Found Gettext: /usr/bin/msgmerge (found version "0.19.8.1")

    -- Performing Test OPTION_CXX_-std-EQc-P-P11

    -- Performing Test OPTION_CXX_-std-EQc-P-P11 - Success

    -- Looking for C++ include atomic

    -- Looking for C++ include atomic - found

    -- Looking for C++ include mutex

    -- Looking for C++ include mutex - found

    -- Performing Test OPTION_C_-Wall

    -- Performing Test OPTION_C_-Wall - Success

    -- Performing Test OPTION_C_-Wall_cxx

    -- Performing Test OPTION_C_-Wall_cxx - Success

    -- Performing Test OPTION_C_-O3

    -- Performing Test OPTION_C_-O3 - Success

    -- Performing Test OPTION_C_-O3_cxx

    -- Performing Test OPTION_C_-O3_cxx - Success

    -- Performing Test OPTION_C_-g

    -- Performing Test OPTION_C_-g - Success

    -- Performing Test OPTION_C_-g_cxx

    -- Performing Test OPTION_C_-g_cxx - Success

    -- Performing Test OPTION_C_-fomit-frame-pointer

    -- Performing Test OPTION_C_-fomit-frame-pointer - Success

    -- Performing Test OPTION_C_-fomit-frame-pointer_cxx

    -- Performing Test OPTION_C_-fomit-frame-pointer_cxx - Success

    -- Performing Test OPTION_C_-funroll-loops

    -- Performing Test OPTION_C_-funroll-loops - Success

    -- Performing Test OPTION_C_-funroll-loops_cxx

    -- Performing Test OPTION_C_-funroll-loops_cxx - Success

    -- Performing Test OPTION_C_-ffast-math

    -- Performing Test OPTION_C_-ffast-math - Success

    -- Performing Test OPTION_C_-ffast-math_cxx

    -- Performing Test OPTION_C_-ffast-math_cxx - Success

    -- RtAudio build Configuration

    -- Building a Linux configuration

    -- Support for Jack : ON

    -- Support for Alsa : ON

    -- Support for OSS : OFF

    -- ============================================================================

    -- RtMidi build Configuration

    -- Building a Linux configuration

    -- Support for Jack : ON

    -- Support for Alsa : ON

    -- Looking for snd_seq_client_info_get_card

    -- Looking for snd_seq_client_info_get_card - not found

    -- ============================================================================

    -- PortAudio build Configuration

    -- Looking for sys/soundcard.h

    -- Looking for sys/soundcard.h - found

    -- Building a Linux configuration

    -- Support for Jack : ON

    -- Support for Alsa : ON

    -- Support for OSS : OFF

    -- ============================================================================

    -- Checking for module 'fftw3f'

    -- Found fftw3f, version 3.3.8

    -- Checking for module 'zlib'

    -- No package 'zlib' found

    CMake Error at /usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:463 (message):

    A required package was not found

    Call Stack (most recent call first):

    /usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:643 (_pkg_check_modules_internal)

    CMakeLists.txt:147 (pkg_check_modules)



    -- Configuring incomplete, errors occurred!

    See also "/home/john/Downloads/go-build/CMakeFiles/CMakeOutput.log".

    See also "/home/john/Downloads/go-build/CMakeFiles/CMakeError.log".

  • Hi.


    Fascinating, it seems that this is only listed as dependency within the Windows section.


    Code
    1. sudo apt-get install zlib1g-dev

    should do the trick.

    I should probably update the guide above, so that it's not quite as confusing for anyone using this...


    Cheers.

  • Hi

    Moving on slowly, now we have this:-


    Checking for module 'fftw3f'

    -- Found fftw3f, version 3.3.8

    -- Checking for module 'zlib'

    -- Found zlib, version 1.2.11

    -- Checking for module 'wavpack'

    -- No package 'wavpack' found

    CMake Error at /usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:463 (message):

    A required package was not found

    Call Stack (most recent call first):

    /usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:643 (_pkg_check_modules_internal)

    CMakeLists.txt:149 (pkg_check_modules)


    Cheers

  • Hi.


    Checking for module 'wavpack'

    -- Found wavpack, version 5.2.0

    CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):

    Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES

    wxWidgets_INCLUDE_DIRS)

    Call Stack (most recent call first):

    /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)

    /usr/share/cmake-3.16/Modules/FindwxWidgets.cmake:1008 (find_package_handle_standard_args)

    CMakeLists.txt:151 (find_package)


    Sorry but Murphy's Law is still running.

  • Hi.

    john@john-Hybris:~$ sudo apt-get install libwxgtk3.0-dev

    [sudo] password for john:

    Reading package lists... Done

    Building dependency tree

    Reading state information... Done

    Package libwxgtk3.0-dev is not available, but is referred to by another package.

    This may mean that the package is missing, has been obsoleted, or

    is only available from another source


    E: Package 'libwxgtk3.0-dev' has no installation candidate


    Curiouser and curioser

  • Hi.

    Just as I thought it was all over


    -- Configuring done

    -- Generating done

    -- Build files have been written to: /home/john

    john@john-Hybris:~$ make

    Scanning dependencies of target RtAudio

    [ 0%] Building CXX object src/rt/rtaudio/CMakeFiles/RtAudio.dir/RtAudio.cpp.o

    /home/john/Downloads/go-sources/src/rt/rtaudio/RtAudio.cpp:1900:10: fatal error: jack/jack.h: No such file or directory

    1900 | #include <jack/jack.h>

    | ^~~~~~~~~~~~~

    compilation terminated.

    make[2]: *** [src/rt/rtaudio/CMakeFiles/RtAudio.dir/build.make:63: src/rt/rtaudio/CMakeFiles/RtAudio.dir/RtAudio.cpp.o] Error 1

    make[1]: *** [CMakeFiles/Makefile2:355: src/rt/rtaudio/CMakeFiles/RtAudio.dir/all] Error 2

    make: *** [Makefile:152: all] Error 2

  • Hi.

    Moving on. How many more to find?


    john@john-Hybris:~$ make

    [ 0%] Building CXX object src/rt/rtaudio/CMakeFiles/RtAudio.dir/RtAudio.cpp.o

    /home/john/Downloads/go-sources/src/rt/rtaudio/RtAudio.cpp:6870:10: fatal error: alsa/asoundlib.h: No such file or directory

    6870 | #include <alsa/asoundlib.h>

    | ^~~~~~~~~~~~~~~~~~

    compilation terminated.

    make[2]: *** [src/rt/rtaudio/CMakeFiles/RtAudio.dir/build.make:63: src/rt/rtaudio/CMakeFiles/RtAudio.dir/RtAudio.cpp.o] Error 1

    make[1]: *** [CMakeFiles/Makefile2:355: src/rt/rtaudio/CMakeFiles/RtAudio.dir/all] Error 2

    make: *** [Makefile:152: all] Error 2

  • Hi.


    Here is the next one.


    john@john-Hybris:~$ make

    [ 0%] Building CXX object src/rt/rtaudio/CMakeFiles/RtAudio.dir/RtAudio.cpp.o

    [ 0%] Linking CXX static library libRtAudio.a

    [ 0%] Built target RtAudio

    Scanning dependencies of target RtMidi

    [ 0%] Building CXX object src/rt/rtmidi/CMakeFiles/RtMidi.dir/RtMidi.cpp.o

    /home/john/Downloads/go-sources/src/rt/rtmidi/RtMidi.cpp:1074:10: fatal error: libudev.h: No such file or directory

    1074 | #include <libudev.h>

    | ^~~~~~~~~~~

    compilation terminated.

    make[2]: *** [src/rt/rtmidi/CMakeFiles/RtMidi.dir/build.make:63: src/rt/rtmidi/CMakeFiles/RtMidi.dir/RtMidi.cpp.o] Error 1

    make[1]: *** [CMakeFiles/Makefile2:382: src/rt/rtmidi/CMakeFiles/RtMidi.dir/all] Error 2

    make: *** [Makefile:152: all] Error 2