Motama GmbH

Forum for users and developers of NMM
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

error after make

 
Post new topic   Reply to topic     Forum Index -> MacOS
View previous topic :: View next topic  
Author Message
master-of-desaster



Joined: 19 Dec 2007
Posts: 2

PostPosted: Wed Dec 19, 2007 2:12 pm    Post subject: error after make Reply with quote

hello,

I get error after running make under OSX10.5. First I used ./configure --prefix=/Users/bob/nmm-1.0.0-installed/ --disable-all --disable-nasm --enable-macosx as mentioned in the manual for my intel Mac. After running make I get the following error:

CPUInfo.cpp: In member function 'void NMM::CPUInfo::start()':
CPUInfo.cpp:134: error: 'uint' was not declared in this scope
CPUInfo.cpp:134: error: expected `;' before 'i'
CPUInfo.cpp:134: error: 'i' was not declared in this scope
CPUInfo.cpp: In member function 'const unsigned int NMM::CPUInfo::getTotalFreeCPU()':
CPUInfo.cpp:215: error: 'uint' was not declared in this scope
CPUInfo.cpp:215: error: expected `;' before 'i'
CPUInfo.cpp:215: error: 'i' was not declared in this scope
CPUInfo.cpp:216: error: no matching function for call to 'NMM::CPUInfo::getFreeCPU(<type error>)'
CPUInfo.cpp:204: note: candidates are: const unsigned int NMM::CPUInfo::getFreeCPU(unsigned int)
make[4]: *** [CPUInfo.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Any ideas why?
Thx
Back to top
View user's profile Send private message
repplix



Joined: 15 Aug 2007
Posts: 26

PostPosted: Thu Dec 20, 2007 2:00 pm    Post subject: Reply with quote

Hi,
at the moment, we don't have a Mac with OSX10.5 installed and are not able to reproduce the problem.

However, I can try to give you some hints how to compile NMM under OSX10.5.
As far as I know you have to include the file <sys/types.h> to use the data type uint

So just open the file CPUInfo_Linux.cpp and add the statement

# include <sys/types.h>

before line #include "nmm/nmm_prefix.hpp"

It might be possible that the same error occurs on more files. In this case you have to add # include <sys/types.h> in each of these files.

Best regards
Michael Repplinger
Back to top
View user's profile Send private message
master-of-desaster



Joined: 19 Dec 2007
Posts: 2

PostPosted: Thu Dec 20, 2007 4:20 pm    Post subject: thx Reply with quote

Hello,

yes, that was the reason. I had to add the library into the files CPUInfo.hpp and into Parameter.hpp. Afterwards I could compile the files successfully.

Thanks a lot.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> MacOS All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Editorial | Impressum  © Copyright Motama GmbH