[Gmsh] Compiling gmsh with OCC

David Colignon David.Colignon at ulg.ac.be
Tue Jun 26 08:27:15 CEST 2007


Hi Gustav,

I think I remember that the .csh script extract all the sources from the 
setup files ... Give it a try...

Cheers,

Dave


gus.wolfgramm at xtra.co.nz wrote:
> Hi Pete
>
> Yes I have, and there aren't any sources in the package, just some setup files, docs and a .csh file. Not very open source at the moment.
>
> Gustav 
>
> ---- Peter Dolbey <peter at dolbey.freeserve.co.uk> wrote: 
>   
>> Gustav
>>
>> Have you tried
>>
>> http://files.opencascade.com/OCC_6.2_release/OpenCASCADE_Linux.tgz
>>
>> Pete
>>
>> -----Original Message-----
>> From: gmsh-bounces at geuz.org [mailto:gmsh-bounces at geuz.org] On Behalf Of
>> gus.wolfgramm at xtra.co.nz
>> Sent: 25 June 2007 12:17
>> To: gmsh at geuz.org
>> Subject: Re: [Gmsh] Compiling gmsh with OCC
>>
>> Hi again David
>>
>> I have looked at README.occ and it says I need the linux source of OCC which
>> I can't seem to find at the OCC site. I've fired off an email asking for its
>> whereabouts. Are you aware of how I might obtain it in the meantime? Also,
>> the following from the afforementioned document has me wondering:
>>
>> /***********************************************************
>> - if you're using Cygwin/Mingw32 (Windows) define
>>
>>   export CC="gcc -mno-cygwin -DWNT=1 -DWIN32 -DHAVE_NO_DLL"
>>   export CXX="g++ -mno-cygwin -DWNT=1 -DWIN32 -DHAVE_NO_DLL"
>>
>> ***********************************************************/
>> I will be compiling with Mingw32 and want to know where I am to make this
>> definition?
>>
>> Also can I draw your attention to second part of my original message. Is
>> what I am trying to do feasible? If not, as outlined, is there a way I
>> should proceed? I suppose I should be looking at the gcc documentation with
>> regards to building .a files and whether .lib files can be created from the
>> the precursors (.o files?).
>>
>> Cheers for your help guys!
>>
>> Gustav 
>>
>> ---- Colignon David <David.Colignon at ulg.ac.be> wrote: 
>>     
>>> Hi Gustav,
>>>
>>> you should have a look in doc/README.occ
>>>
>>> after the ./configure step, you can also directly edit at hand the created
>>> "variables" file and modify the FLAGS line to point to the right include
>>> directories
>>>
>>> Cheers,
>>>
>>> Dave
>>>
>>>
>>>       
>>>> Hi David
>>>>
>>>> Thanks for the reply. I did as you said and it configured fine. However
>>>> make
>>>> broke down during the part where the Geo library is being built,
>>>> specifically as
>>>> it parsed occIncludes.h and couldnt find a bunch of occ files (e.g
>>>> BRep_Tool.hxx). How can I point make in the direction of these files.?
>>>>         
>> Btw
>>     
>>>> I am
>>>> using the win32 verison of occ 6.2 and not the linux version. Is this
>>>> signinificant?
>>>>
>>>> Cheers
>>>>
>>>> Gustav
>>>>
>>>> ---- Colignon David <David.Colignon at ulg.ac.be> wrote:
>>>>         
>>>>>> Hello
>>>>>>
>>>>>> This is my first post, so thanks for the opportunity. I am using
>>>>>>             
>>>>> Windows
>>>>>           
>>>>>> XP Home.
>>>>>>
>>>>>> I have unsuccessfully tried to compile gmsh 2.0.7 with OCC support
>>>>>>             
>>>>> with
>>>>>           
>>>>>> MinGW/MSys. I used --with-gsl-prefix=c:/msys/1.0/local
>>>>>> –with-fltk-prefix=c:/msys/1.0/local –enable-occ
>>>>>> –with-occ-prefix=c:/Program\ Files/OpenCascade/ros/win32 
.On the
>>>>>>             
>> othr
>>     
>>>>>> hand, compiling with just gsl and fltk prefixes was successful. I
>>>>>>             
>> have
>>     
>>>>>> attached the output of ./configure as well as the conf.log for the
>>>>>>             
>>>>> former.
>>>>>           
>>>>>> If relevant, gmsh, gsl and fltk were installed in
>>>>>>             
>>>>> c:/msys/1.0/home/oem/
>>>>>           
>>>>>> Hope this is sufficient information.
>>>>>>             
>>>>> Hi,
>>>>>
>>>>> I think configure doesn't like the space between Program and Files, the
>>>>> directory where you installed OCC
>>>>>
>>>>> from config.log :
>>>>>
>>>>> ...
>>>>> configure:5070: gcc -o conftest.exe -g -O2  -Lc:/Program
>>>>> Files/OpenCascade/ros/win32/lib -
>>>>> Lc:/msys/1.0/local -Lc:/msys/1.0/local/lib  conftest.c -lgslcblas -lm
>>>>>           
>>>>>> &5
>>>>>>             
>>>>> gcc.exe: Files/OpenCascade/ros/win32/lib: No such file or directory
>>>>> ...
>>>>>
>>>>> can you try to move or reinstall OCC elsewhere ?
>>>>>
>>>>> Cheers,
>>>>>
>>>>> Dave
>>>>>
>>>>>
>>>>> --
>>>>> David Colignon, Ph.D.
>>>>> ELAP - Unité d'Electricité Appliquée
>>>>> Institut Montefiore B28
>>>>> Université de Liège
>>>>> 4000 LIEGE - BELGIQUE
>>>>> Tél: +32 (0)4 366 37 32
>>>>> Fax: +32 (0)4 366 29 10
>>>>> http://elap.montefiore.ulg.ac.be
>>>>>           
>>>>>> Finally, the point to this is that I am trying to make an application
>>>>>>             
>>>>> that
>>>>>           
>>>>>> meshes imported STEP and IGES geometries for BEM analysis. I intend
>>>>>>             
>> on
>>     
>>>>>> using the gmsh 2.0.7 mesh module to do this and am trying to extract
>>>>>>             
>>>>> the
>>>>>           
>>>>>> relevant parts from the source. The import stage is based on the OCC
>>>>>> import/export example ’IE’ (VS solution - c# GUI, VC++ inner
>>>>>>             
>>>>> workings).
>>>>>           
>>>>>> From one of the solution's VC++ projects I am trying to link to the
>>>>>>             
>>>>> gmsh
>>>>>           
>>>>>> library. This I have built (without OCC support) using MinGW/MSys.
>>>>>>             
>> The
>>     
>>>>>> library consists of a bunch of .a files (e.g. libGMeshGeo.a) which I
>>>>>>             
>>>>> think
>>>>>           
>>>>>> are UNIX static library files and not .lib files as I was expecting.
>>>>>>
>>>>>> QUESTION:
>>>>>>
>>>>>> Can I link to these files from the application previously described?
>>>>>>             
>>>>> Are
>>>>>           
>>>>>> they compatible for my purposes?
>>>>>>
>>>>>> Thanks for any help available. I am new to this kind of programming
>>>>>>             
>> so
>>     
>>>>>> please forgive any glaring omissions.
>>>>>>
>>>>>> Gustav Wolfgramm
>>>>>>
>>>>>> p.s Go Emrates Team New Zealand in the America's Cup finals!!
>>>>>> _______________________________________________
>>>>>> gmsh mailing list
>>>>>> gmsh at geuz.org
>>>>>> http://www.geuz.org/mailman/listinfo/gmsh
>>>>>>
>>>>>>             
>>>>>
>>>>>           
>>>> _______________________________________________
>>>> gmsh mailing list
>>>> gmsh at geuz.org
>>>> http://www.geuz.org/mailman/listinfo/gmsh
>>>>
>>>>         
>>>       
>> _______________________________________________
>> gmsh mailing list
>> gmsh at geuz.org
>> http://www.geuz.org/mailman/listinfo/gmsh
>>     
>
>
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh
>