Python API for MAC OS

306 views
Skip to first unread message

Bruno Marques

unread,
Sep 29, 2017, 5:03:59 PM9/29/17
to OpenVSP
Hi, I am using SUAVE to build a Tecnam P2006T and I am trying to export my aircraft to OpenVSP and I am running in some troubles. In SUAVE forum they mentioned that my troubles were because OpenVSP was not compiled with the Python API and that I should turn to this forum for help. I am kind of new in these things. Can someone explain me how I can get this working please?

Kind regards,

Bruno Marques

Rob McDonald

unread,
Sep 29, 2017, 5:29:35 PM9/29/17
to ope...@googlegroups.com
Bruno,

I have no idea how SUAVE is trying to interface with OpenVSP -- so I
can't speak to that side of things.

However, they are correct, we don't compile the Python API with the
general distribution of OpenVSP. In order to connect to Python, we
need to know the exact Python you're running at the time we compile --
32/64 bit, Python 2 or 3, exactly which version, etc.

We can't really dictate what Python you have -- and we can't compile
for all possible Python builds -- so we punt and leave it to the user
to build their own in this situation.

So, you're going to need to compile OpenVSP. The process starts with
running CMake. CMake performs discovery to find any/all dependencies.
So, Swig and Python development tools must be available when you run
CMake. Once the CMake process is satisfied that all the Swig and
Python stuff is found, building OpenVSP should go smoothly. When
people have trouble, they often don't notice until later -- that makes
it tough to realize they need to fix their problem in the CMake step.

Are you trying to build on Mac, Windows, or Linux?

Have you tried to build OpenVSP yet? If so, have you had success, or
run into problems?

Rob
> --
> You received this message because you are subscribed to the Google Groups
> "OpenVSP" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to openvsp+u...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Bruno Marques

unread,
Sep 29, 2017, 5:40:48 PM9/29/17
to OpenVSP
Hi, I am trying to build it on MAC and I using the ubuntu 16.04 instructions (http://www.openvsp.org/wiki/doku.php?id=ubuntu_instructions). Everything was going fine but now I have some errors. When I do the terminal line (cmake ../repo/src/ -DVSP_LIBRARY_PATH=/your/path/to/buildlibs -DCMAKE_BUILD_TYPE=Release) on step 5 the following message appears on my terminal:

Rob McDonald

unread,
Sep 29, 2017, 5:53:07 PM9/29/17
to ope...@googlegroups.com
Bruno,

Where the instructions say '/your/path/to/buildlibs', you need to use the path on your machine that points to the location where you build your libraries.

Rob


On Fri, Sep 29, 2017 at 2:40 PM, Bruno Marques <bruno.miguel...@gmail.com> wrote:
>
> Hi, I am trying to build it on MAC and I using the ubuntu 16.04 instructions (http://www.openvsp.org/wiki/doku.php?id=ubuntu_instructions). Everything was going fine but now I have some errors. When I do the terminal line (cmake ../repo/src/ -DVSP_LIBRARY_PATH=/your/path/to/buildlibs -DCMAKE_BUILD_TYPE=Release) on step 5 the following message appears on my terminal:
>
>
>

Bruno Marques

unread,
Sep 29, 2017, 6:07:16 PM9/29/17
to OpenVSP
Sorry, stupid mistake. I did it now with the correct path but is giving more errors:

Rob McDonald

unread,
Sep 29, 2017, 6:28:47 PM9/29/17
to ope...@googlegroups.com
Did you build the libraries in the buildlibs path before you tried this?

It looks like the libraries either aren't there -- or they weren't built.

Rob

To unsubscribe from this group and stop receiving emails from it, send an email to openvsp+unsubscribe@googlegroups.com.

Bruno Marques

unread,
Sep 29, 2017, 6:43:27 PM9/29/17
to OpenVSP
The command line to build the libraries went without any errors I think. Here is the final part of that process:


To unsubscribe from this group and stop receiving emails from it, send an email to openvsp+u...@googlegroups.com.

Rob McDonald

unread,
Sep 29, 2017, 7:01:52 PM9/29/17
to ope...@googlegroups.com
Ok, try running CMake in the VSP build directory again (not the libraries one), but before you do that, delete everything that is already in there.  All subdirectories, everything.

CMake keeps a cache around -- if it fails to find something the first time, it may not look for it the next time.

Rob


To unsubscribe from this group and stop receiving emails from it, send an email to openvsp+unsubscribe@googlegroups.com.

Bruno Marques

unread,
Sep 29, 2017, 7:13:56 PM9/29/17
to OpenVSP
I tried that but it still has errors. Here is a copy past of the terminal run:

MacBookoMarques:build Bruno$ cmake ../repo/src/ -DVSP_LIBRARY_PATH=/Users/Bruno/OpenVSP/buildlibs -DCMAKE_BUILD_TYPE=Release

-- The C compiler identification is AppleClang 8.0.0.8000042

-- The CXX compiler identification is AppleClang 8.0.0.8000042

-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc

-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works

-- Detecting C compiler ABI info

-- Detecting C compiler ABI info - done

-- Detecting C compile features

-- Detecting C compile features - done

-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++

-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works

-- Detecting CXX compiler ABI info

-- Detecting CXX compiler ABI info - done

-- Detecting CXX compile features

-- Detecting CXX compile features - done

-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 

-- Found CPPTest: /Users/Bruno/OpenVSP/buildlibs/CPPTEST-prefix/include  

-- Found LibXml2: /usr/lib/libxml2.dylib (found version "2.9.2") 

-- Found OpenGL: /System/Library/Frameworks/OpenGL.framework  

-- Looking for XOpenDisplay in /usr/X11R6/lib/libX11.dylib;/usr/X11R6/lib/libXext.dylib

-- Looking for XOpenDisplay in /usr/X11R6/lib/libX11.dylib;/usr/X11R6/lib/libXext.dylib - found

-- Looking for gethostbyname

-- Looking for gethostbyname - found

-- Looking for connect

-- Looking for connect - found

-- Looking for remove

-- Looking for remove - found

-- Looking for shmat

-- Looking for shmat - found

-- Looking for IceConnectionNumber in ICE

-- Looking for IceConnectionNumber in ICE - found

-- Found X11: /usr/X11R6/lib/libX11.dylib

-- Found FLTK: /Users/Bruno/OpenVSP/buildlibs/FLTK-prefix/lib/libfltk_images.a;/Users/Bruno/OpenVSP/buildlibs/FLTK-prefix/lib/libfltk_forms.a;/Users/Bruno/OpenVSP/buildlibs/FLTK-prefix/lib/libfltk_gl.a;/System/Library/Frameworks/OpenGL.framework;/Users/Bruno/OpenVSP/buildlibs/FLTK-prefix/lib/libfltk.a  

-- Could NOT find GLM (missing: GLM_INCLUDE_DIR) 

-- Found Eigen3: /Users/Bruno/OpenVSP/buildlibs/EIGEN-prefix/src/EIGEN (Required is at least version "3.0.0") 

-- Found Code-Eli version 0.3.6, and requested version 0.3.6

-- Found CodeEli: /Users/Bruno/OpenVSP/buildlibs/CODEELI-prefix/src/CODEELI-build/include;/Users/Bruno/OpenVSP/buildlibs/CODEELI-prefix/src/CODEELI/include (Required is at least version "0.3.6") 

-- CMINPACK_LIBRARY CMINPACK_LIBRARY-NOTFOUND

-- Could NOT find CMINPACK (missing: CMINPACK_INCLUDE_DIR CMINPACK_LIBRARIES) 

-- STEPCODE_INSTALL_DIR: /Users/Bruno/OpenVSP/build/external/STEPCODE-prefix/src/STEPCODE/../sc-install

-- Configuring angelscript 2.31.2

-- Looking for pthread.h

-- Looking for pthread.h - found

-- Looking for pthread_create

-- Looking for pthread_create - found

-- Found Threads: TRUE  

-- Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR) 

-- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES) (found version "1.0")

-- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES) (found version "1.0")

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.

Please set them or make sure they are set and tested correctly in the CMake files:

CMINPACK_INCLUDE_DIR

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/geom_core

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/geom_core

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/geom_core

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/geom_core

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/geom_core

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/geom_core

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/geom_core

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/geom_core

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/geom_core

CMINPACK_LIBRARY

    linked by target "vspscript" in directory /Users/Bruno/OpenVSP/repo/src/vsp

    linked by target "apitest" in directory /Users/Bruno/OpenVSP/repo/src/vsp

    linked by target "vsp" in directory /Users/Bruno/OpenVSP/repo/src/vsp

    linked by target "apitest_g" in directory /Users/Bruno/OpenVSP/repo/src/vsp

GLEW_INCLUDE_PATH

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/vsp_graphic

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/vsp_graphic

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/vsp_graphic

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/vsp_graphic

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/vsp_graphic

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/vsp_graphic

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/vsp_graphic

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/vsp_graphic

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/vsp_graphic

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/gui_and_draw

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/gui_and_draw

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/gui_and_draw

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/gui_and_draw

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/gui_and_draw

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/gui_and_draw

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/gui_and_draw

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/gui_and_draw

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/gui_and_draw

GLEW_LIBRARY

    linked by target "vsp_graphic" in directory /Users/Bruno/OpenVSP/repo/src/vsp_graphic

    linked by target "gui_and_draw" in directory /Users/Bruno/OpenVSP/repo/src/gui_and_draw

GLM_INCLUDE_DIR

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/vsp_graphic

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/vsp_graphic

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/vsp_graphic

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/vsp_graphic

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/vsp_graphic

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/vsp_graphic

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/vsp_graphic

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/vsp_graphic

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/vsp_graphic

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/gui_and_draw

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/gui_and_draw

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/gui_and_draw

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/gui_and_draw

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/gui_and_draw

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/gui_and_draw

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/gui_and_draw

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/gui_and_draw

   used as include directory in directory /Users/Bruno/OpenVSP/repo/src/gui_and_draw


-- Configuring incomplete, errors occurred!

See also "/Users/Bruno/OpenVSP/build/CMakeFiles/CMakeOutput.log".

To unsubscribe from this group and stop receiving emails from it, send an email to openvsp+u...@googlegroups.com.

Rob McDonald

unread,
Sep 29, 2017, 7:19:39 PM9/29/17
to ope...@googlegroups.com
Please go back to the Libraries directory -- don't delete anything, and simply type 'make' again -- then report back what gets printed to the terminal.

Rob

To unsubscribe from this group and stop receiving emails from it, send an email to openvsp+unsubscribe@googlegroups.com.

Bruno Marques

unread,
Sep 29, 2017, 7:22:45 PM9/29/17
to OpenVSP
Here is what appeared:

MacBookoMarques:buildlibs Bruno$ make

[ 20%] Built target FLTK

[ 40%] Built target LIBIGES

[ 60%] Built target CODEELI

[ 80%] Built target EIGEN

[100%] Built target CPPTEST

To unsubscribe from this group and stop receiving emails from it, send an email to openvsp+u...@googlegroups.com.

Rob McDonald

unread,
Sep 29, 2017, 7:31:51 PM9/29/17
to ope...@googlegroups.com
Ok, I see what is going on.

You aren't building the missing things -- CMinpack, GLM, GLEW, etc.

In the Ubuntu instructions, you aren't supposed to build those -- you use ones that come with Ubuntu instead.  That is what the -DUSE_SYSTEM_GLM=true stuff means.

Please re-run CMake on the Libraries step -- I'm not sure if you'll need to delete the cache or not (CMakeCache.txt). -- but this time, don't do any of the -DUSE_SYSTEM_XXXX flags.

Then, when you make the libraries (after they're already made), you should see something like this...

[ 12%] Built target GLEW

[ 25%] Built target GLM

[ 37%] Built target FLTK

[ 50%] Built target CPPTEST

[ 62%] Built target CMINPACK

[ 75%] Built target LIBXML2

[ 87%] Built target LIBIGES

[100%] Built target EIGEN


All 8 libraries need to be built on MacOS

Rob







To unsubscribe from this group and stop receiving emails from it, send an email to openvsp+unsubscribe@googlegroups.com.

Bruno Marques

unread,
Sep 29, 2017, 8:00:49 PM9/29/17
to OpenVSP
It worked perfectly. Thank you very much
To unsubscribe from this group and stop receiving emails from it, send an email to openvsp+u...@googlegroups.com.

Rob McDonald

unread,
Sep 29, 2017, 8:03:34 PM9/29/17
to ope...@googlegroups.com
Glad to hear it.

If you'd like to update the Wiki documentation to match your experience for building on MacOS, I'll be happy to create an account for you -- just let me know.

Have you started down the Swig/Python path yet?

Rob

To unsubscribe from this group and stop receiving emails from it, send an email to openvsp+unsubscribe@googlegroups.com.

Bruno Marques

unread,
Sep 29, 2017, 8:29:39 PM9/29/17
to OpenVSP
I can do my best to update the wiki no problem. However, It seems that I am not getting what I should cause I should have a file called vsp_g.py in the build folder that would allow me to make the interface with SUAVE but I do not have that file.
To unsubscribe from this group and stop receiving emails from it, send an email to openvsp+u...@googlegroups.com.

Rob McDonald

unread,
Sep 30, 2017, 4:30:04 PM9/30/17
to ope...@googlegroups.com
Ok,

Now you've managed to build OpenVSP and VSPAERO (perhaps only single threaded, depends on the compiler you used).

In order to build the Python stuff, you need to have SWIG and Python (with dev libraries) on your machine.  OpenVSP's CMake doesn't search for Python unless it succeeds in finding SWIG.  The VSP (not Libraries) CMake output above indicates that it can't find SWIG

-- Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR) 

So, you need to install SWIG on your machine.  If you use MacPorts, that is probably an easy way to add it, otherwise, follow the instructions that come with SWIG.

Once that is installed, you'll need to re-run CMake on VSP.  You may need to delete the CMakeCache.txt.  If it still says SWIG not found, then you may need to pass another command line parameter to CMake to tell it exactly where to find SWIG.

Once CMake finds SWIG, it will begin searching for the Python dev libraries.  If CMake can't find those, you'll need to pass a parameter to the CMake command line to point it in the right direction.

Once both of those are successful, the VSP build process will build the python binding for you.

Rob

To unsubscribe from this group and stop receiving emails from it, send an email to openvsp+unsubscribe@googlegroups.com.

Bruno Marques

unread,
Sep 30, 2017, 10:15:52 PM9/30/17
to OpenVSP
Thanks. I already installed SWIG now and have the file vsp_g.py in the build folder. However when I open a python shell on that folder and try to import vsp_g the following error occurs:

To unsubscribe from this group and stop receiving emails from it, send an email to openvsp+u...@googlegroups.com.

Rob McDonald

unread,
Oct 1, 2017, 1:29:40 AM10/1/17
to ope...@googlegroups.com
You're at the limit of my knowledge -- I don't know much about fixing Python problems.  However, I have one guess...

Are you absolutely 100% sure that the Python found by CMake on the VSP project (it should print out a path) is the same one that you're running when you try to load the module?

Rob


To unsubscribe from this group and stop receiving emails from it, send an email to openvsp+unsubscribe@googlegroups.com.

Bruno Marques

unread,
Oct 1, 2017, 12:57:21 PM10/1/17
to OpenVSP
I checked it now and I don't think it is the same. I have Python 2.7 on my machine and on CMakeCache.txt it appears that it used Python 3.5. What should I do then?
To unsubscribe from this group and stop receiving emails from it, send an email to openvsp+u...@googlegroups.com.

Rob McDonald

unread,
Oct 1, 2017, 5:21:34 PM10/1/17
to ope...@googlegroups.com
Your computer likely has multiple copies of Python installed.  This is very common.

You can either try running the copy of Python that CMake found -- or go back and force CMake to find the one you want to use.

To do the latter, pass appropriate paths to the VSP CMake command -- don't forget to delete the CMakeCache.txt

-DPYTHON_LIBRARY=${PYTHON_LIBRARY}
-DPYTHON_INCLUDE_DIR=${PYTHON_INCLUDE_DIR}
-DPYTHON_INCLUDE_PATH=${PYTHON_INCLUDE_DIR}

Rob



On Sun, Oct 1, 2017 at 9:57 AM, Bruno Marques <bruno.miguel...@gmail.com> wrote:
>
> I checked it now and I don't think it is the same. I have Python 2.7 on my machine and on CMakeCache.txt it appears that it used Python 3.5. What should I do then?
>
> domingo, 1 de Outubro de 2017 às 06:29:40 UTC+1, Rob McDonald escreveu:
>>
>> You're at the limit of my knowledge -- I don't know much about fixing Python problems.  However, I have one guess...
>>
>> Are you absolutely 100% sure that the Python found by CMake on the VSP project (it should print out a path) is the same one that you're running when you try to load the module?
>>
>> Rob
>>
>>
>> On Sat, Sep 30, 2017 at 7:15 PM, Bruno Marques <bruno.miguel...@gmail.com> wrote:
>>>
>>> Thanks. I already installed SWIG now and have the file vsp_g.py in the build folder. However when I open a python shell on that folder and try to import vsp_g the following error occurs:
>>>
>>>
>>>
>>>>>>>>>>>>> sexta-feira, 29 de Setembro de 2017 às 23:28:47 UTC+1, Rob McDonald escreveu:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Did you build the libraries in the buildlibs path before you tried this?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> It looks like the libraries either aren't there -- or they weren't built.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Rob
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Fri, Sep 29, 2017 at 3:07 PM, Bruno Marques <bruno.miguel...@gmail.com> wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Sorry, stupid mistake. I did it now with the correct path but is giving more errors:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>

Bruno Marques

unread,
Oct 2, 2017, 4:37:00 PM10/2/17
to OpenVSP
Hi Rob,

I tried a different approach and did what is mentioned in the end of the website http://www.openvsp.org/wiki/doku.php?id=ubuntu_instructions&s[]=python ,i.e, substituing the references of python3 by python 2.7. However when I try to do the make comand on the build directory I get this error:


Any clue of how I get solve this?

Rob McDonald

unread,
Oct 2, 2017, 5:01:15 PM10/2/17
to ope...@googlegroups.com
That means the Python Include Directory isn't pointing at a location that has a Python.h file.

You either have the path wrong, or the Python you have installed doesn't have all the stuff required as a developer -- libraries and headers.  Often, these are left out of a 'normal' user's distribution because they take a lot of space and most people don't need them.

Rob


To unsubscribe from this group and stop receiving emails from it, send an email to openvsp+unsubscribe@googlegroups.com.

Bruno Marques

unread,
Oct 2, 2017, 5:05:32 PM10/2/17
to OpenVSP
I searched on my machine and I do have a Pyhton.h on my python2.7 folders. How I can direct cmake to the right folder?
To unsubscribe from this group and stop receiving emails from it, send an email to openvsp+u...@googlegroups.com.

Rob McDonald

unread,
Oct 2, 2017, 5:09:22 PM10/2/17
to ope...@googlegroups.com
Pass these variables to the CMake command -- don't forget to delete the CMakeCache.txt

-DPYTHON_LIBRARY=${PYTHON_LIBRARY}
-DPYTHON_INCLUDE_DIR=${PYTHON_INCLUDE_DIR}
-DPYTHON_INCLUDE_PATH=${PYTHON_INCLUDE_DIR}
To unsubscribe from this group and stop receiving emails from it, send an email to openvsp+unsubscribe@googlegroups.com.

Bruno Marques

unread,
Oct 2, 2017, 5:25:14 PM10/2/17
to OpenVSP
I tried to do that this time and typed the command "
cmake ../repo/src/ -DVSP_LIBRARY_PATH=/Users/Bruno/OpenVSP/buildlibs -DPYTHON_LIBRARY=/anaconda/lib/python2.7 -DPYTHON_INCLUDE_DIR=/anaconda/include/python2.7 -DPYTHON_INCLUDE_PATH=/anaconda/include/python2.7 -DCMAKE_BUILD_TYPE=Release". However I got a different error this time when I run the "make" command:

To unsubscribe from this group and stop receiving emails from it, send an email to openvsp+u...@googlegroups.com.

Rob McDonald

unread,
Oct 2, 2017, 6:53:52 PM10/2/17
to ope...@googlegroups.com
OK, this looks like the Include path stuff is good -- but the library is wrong.

Is /anaconda/lib/python2.7 a path, or a start of a file?  This one needs to point directly to the library file (shared or static) you want to link against.  It should probably be something like this...

-DPYTHON_LIBRARY=/usr/lib/python2.7/config/libpython2.7.so

Different platforms will have different file extensions instead of '.so'.  So, look in there to find the exact file you want to point at and change the variable accordingly.


Rob






On Mon, Oct 2, 2017 at 2:25 PM, Bruno Marques <bruno.miguel...@gmail.com> wrote:
>
> I tried to do that this time and typed the command "
> cmake ../repo/src/ -DVSP_LIBRARY_PATH=/Users/Bruno/OpenVSP/buildlibs -DPYTHON_LIBRARY=/anaconda/lib/python2.7 -DPYTHON_INCLUDE_DIR=/anaconda/include/python2.7 -DPYTHON_INCLUDE_PATH=/anaconda/include/python2.7 -DCMAKE_BUILD_TYPE=Release". However I got a different error this time when I run the "make" command:
>
>
>
> segunda-feira, 2 de Outubro de 2017 às 22:09:22 UTC+1, Rob McDonald escreveu:
>>
>> Pass these variables to the CMake command -- don't forget to delete the CMakeCache.txt
>>
>> -DPYTHON_LIBRARY=${PYTHON_LIBRARY}
>> -DPYTHON_INCLUDE_DIR=${PYTHON_INCLUDE_DIR}
>> -DPYTHON_INCLUDE_PATH=${PYTHON_INCLUDE_DIR}
>>
>> On Mon, Oct 2, 2017 at 2:05 PM, Bruno Marques <bruno.miguel...@gmail.com> wrote:
>>>
>>> I searched on my machine and I do have a Pyhton.h on my python2.7 folders. How I can direct cmake to the right folder?
>>>
>>> segunda-feira, 2 de Outubro de 2017 às 22:01:15 UTC+1, Rob McDonald escreveu:
>>>>
>>>> That means the Python Include Directory isn't pointing at a location that has a Python.h file.
>>>>
>>>> You either have the path wrong, or the Python you have installed doesn't have all the stuff required as a developer -- libraries and headers.  Often, these are left out of a 'normal' user's distribution because they take a lot of space and most people don't need them.
>>>>
>>>> Rob
>>>>
>>>>
>>>> On Mon, Oct 2, 2017 at 1:36 PM, Bruno Marques <bruno.miguel...@gmail.com> wrote:
>>>>>
>>>>> Hi Rob,
>>>>>
>>>>> I tried a different approach and did what is mentioned in the end of the website http://www.openvsp.org/wiki/doku.php?id=ubuntu_instructions&s[]=python ,i.e, substituing the references of python3 by python 2.7. However when I try to do the make comand on the build directory I get this error:
>>>>>
>>>>>

Bruno Marques

unread,
Oct 12, 2017, 6:31:21 PM10/12/17
to OpenVSP
Hi Rob,

I am just send this message to let you know that I managed to put everything working on my MAC. Thanks a lot for all the help. As soon as I can I ll update the wiki with what I remember.
&g
Reply all
Reply to author
Forward
0 new messages