32 bits on Snow Leopard : old dylib, dylib paths and xcode

Hello !
I've got a problem with 32 bits on Snow Leopard. I'm unable to change paths inside and old leopard dylib, and i have architecture compilation problems when i compile the dylib and the project that uses it. (i've replaced personal information in the rest of the post)
I want to use libsigc++ (a signal library) in a project but :
- if i use my old leopard compiled dylib of libsigc++, an absolute path is wrong inside the dylib, when i run the application that uses the dylib, i get
Dyld Error Message: Library not loaded:
and the indicated path is wrong (as i see when i do otool -L dylib_file)
but if i do installnametool with the change flag
the path remain the same when i do otool -L dylib_file
in addition, if i do installnametool with the delete_rpath flag
i get installnametool: no LC_RPATH load command with path: ...
- if i try to compile libsigc++ on Snow Leopard, everything seems to work, and when i compile the project that uses the compile libsigc++, i get :
ld: warning: in DYLIB_FILE, file is not of required architecture
I've tried, as i seen on a forum, to compile my dylib with
env CFLAGS=-arch i386 ./configure (with quotes, but it doesn't work here)
env CFLAGS=-arch i386 make (with quotes too)
but the result is the same...
My configuration in XCode is Mac OS 10.5 , i386 , gcc 4.0
So, does anybody have a solution to change my dylib paths or to be sure that my project and my dylib (compiled with configure and make) are really 32 bits ?
Thank u !
Emilien

MeeLoo wrote:
- if i use my old leopard compiled dylib of libsigc++, an absolute path is wrong inside the dylib,
What path is that?
when i run the application that uses the dylib, i get
Dyld Error Message: Library not loaded:
and the indicated path is wrong (as i see when i do otool -L dylib_file)
but if i do installnametool with the change flag
Can you print the exact command you are using?
- if i try to compile libsigc++ on Snow Leopard, everything seems to work, and when i compile the project that uses the compile libsigc++, i get :
ld: warning: in DYLIB_FILE, file is not of required architecture
Have you done a "make clean" on everything in this project? You are only going to get the "file is not of required architecture" if you are mixing architectures. If you do the default options, you shouldn't ever have mixed architectures or that error message.
I've tried, as i seen on a forum, to compile my dylib with
Which forum is that? The internet is a great mixing bowl of misinformation.
env CFLAGS=-arch i386 ./configure (with quotes, but it doesn't work here)
env CFLAGS=-arch i386 make (with quotes too)
First of all, you shouldn't even be using that flag at all. Do "make clean" on everything and get rid of all the options and it should build fine. If you insist on cross-compiling, the correct flags to use are
“-arch i386 -mmacosx-version-min=10.5″ to build a 32-bit version for MacOS X 10.5. You may need to set both CFLAGS and CXXFLAGS, depending on how well the makefile is constructed. If your Makefiles aren't well constructed, setting those flags on the "configure" command line may not work.

Similar Messages

  • Snow Leopard FAQ - what's known, and what's not.

    Can I speculate about its features on this board? Absolutely not!
    Wait till the official release date has past, and find out if someone has found the answer to your question about it then.
    When will Snow Leopard be released? Some time in September 2009.
    Will it work on PowerPC Macs (G3, G4, G5)? No.
    Will it work on CoreDuo and CoreSolo Macs (the first generation of Intel Macs)? Yes.
    Will new Macs released after it come with it? Yes.
    How much hard disk space is needed? 5GB (approximately 5120 MB).
    What kind of optical drive will boot it? DVD.
    How much physical RAM do I need? 1 GB.
    What features won't work on minimal Intel Macs? The 1.5 Ghz Intel CoreSolo
    and CoreDuo won't support interlacing on DVD playback. H.264 needs NVIDIA 9400M graphics processor. Developer Tools need 1 GB of memory and an additional 3 GB of hard disk space. CoreDuo and CoreSolo Macs are not 64 bit, and will only use 32 bit functions. Core2Duo is 64 bit. Core2Duo and Xeon processors also when an Airport card is present either have built-in 802.11n support, or a small paid upgrade will add 802.11n support. OpenCL needs: NVIDIA Geforce 8600M GT, GeForce 8800 GT, GeForce 8800 GTS, Geforce 9400M, GeForce 9600M GT, GeForce GT 120, GeForce GT 130, ATI Radeon 4850, Radeon 4870.
    What's the U.S. pricing? For existing Leopard users, $29.95, for existing Tiger uesrs the Mac Box Set including iLife '09 is needed, for users who bought their qualifying Mac after June 8, 2009, $9.95. It comes free with new Macs purchased after Snow Leopard's release.
    Will new Macs released after Snow Leopard run Leopard or Tiger? That is not known at this time. All other Macs in the past have followed a history of only running the operating system present at that time as new, including any updates. This means if you aren't sure that your software is made compatible with Snow Leopard, wait until it is before buying a new Mac after Snow Leopard's release, or wait until this is made clearer after Snow Leopard's release. Used and refurbished Macs will always be available that can run older operating systems. Ask on this board if you need help finding a reputable store for them, or identifying models on Apple's special deals that will run an operating system you need.
    The information about Snow Leopard in this FAQ has been gleaned from:
    http://www.apple.com/macosx/specs.html
    and
    http://www.apple.com/macosx/
    Watch these pages for changes.
    Message was edited by: a brody

    Can I speculate about its features on this board? Absolutely not!
    Wait till the official release date has past, and find out if someone has found the answer to your question about it then.
    When will Snow Leopard be released? August 28th, 2009.
    Will it work on PowerPC Macs (G3, G4, G5)? No.
    Will it work on CoreDuo and CoreSolo Macs (the first generation of Intel Macs)? Yes.
    Will new Macs released after it come with it? Yes.
    How much hard disk space is needed? 5GB (approximately 5120 MB).
    What kind of optical drive will boot it? DVD.
    How much physical RAM do I need? 1 GB.
    What features won't work on minimal Intel Macs? The 1.5 Ghz Intel CoreSolo
    and CoreDuo won't support interlacing on DVD playback. H.264 needs NVIDIA 9400M graphics processor. Developer Tools need 1 GB of memory and an additional 3 GB of hard disk space. CoreDuo and CoreSolo Macs are not 64 bit, and will only use 32 bit functions. Core2Duo is 64 bit. Core2Duo and Xeon processors also when an Airport card is present either have built-in 802.11n support, or a small paid upgrade will add 802.11n support. OpenCL needs: NVIDIA Geforce 8600M GT, GeForce 8800 GT, GeForce 8800 GTS, Geforce 9400M, GeForce 9600M GT, GeForce GT 120, GeForce GT 130, ATI Radeon 4850, Radeon 4870.
    What's the U.S. pricing? For existing Leopard users, $29.95, for existing Tiger uesrs the Mac Box Set including iLife '09 is needed, for users who bought their qualifying Mac after June 8, 2009, $9.95. It comes free with new Macs purchased after Snow Leopard's release.
    Will new Macs released after Snow Leopard run Leopard or Tiger? That is not known at this time. All other Macs in the past have followed a history of only running the operating system present at that time as new, including any updates. This means if you aren't sure that your software is made compatible with Snow Leopard, wait until it is before buying a new Mac after Snow Leopard's release, or wait until this is made clearer after Snow Leopard's release. Used and refurbished Macs will always be available that can run older operating systems. Ask on this board if you need help finding a reputable store for them, or identifying models on Apple's special deals that will run an operating system you need.
    The information about Snow Leopard in this FAQ has been gleaned from:
    http://www.apple.com/macosx/specs.html
    and
    http://www.apple.com/macosx/
    Watch these pages for changes.

  • How do I install Snow Leopard while keeping files, applications, and settings

    I need to update my system, I realized that I need Snow Leopard (quiet late) before Maverick. My question is, how can I install it keeping files and all the data. I found this on Internet, does it work?
    Install Snow Leopard while keeping files, applications, and settings
    If you follow these steps, the installer will replace your operating system if one is already present, but will preserve your account information and personal files.  You may have to reinstall some applications, however.
    Insert the install disc (or the first install disc if you have more than one) into your disc drive. Restart your computer while holding down the c key. This causes your computer to start up from the install disc rather than your hard drive. When you see the gray Apple insignia, release c . 
    The Mac OS X installer should open automatically. Follow the on-screen prompts to read and accept the license agreement and begin the installation. When prompted to choose a destination disk, select your preferred location and click Install. 
    When the Mac OS X installation finishes with the disc, restart your computer. After the installation completes, a configuration program may begin automatically if you are installing for the first time. You will need to supply basic setup information for your computer. 
    Update your system software to ensure that you have the most recent operating system components.  From the Apple menu, select Software Update... , and then follow the instructions on the screen. Often, you will have to restart your computer, and you may have to run Software Update multiple times before it can completely update your system.

    That's why you need to back it up. You won't need to restore the backup immediately afterwards unless something goes wrong during the upgrade, but you'll need it later; the drive will eventually fail.
    (105428)

  • Just purchased a ipad2, could not us it on my MacBook 10.4.1 - Purchased and installed OSX Snow Leopard 10.6.3 - downloaded and installed latest itunes, set up a itunes accounts and tested by purchasing an album and app, ipad does not show in devises?

    I just purchased a ipad2, it would not work on my MacBook 10.4.1 I purchased and installed OSX snow leopard 10.6.3 downloaded and installed the latest itunes, set up an itunes account, purchased some music and apps.  When i plug in my ipod it shows up and works, but when i plug in my new ipad the ipad screen comes up with a display of a cable and itunes but does not show in devises, i have tried all the resets and different USB ports with no success.  Any ideas short of selling it on ebay or buying a new computer?

    If you've already tried the usual rebooting of the computer and ports and stuff, there is only a few things left I can think of. It's possible that when you updated iTunes it didn't fully replace all the files, so I suggest just manually removing iTunes and then reinstalling it.
    Try removing iTunes manually first http://support.apple.com/kb/HT1224 then download a fresh copy, make sure it is 10.3.1
    It is essential that you go through Finder to remove those files it mentions. Otherwise they won't be reinstalled when you run the installer again.

  • I have Snow Leopard ver.10.6.8 and I have uninstalled iwork, because I don't have the equation writer on pages. So I re install it from the iwork's disk and when I tried to open any of the Apps, the system told me "  check with the developer  to make sure

    I have Snow Leopard ver.10.6.8 and I have uninstalled iwork, because I don't have the equation writer on pages. So I re install it from the iwork's disk and when I tried to open any of the Apps, the system told me "  check with the developer  to make sure Keynote (for example) works with this version of Mac OS X "
    iwork was running in my computer just a few moment ago !
    Can anyone tell me what can I do? thanks

    So I re install it from the iwork's disk
    Did you repair permissions and restarted your computer after the installation?  Check SU? 

  • I have a first generation MacBook Air that has been refurbished via the Apple store. I installed Snow Leopard about a year ago and now, my computer wont update! It will download the updates restart my computer, but then I get an error message!

    I have a first generation MacBook Air that has been refurbished via the Apple store. I installed Snow Leopard about a year ago and now, my computer wont update! It will download the updates restart my computer, but then I get an error message and the computer wont restart!

    What is a error message and what do you see when it appears?
    Haven't much problem with Airs around here, since they have a SSD they tend to be more reliable.
    Perhaps it was a bad update, have you ran through this list of possible fixes?
    Do as many as possible, starting with #1. Until the problem is resolved.
    Use the boot 10.6 USB instead of the disk of course.
    Step by Step to fix your Mac

  • I need to upgrade to mac os snow leopard from 10.5.8, and have the lion OS usb. I can't upgrade to snow leopard as my father doesn't remember the admin password.  If anyone can help it would be appreciatedeas

    I need to upgrade to mac os snow leopard from 10.5.8, and have the lion OS usb. I can't upgrade to snow leopard as my father doesn't remember the admin password.  If anyone can help it would be appreciated

    Restart with the Mac OS X 10.6 DVD in the drive or with the Lion USB drive connected, hold down the Option key just after the restart, tab to the installation disk, and press Enter. If the computer has a firmware password set, it needs to be provided for this to work.
    (66822)

  • Snow leopard 10.6.8 support the xcode 4.3

    hi
    snow leopard 10.6.8 support the xcode 4.3 with ios sdk5

    Sasikumar JP in the first post here, says it is possible to have 4.2 SDK under 10.6.8 :
    http://stackoverflow.com/questions/9613565/ios-5-1-with-xcode-4-2-for-ios-develo pment
    Anyway, as I understood, 4.3 have an "update" function for code written in older SDK versions.
    I expende the whole day today looking for a solution to this question (4.3 under 10.6.8), no way...

  • I recently updated to snow leopard version 10.6.3 and quicktime isn't working.  What do I need to do?

    I recently updated to snow leopard version 10.6.3 and quicktime player isn't working.  What do I need to do to get it working again?  I have quicktime player version 10.0.

    Mac OS X 10.6 includes QuickTime versions 10.0 and 7.6.3. The QuickTime 7 player will only be present if a QuickTime Pro key was present at the time of installation, or if specified as part of a custom install, or individually downloaded:
    http://support.apple.com/kb/dl923
    Snow Leopard update 10.6.4 included an update to 7.6.6 (if installed). You can install it from the above link  even though it says for 10.6.3. It's the same version of QuickTime Player 7.6.6.
    (Only QuickTime Player 7.6.3 or 7.6.6 can be updated to "Pro".)
    A Mac OS X v10.6, OS X Lion, and OS X Mountain Lion-compatible version of QuickTime Player 7 is available for use with older media or with AppleScript-based workflows. QuickTime Player 7 can be used to playback formats such as QTVR, interactive QuickTime Movies, and MIDI files. Also, it supports QuickTime 7 Pro registration codes for access to QuickTime Pro functionality.
    How to install Quicktime Player 7 on Snow Leopard, Lion and Mountain Lion when it is not already present:
    http://support.apple.com/kb/HT3678?viewlocale=en_US&locale=en_US

  • I upgraded to snow leopard 10.6.3 yesterday and now aperture 3.1 wont open??

    I upgraded my OS on my macbook to Snow Leopard 10.6.3 yesterday and now Aperture 3 will not open, error message "aperture cannot be opened because of a probelm"
    Any suggestions?

    Update your MacOS to 10.6.4 to be able to run Aperture with SnowLeopard; if you are using Snow Leopard, your computer must be Mac OS X v10.6.4 or later to use Aperture 3.1, see:  http://support.apple.com/kb/TS3485
    Regards
    Léonie

  • My mac originally snow leopard I upgraded to lion and want to sell it with Lion

    My mac originally snow leopard I upgraded to Lion and want to sell it with Lion ,can I do this?

    In order to install Mac OS X 10.7 you will need:
    Intel Core 2 Duo, Core i3, Core i5, Core i7, or Xeon processor
    2GB of RAM
    Mac OS X 10.6.6 or later with the Mac App Store installed
    At least 4GB of additional disk space to accommodate the download, but more is obviously recommended.

  • I'm attempting to install snow leopard on my 2008 Imac and it stops installing less than 1/4 way through?

    I'm attempting to install Snow Leopard on my 2008 Imac and before it 1/4 way done installing, it ejects the disc and restarts the computer.  Is there something I am doing wrong?

    See:
    How to Install OS X Updates Successfully
    A. Repair the Hard Drive and Permissions:
    Boot from your current OS X Installer disc. After the installer loads select your language and click on the Continue button. Then select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer. Now restart normally. 
    If DU reports errors it cannot fix, then you will need Disk Warrior (4.0 for Tiger) and/or TechTool Pro (4.5.2 for Tiger) to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    B. Make a Bootable Backup Using Restore Option of Disk Utility:
    Open Disk Utility from the Utilities folder.
    Select the destination volume from the left side list.
    Click on the Restore tab in the DU main window.
    Check the box labeled Erase destination.
    Select the destination volume from the left side list and drag it to the Destination entry field.
    Select the source volume from the left side list and drag it to the Source entry field.
    Double-check you got it right, then click on the Restore button.
    Destination means the external backup drive. Source means the internal startup drive.
    C. Important: Please read before installing:
    If you have a FireWire hard drive connected, disconnect it before installing the update unless you will boot from this drive and install the update on it. Reconnect it and turn it back on after installation is complete and you've restarted.
    You may experience unexpected results if you have installed third-party system software modifications, or if you have modified the operating system through other means. (This does not apply to normal application software installation.)
    The installation process should not be interrupted. If a power outage or other interruption occurs during installation, use the standalone installer (see below) from Apple Downloads to update.  While the installation is in progress do not use the computer.
    D. To upgrade:
    Purchase the Snow Leopard Retail DVD.
    Boot From The OS X Installer Disc:
    Insert OS X Installer Disc into the optical drive.
    Restart the computer.
    Immediately after the chime press and hold down the "C" key.
    Release the key when the spinning gear below the dark gray Apple logo appears.
    Wait for installer to finish loading.
    E. If updating:
    Download and install update(s) 
    Use Software Update, or
    Download standalone updater(s).

  • My husband has a Mac mini, vintage 2009, running Snow Leopard. All other computers and devices in the house are able to connect to our wireless network, but since I upgraded his computer to Snow Leaopard  it won't connect. What is the problem?

    What am I missing here. I'm sure it is some kind of sitting that is not right.
    Thanks Pat

    Sounds familiar:
    lllaassJan 6, 2015 2:12 PM Re: My husband has a Mac mini, vintage 2009, running Snow Leopard. All other computers and devices in the house are able to connect to our wireless network, but since I upgraded his computer to Snow Leaopard  it won't connect. What is the problem?
    Re: My husband has a Mac mini, vintage 2009, running Snow Leopard. All other computers and devices in the house are able to connect to our wireless network, but since I upgraded his computer to Snow Leaopard  it won't connect. What is the problem?in response to Patricia Isaac1
    Power off and then back on the router
    What happens when you enter the network's PW?
    Try forgetting/deleting the network if necessary. To do that go to System Preferences>Network>wifi>Advanced and select the network and click on the minus sign
    Csound1 wrote:
    Turn off the modem and the router, wait 60 seconds. Turn on the modem, wait 60 seconds, turn on the router.

  • HT6065 I upgraded from Snow Leopard to Mavericks OS X, and lost all of my "on my mac" mail boxes.  How do I restore them?

    I upgraded from Snow Leopard to Mavericks OS X, and lost all of my "on my mac" mail boxes.  How do I restore them?

    The answer was more complicated.  I had to have an Apple Care tech help me onscreen.  Had to go to Time Machine to restore (which I had tried, but couldn't find the right files to import.  The Mail icon was barred).  They helped me find them.  It was very complicated, with many steps involved.  I never could have figured it out on my own.  Even the tech was not sure how, or if it would work. And it took about 1/2 hour for the stuff to download. But, the problem was solved eventually
    .  Thanks again for your help!

  • Snow leopard server for net boot and software updates only what needs to be running to use it?

    Snow leopard server for net boot and software updates only what needs to be running to have it work right?

    Netboot and Software Update, at its simplest.  Mac OS X Server also expects to have functional IP networking and DNS services (somewhere) on the LAN (and if you're behind a NAT gateway, then the DNS server(s) are on your LAN and not out at your ISP), or things get weird.  SUS (usually) works out of the box, outside of cases where there's an outbound firewall.  Netboot can be more effort to setup, in terms of what you're loading into the clients.

Maybe you are looking for

  • [K8N Neo2 Platinum] BSOD - have had enough of them!

    My first K8N Neo2 was a DAO - no current to the PCI slots. Got a new one as replacement, seemed to work fine. "Seemed", indeed. I've had plenty of sudden resets and BSODs. I've seen: STOP 0x000000FC (no error or driver named) STOP 0x000000EA in ATI2D

  • Pop up a window to show images

    Hi, I am trying to show images when the user rolls the mouse over the image but I want to show them as a pop up window only when the user is on the image. Any ideas how can I handle this? I will have variety of images and want the same behavior for a

  • Template / Icons for the BW dataflow in powerpoint?

    Hi all, I was wondering if anyone had a powerpoint with any of the dataflow objects which I could use? It's difficult finding good quality Datasource icons etc. Thanks, Rcihard

  • Why is Elements 12 asking me to start a trial period when I already registered my product last year?

    Why is Elements 12 asking me to start a trial period when I already registered my product last year?

  • Chapter Not Working

    I have created a menu with a single play button that starts a movie lasting 1 hour and 15 minutes.  I've inserted 5 chapter points in the movie.  This is something I have done many times in the past and never had a problem, until now. When previewing