Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI won't compile #60

Open
pulkomandy opened this issue May 25, 2014 · 2 comments
Open

CLI won't compile #60

pulkomandy opened this issue May 25, 2014 · 2 comments

Comments

@pulkomandy
Copy link
Member

From [email protected] on July 14, 2011 03:13:47

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 tomain'
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.
)

Attachment: misspelling.diff

Original issue: http://code.google.com/p/cpcsdk/issues/detail?id=60

@pulkomandy
Copy link
Member Author

From [email protected] on July 14, 2011 01:45:20

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 ! :)

@pulkomandy
Copy link
Member Author

From [email protected] on July 14, 2011 01:53:43

Applied the patch in r500 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant