Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install SWIG?

Tags:

Noob question ahead...

I'm trying to install SWIG on Windows. According to the INSTALL document, I have to

cd to the directory containing the package's source code and type ./configure to configure the package for your system.

I tried the command in both the root directory and in the /CCache directory (these are the only ones that have the configure and configure.in files), however, the shell reports back that

C:\swigwin-2.0.4>./configure
'.' is not recognized as an internal or external command,
operable program or batch file.

What am I missing?

like image 254
Paul Manta Avatar asked Sep 16 '11 10:09

Paul Manta


People also ask

What is SWIG EXE?

SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages. SWIG is used with different types of target languages including common scripting languages such as Javascript, Perl, PHP, Python, Tcl and Ruby.

How do I install SWIG on Raspberry Pi?

Go to the swig download page to download Linux version swig installation package. Unzip the swig zip source code to a local directory. Specify swig install directory. Compile and install.


1 Answers

no installation is needed. you just have to set the environment variable to point to the "swig" 's executable which is under the root directory of swig

On the SWIG site, you can download for example the swigwin-2.0.7 zip directory for windows's swig. unzip it in a directory of your choice for example on "C:\Program Files" directory if you want. After this, you have the swig executable in the "C:\Program Files\swigwin-2.0.7" directory: "C\Program Files\swigwin-2.0.7\swig" you have to set now the environment variable "path" to point to this swig exec: add for this the "C:\Program Files\swigwin-2.0.7" path to the "path"variable according to my example; that is all you need to use swig on windows. You can now play with swig so, open a prompt "cmd" and just type "swig --help" on this prompt you can see a list of the differents options you can use with swig. If you d'ont have visual c++, you can use for example codeblock, that is my case so the link below could be a help for you : http://wiki.codeblocks.org/index.phptitle=Adding_support_for_non_C/C%2B%2B_files_to_the_build_system

like image 96
user1438644 Avatar answered Sep 19 '22 05:09

user1438644