navit-project.org

forum for navit navigation tool
It is currently 23 Aug 2017, 00:47
View unanswered posts | View active topics


All times are UTC


Forum rules


Feel free to ask anything here related to the installation and configuration of Navit.

Some notes before your first post:

Please provide as much informations as possible:



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Unknown error when compiling
PostPosted: 27 Feb 2014, 08:39 
Offline

Joined: 06 Nov 2013, 14:30
Posts: 11
Really sorry for posting this in here, but I cannot seem to find any solution for this error, and I dont really understand where is it from.
I am compiling on windows 7 32-bit with MinGW and Cmake, I did this couple of months ago and had no issues, since then the olnly thing that I can think of is I have installed python, but I tried to remove python from the path variable, but that did not help.

Thank you

[ 0%] Built target version
[ 0%] Built target support_wordexp
[ 1%] Built target support_espeak
[ 1%] Built target support_ezxml
[ 1%] Built target support_win32
[ 1%] Built target binding_win32
[ 2%] Built target support_shapefile
[ 3%] Built target gui_gtk
[ 3%] Building C object navit/binding/python/CMakeFiles/binding_python.dir/attr
.c.obj
In file included from C:/Python33/include/Python.h:113:0,
from C:\MinGW\msys\1.0\home\M0008151\navit\navit-code\navit\nav
it\binding\python\common.h:20,
from C:\MinGW\msys\1.0\home\M0008151\navit\navit-code\navit\nav
it\binding\python\attr.c:20:
C:/Python33/include/pythonrun.h:178:1: warning: function declaration isn't a pro
totype [-Wstrict-prototypes]
int _Py_CheckPython3();
^
C:\MinGW\msys\1.0\home\M0008151\navit\navit-code\navit\navit\binding\python\attr
.c: In function 'attr_getattr_py':
C:\MinGW\msys\1.0\home\M0008151\navit\navit-code\navit\navit\binding\python\attr
.c:52:2: warning: implicit declaration of function 'Py_FindMethod' [-Wimplicit-f
unction-declaration]
return Py_FindMethod(attr_methods, self, name);
^
C:\MinGW\msys\1.0\home\M0008151\navit\navit-code\navit\navit\binding\python\attr
.c:52:2: warning: return makes pointer from integer without a cast [enabled by d
efault]
C:\MinGW\msys\1.0\home\M0008151\navit\navit-code\navit\navit\binding\python\attr
.c: At top level:
C:\MinGW\msys\1.0\home\M0008151\navit\navit-code\navit\navit\binding\python\attr
.c:63:2: warning: missing braces around initializer [-Wmissing-braces]
Obj_HEAD
^
C:\MinGW\msys\1.0\home\M0008151\navit\navit-code\navit\navit\binding\python\attr
.c:63:2: warning: (near initialization for 'attr_Type.ob_base.ob_base') [-Wmissi
ng-braces]
In file included from C:\MinGW\msys\1.0\home\M0008151\navit\navit-code\navit\nav
it\binding\python\attr.c:20:0:
C:\MinGW\msys\1.0\home\M0008151\navit\navit-code\navit\navit\binding\python\comm
on.h:24:42: error: expected expression before ';' token
#define Obj_HEAD PyObject_HEAD_INIT(NULL);
^
C:\MinGW\msys\1.0\home\M0008151\navit\navit-code\navit\navit\binding\python\attr
.c:63:2: note: in expansion of macro 'Obj_HEAD'
Obj_HEAD
^
C:\MinGW\msys\1.0\home\M0008151\navit\navit-code\navit\navit\binding\python\attr
.c:50:1: warning: 'attr_getattr_py' defined but not used [-Wunused-function]
attr_getattr_py(PyObject *self, char *name)
^
C:\MinGW\msys\1.0\home\M0008151\navit\navit-code\navit\navit\binding\python\attr
.c:56:1: warning: 'attr_destroy_py' defined but not used [-Wunused-function]
attr_destroy_py(attrObject *self)
^
navit\binding\python\CMakeFiles\binding_python.dir\build.make:57: recipe for tar
get 'navit/binding/python/CMakeFiles/binding_python.dir/attr.c.obj' failed
mingw32-make[2]: *** [navit/binding/python/CMakeFiles/binding_python.dir/attr.c.
obj] Error 1
CMakeFiles\Makefile2:829: recipe for target 'navit/binding/python/CMakeFiles/bin
ding_python.dir/all' failed
mingw32-make[1]: *** [navit/binding/python/CMakeFiles/binding_python.dir/all] Er
ror 2
Makefile:135: recipe for target 'all' failed
mingw32-make: *** [all] Error 2


 Profile  
 
 Post subject: Re: Unknown error when compiling
PostPosted: 27 Feb 2014, 16:54 
Offline
User avatar

Joined: 07 Jun 2013, 17:13
Posts: 146
Location: Tartu, Estonia
This looks indeed like a problem with your Python installation. Apparently CMake finds this Python installation and tries to use it, but it fails, probably because of some compatibility problem with version 3.3.

Unfortunately I can't say how to fix it, since have never used CMake, and I don't have Windows, so I don't know how to stop CMake from doing this, or how it finds Python.


 Profile  
 
 Post subject: Re: Unknown error when compiling
PostPosted: 03 Mar 2014, 09:24 
Offline

Joined: 06 Nov 2013, 14:30
Posts: 11
Thank you for your reply


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Silver Orange 2.0.6 for IPB Designed by Skins and Hosting
Converted for phpBB3, based on Royal Blue template by BigB © 2007 2008 AEON KINGS