|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
||||
|
||||
|
Compiling Linux Apps on the Mac
Good Evening folks,
Has anyone had sucess compiling Linux Programs on the Mac. I have tried twice on OSX10.3 without any luck. I tried following some instructions off of a website. It said I had to install developer tools, which I did. In my last attempt I was trying to install A program called Cronolog. My first step was to uncompress the files in the finder. From there I switched over to the terminal and navigated to the said uncrompessed folder. I then typed in the command "./configure" which seemed to be ok. Then I typed the command "make" and then "make install" to which the terminal returned: Code:
$ make install Making install in lib gcc - DPACKAGE=\"cronolog\" -DVERSION=\"1.6.2\" - DTM_IN_SYS_TIME=1 -Dsize_t=unsigned - DTM_IN_SYS_TIME=1 -DHAVE_STRFTIME=1 - DHAVE_VPRINTF=1 -DHAVE_MKDIR=1 -DHAVE_MKTIME=1 - DHAVE_PUTENV=1 -DHAVE_STRPTIME=1 - DHAVE_LOCALTIME_R=1 -I. -I. -g -O2 -c getopt.c getopt.c:45:19: stdio.h: No such file or directory getopt.c:121: error: `NULL' undeclared here (not in a function) getopt.c: In function `_getopt_initialize': getopt.c:400: error: `NULL' undeclared (first use in this function) getopt.c:400: error: (Each undeclared identifier is reported only once getopt.c:400: error: for each function it appears in.) getopt.c: In function `_getopt_internal': getopt.c:522: error: `NULL' undeclared (first use in this function) getopt.c:678: error: `stderr' undeclared (first use in this function) make[1]: *** [getopt.o] Error 1 make: *** [install-recursive] Error 1 Previously I had tried installing mySQL to which I had a similar problem, so I just installed It from A binary Install Package. If anyone has any thoughts, theories, comments or ideas they would be greatly appreciated. Or If anyone knows of any websites or doccumentation on the subject that would also be A big help. Cheers Benno32 |
|
#2
|
||||
|
||||
|
perhaps cronolog is installable with fink? fink is a neat little program that compiles ports for use on a mac, take a look.
Your specific problem here though is that it hasn't been given the path to the headers directory. Try doing ./configure --includedir=/path/to/headers
__________________
~James [Not currently seeking freelance work] Like philosophy or interested in spirituality? Philosophorum. Game Dev Experts Forums Foresight Linux - Because your desktop should be cool! Linux FAQ FedoraFAQ UbuntuGuide |
|
#3
|
||||
|
||||
|
fink
Thank you for replying,
Unfortunately trying: Quote:
did not work. However I did go ahead and download the unfortunately named "fink" Quote:
I installed the program and launched the GUI app "Fink commander" I updated the package list and I have a large list of about 223 packages. Can I only install these packages? Cronolog Is not in this list Is there any way of adding it or using fink to install It? Regards Benno32 |
|
#4
|
||||
|
||||
|
If it's not in fink, you can't install it with fink. It might be in MacPorts (formerly DarwinPorts), though i can't get a package list on their site and I don't own a mac.
|
|
#5
|
||||
|
||||
|
thanks
The program isn't very important to me so I won't pursue It further. I was interested mainly for the purpose of the exercise. Obviously there are some majour differences between the way Linux Is set up and the way Mac OSX Is set up.
Thanks for your help Benno32 |
|
#6
|
||||
|
||||
|
its in DarwinPorts, so i suggest you just use that, just install it and install cronolog with that, it should be pretty simple and painless
[EDIT] BTW, the differences are very minor, its mostly just a few moved around headers and the gcc/g++ arguments can be a bit different, i have actually successfully ported an OpenGL video game to linux when i had almost knowlage about C and gcc, i just have to find all the missing headers and made a few modifications to the source and gcc commands to make it work, pretty much all of the source should be the same
__________________
Feed ME Last edited by edman007 : March 25th, 2007 at 05:29 AM. |
|
#7
|
||||
|
||||
|
mac ports
Allright I'll install MacPorts.
but their website says I need "X11" Installed, so i'll do that first. I've been using Macs for 5 years and PC's for 12 years, all this Unix stuff I s a new journey for me. |
|
#8
|
||||
|
||||
|
On further investigation, macports != darwinports, please use the link edman provided
![]() |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > Mac Help > Compiling Linux Apps on the Mac |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|