Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

topcomer

macrumors newbie
Original poster
Dec 19, 2008
22
0
italy/germany
I was given a project made up of open source libraries, source files and makefiles. Since the makefiles were provided for both unix and osx, the command-line compiling went quite smoothly. I would like now to use xcode (which I never used before) in order to take advantage of its functionalities, but since I didn't write the makefiles, it would be almost impossible for me to create the project files. Is there any tool to automatically generate project files from osx makefiles? if can be of any help, the only gui used by the executable is glutviewer. Thank you in advance for your help!
 

topcomer

macrumors newbie
Original poster
Dec 19, 2008
22
0
italy/germany
I've found out that what I want to do is much easier with eclipse. however I get the following error (never seen before) during compiling:

Code:
ld: in libmeshopt.a(100644), not a valid mach-o object file

I have no idea about its meaning, any help will be appreciated. thanks!
 

wrldwzrd89

macrumors G5
Jun 6, 2003
12,110
77
Solon, OH
I've found out that what I want to do is much easier with eclipse. however I get the following error (never seen before) during compiling:

Code:
ld: in libmeshopt.a(100644), not a valid mach-o object file

I have no idea about its meaning, any help will be appreciated. thanks!
Mach-O is the executable format used by Mac OS X. If the linker (ld) is reporting that a library file can't be linked because it's invalid, the way to fix this is to clean and recompile the whole project again.
 

topcomer

macrumors newbie
Original poster
Dec 19, 2008
22
0
italy/germany
ok thank you. the invalid library file is in a library which I compiled using acgmake outside eclipse. does that mean I have to create new projects for each library and then build each of them in eclipse and not from the command line?
 

wrldwzrd89

macrumors G5
Jun 6, 2003
12,110
77
Solon, OH
ok thank you. the invalid library file is in a library which I compiled using acgmake outside eclipse. does that mean I have to create new projects for each library and then build each of them in eclipse and not from the command line?
That's what I'd do if I were you, yes.
 

topcomer

macrumors newbie
Original poster
Dec 19, 2008
22
0
italy/germany
following your suggestion, I cleaned and rebuilt, now I get the following:

Code:
ld: in libmeshopt.a, archive has no table of contents

by the way, meshopt is actually the name of the file system I included, NOT of the libraries it depends on (Open Mesh), sorry for the wrong information I gave before.
 

wrldwzrd89

macrumors G5
Jun 6, 2003
12,110
77
Solon, OH
following your suggestion, I cleaned and rebuilt, now I get the following:

Code:
ld: in libmeshopt.a, archive has no table of contents

by the way, meshopt is actually the name of the file system I included, NOT of the libraries it depends on (Open Mesh), sorry for the wrong information I gave before.
I think ranlib is the tool you need to use to fix this.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.