From: Alexei S. <ale...@gm...> - 2010-01-15 01:55:24
|
I've committed changes that should fix your issues with compiling dyngen.c. Can you verify that it now compiles properly? As for the prefs_init()/prefs_exit() issue, I'll have to figure out why src/dummy/prefs_dummy.cpp isn't being built/linked for your config. I've also committed a fix for the first Basilisk compile error you got. Please try again and let me know the results. Thanks! -Alexei On Thu, Jan 14, 2010 at 11:03 AM, howard spoelstra <how...@ho...> wrote: > Hi, > > Using SDL-1.2.14, Cygwin 1.7.1 errors occur while building both SheepShaver > and BasiliskII. I have described the steps I take to build both executables > and (for SheepShaver) how to work around these errors. > Maybe someone can look into it and adjust the code? > > Thanks, best, > Howard > > SheepShaver: > > cd SheepShaver > make links > cd src/Windows > NO_CONFIGURE=1 ../Unix/autogen.sh > > ./configure leads to: > > (part of configure log.... > checking for pkg-config... /cygdrive/d/GTK/bin/pkg-config) > > Summary: > Enable JIT compiler .............. : yes > GTK user interface ............... : no > > ./configure --disable-gtktest leads to: > > (part of configure log... > checking for pkg-config... /cygdrive/d/GTK/bin/pkg-config > checking for GTK+ - version >= 1.3.15... yes (version 2.6.8)) > > Summary: > Enable JIT compiler .............. : yes > GTK user interface ............... : yes > > > $ make > gcc -I../kpx_cpu/include -I../kpx_cpu/src -DUSE_JIT -I../include -I. > -I../slirp -DHAVE_CONFIG_H -O2 -c ../kpx_cpu/src/cpu/jit/dyngen.c -o > obj/dyngen.ho > ../kpx_cpu/src/cpu/jit/dyngen.c: In function `patch_relocations' > ../kpx_cpu/src/cpu/jit/dyngen.c:2176: error: `i' undeclared (first use in > this function) > ../kpx_cpu/src/cpu/jit/dyngen.c:2176: error: (Each undeclared identifier is > reported only once > ../kpx_cpu/src/cpu/jit/dyngen.c:2176: error: for each function it appears > in.) > ../kpx_cpu/src/cpu/jit/dyngen.c:2176: error: `rel' undeclared (first use in > this function) > ../kpx_cpu/src/cpu/jit/dyngen.c:2178: error: `copy_size' undeclared (first > use in this function) > ../kpx_cpu/src/cpu/jit/dyngen.c:2179: error: `sym_name' undeclared (first > use in this function) > ../kpx_cpu/src/cpu/jit/dyngen.c:2180: error: `p' undeclared (first use in > this function) > ../kpx_cpu/src/cpu/jit/dyngen.c: In function `gen_file': > ../kpx_cpu/src/cpu/jit/dyngen.c:2891: error: `data_sec_hdr' undeclared > (first use in this function) > make: *** [obj/dyngen.ho] Error 1 > > I can solve this by using the revision 1.19 version of dyngen.c > Next, make stumbles over: > > g++ -o SheepShaverGUI.exe obj/prefs.o obj/prefs_windows.o > obj/prefs_editor_gtk.o obj/xpram_windows.o obj/prefs_ite > ms.o obj/user_strings.o obj/user_strings_windows.o obj/util_windows.o > obj/packet32.o obj/SheepShaverGUI.o -lwsock32 -lip > hlpapi -LD:/GTK/lib -lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0 > -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 -lpango-1.0 -lgo > bject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv -mwindows -mno-cygwin > obj/prefs.o:prefs.cpp:(.text+0x9): undefined reference to `prefs_exit()' > obj/prefs.o:prefs.cpp:(.text+0x624): undefined reference to `prefs_init()' > > This can be solved by editing BasliskII\src\prefs.cpp and removing: > #ifdef SHEEPSHAVER > // System specific initialization > prefs_init(); > #endif > > and > #ifdef SHEEPSHAVER > // System specific deinitialization > prefs_exit(); > #endif > > This ultimately leads to succesfull builds of both SheepShaver.exe and > SheepShaverGUI.exe > > > > For Basilisk, using clean code from CVS again: > > ./configure leads to: > > (part of configure log... > checking for pkg-config... /cygdrive/d/GTK/bin/pkg-config > checking for GTK+ - version >= 1.3.15... no) > > Summary: > Use JIT compiler ....................... : yes > JIT debug mode ......................... : no > Floating-Point emulation core .......... : IEEE fpu core > Assembly optimizations ................. : i386 > Addressing mode ........................ : direct > GTK user interface ..................... : no > > ./configure --disable-gtktest leads to: > > Summary: > Use JIT compiler ....................... : yes > JIT debug mode ......................... : no > Floating-Point emulation core .......... : IEEE fpu core > Assembly optimizations ................. : i386 > Addressing mode ........................ : direct > GTK user interface ..................... : yes > > make then reports (related to the recent SheepVM changes?): > g++ -I../include -I. -I../uae_cpu -I../slirp -DHAVE_CONFIG_H > -DDIRECT_ADDRESSING -DUNALIGNED_PROFITABLE > -DREGPARAM="__attribute__((regparm(3)))" -DX86_ASSEMBLY -DOPTIMIZED_FLAGS > -DSAHF_SETO_PROFITABLE -DUSE_JIT -DUSE_JIT_FPU -DFPU_IEEE -O2 > -I/home/hsp/cvs/SDL/release_1.2.14/include/SDL -I/usr/include/mingw > -mno-cygwin -Dmain=SDL_main -c ../main.cpp -o obj/main.o > g++ -I../include -I. -I../uae_cpu -I../slirp -DHAVE_CONFIG_H > -DDIRECT_ADDRESSING -DUNALIGNED_PROFITABLE > -DREGPARAM="__attribute__((regparm(3)))" -DX86_ASSEMBLY -DOPTIMIZED_FLAGS > -DSAHF_SETO_PROFITABLE -DUSE_JIT -DUSE_JIT_FPU -DFPU_IEEE -O2 > -I/home/hsp/cvs/SDL/release_1.2.14/include/SDL -I/usr/include/mingw > -mno-cygwin -Dmain=SDL_main -c main_windows.cpp -o obj/main_windows.o > main_windows.cpp: In function `int SDL_main(int, char**)': > main_windows.cpp:270: error: invalid conversion from `int' to `const char*' > main_windows.cpp:270: error: invalid initialization of reference of type > 'int&' from expression of type 'char**' > ../include/prefs.h:26: error: in passing argument 2 of `void PrefsInit(const > char*, int&, char**&)' > make: *** [obj/main_windows.o] Error 1 > > There will be more errors building BasiliskII, but as I'm not able to solve > the first one, the next can't appear yet ;-) > > > ________________________________ > Ontdek nu Windows phone. De smartphone van dit moment > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for > Conference > attendees to learn about information security's most important issues > through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > basilisk-devel mailing list > bas...@li... > https://lists.sourceforge.net/lists/listinfo/basilisk-devel > > |