glcs icon indicating copy to clipboard operation
glcs copied to clipboard

Build Step

Open Schizo opened this issue 9 years ago • 2 comments

Can you give a walkthrough through the build-steps? Its not quickly sure where to start.

Schizo avatar Aug 05 '15 00:08 Schizo

Here are the functions from the ArchLinux PKGBUILD file:

prepare() { cd glcs git submodule init git config submodule.elfhacks.url $srcdir/elfhacks git config submodule.packetstream.url $srcdir/glcs-packetstream git config submodule.support.url $srcdir/glcs-support git submodule update }

build() { cd $srcdir/glcs

DESTDIR=$pkgdir/usr
if [ $CARCH == "x86_64" ]; then
    CFLAGS="$CFLAGS -m64"
fi
./build.sh $DESTDIR || return 1;

}

package() { cd $srcdir/glcs DESTDIR=$pkgdir/usr ./package.sh $DESTDIR || return 1; }

It should show you pretty much how to use the glcs build.sh and package.sh scripts.

Also note that you must have cmake and mesa installed to successfully build it.

Come back with more specific questions if you need more help

lano1106 avatar Sep 15 '15 03:09 lano1106

This is what I had to do to make it install:

$ cat make.sh 
CFLAGS="$CFLAGS -m64"
./build.sh /usr
vadi@gooseberry:~/Programs/glcs-(git/ master )$ ./make.sh 
Building elfhacks...
CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.8)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: /home/vadi/Programs/glcs/elfhacks/build
[100%] Built target elfhacks
Building packetstream...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/vadi/Programs/glcs/packetstream/build
[100%] Built target packetstream
Building ../glcs...
-- Found packetstream: /home/vadi/Programs/glcs/packetstream/build/src/libpacketstream.so
-- Found elfhacks: /home/vadi/Programs/glcs/elfhacks/build/src/libelfhacks.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/vadi/Programs/glcs
make: *** No targets specified and no makefile found.  Stop.
vadi@gooseberry:~/Programs/glcs-(git/ master )$ cmake .
-- Found packetstream: /home/vadi/Programs/glcs/packetstream/build/src/libpacketstream.so
-- Found elfhacks: /home/vadi/Programs/glcs/elfhacks/build/src/libelfhacks.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/vadi/Programs/glcs
vadi@gooseberry:~/Programs/glcs-(git/ master )$ make
[  1%] Built target capture
[ 37%] Built target glc-core
[ 55%] Built target glc-export
[ 72%] Built target glc-play
[ 74%] Built target play
[ 93%] Built target glc-capture
[100%] Built target glc-hook
vadi@gooseberry:~/Programs/glcs-(git/ master )$ sudo make install
[  1%] Built target capture
[ 37%] Built target glc-core
[ 55%] Built target glc-export
[ 72%] Built target glc-play
[ 74%] Built target play
[ 93%] Built target glc-capture
[100%] Built target glc-hook
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/bin/glc-capture
-- Installing: /usr/bin/glc-play
-- Removed runtime path from "/usr/bin/glc-play"
-- Installing: /usr/lib/libglc-core.so.0.6.3
-- Installing: /usr/lib/libglc-core.so.0
-- Installing: /usr/lib/libglc-core.so
-- Installing: /usr/lib/libglc-capture.so.0.6.3
-- Installing: /usr/lib/libglc-capture.so.0
-- Installing: /usr/lib/libglc-capture.so
-- Removed runtime path from "/usr/lib/libglc-capture.so.0.6.3"
-- Installing: /usr/lib/libglc-play.so.0.6.3
-- Installing: /usr/lib/libglc-play.so.0
-- Installing: /usr/lib/libglc-play.so
-- Removed runtime path from "/usr/lib/libglc-play.so.0.6.3"
-- Installing: /usr/lib/libglc-export.so.0.6.3
-- Installing: /usr/lib/libglc-export.so.0
-- Installing: /usr/lib/libglc-export.so
-- Removed runtime path from "/usr/lib/libglc-export.so.0.6.3"
-- Installing: /usr/lib/libglc-hook.so.0.6.3
-- Installing: /usr/lib/libglc-hook.so.0
-- Installing: /usr/lib/libglc-hook.so
-- Removed runtime path from "/usr/lib/libglc-hook.so.0.6.3"
vadi@gooseberry:~/Programs/glcs-(git/ master )$ glc-capture 
glc-capture [capture option]... [application] [application argument]...
  -o, --out=FILE             write to FILE

vadi2 avatar Mar 19 '16 23:03 vadi2