Git Product home page Git Product logo

Comments (11)

bebbo avatar bebbo commented on August 28, 2024

just did a

make clean clean-prefix
make all -j8
make all-sdk

then did a fresh clone from AmigaPorts

git clone https://github.com/AmigaPorts/MilkyTracker
cd MilkyTracker
./build_gmake 
make -j8

And found that sdl and libdebug is missing => added libdebug and a sdl.sdk

note: you should rather include "SDL/SDL.h" not "SDL.h" - I added a redirecting include for now.

milkytracker is linked properly.

from amiga-gcc.

MBeijer avatar MBeijer commented on August 28, 2024

from amiga-gcc.

bebbo avatar bebbo commented on August 28, 2024

Yes, clean-prefix removes the entire folder! Be careful!

I plan to keep the $(PREFIX)/include and $(PREFIX)/lib - but that lib folder is not yet searched...

Try make clean-libnix then make libnix.

from amiga-gcc.

MBeijer avatar MBeijer commented on August 28, 2024

from amiga-gcc.

bebbo avatar bebbo commented on August 28, 2024

if we had sdk files for all your installed headers and libraries, clean-prefix would'nt be a problem.

from amiga-gcc.

MBeijer avatar MBeijer commented on August 28, 2024

My plan was to eventually push that kind of stuff the amiga-cross-toolchain, but I guess it would be done here instead. :)

Libraries that are rather common that I've sorted out how to compile for Amiga without any fuzz:

  • libz
  • libz2
  • libSDL
  • libSDL_image
  • libSDL_gfx
  • libSDL_mixer
  • libSDL_ttf

The end goal is that I want to include pkgconfig support, so it's easier porting software later.
You basically just need a folder in lib called pkgconfig. Within that folder are files named .pc, with the following content:
zlib.pc

prefix=/opt/m68k-amigaos
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=/opt/m68k-amigaos/include

Name: zlib
Description: drawing and graphical effects extension for SDL
Version: 1.2.11
Libs: -L${libdir} -lz
Cflags: -I${includedir}/

or
SDL_gfx.pc

prefix=/opt/m68k-amigaos
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=/opt/m68k-amigaos/include

Name: SDL_gfx
Description: drawing and graphical effects extension for SDL
Version: 2.0.26
Requires: sdl >= 1.2.0
Libs: -L${libdir} -lSDL_gfx
Cflags: -I${includedir}/SDL

I'd like to make this toolchain as feature-complete as possible. :)

from amiga-gcc.

bebbo avatar bebbo commented on August 28, 2024

ok, I will try to use pkgconfig.

And:
Cflags: -I${includedir}/SDL

I think this folder is missing in milkytracker's include list.

from amiga-gcc.

MBeijer avatar MBeijer commented on August 28, 2024

from amiga-gcc.

bebbo avatar bebbo commented on August 28, 2024

it's this one? pkg-config

And I think you should use the ${prefix} in the include dirs.

from amiga-gcc.

MBeijer avatar MBeijer commented on August 28, 2024

from amiga-gcc.

MBeijer avatar MBeijer commented on August 28, 2024

The includedir mentioned in the .pc-file is defined further up in the same file. I just lazily didn't add $(prefix) to the includedir define, because it served my purpose.

I am working on getting CMake to properly build MilkyTracker for Amiga. CMake uses pkg-config to find libs amongst other things. Until then, everything is predefined to /opt/m68k-amigaos via the premake build system.

from amiga-gcc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.