Orange Forum • View topic - build error

build error

Report bugs (or imagined bugs).
(Archived/read-only, please use our ticketing system for reporting bugs and their discussion.)
Forum rules
Archived/read-only, please use our ticketing system for reporting bugs and their discussion.

build error

Postby zoran.bosnjak » Tue Sep 30, 2008 9:55

Orange ver1.0 does not build. It fails with this output:

bosnjak@bosnjak2:~/orangesvn/ver1.0$ svn info
Path: .
URL: http://www.ailab.si/svn/orange/branches/ver1.0
Repository Root: http://www.ailab.si/svn/orange
Repository UUID: abb54cfb-9aa5-4a4f-ad95-02929a718f71
Revision: 6366
Node Kind: directory
Schedule: normal
Last Changed Author: tomaz
Last Changed Rev: 6345
Last Changed Date: 2008-09-28 21:44:28 +0200 (Sun, 28 Sep 2008)

bosnjak@bosnjak2:~/orangesvn/ver1.0$ svn status
bosnjak@bosnjak2:~/orangesvn/ver1.0$ cd source/
bosnjak@bosnjak2:~/orangesvn/ver1.0/source$ make
(for MODULE in include orange orangeom orangene corn statc ; \
do if ! make all -C $MODULE OLD=../..; then exit 1; fi; done)
make[1]: Entering directory `/home/bosnjak/orangesvn/ver1.0/source/include'
python ../pyxtract/makedep.py -n INCLUDE
rm -f ppp/stamp
rm -f px/stamp
make[1]: Leaving directory `/home/bosnjak/orangesvn/ver1.0/source/include'
make[1]: Entering directory `/home/bosnjak/orangesvn/ver1.0/source/include'
g++ -fPIC -fpermissive -w -DLINUX -DINCLUDE_EXPORTS -O3 -c c2py.cpp -o obj/c2py.o
g++ -fPIC -fpermissive -w -DLINUX -DINCLUDE_EXPORTS -O3 -c common.cpp -o obj/common.o
g++ -fPIC -fpermissive -w -DLINUX -DINCLUDE_EXPORTS -O3 -c crc32.cpp -o obj/crc32.o
g++ -fPIC -fpermissive -w -DLINUX -DINCLUDE_EXPORTS -O3 -c lcomb.cpp -o obj/lcomb.o
g++ -fPIC -fpermissive -w -DLINUX -DINCLUDE_EXPORTS -O3 -c stat.cpp -o obj/stat.o
g++ -fPIC -fpermissive -w -DLINUX -DINCLUDE_EXPORTS -O3 -c statexceptions.cpp -o obj/statexceptions.o
g++ -fPIC -fpermissive -w -DLINUX -DINCLUDE_EXPORTS -O3 -c strings.cpp -o obj/strings.o
strings.cpp: In function ‘void trim(char*)’:
strings.cpp:39: error: ‘strlen’ was not declared in this scope
make[1]: *** [obj/strings.o] Error 1
make[1]: Leaving directory `/home/bosnjak/orangesvn/ver1.0/source/include'
make: *** [all] Error 1
bosnjak@bosnjak2:~/orangesvn/ver1.0/source$

I have followed instructions at:
http://www.ailab.si/orange/downloads-linux.asp#orange-1.0-ubuntu

I am running debian sid.

This is the first time I've tryed to build orange, so there is probably some package missing on my installation?? Please advice.

regards,
Zoran

patch

Postby zoran.bosnjak » Fri Oct 10, 2008 10:40

I had to add two includes to be able to compile.
Here is a patch.
Zoran

Index: source/include/strings.cpp
===================================================================
--- source/include/strings.cpp (revision 6366)
+++ source/include/strings.cpp (working copy)
@@ -19,6 +19,7 @@
Contact: janez.demsar@fri.uni-lj.si
*/

+#include <string.h>
#include "strings.hpp"

string trim(const string &s)
Index: source/orange/graph.cpp
===================================================================
--- source/orange/graph.cpp (revision 6366)
+++ source/orange/graph.cpp (working copy)
@@ -20,6 +20,7 @@
*/


+#include <algorithm>
#include "graph.ppp"

double _disconbuf;

Postby Mitar » Thu May 21, 2009 14:51

I have committed this into the 1.0 branch. But you should really use trunk version now as it works better than 1.0 branch and it also has many bugfixes which were not backported to the 1.0 branch.

finally installed orange module for python 2.6

Postby adelina » Fri Dec 03, 2010 14:05

for python 2.6
archive from
http://www.ailab.si/orange/download/archive/

instructions from
http://www.ailab.si/svn/orange/trunk/orange/doc/INSTALL.linux.txt
sudo ln -s /usr/lib/python2.6/dist-packages/orange/liborange.so /usr/lib/liborange.so


Return to Bugs



cron