Changeset 8675:845fe8b83328 in orange
- 08/12/11 14:51:45 (2 years ago)
- 1 edited
r8669 r8675 1 == How to build the orange plot library and its python bindings: == 1 == How to build the orange: == 2 2 3 3 = Prerequisites = 4 4 5 orange plot uses CMake and SIP. They are both free software and are included in most Linux distributions. 5 oranget uses CMake and SIP. They are both free software and are included in most Linux distributions. 6 6 They can also be downloaded from their sites: 7 7 … … 9 9 SIP: http://www.riverbankcomputing.co.uk/software/sip/download 10 10 11 orangeplot also needs the Qt libraries and headers (the qt-dev or qt-devel packages on Linux) and PyQt. 11 orangeqt also needs the Qt libraries and headers (the qt-dev or qt-devel packages on Linux) and PyQt. 12 13 The Qt libraries can be downloaded from Nokia: https://qt.nokia.com/downloads/downloads#qt-lib. 14 15 Download and install the latest version of the libraries that matches your operating system and compiler. Different version of compilers are compatible, but different compilers are not. 16 12 17 13 18 = Compilation = 14 19 15 If you use GNU Make, it's enough to just call 'make' from the orange plot directory 20 If you use GNU Make, it's enough to just call 'make' from the orange 16 21 17 Follow the standard CMake instructions to compile orangeplot: 18 1.a) Use the CMake GUI, and load the orange plot directory from there. 22 t: 23 1.a) Use the CMake GUI, and load the oranget directory from there. 19 24 The build directory must be a new or empty directory, and is usually called build and placed inside the source directory. 20 25 This method is preferred as it asks you for your compiler settings. 26 21 27 1.b) From the command line: run 22 28 mkdir build 23 29 cd build 24 cmake -G "MinGW Makefiles" .. 25 If you use a compiler other than MinGW, replace "MinGW Makefiles" with the appropriate value. 26 2) Compile the program by calling 'make' in the build directory. 27 There is no need to call "make install", because "make" will copy both the C++ library and its Python bindings into the parent directory, with other Orange libraries. 30 cmake -G "NMake Makefiles" .. 31 If you use a compiler other than NMake, replace "NMake Makefiles" with the appropriate value. 32 The list of possible choices includes "Visual Studio 10", "Unix Makefiles", "NMake Makefiles" and many others. 33 It is exparing with every new compiler supported by CMake, the complete list is available in the GUI version of CMake. 34 35 2) This step depends on your selected compiler. If you chose any type of makefiles, run "make" or "nmake" in the build directory. If you used Visual Studio, open the Solution file located in the build directory. 36 37 There is no need to install the library, because CMake will copy both the library into the parent directory, with other Orange libraries. However, make sure that the generated library (orangeqt.so or orangeqt.pyd) is in Python's path. You can either adjust the path, or copy the library somewhere where Python will find it. 28 38 29 Again, if you're using a different compiler or make, you may have to use 'nmake' instead of make, or compile the solution from within VisualStudio. 30 31 If any step reports an error, it is mostly likely some of the dependencies listed above are not installed or not found. 39 If any step reports an error, it is mostly likely some of the dependencies listed above are not installed or not found.
Note: See TracChangeset for help on using the changeset viewer.