pedgarcia / cpcsdk

Automatically exported from code.google.com/p/cpcsdk
0 stars 0 forks source link

CLI won't compile #60

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
After using Reloaded successfully a few times, (although with no sound -- which 
is strange because I have working ALSA and PortAudio setups, as proven by other 
apps), it would just crash immediately after bringing up its window.

So I thought I would try turning off WxWidgets to see if that fixed the crash. 
So I configured using --with-cli -without-wxwidget
.

However:

g++ -DHAVE_CONFIG_H -I. -I../..  -I../../src/core     -Wall -O2 -funroll-loops 
-ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions 
-DNDEBUG  -MT libcapricecli_a-caprice_cli_routs.o -MD -MP -MF 
.deps/libcapricecli_a-caprice_cli_routs.Tpo -c -o 
libcapricecli_a-caprice_cli_routs.o `test -f 'caprice_cli_routs.cpp' || echo 
'./'`caprice_cli_routs.cpp
caprice_cli_routs.cpp: In function ‘void 
caprice_cli_memory_disasm_quantity(int, int)’:
caprice_cli_routs.cpp:179:11: error: ‘Desass’ was not declared in this scope
make[1]: *** [libcapricecli_a-caprice_cli_routs.o] Error 1
make[1]: Leaving directory `/home/kau/zba/vrici/cpcsdk/Reloaded/src/cli'
make: *** [all-recursive] Error 1

Looking at core/Desass.h, it looks like a simple renaming error.
The attached patch fixes it.

(however, while everything then compiles, it won't link. It says 

g++  -Wall -O2 -funroll-loops -ffast-math -fomit-frame-pointer 
-fno-strength-reduce -finline-functions -DNDEBUG    -o caprice       
core/libcapricecore.a   -lstsound -lportaudio -lrt  cli/libcapricecli.a 
asm/libsjasm.a asm/libsjasminternal.a  -ldl -lrt 
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.1/../../../../lib/crt1.o: In function 
`_start':
(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status
make[1]: *** [caprice] Error 1
make[1]: Leaving directory `/home/kau/zba/vrici/cpcsdk/Reloaded/src'

ie. main() is not defined.
)

Original issue reported on code.google.com by 00a...@gmail.com on 14 Jul 2011 at 1:13

Attachments:

GoogleCodeExporter commented 9 years ago
The 'CLI' is actually an add-on to control caprice from the CLI, but doesn't 
take control of the emulator.

wxWidgets is currently the only available video output. If you want to run 
without it, the solutions are :
 * Use gui_be, which only works under the Haiku operating system
 * Use snamp, which has no video output at all (it's meant as a music player for snapshots)
 * Wait a bit, we're working on other output modules.
 * write your own ! :)

Original comment by pulkoma...@gmail.com on 14 Jul 2011 at 8:45

GoogleCodeExporter commented 9 years ago
Applied the patch in r500.

Original comment by pulkoma...@gmail.com on 14 Jul 2011 at 8:53