Show: Today's Messages :: Show Polls :: Message Navigator |
./configure script does not work on Mac OS X Lion [message #2373] | Sun, 15 January 2012 11:28 | |||
| ||||
I want to compile Mednafen 0.9.18-WIP from the source. My Mac OS X Lion version is 10.7.2 (11C74). I already have all the necessary libraries installed. When I run ./configure script, eventually it tells me: ... checking for SDL - version >= 1.2.0... yes checking for LIBCDIO... configure: error: *** libcdio not found! But libcdio was already installed - to the default path /usr/local/lib I have tried to link it manually, here are my failed attempts: _____________1_____________ LD_LIBRARY_PATH="/usr/local/lib" ./configure DYLD_LIBRARY_PATH="/usr/local/lib" ./configure _____________2_____________ export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib" ./configure _____________3_____________ export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib/pkgconfig" ./configure _____________4_____________ export DYLD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib" ./configure _____________5_____________ export DYLD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib/pkgconfig ./configure _____________6_____________ export PKG_CONFIG="/opt/local/lib/pkgconfig" ./configure _____________7_____________ export PKG_CONFIG_PATH="/opt/local/lib/pkgconfig" ./configure _____________8_____________ sudo env PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure So, I thought that ./configure script does not check properly for libcdio library. I opened the script with text editor and changed one line: from elif test $pkg_failed = untried; then as_fn_error "*** libcdio not found!" "$LINENO" 5 to elif test $pkg_failed = SKIP; then as_fn_error "*** libcdio not found!" "$LINENO" 5 so that the check for libcdio library will be always successful, and the script will go further. After that, I received the next error: ... checking for SDL - version >= 1.2.0... yes checking for LIBCDIO... yes checking for SNDFILE... configure: error: *** libsndfile >= 1.0.2 not found! So I did the similar thing - changed one line: from elif test $pkg_failed = untried; then as_fn_error "*** libsndfile >= 1.0.2 not found!" "$LINENO" 5 to elif test $pkg_failed = SKIP; then as_fn_error "*** libsndfile >= 1.0.2 not found!" "$LINENO" 5 After that, the ./configure script completed without errors. make command gave me issues with push/pushf/pop/popf, so I returned to the ./configure step and launched it with an argument: ./configure --build=x86_64-apple-darwin11.2.0 (to check my darwin version, I have used a following command: "uname -a") Then the make command returned me the following errors: Undefined symbols for architecture x86_64: "_sf_seek", referenced from: SFReader::Seek_(long long)in audioreader.o "_sf_read_short", referenced from: SFReader::Read_(short*, long long)in audioreader.o "_sf_close", referenced from: SFReader::~SFReader()in audioreader.o SFReader::~SFReader()in audioreader.o "_sf_open_fd", referenced from: SFReader::SFReader(__sFILE*)in audioreader.o "_mmc_run_cmd", referenced from: cdrfile_read_raw_sector(CDRFile*, unsigned char*, int)in cdromfile.o cdrfile_open(char const*)in cdromfile.o "_cdio_read_mode1_sectors", referenced from: cdrfile_read_raw_sector(CDRFile*, unsigned char*, int)in cdromfile.o "_cdio_read_audio_sector", referenced from: cdrfile_read_raw_sector(CDRFile*, unsigned char*, int)in cdromfile.o "_cdio_init", referenced from: cdrfile_open(char const*)in cdromfile.o "_cdio_get_devices", referenced from: cdrfile_open(char const*)in cdromfile.o "_cdio_free_device_list", referenced from: cdrfile_open(char const*)in cdromfile.o "_cdio_open_cd", referenced from: cdrfile_open(char const*)in cdromfile.o "_cdio_get_first_track_num", referenced from: cdrfile_open(char const*)in cdromfile.o "_cdio_get_num_tracks", referenced from: cdrfile_open(char const*)in cdromfile.o "_cdio_get_disc_last_lsn", referenced from: cdrfile_open(char const*)in cdromfile.o "_cdio_destroy", referenced from: cdrfile_open(char const*)in cdromfile.o cdrfile_destroy(CDRFile*) in cdromfile.o "_cdio_get_track_sec_count", referenced from: cdrfile_open(char const*)in cdromfile.o "_cdio_get_track_lsn", referenced from: cdrfile_open(char const*)in cdromfile.o "_cdio_get_track_format", referenced from: cdrfile_open(char const*)in cdromfile.o ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status make[2]: *** [mednafen] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all-recursive] Error 1 I don't know what causes the errors: the skipped check for two libraries, or something else. Maybe original ./configure script could not properly check the libraries simply because it could not access them. If you have any guess - even wild - please share! Mac OS X Lion 10.7.2 | ||||
|
Re: ./configure script does not work on Mac OS X Lion [message #2456 is a reply to message #2373 ] | Mon, 02 April 2012 03:11 | |||
| ||||
To skip those libraries, you should have done ./configure --without-libcdio --without-libsndfile That's also what's causing your errors. | ||||
|
Previous Topic: | GUI writen in bash, Xmednafen of course only for linuxers je je |
Next Topic: | compiling error (libcdio) on osx |