Issue #30

Mac OS X obasic Compiation error

Added by Haja RAMBELONTSALAMA over 7 years ago. Updated almost 6 years ago.

Status:ResolvedStart date:17 February 2012
Priority:HighDue date:
Assignee:Cédric Marin% Done:

50%

Category:-
Target version:Modelio 2 - Modelio 2.2.0

Description

Hi,

I’ve just started an attempt to port modelio 2.1.0 on os x following instructions on the wiki : [[http://mediawiki.modelio.org/Enhance_the_core#Compiling_the_source_code]]

According to steps on the wiki, here is my evolution :

Step : Prerequisites : OK

Step : Installation : OK

Step : Build :

build obasic :

Update dependencies :OK

Compiling : FAIL! IMHO Error on searching MAC adress for os x (see attached text file for complete log of failure)

I found below many directions (even sample code see attached zipfile) as it’s a known issue however I need you to highlight the way to dive (i.e: correct file to modify/replace etc…) in order to GTD in the “proper” way. You for sure are expert on this domain ;)

[[http://forum.soft32.com/mac/retrieve-MAC-address-ftopict43823.html]]

[[http://groups.google.com/group/comp.sys.mac.programmer.help/msg/56d3f943170abd6b?pli=1]]

[[https://developer.apple.com/library/mac/#samplecode/GetPrimaryMACAddress/Introduction/Intro.html#//apple_ref/doc/uid/DTS10000698]]

Best regards,

Haja

modelioCompile160212.log (4.61 KB) Haja RAMBELONTSALAMA, 17 February 2012 11:36

GetPrimaryMACAddress.zip (6.81 KB) Haja RAMBELONTSALAMA, 17 February 2012 11:36

History

#1 Updated by François Poyer over 7 years ago

  • Assignee set to Cédric Marin

From what i read in the compilation log, it is indeed a problem with the way the MAC adress is searched.

AFAIK, MAC adress is used to create UUIDs (there’s a RFC somewhere about that, but the idea is that since MAC adresses are already pretty unique, they are a good base to build unique identifiers) so the file to modify would be TUUID.cxx .

Do you think you’d be able to provide a patch for this file that would keep things working as they do for windows and linux/unix while fixing the problem for Mac?

If so, we’ll try to incorporate it in the product (although I can’t make any promise, since we don’t really have time scheduled for a Mac port…).

Otherwise you may want to browse the forums, I think someone else is trying to port Modelio to Mac over there.

#2 Updated by Haja RAMBELONTSALAMA over 7 years ago

Hi Cédric,

Do you think you’d be able to provide a patch for this file that would keep things working as they do for windows and linux/unix while fixing the problem for Mac? If so, we’ll try to incorporate it in the product (although I can’t make any promise, since we don’t really have time scheduled for a Mac port…).

Me neither can’t promise anything as I use my mac only on free-time :) Anyway, it’s a pleasure to give a hand.

Otherwise you may want to browse the forums, I think someone else is trying to port Modelio to Mac over there.

I’ve already seen it and update there too as soon as I have some feedback ;) Staying tuned

Best regards, Haja

#3 Updated by Normand Rivard over 7 years ago

Hi. Just to tell the guys at Modelio that if there WAS a MacOS X version of Modelio, I would use it for sure. If someone knows where a functional version is available, please post it here. Thanks

#4 Updated by Cédric Marin over 7 years ago

  • Status changed from New to Resolved
  • Target version changed from Modelio 2.1.0 to Modelio 2.2.0

I have incorporated the given code, within #ifdef __APPLE__. As I have no MACOS compiler I have no way to know whether it works, and there is no makefile. The change now needs to be integrated in the repository.

#5 Updated by Christophe Demeulemeester almost 6 years ago

This issue has been fixed in Modelio 3.0.0

Also available in: Atom PDF