help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compile C++ mex code with Octave libraries


From: Arnaud BARRE
Subject: Re: compile C++ mex code with Octave libraries
Date: Thu, 24 Nov 2011 11:20:14 +0100

Could you post the error(s) given by Octave?

Moreover, another difference with Matlab for the MEX function is the
extension. Under Octave, all the MEX functions must have the extension
MEX. In your case, it should be MedianFilter.mex. Maybe the problem is
here.

On Wed, Nov 23, 2011 at 9:18 PM, Arnaud BARRE <address@hidden> wrote:
> Please, keep the octave group in CC.
>
> Could you explain us the current result of your function and what
> should be expected?
>
> Arnaud
>
> On Wed, Nov 23, 2011 at 7:49 PM, Trigui, Hafedh (OTT)
> <address@hidden> wrote:
>> Hi Arnaud,
>>
>> Thank you very much for the prompt reply.
>> I was able to build the project successfully.
>> However, for unknown reasons to me, the function did not run properly when 
>> used in octave (test.m).
>>
>> I'll greatly appreciate your help.
>>
>> Thank you very much in advance and best regards,
>> Hafedh
>>
>> -----Original Message-----
>> From: Arnaud BARRE [mailto:address@hidden
>> Sent: Wednesday, November 23, 2011 1:59 AM
>> To: Trigui, Hafedh (OTT)
>> Cc: address@hidden
>> Subject: Re: compile C++ mex code with Octave libraries
>>
>> Dear Hafedh,
>>
>> The name of the libraries ued by Octabe to link MEX functions are not the 
>> same than Matlab. Here is the 3 libraries required (at least in my
>> project):
>>  - liboctinterp
>>  - liboctave
>>  - libcruft
>>
>> Linking your project with these libraries should resolve your problem,
>>
>> Regards,
>>
>> Arnaud
>>
>> On Tue, Nov 22, 2011 at 11:27 PM, Trigui, Hafedh (OTT) <address@hidden> 
>> wrote:
>>> Dear Sir or Madam,
>>>
>>> I strictly followed the attached example of generating mex files using
>>> Microsoft visual studio 2005 and Octave 3.2.4 (rather than Matlab).
>>> The code compiled perfectly.
>>> However, it could not link due to the absence of the library files
>>> libmx.lib, libmat.lib and libmex.lib (apparently Matlab files). My
>>> search in the Octave directory failed to find such files.
>>> I'll greatly appreciate if you could send me the equivalent in Octave
>>> to build my project.
>>>
>>> I am forced to use C++ since a large project existed and I do not like
>>> to rewrite it with Octave. I wanted just to use it as mex files to
>>> Octave and later on I will only make changes to specific (algorithmic) 
>>> section.
>>>
>>> Thank you very much for your help.
>>>
>>> Best Regards
>>> Hafedh
>>> ----------------------------------------------------------------------
>>> ----------------------------------------------------------------------
>>> -----------------------------------------------------------
>>> This e-mail from Ultra Electronics and any attachments to it are
>>> confidential to the intended recipient and may also be privileged. If
>>> you have received it in error please notify the sender and delete it
>>> from your system. If you are not the intended recipient you must not
>>> copy it or use it for any purpose nor disclose or distribute its contents 
>>> to any other person.
>>> All communications may be subject to interception or monitoring for
>>> operational and/or security purposes. Please rely on your own virus
>>> checking as the sender cannot accept any liability for any damage
>>> arising from any bug or virus infection.
>>>
>>> Ce courriel de Ultra Electronics est destine a la personne a laquelle
>>> il est adresse et peut contenir des renseignements privilegies et
>>> confidentiels. Si vous avez recu ce courriel par erreur, veuillez
>>> aviser l'expediteur et l'effacer de votre systeme. Si vous n'etes pas
>>> le destinataire, vous ne devez ni copier, ni l'utiliser pour quel
>>> qu'usage que ce soit, ni le faire suivre a d'autres. Toutes les
>>> communications sont assujetties a une surveillance et/ou interception
>>> pour des besoins operationnels et/ou de securite. Vous etes tenu de
>>> vous fier a votre anti-virus car l'expediteur n'acceptera aucune
>>> responsabilite des dommages causes par un virus ou un bogue.
>>> ----------------------------------------------------------------------
>>> ----------------------------------------------------------------------
>>> -----------------------------------------------------------
>>>   ­­
>>> _______________________________________________
>>> Help-octave mailing list
>>> address@hidden
>>> https://mailman.cae.wisc.edu/listinfo/help-octave
>>>
>>>
>>
>> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>> This e-mail from Ultra Electronics and any attachments to it are 
>> confidential to the intended recipient and may also be privileged.
>> If you have received it in error please notify the sender and delete it from 
>> your system.
>> If you are not the intended recipient you must not copy it or use it for any 
>> purpose nor disclose or distribute its contents to any other person.
>> All communications may be subject to interception or monitoring for 
>> operational and/or security purposes.
>> Please rely on your own virus checking as the sender cannot accept any 
>> liability for any damage arising from any bug or virus infection.
>>
>>
>> Ce courriel de Ultra Electronics est destine a la personne a laquelle il est 
>> adresse et peut contenir des renseignements privilegies et confidentiels.
>> Si vous avez recu ce courriel par erreur, veuillez aviser l'expediteur et 
>> l'effacer de votre systeme.
>> Si vous n'etes pas le destinataire, vous ne devez ni copier, ni l'utiliser 
>> pour quel qu'usage que ce soit, ni le faire suivre a d'autres.
>> Toutes les communications sont assujetties a une surveillance et/ou 
>> interception pour des besoins operationnels et/ou de securite.
>> Vous etes tenu de vous fier a votre anti-virus car l'expediteur n'acceptera 
>> aucune responsabilite des dommages causes par un virus ou un bogue.
>> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>>
>>
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]