Author Topic: install name header padding  (Read 1028 times)

Miya

  • Hydlaa Resident
  • *
  • Posts: 69
    • View Profile
install name header padding
« on: March 15, 2005, 07:14:18 am »
from the install_name_tool man page it says we can use the -headerpad_max_install_names to link planeshift so that install_name_tool can work for all the fink libraries. Currently there are problems with changing the install name of fink libraries to application bundle relative install names, since /sw/lib/blah is usually much shorter than @executable_path/../Resources/blah so install_name_tool doesn\'t work.

I haven\'t tried it yet though since public cvs has been down for a couple days. If anyone has an old checkout they can try this with, could you let me know if it works? (ie, add -headerpad_max_install_names to the linker flags and then run dfryer\'s scripts). It would go a long way to a better mac installer for those that don\'t like to go into the terminal and copying files into super user protected folders in order to get the game to work.
Code: [Select]
Love(clk89);

En Sabah Nur

  • Traveller
  • *
  • Posts: 30
    • View Profile
(No subject)
« Reply #1 on: March 15, 2005, 02:52:05 pm »
uh?i don\'t understand what you\'re talking about(maybe cause english is not my native language)anyway i am not sure that it will help us with currents mac problems(sigh),i am not good with computer knowledge and terminal stuff but i have always figured out how to run the game while reading other users posts...
well good luck hope it will works,i hope dfryer will found a magical trick soon he is our only hope actually(my thought)
-------------------------------------------
sorry for my english...i hope that you understand 8o

Cha0s

  • Veteran
  • *
  • Posts: 1860
    • View Profile
(No subject)
« Reply #2 on: March 15, 2005, 04:06:07 pm »
It\'s an interesting idea, but right now the big issue is getting Crystal Space (and PS itself) to compile for the Mac. Once that\'s working again, the installer issue can be addressed. If it comes down to it, an OS X package install could easily be prepared and install everything into the correct directories. Hopefully that won\'t be necessary (though a package install would be nice anyway :P ). For now, as usual, we just need to watch the forums and wait.
Cha0s
Mac OS X Forum Moderator
In-Game Roleplay Forum Moderator
Please search and skim existing threads before posting!

dfryer

  • Veteran
  • *
  • Posts: 1070
    • View Profile
(No subject)
« Reply #3 on: March 18, 2005, 10:35:26 am »
I\'m surprised you have trouble with install_name_tool, I have found that (with gcc 3.3 and os x 10.2) it seems to provide enough \"default padding\" for install_name_tool to work.  Most of the problems happened because dependencies changed without my noticing, and then after that everything was a mess since everyone had different versions, relocated files etc. etc.  If you do have trouble with install_name_tool, could you let me know what system (gcc version, os version, maybe linker versions if different from gcc?) you\'re using?

If there is a problem, then as you suggested the header padding is probably the way to do it.  The goal of all this is to keep the fink libraries inside the bundle.

The alternative is to figure out how to statically link the crystalspace plugins to the fink libraries.  Have fun with that, if you want!
Quidquid latine dictum sit, altum sonatur.