[Gmsh] gmsh compile

Max Orok morok at mevex.com
Wed Aug 14 17:45:47 CEST 2019


Hi Mauro,

Don't give up on the SDK! I think this may be a problem with the linker
being unable to find the library.
It would help if you post your exact error messages.

Here is an older post related to VS issues that might help you out:
https://gitlab.onelab.info/gmsh/gmsh/issues/551

*From that post: *
*-----------------------------*

Compiling and running a C++ example with Visual Studio 2017 is as simple as
running this in the Visual Studio shell:

C:\gmsh-git-Windows64-sdk> ren include\gmsh.h_cwrap
gmsh.hC:\gmsh-git-Windows64-sdk> cl /Iinclude
share\doc\gmsh\demos\api\simple.cpp
lib\gmsh.libC:\gmsh-git-Windows64-sdk> cd
libC:\gmsh-git-Windows64-sdk\lib> ..\simple.exe

*-----------------------------*

For your use case, I think the SDK is the right way to go.
I'm not sure about a Topo_DS shape directly, but Gmsh certainly allows you
to import a STP model and then mesh it with different settings.

Sincerely,
Max

On Wed, Aug 14, 2019 at 11:30 AM Mauro Corbo <ing.maurocorbo at gmail.com>
wrote:

> Dear Max,thanks for your reply.
> I have just tried with prebuilt sdk, but errors occurred for gmsh library
> functions call.(unresolved extrnals, the gmsh exists, but errors)
> I am using VS2012
> This is why , I would compile by source.
> byway,I work with OpenCascade from many years and I need a roboust
> platform to mesh surfaces and /or solids
> I am new in Gmsh.
> My questions is :
> Suppose I successfully compile with prebuilt Gmsh Sdk, Will I able to
> import a TopoDS_Shape (I know  there is a function for this) Or
> alternativley , import a STP/IGES object and mesh it playing via C++ code
> with mesh size ( see attached PDF) ?
> Does Sdk let this?
> Pls let me know
> Mauro
>
>
> Il giorno mer 14 ago 2019 alle ore 06:27 Max Orok <morok at mevex.com> ha
> scritto:
>
>> If you really need to compile Gmsh from source, this readme file is a
>> good place to start:
>> https://gitlab.onelab.info/gmsh/gmsh/blob/master/README.txt
>>
>> However, if you only want to use the Gmsh API, you could take a look at:
>> https://gitlab.onelab.info/gmsh/gmsh/blob/master/demos/api/README.txt
>>
>> Instead of having to compile Gmsh yourself, you can download a prebuilt
>> binary SDK library for Windows here <http://gmsh.info/bin/Windows/> and
>> link your programs against it.
>>
>> Sincerely,
>> Max
>>
>>
>> On Tue, Aug 13, 2019 at 4:18 PM Mauro Corbo <ing.maurocorbo at gmail.com>
>> wrote:
>>
>>> hello,could I get a detailed description how compile gmsh under Vs2012
>>> or later.
>>> I tried load CMAKE, but missing libraries error occur.
>>> Moreover,Could i know where find alla madatory libraries?
>>> Regards
>>> Mauro
>>> _______________________________________________
>>> gmsh mailing list
>>> gmsh at onelab.info
>>> http://onelab.info/mailman/listinfo/gmsh
>>>
>>
>>
>> --
>> Max Orok
>> Contractor
>> www.mevex.com
>>
>>
>>

-- 
Max Orok
Contractor
www.mevex.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20190814/e926d2c8/attachment.html>


More information about the gmsh mailing list