Re: Install and compile problem on Mac OS X 10.7

765 views
Skip to first unread message

James_W00ds

unread,
Oct 29, 2012, 3:28:42 PM10/29/12
to ove...@googlegroups.com
Using the homebrew package manager, as suggested here: https://groups.google.com/forum/?fromgroups=#!msg/oversim/cT5cvTBtIqI/SpF4bZhnhKkJ
worked for me. I use it for every unix package now and uninstalled macports, fink and the other package managers.

You can find homebrew here:

Regards,
Tobi

Am Montag, 29. Oktober 2012 12:09:13 UTC+1 schrieb shohreh:
Hi, did you find the solution? would you please share it?

On Wednesday, June 27, 2012 10:22:08 PM UTC+4:30, Xin wrote:
Hello everyone,

I installed OMNeT++ 4.1 on Mac OS X 10.7, and now I am compiling OverSim. But, I have got this error:
---------------------------------------------------------------------------------------------

ld: warning: directory not found for option '-L/sw/lib'

ld: warning: ignoring file /usr/local/lib/libgmp.dylib, file was built for unsupported file format which is not the architecture being linked (i386)

Undefined symbols for architecture i386:

  "___gmpn_set_str", referenced from:

      OverlayKey::sha1(BinaryValue const&)  in OverlayKey.o

      OverlayKey::OverlayKey(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int)in OverlayKey.o

      OverlayKey::OverlayKey(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int)in OverlayKey.o

  "___gmpn_sub_n", referenced from:

      OverlayKey::operator-=(OverlayKey const&)in OverlayKey.o

  "___gmpn_add_n", referenced from:

      OverlayKey::operator+=(OverlayKey const&)in OverlayKey.o

  "___gmpn_lshift", referenced from:

      OverlayKey::operator<<(unsigned int) constin OverlayKey.o

  "___gmpn_rshift", referenced from:

      OverlayKey::operator>>(unsigned int) constin OverlayKey.o

ld: symbol(s) not found for architecture i386

collect2: ld returned 1 exit status

make: *** [../out/gcc-debug/src/OverSim] Error 1

---------------------------------------------------------------------------------------------

I guess the error is because of "libgmp". When I was installing OverSim, I found the "Install instruction" said 


but, I am using Mac OS X 10.7, and I am not able to find "libgmp3-dev". Do you know how to solve this problem?

Thank you in advance!!

Best regards,
Xin
Reply all
Reply to author
Forward
0 new messages