Menu

#5 Windows sc68-mscv issue

v1.0 (example)
open
nobody
None
5
2015-02-21
2015-02-20
No

Hi,
I performed a svn checkout and am trying to compile the Visual Studio solutions, but Visual Studio is complaining about trap68.h being missing in \libsc68\sc68 ...

I tried every .sln file I found (sc68-msvc, foobar plugin, etc...)

I am a noob regarding C++ projects and their compilation and I know I am missing something obvious.
I tried to compile using Cygwin, did an aclocal autoconf automake ... well nothing complained, so I guess the projects are fine ... I should be able to use the provided solution files...
I'm running Visual Studio 2013 Premium.

I know my issue is a silly one, and hope you can direct me in the right direction.
Thanks for your help!

Discussion

  • Ben G. Han

    Ben G. Han - 2015-02-20

    Hi,

    Thank you for the report.

    It's indeed a problem. The missing file 'trap68.h' is a generated file (I think I explained that in the README.SVN file.) In the normal process (GNU/autotools) you need to have as68 already running to build sc68. Ideally as68 should be build automatically if needed but it is not at the moment.

    Same problem with the MsVC project except there is not a rule to generate the file. At the moment you have to use a version generated by other mean. You can use the one from the cygwin build without problem. It's just 68000 binary code, so it's the exact same file for all platforms.

    In my case I have a single source tree for all builds (cygwin, mingw, msvc ...) so the file is always in the directory.

    I'll think of the best solution to fix that.

     

    Last edit: Ben G. Han 2015-02-20
  • Etienne Alif

    Etienne Alif - 2015-02-21

    Thank you for your very quick answer! It's very clear.
    Yet, I am still unable to compile anything and think I've been a bit enthousiastic regarding my cygwin compilation success :)
    Anyway, I've built an Ubuntu VM to try out compilation in a more friendly environment. I didn' t go very far though ... I'm unable to compile anything from my svn checkout ... I could, though, install every prerequisites and compile and install as68 successfully from the as68-20061217 sources.
    I just need to learn about autoconf and automake processes a lot more I think. I'm again missing the obvious here I'm sure!

    Just for the record, I'll give an example. I'm building from root directory. So, I've libtoolize(d), aclocal(ed), autconf(ed) and automa(d)e (sorry for that... ). OK, no complaints whatsoever, just did an automake --add-missing, that's all. ./configure goes well until:
    [...]
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    ./configure: line 11829: syntax error near unexpected token Atari' ./configure: line 11829:SC68_PACKAGE(Atari ST and Amiga music player.)'

    If I try to build from as68 dir, here is what ./configure gives me:
    [...]
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    ./configure: line 11812: syntax error near unexpected token Motoral' ./configure: line 11812:SC68_PACKAGE(Motoral MC68000 macro assembler.)'

    So, with a little bit more of reading and time, I'm sure I'll understand what's going on here and why these errors do pop. I'm perfectly aware that I may have not chosen the simpliest project for my first step in c++ and manual compilation :)

    Thank you for your help here, and for not making too much of me!

     
  • Ben G. Han

    Ben G. Han - 2015-02-21

    Did you read README.SVN ? Always read the README specially when you have a problem :)
    More importantly did you run tools/svn-bootstrap.sh ? It runs the auto-stuff for you but not only. It also creates required m4 directories in each sub projects. SC68_PACKAGE is a m4 macro that should be substituted.
    If that's not it, then I don't know. That version of the autotools do you used ?

    FYI: you'll probably want optional dependencies:
    - libao-dev (to produce sound or .wav)
    - libcurl-dev (ftp,http access...).
    Unless you just need the lib to build a plugin of some sort for an application that already handle those things.

    There is a source package have done recently.

    Hope it helps.

     
    • Etienne Alif

      Etienne Alif - 2015-02-22

      Hi!
      Thanks for your answer, I solved my issues! The problem is I am an ABSOLUTE idiot!
      Yes, I had read the README.SVN and followed instructions, the issue was I misread the fact you had to run svn-bootstrap.sh from root dir and not from tools dir!
      I'm sorry for all this and thank you so much for your time and concern. I copied/pasted the generated trap68.h to its location, loaded the sc68-msvc in Visual Studio and successfully compiled the 3 libs of the project!

       

Log in to post a comment.