Page 1 of 1

linux compile error

Posted: Tue Mar 03, 2015 8:15 am
by ekacpuc
I haven't ran linux in a long time and just got the newest version of linux mint. Tried to compile it and here's what happens:
ekacpuc@ekacpuc-Latitude-D630 ~/vegastrike-src-0.5.1.r1 $ make
make all-am
make[1]: Entering directory `/home/ekacpuc/vegastrike-src-0.5.1.r1'
depbase=`echo src/cmd/ai/hard_coded_scripts.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; \
if g++ -DHAVE_CONFIG_H -I. -I. -I. -DBOOST_PYTHON_NO_PY_SIGNATURES -DBOOST_PYTHON_STATIC_LIB -I./boost/1_45 -DHAVE_SDL=1 -DSDL_WINDOWING=1 -DHAVE_AL=1 -DHAVE_OGG -DNV_CUBE_MAP=1 -I./src -pipe -DNV_CUBE_MAP -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -pthread -MT src/cmd/ai/hard_coded_scripts.o -MD -MP -MF "$depbase.Tpo" -c -o src/cmd/ai/hard_coded_scripts.o src/cmd/ai/hard_coded_scripts.cpp; \
then mv -f "$depbase.Tpo" "$depbase.Po"; else rm -f "$depbase.Tpo"; exit 1; fi
In file included from ./src/python/python_class.h:11:0,
from src/cmd/ai/hard_coded_scripts.cpp:2:
./src/cs_python.h:24:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
make[1]: *** [src/cmd/ai/hard_coded_scripts.o] Error 1
make[1]: Leaving directory `/home/ekacpuc/vegastrike-src-0.5.1.r1'
make: *** [all] Error 2





Any ideas? I've searched but couldn't find an answer. I don't know what a config log is so I didn't paste it..

Re: linux compile error

Posted: Tue Mar 03, 2015 3:29 pm
by CLoneWolf
In "debworld", Python.h is in libpythonX.Y-dev (X.Y being the python version)
Linux Mint has a libpython-dev package ( http://community.linuxmint.com/software ... python-dev ) which pulls the actual current version package, try installing it.

Re: linux compile error

Posted: Wed Mar 04, 2015 12:02 am
by Eye~R
17's Repo's don't seem to feature VS - I've not found out why yet, but 'buntu's 14.10 does, and might be able to use gdebi(or install from double click) on that. For future dependency issues when building things, ½ the time synaptic will be able to locate it.

Re: linux compile error

Posted: Wed Mar 04, 2015 3:34 am
by loki1950
I have had no problems building under Mint 17.1 which is a 'buntu 14 derivative just make sure you have the dev .debs for each of the dependencies that was all I had to do.

Enjoy the Choice :)

Re: linux compile error

Posted: Wed Mar 04, 2015 6:57 am
by ekacpuc
I went to the link and it wouldn't download because I already have it.

I've searched and downloaded every dependency I could find and no luck...

Been working on this a couple days :(

Re: linux compile error

Posted: Wed Mar 04, 2015 7:46 am
by ekacpuc
had to move a duplicate to usr/include

Got a new error. I'll search it but it says (over and over)

Unit file Robin.stock not found
+++ m/ship_upgrades.py:171 Python Upgrade Error: finding upgrades/Ammunition using upgrades/Ammunition instead
+++ m/ship_upgrades.py:174 Python Upgrade Error: category upgrades/Ammunition -- getting random instead
+++ m/ship_upgrades.py:171 Python Upgrade Error: finding upgrades/Ammunition using upgrades/Ammunition instead
+++ m/ship_upgrades.py:174 Python Upgrade Error: category upgrades/Ammunition -- getting random instead
+++ m/ship_upgrades.py:171 Python Upgrade Error: finding upgrades/Ammunition using upgrades/Ammunition instead
+++ m/ship_upgrades.py:174 Python Upgrade Error: category upgrades/Ammunition -- getting random instead
+++ m/ship_upgrades.py:171 Python Upgrade Error: finding upgrades/Ammunition using upgrades/Ammunition instead
+++ m/ship_upgrades.py:174 Python Upgrade Error: category upgrades/Ammunition -- getting random instead
+++ m/ship_upgrades.py:171 Python Upgrade Error: finding upgrades/Ammunition using upgrades/Ammunition instead
+++ m/ship_upgrades.py:174 Python Upgrade Error: category upgrades/Ammunition -- getting random instead
Killed

Re: linux compile error

Posted: Wed Mar 04, 2015 3:38 pm
by loki1950
That error is normal caused when NPC ships are spawned and the ship_upgrade random function gets a non valid output.

Enjoy the Choice :)

Re: linux compile error

Posted: Wed Mar 04, 2015 10:11 pm
by ekacpuc
so how do you fix that?

Re: linux compile error

Posted: Wed Mar 04, 2015 11:06 pm
by loki1950
The random function itself needs to be refactored so it does not pick inappropriate items like an engine for the gun mounts ;) and it has been an issue for years and has no effect on the game play at all so it is a very low priority bug.Rewriting it so those errors don't occur will increase it's complexity and most likely be just as buggy so till we have the people that understand Python and the logic of that module there is not much to do it is really a warning as the function repeats till the result is valid.

Enjoy the Choice :)

Re: linux compile error

Posted: Thu Mar 05, 2015 4:14 am
by ekacpuc
loki1950 wrote:The random function itself needs to be refactored so it does not pick inappropriate items like an engine for the gun mounts ;) and it has been an issue for years and has no effect on the game play at all so it is a very low priority bug.Rewriting it so those errors don't occur will increase it's complexity and most likely be just as buggy so till we have the people that understand Python and the logic of that module there is not much to do it is really a warning as the function repeats till the result is valid.

Enjoy the Choice :)

Oh. The game just closes for me. I open it from terminal after it closes I see that error in the terminal. So I must have some other problem then? Here pretty soon I'll just have to pass on trying to get the game to work. I didn't plan on playing anything until I saw vegastrike.

Re: linux compile error

Posted: Thu Mar 05, 2015 5:30 am
by loki1950
Please run the game from a terminal and post the full output from the crash I can usually find the problem but need the full context for that if it is crashing the error you posted does not do that so it must be something else.

Enjoy the Choice :)

Re: linux compile error

Posted: Fri Apr 03, 2015 3:30 pm
by ermo
Any chance that python3.4 can become the official supported py3 version in the VS CMake build files? The 3.4 branch is a year old and e.g. Ubuntu 14.04 LTS and OpenSUSE 13.2 both ship py3.4?

Having to manually hack the CMake files just to get the damn thing to compile and run with py34 on newer distros is sort of user-unfriendly. That said, I don't have the CMake foo to do a proper patch -- I've just hacked my configuration to do the right thing on fedora 21. I've attached a patch, but I doubt that it'll pass muster for official inclusion. At least it serves as an example for future would-be VS users/devs...

Note that the patch I have attached also enables force feedback.

Re: linux compile error

Posted: Tue Apr 07, 2015 12:23 pm
by TBeholder
Yup, it's all a little moth-biten. I just fixed paths in ccmake

Code: Select all

PYTHON_INCLUDE_DIR               /usr/include/python2.7
and so on