Building Springlobby from Source on machine with no sudo rights

Building Springlobby from Source on machine with no sudo rights

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
Bla
Posts: 79
Joined: 25 Feb 2013, 14:44

Building Springlobby from Source on machine with no sudo rights

Post by Bla » 19 Jun 2017, 04:05

So since my school has better workstation machines than my labtop, I've been trying to install Spring on their linux machines. When I download springlobby and run:

Code: Select all

cmake .
I get

Code: Select all

-- gcc 4.8.5 detected
-- Found xgettext: /usr/bin/xgettext
-- Found msgmerge: /usr/bin/msgmerge
-- Using -std=gnu++11
CMake Error at /usr/share/cmake/Modules/FindBoost.cmake:1138 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.64.0

  Boost include path: /home/rnai2/Downloads/springlobby-0.256/boost

  Could not find the following static Boost libraries:

          boost_thread
          boost_system

  No Boost libraries were found.  You may need to set BOOST_LIBRARYDIR to the
  directory containing Boost libraries or BOOST_ROOT to the location of
  Boost.
Call Stack (most recent call first):
  src/CMakeLists.txt:34 (FIND_PACKAGE)


-- found wx-config: wxWidgets_CONFIG_EXECUTABLE-NOTFOUND
CMake Error at src/CMakeLists.txt:68 (message):
  couldn't find wx-widgets >= 3.0, found


-- Configuring incomplete, errors occurred!
See also "/home/rnai2/Downloads/springlobby-0.256/CMakeFiles/CMakeOutput.log".
I downloaded boost 1.64, and put it in ~/Downloads/springlobby-0.256/boost and ran

Code: Select all

cmake -DBOOST_ROOT=/home/rnai2/Downloads/springlobby-0.256/boost -DBoost_USE_STATIC_LIBS=ON -DBoost_USE_MULTITHREADED=ON
and got

Code: Select all

-- gcc 4.8.5 detected
-- Found xgettext: /usr/bin/xgettext
-- Found msgmerge: /usr/bin/msgmerge
-- Using -std=gnu++11
CMake Error at /usr/share/cmake/Modules/FindBoost.cmake:1138 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.64.0

  Boost include path: /home/rnai2/Downloads/springlobby-0.256/boost

  Could not find the following static Boost libraries:

          boost_thread
          boost_system

  No Boost libraries were found.  You may need to set BOOST_LIBRARYDIR to the
  directory containing Boost libraries or BOOST_ROOT to the location of
  Boost.
Call Stack (most recent call first):
  src/CMakeLists.txt:34 (FIND_PACKAGE)


-- found wx-config: wxWidgets_CONFIG_EXECUTABLE-NOTFOUND
CMake Error at src/CMakeLists.txt:68 (message):
  couldn't find wx-widgets >= 3.0, found


-- Configuring incomplete, errors occurred!
See also "/home/rnai2/Downloads/springlobby-0.256/CMakeFiles/CMakeOutput.log".
I tried renaming boost/boost/thread to boost_thread and boost/boost/system to boost_system but that didn't help.

When I moved the boost .hpps from boost/boost to /boost, I got

Code: Select all

  Unable to find the requested Boost libraries.

  Boost version: 0.0.0

  Boost include path: /home/rnai2/Downloads/springlobby-0.256/boost

  Detected version of Boost is too old.  Requested version was 1.42 (or
  newer).
Call Stack (most recent call first):
  src/CMakeLists.txt:34 (FIND_PACKAGE)


-- found wx-config: wxWidgets_CONFIG_EXECUTABLE-NOTFOUND
CMake Error at src/CMakeLists.txt:68 (message):
  couldn't find wx-widgets >= 3.0, found


-- Configuring incomplete, errors occurred!
See also "/home/rnai2/Downloads/springlobby-0.256/CMakeFiles/CMakeOutput.log".
How should I run cmake? It shouldn't be an issue that I don't have sudo rights because all I need to do is just install boost into my springlobby directory right?
0 x

Bla
Posts: 79
Joined: 25 Feb 2013, 14:44

Re: Building Springlobby from Source on machine with no sudo rights

Post by Bla » 19 Jun 2017, 04:33

So I ran ccmake and set Boost_SYSTEM_LIBRARY_RELEASE to ~/Downloads/springlobby-0.256/boost/boost/system and did the same for thread.

I then downloaded wx-widgets, ran configure and make, then moved it into ~/Downloads/springlobby-0.256. In ccmake I then set wxWidgets_CONFIG_EXECUTABLE to ~/Downloads/springlobby-0.256/wxWidgets/configure

When I press c to configure, it says

Code: Select all

 CMake Error at src/CMakeLists.txt:68 (message):
   couldn't find wx-widgets >= 3.0, found
Why can it not find wx-widgets?
0 x

Bla
Posts: 79
Joined: 25 Feb 2013, 14:44

Re: Building Springlobby from Source on machine with no sudo rights

Post by Bla » 19 Jun 2017, 04:34

When I run cmake after it says

Code: Select all

[rnai2@eceb-3070-12 springlobby-0.256]$ cmake .
-- gcc 4.8.5 detected
-- Found xgettext: /usr/bin/xgettext
-- Found msgmerge: /usr/bin/msgmerge
-- Using -std=gnu++11
-- Boost version: 1.64.0
-- Found the following Boost libraries:
--   thread
--   system
-- found wx-config: /home/rnai2/Downloads/springlobby-0.256/wxWidgets/configure
configure: error: unrecognized option: `--version-full'
Try `/home/rnai2/Downloads/springlobby-0.256/wxWidgets/configure --help' for more information
configure: error: unrecognized option: `--version=3.0'
Try `/home/rnai2/Downloads/springlobby-0.256/wxWidgets/configure --help' for more information
CMake Error at src/CMakeLists.txt:68 (message):
  couldn't find wx-widgets >= 3.0, found


-- Configuring incomplete, errors occurred!
See also "/home/rnai2/Downloads/springlobby-0.256/CMakeFiles/CMakeOutput.log".
Is configure not what wxWidgets_CONFIG_EXECUTABLE is supposed to be?
0 x

User avatar
ThinkSome
Posts: 292
Joined: 14 Jun 2015, 13:36

Re: Building Springlobby from Source on machine with no sudo rights

Post by ThinkSome » 19 Jun 2017, 19:11

What you are looking for is Gentoo Prefix: https://wiki.gentoo.org/wiki/Project:Prefix

then just follow the Spring on Gentoo guide
0 x

Bla
Posts: 79
Joined: 25 Feb 2013, 14:44

Re: Building Springlobby from Source on machine with no sudo rights

Post by Bla » 21 Jun 2017, 06:24

The compilation failed, but I have a feeling getting gentoo bootstrap running on my university shared directory will be much much harder than getting springlobby build from source.

Here are the last lines of the compilation, if there is an easy fix

Code: Select all

gcc -std=gnu99   -O2 -pipe -O2 -pipe  -L/home/rnai2/gentoo/tmp/usr/lib -Wl,-rpath=/home/rnai2/gentoo/tmp/usr/lib -o src/bison src/bison-AnnotationList.o src/bison-InadequacyList.o src/bison-LR0.o src/bison-Sbitset.o src/bison-assoc.o src/bison-closure.o src/bison-complain.o src/bison-conflicts.o src/bison-derives.o src/bison-files.o src/bison-getargs.o src/bison-gram.o src/bison-graphviz.o src/bison-lalr.o src/bison-ielr.o src/bison-location.o src/bison-main.o src/bison-muscle-tab.o src/bison-named-ref.o src/bison-nullable.o src/bison-output.o src/bison-parse-gram.o src/bison-print-xml.o src/bison-print.o src/bison-print_graph.o src/bison-reader.o src/bison-reduce.o src/bison-relation.o src/bison-scan-code-c.o src/bison-scan-gram-c.o src/bison-scan-skel-c.o src/bison-state.o src/bison-symlist.o src/bison-symtab.o src/bison-tables.o src/bison-uniqstr.o lib/libbison.a  
src/bison --version >doc/bison.help.tmp
src/bison --help   >>doc/bison.help.tmp
./build-aux/move-if-change doc/bison.help.tmp doc/bison.help
/home/rnai2/gentoo/tmp/bin/bash /home/rnai2/gentoo/tmp/var/tmp/portage/sys-devel/bison-3.0.4-r1/work/bison-3.0.4/build-aux/missing help2man			\
    --include=./doc/bison.x	\
    --output=doc/bison.1.t src/bison
/home/rnai2/gentoo/tmp/var/tmp/portage/sys-devel/bison-3.0.4-r1/work/bison-3.0.4/build-aux/missing: line 81: help2man: command not found
WARNING: 'help2man' is missing on your system.
         You should only need it if you modified a dependency of a man page.
         You may want to install the GNU Help2man package:
         <http://www.gnu.org/software/help2man/>
make[2]: *** [doc/bison.1] Error 127
make[2]: Leaving directory `/home/rnai2/gentoo/tmp/var/tmp/portage/sys-devel/bison-3.0.4-r1/work/bison-3.0.4'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/rnai2/gentoo/tmp/var/tmp/portage/sys-devel/bison-3.0.4-r1/work/bison-3.0.4'
make: *** [all] Error 2
 * ERROR: sys-devel/bison-3.0.4-r1::gentoo_prefix failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=sys-devel/bison-3.0.4-r1::gentoo_prefix'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/bison-3.0.4-r1::gentoo_prefix'`.
 * The complete build log is located at '/home/rnai2/gentoo/tmp/var/tmp/portage/sys-devel/bison-3.0.4-r1/temp/build.log'.
 * The ebuild environment file is located at '/home/rnai2/gentoo/tmp/var/tmp/portage/sys-devel/bison-3.0.4-r1/temp/environment'.
 * Working directory: '/home/rnai2/gentoo/tmp/var/tmp/portage/sys-devel/bison-3.0.4-r1/work/bison-3.0.4'
 * S: '/home/rnai2/gentoo/tmp/var/tmp/portage/sys-devel/bison-3.0.4-r1/work/bison-3.0.4'

>>> Failed to emerge sys-devel/bison-3.0.4-r1, Log file:

>>>  '/home/rnai2/gentoo/tmp/var/tmp/portage/sys-devel/bison-3.0.4-r1/temp/build.log'

 * Messages for package sys-devel/bison-3.0.4-r1:

 * ERROR: sys-devel/bison-3.0.4-r1::gentoo_prefix failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=sys-devel/bison-3.0.4-r1::gentoo_prefix'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/bison-3.0.4-r1::gentoo_prefix'`.
 * The complete build log is located at '/home/rnai2/gentoo/tmp/var/tmp/portage/sys-devel/bison-3.0.4-r1/temp/build.log'.
 * The ebuild environment file is located at '/home/rnai2/gentoo/tmp/var/tmp/portage/sys-devel/bison-3.0.4-r1/temp/environment'.
 * Working directory: '/home/rnai2/gentoo/tmp/var/tmp/portage/sys-devel/bison-3.0.4-r1/work/bison-3.0.4'
 * S: '/home/rnai2/gentoo/tmp/var/tmp/portage/sys-devel/bison-3.0.4-r1/work/bison-3.0.4'

Odd!  Running
  /usr/bin/bash ./bootstrap-prefix.sh "/home/rnai2/gentoo" stage2
failed! :(  Details might be found in the build log:
  /home/rnai2/gentoo/tmp/var/tmp/portage/sys-devel/bison-3.0.4-r1/temp/build.log
  (no build logs found?!?)
I have no clue, really.  Please find friendly folks in #gentoo-prefix on
irc.gentoo.org, gentoo-alt@lists.gentoo.org mailing list, or file a bug
at bugs.gentoo.org under Gentoo/Alt, Prefix Support. I am defeated.
I am of no use here any more.
Maybe you can find some clues in /home/rnai2/gentoo/stage2.log
0 x

User avatar
ThinkSome
Posts: 292
Joined: 14 Jun 2015, 13:36

Re: Building Springlobby from Source on machine with no sudo rights

Post by ThinkSome » 21 Jun 2017, 11:41

Is sys-apps/help2man installed?
0 x

Bla
Posts: 79
Joined: 25 Feb 2013, 14:44

Re: Building Springlobby from Source on machine with no sudo rights

Post by Bla » 21 Jun 2017, 18:10

I guess not, but I don't have sudo rights on my Uni machine so I don't think I can install it
0 x

User avatar
ThinkSome
Posts: 292
Joined: 14 Jun 2015, 13:36

Re: Building Springlobby from Source on machine with no sudo rights

Post by ThinkSome » 21 Jun 2017, 18:35

Install it inside Gentoo, this is what Prefix is for.
0 x

Bla
Posts: 79
Joined: 25 Feb 2013, 14:44

Re: Building Springlobby from Source on machine with no sudo rights

Post by Bla » 21 Jun 2017, 20:26

Ah okay... sorry for my lack of proficiency, but where should I install it to?

~/gentoo/lib is empty

~/gentoo/var/lib/portage is empty

~/gentoo/usr/lib is also empty

Should I rename it from help2man-1.47.4 (what I downloaded) to just help2man?
0 x

User avatar
ThinkSome
Posts: 292
Joined: 14 Jun 2015, 13:36

Re: Building Springlobby from Source on machine with no sudo rights

Post by ThinkSome » 21 Jun 2017, 22:46

emerge help2man
0 x

Post Reply

Return to “Help & Bugs”

cron