HELP: How to get started with CopperSpice? v2 linux

Discuss issues related to installing or building

HELP: How to get started with CopperSpice? v2 linux

Postby areriff » Fri Mar 09 2018 3:28 pm

As the title implied, this is the second time I tried setting up copperspice. This time I use VM to install arch linux and I want build from source first before trying anything else.
The motivation behind this is from the MSYS2 question I previously ask. Can't seem to wrap around the MSYS concept in windows.
By using this method, I am hoping to learn more how to set it up properly leaving the MSYS and MSVC nonsense out of the way.

Side note: I have tried countless Linux distros in VM and actual machine in the past and I like Arch the best. I'm doing that just as hobby.

After setting all up this is the step (more or less) to try to get CS to build properly.
1. create "cs" directory on desktop.
2. cd ~/Desktop/cs
3. git clone https://github.com/copperspice/copperspice.git
4. cd copperspice
5. mkdir build
6. cd build
7. cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release ..

and the following message were shown
(this is part of it)
===================================================
-- The following RECOMMENDED packages have not been found:

* Security, Support for secure network communications using Secure Trasnport for SSL and TLS, <https://developer.apple.com/documentation/security/secure_transport>
Required for HTTPS support

-- The following REQUIRED packages have not been found:

* GStreamer, Open source multimedia framework, <http://gstreamer.freedesktop.org>
Required for multimedia support

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

Previously it had PostgreSQL, NAS, and MySQL up there too, I install that packages manually and it went away. But I these two I have problem with.
I tried many way to get gstreamer to install here but it still didn't detect it.
As for "Security", I don't know what package name I needed for it.

This is my question...
1. How to get CMake to detect gstreamer which is installed on my machine ?
typing "pacman -Q gstreamer" produces this...
gstreamer 1.12.4-1

but it still did not detect it.

2. What package "Security" refers to?

3. Am I doing this right? Did I messed up somewhere.

My knowledge in CMake is very limited.
Although I use CMake to generate project regularly, I never learn to create one.
I only know it as a program where you set the directory, click configure, click generate to produce the VS solution where I can build the library needed.

P/S: I copied the terminal output verbatim. It seems you have spelling error in there for the word "Trasnport".
areriff
 
Posts: 11
Joined: Wed Nov 01 2017 2:51 pm

Re: HELP: How to get started with CopperSpice? v2 linux

Postby barbara » Fri Mar 09 2018 6:16 pm

Can't seem to wrap around the MSYS concept in windows.


The idea of MSYS is to add a Unix like shell environment and programs for Windows. This has nothing to do with CopperSpice but rather tools required to build a C++ program on Windows with MinGW. If you are not understanding MSYS you should install this and take a look at what is in this folder. You may also want to to do some research about the MSYS project.

I have tried countless Linux distros in VM and actual machine in the past and I like Arch the best


If you are familiar with Linux than understanding MSYS utilities should be pretty straightforward. Do you know where you are having an issue?

If you take a look at our CS Overview documentation we list the currently supported and tested versions of Unix. Arch is not on the list. It may work and we are happy to answer a few questions, but at this time we can not guarantee CopperSpice will build on this distribution.

gstreamer 1.12.4-1


As per our list of required packages, we currently only support GStreamer 0.1 on all distributions. This is on our short list of items to address so we can support 1.0. You may want to build without phonon and multimedia. In our CS Overview docs we have information on how to pass parameters to turn off these libraries.


What package "Security" refers to?


This is a check for the OS X Security framework which of course is not present on Linux. We will update the build files so this test is removed. Thanks for finding this. Thanks for finding the other misspelling. Good catch.

Barbara
barbara
 
Posts: 57
Joined: Sat Apr 04 2015 2:32 am

Re: HELP: How to get started with CopperSpice? v2 linux

Postby areriff » Thu Mar 15 2018 6:52 am

Currently building CS on Arch looks like being hampered by gstreamer 1.x support and Apple "security" framework.
The gstreamer issue has been reported on GitHub just a little over a year ago.

What's is the current workaround for these two problem?

p/s: your websites were down for almost a week. what happen there?
areriff
 
Posts: 11
Joined: Wed Nov 01 2017 2:51 pm

Re: HELP: How to get started with CopperSpice? v2 linux

Postby barbara » Thu Mar 15 2018 9:06 pm

Currently building CS on Arch looks like being hampered by gstreamer 1.x support


As noted in the CS Overview documentation, Arch Linux is not on our list of supported platforms and not currently part of our CI setup. CopperSpice does build on Arch Linux however you must disable CsMultimedia and CsPhonon. This is also in our documentation and we have mentioned this in the forum and on github.

In terms of GStreamer we have documented that we currently support version 0.1 and do want to provide support for 1.0, this is also in our CS documentation. If you would like to work on this area and submit a pull request and contribute to the CopperSpice project, this would be awesome.

Our current focus and main concerns are on CsCore, CsNetwork, and CsGui. These are the most fundamental areas of the project and the heaviest used portions. If CsMultimedia or CsPhonon are of interest to you then please help us to make them better.

Apple "security" framework.


As we already mentioned the message about the Security framework is only a warning and will be updated to only show when compiling on Mac OS X. This is not anything which is holding you up on Arch or Windows.

your websites were down for almost a week. what happen there?


Your comment is a bit extreme as our website was only down for two to three days.

Yes our hosting company had an issue and our server was affected. Everything was up and running as quickly as possible and I find no need to blame our hosting company. Servers go down and as computer developers we learn to handle this with grace.

I know you asked this on github, the site came back up, and then (according to my timeline) several hours later you asked again. We do appreciate your letting us know about the web site and we were working on it. As I am sure you know, some things take a few hours or a few days to work out.

Barbara
barbara
 
Posts: 57
Joined: Sat Apr 04 2015 2:32 am

Re: HELP: How to get started with CopperSpice? v2 linux

Postby areriff » Fri Mar 16 2018 4:27 pm

I tried using minimal Ubuntu 16.04 MATE Desktop.
It has 20GB disk space.
It has another 10GB for swap drive.

These are the exact relevant steps I took to try to build it:

    1. Open the terminal and type the following:
    2. cd Desktop/
    3. mkdir cs
    4. cd cs/
    5. sudo apt install autoconf git libtool libfreetype6-dev libfontconfig1-dev libglib2.0-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libice-dev libaudio-dev libgl1-mesa-dev libc6-dev libsm-dev libxcursor-dev libxext-dev libxfixes-dev libxi-dev libxinerama-dev libxrandr-dev libxrender-dev libxt6 libx11-dev libpulse-dev libasound2-dev
    6. git clone https://github.com/copperspice/copperspice.git
    7. cd copperspice/
    8. autoreconf -i
    9. cd ..
    10. mkdir cs_build
    11. cd cs_build
    12. make

The compilation took hours literally. Maybe around 6 hours and at the end I was greeted with this error at the end of the make process
Code: Select all
fatal error: error writing to /tmp/cc2VupUE.s: No space left on device
compilation terminated.
Makefile:31394: recipe for target '../3rdparty/webkit/Source/WebKit/qt/WebCoreSupport/______lib_webkit_libwebkitD_la-InspectorClientQt.lo' failed
make[3]: *** [../3rdparty/webkit/Source/WebKit/qt/WebCoreSupport/______lib_webkit_libwebkitD_la-InspectorClientQt.lo] Error 1
make[3]: Leaving directory '/home/areriff/Desktop/cs_build/src/webkit'
Makefile:7877: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/areriff/Desktop/cs_build/src/webkit'
Makefile:28543: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/areriff/Desktop/cs_build'
Makefile:9326: recipe for target 'all' failed
make: *** [all] Error 2


It ate more than 15GB+.

I use supported platform. This time I have all the dependencies.
I must have messed up somewhere.
What did I missed?


Code: Select all
areriff@ubuntu:~/Desktop/cs_build$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            960M     0  960M   0% /dev
tmpfs           198M  6.2M  191M   4% /run
/dev/sda1        19G   18G   26M 100% /
tmpfs           986M  476K  985M   1% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           986M     0  986M   0% /sys/fs/cgroup
tmpfs           198M   52K  198M   1% /run/user/1000
areriff
 
Posts: 11
Joined: Wed Nov 01 2017 2:51 pm

Re: HELP: How to get started with CopperSpice? v2 linux

Postby ansel » Sat Mar 17 2018 9:15 pm

I tried using minimal Ubuntu 16.04 MATE Desktop.
It has 20GB disk space.
It has another 10GB for swap drive.


Your VM does not have sufficient space available to build the debug version of CopperSpice. While 10Gb of swap should be enough to run the compiler, a normal build with debug symbols will require 18-20 GB of disk space simply for the build folder. Even a release build is 2-3 GB, which will be very tight on a machine with 20 GB of total space.

The compilation took hours literally. Maybe around 6 hours and at the end I was greeted with this error at the end of the make process


CopperSpice is a very large project. Depending on your hardware, 6 hours is not at all surprising for a full clean build of every library.

Unless you want full debug symbols, you may wish to build without debugging. This will reduce the disk space required considerably and speed up the compile slightly. You did not mention running configure, but since you are building with autotools you must have done so at some point. If you add CXXFLAGS="-O2" to your configure command, a release version of CopperSpice will be built.

Let me know if you have any other questions about the Linux build process.
ansel
 
Posts: 59
Joined: Fri Apr 10 2015 8:23 am

Re: HELP: How to get started with CopperSpice? v2 linux

Postby areriff » Sun Mar 18 2018 5:31 am

I didn't mentioned configure maybe because I didn't run it or I ran it and forget.
Which number (step) should ./configure be?
It is between 7 and 8?
I don't know the process. I just follow the instruction to the letter.

Note: This is the first ever project that I use autotools ever.
areriff
 
Posts: 11
Joined: Wed Nov 01 2017 2:51 pm

Re: HELP: How to get started with CopperSpice? v2 linux

Postby ansel » Sun Mar 18 2018 6:54 pm

I don't know the process. I just follow the instruction to the letter.


Here is the link to our documentation for building on linux: http://www.copperspice.com/docs/cs_overview/requirements-unix.html

As per our overview documentation, if you were using the source distribution from our download site, you would only need to run configure and make. Since you cloned the repo from github, you need to run all 3 steps. The configure step is between autoreconf and make as shown in our documentation.
ansel
 
Posts: 59
Joined: Fri Apr 10 2015 8:23 am


Return to Installation

cron