Ticket #971 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

Error during compilation

Reported by: chalaoux Owned by: ales
Milestone: 2.5 Component: library
Severity: immediate Keywords:
Cc: chalaoux Blocking:
Blocked By:

Description (last modified by chalaoux) (diff)

Hi All,

Trying to compile (Nightly 27/09/2011) Orange in my virtualenv I got this error. It seems to be related to qhull. What do you think about that, what should I do ?

FR.

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

cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/site/tl/app/ia64/discovery/schrodinger/current/mmshare-v20109/lib/Linux-x86_64/include/python2.7 -I/site/tl/app/ia64/discovery/schrodinger/current/mmshare-v20109/lib/Linux-x86_64/lib/python2.7/site-packages/numpy/core/include -Isource/include -Isource/orange/ -Isource/orangeom/ppp -Isource/orangeom/px -I/site/tl/app/ia64/discovery/schrodinger/current/mmshare-v20109/lib/Linux-x86_64/include/python2.7 -c source/orangeom/triangulate.cpp -o build/temp.linux-x86_64-2.7/source/orangeom/triangulate.o -fPIC -fpermissive -w -DLINUX -DORANGEOM_EXPORTS
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
source/orangeom/triangulate.cpp:61:25: error: qhull/qhull.h: No such file or directory
source/orangeom/triangulate.cpp:62:54: error: qhull/qset.h: No such file or directory
source/orangeom/triangulate.cpp:63:56: error: qhull/poly.h: No such file or directory
source/orangeom/triangulate.cpp: In function 'PyObject* qhull(PyObject*, PyObject*)':
source/orangeom/triangulate.cpp:92: error: 'coordT' was not declared in this scope
source/orangeom/triangulate.cpp:92: error: 'points' was not declared in this scope
source/orangeom/triangulate.cpp:92: error: expected type-specifier before 'coordT'
source/orangeom/triangulate.cpp:92: error: expected `;' before 'coordT'
source/orangeom/triangulate.cpp:93: error: 'pointsi' was not declared in this scope
source/orangeom/triangulate.cpp:101: error: 'boolT' was not declared in this scope
source/orangeom/triangulate.cpp:101: error: expected `;' before 'ismalloc'
source/orangeom/triangulate.cpp:102: error: 'ismalloc' was not declared in this scope
source/orangeom/triangulate.cpp:102: error: 'qh_new_qhull' was not declared in this scope
source/orangeom/triangulate.cpp:104: error: type '<type error>' argument given to 'delete', expected pointer
source/orangeom/triangulate.cpp:108: error: 'qh_ERRinput' was not declared in this scope
source/orangeom/triangulate.cpp:109: error: 'qh_ERRsingular' was not declared in this scope
source/orangeom/triangulate.cpp:110: error: 'qh_ERRprec' was not declared in this scope
source/orangeom/triangulate.cpp:111: error: 'qh_ERRmem' was not declared in this scope
source/orangeom/triangulate.cpp:112: error: 'qh_ERRqhull' was not declared in this scope
source/orangeom/triangulate.cpp:116: error: 'facetT' was not declared in this scope
source/orangeom/triangulate.cpp:116: error: 'facet' was not declared in this scope
source/orangeom/triangulate.cpp:117: error: 'vertexT' was not declared in this scope
source/orangeom/triangulate.cpp:117: error: 'vertex' was not declared in this scope
source/orangeom/triangulate.cpp:117: error: 'vertexp' was not declared in this scope
source/orangeom/triangulate.cpp:119: error: 'FORALLfacets' was not declared in this scope
source/orangeom/triangulate.cpp:120: error: expected `;' before 'nFacets'
source/orangeom/triangulate.cpp:128: error: expected `;' before 'FOREACHvertex_'
source/orangeom/triangulate.cpp:131: error: 'qh_ALL' was not declared in this scope
source/orangeom/triangulate.cpp:131: error: 'qh_freeqhull' was not declared in this scope

Change History

comment:1 Changed 3 years ago by chalaoux

  • Description modified (diff)

comment:2 Changed 3 years ago by ales

  • Status changed from new to assigned
  • Owner changed from janez to ales

comment:3 Changed 3 years ago by ales

This was my fault. I changed the qhull includes to allow using an external qhull library and I did not update the setup.py script to reflect the changes. I have fixed this and now the  nightly packed sources should (hopefully) compile. Can you try it and report if it works so I can close the ticket.

comment:4 Changed 3 years ago by chalaoux

It works nice. Thanks a lot.

comment:5 Changed 3 years ago by ales

  • Status changed from assigned to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.