Login
Back to forumSee the full topicGo to last reply

Posted By

IstvanV
on 2007-06-02
09:39:14
 Re: plus4emu 1.1.0

OK, I can replace ~/.plus4emu with "~/Library/Application Support/plus4emu". Is it safe to assume that "~/Library/Application Support/" already exists ?
makecfg could indeed be run automatically when there are no configuration files, although finding it if it is not in the PATH may be an issue. Or should it be just integrated into the main plus4emu executable ? That way, it could be run explicitly with a command line option like -makecfg; adding "reinstall configuration files" to the menu is also possible.

The simplest way to make sure that the libraries are statically linked is to remove any dotconf, SDL, portaudio, sndfile, and fltk dylibs (although FLTK is apparently already static), and build static libraries instead; this is typically done with configure options like --enable-static --disable-shared. Alternatively, if the dynamic libs are to be kept as well, it is possible to instruct the linker to use static versions of specific libraries, for example:

g++ -L. -Wl,-rpath,/usr/local/lib -o plus4emu gui/gui.o gui/gui_fl.o gui/disk_cfg_fl.o gui/disp_cfg_fl.o gui/kbd_cfg_fl.o gui/snd_cfg_fl.o gui/vm_cfg_fl.o gui/debug_fl.o gui/about_fl.o gui/main.o -L/usr/local/lib -L/usr/X11R6/lib64 -lplus4emu -lresid -Wl,-static -lfltk_gl -Wl,-Bdynamic -lGLU -lGL -Wl,-static -lfltk -Wl,-Bdynamic -lpthread -lm -lXext -lX11 -Wl,-static -ldotconf -lSDL -lportaudio -lsndfile -Wl,-Bdynamic -ljack -lasound -lpthread -lrt

Of course, the exact command line is different on OS X, so you should just build with scons first, then copy and paste the linker command line, enclosing any libraries that are not standard system libraries within -Wl,-static and -Wl,-Bdynamic (hopefully the flags are the same on the Mac). Perhaps I can add this as an option to SConstruct somehow.



Back to top


Copyright © Plus/4 World Team, 2001-2024