Results 1 to 6 of 6

Thread: C++ expert needed / make/compile options

  1. #1
    Join Date
    Jun 2008
    Location
    Düsseldorf/Germany
    Posts
    248

    Default C++ expert needed / make/compile options

    Hey,
    I'm trying to package the Orthanc Server for openSUSE. As a preprequisite I need the civetweb-package (which is not yet build for oS either)
    https://build.opensuse.org/package/s...thanc/civetweb

    I'm currently stuck in the make process, as it does not find its include files. If I add an option for INCLUDEDIR, it fails with an 'empty variable name'.
    Any C++ expert willing to take a look?
    Thanks in advance!

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,650
    Blog Entries
    15

    Default Re: C++ expert needed / make/compile options

    Quote Originally Posted by DocB View Post
    Hey,
    I'm trying to package the Orthanc Server for openSUSE. As a preprequisite I need the civetweb-package (which is not yet build for oS either)
    https://build.opensuse.org/package/s...thanc/civetweb

    I'm currently stuck in the make process, as it does not find its include files. If I add an option for INCLUDEDIR, it fails with an 'empty variable name'.
    Any C++ expert willing to take a look?
    Thanks in advance!
    Hi
    Did you see this to add options?
    https://github.com/civetweb/civetweb...cs/Building.md

    Have you tried just make build?

    Perhaps just switch to cmake and add your options that way?
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3
    Join Date
    Jun 2008
    Location
    Düsseldorf/Germany
    Posts
    248

    Default Re: C++ expert needed / make/compile options

    Quote Originally Posted by malcolmlewis View Post
    Hi
    Did you see this to add options?
    https://github.com/civetweb/civetweb...cs/Building.md

    Have you tried just make build?

    Perhaps just switch to cmake and add your options that way?
    Yes, I tried just 'make build' as well - different error in OBS compared to a local build, if I issue the command from the source directory (/var/tmp/build-root/openSUSE_Leap_15.0-x86_64/home/abuild/rpmbuild/BUILD/civetweb-1.11/ in that case)
    cmake...no idea. Sorry, never programmed in C++

  4. #4
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,650
    Blog Entries
    15

    Default Re: C++ expert needed / make/compile options

    Quote Originally Posted by DocB View Post
    Yes, I tried just 'make build' as well - different error in OBS compared to a local build, if I issue the command from the source directory (/var/tmp/build-root/openSUSE_Leap_15.0-x86_64/home/abuild/rpmbuild/BUILD/civetweb-1.11/ in that case)
    cmake...no idea. Sorry, never programmed in C++
    Hi
    Add options with a -D and append the cmakelists.txt bit...

    eg;
    Code:
    %cmake -DCMAKE_BUILD_TYPE=RELEASE \
            -DCIVETWEB_ENABLE_CXX=ON \
               ..
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  5. #5
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,650
    Blog Entries
    15

    Default Re: C++ expert needed / make/compile options

    Quote Originally Posted by malcolmlewis View Post
    Hi
    Add options with a -D and append the cmakelists.txt bit...

    eg;
    Code:
    %cmake -DCMAKE_BUILD_TYPE=RELEASE \
            -DCIVETWEB_ENABLE_CXX=ON \
               ..
    Hi
    Had a quick look, this will get you started....

    Code:
    %build
    rm -rf build
    %cmake -DCMAKE_BUILD_TYPE=RELEASE \
           -DCIVETWEB_BUILD_TESTING=OFF
    make %{?_smp_mflags}
    
    %install
    %cmake_install
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  6. #6
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,650
    Blog Entries
    15

    Default Re: C++ expert needed / make/compile options

    Quote Originally Posted by malcolmlewis View Post
    Hi
    Had a quick look, this will get you started....

    Code:
    %build
    rm -rf build
    %cmake -DCMAKE_BUILD_TYPE=RELEASE \
           -DCIVETWEB_BUILD_TESTING=OFF
    make %{?_smp_mflags}
    
    %install
    %cmake_install
    Hi
    Here you go.... https://build.opensuse.org/request/show/661665
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •