How to use autotools (automake, autoconf, aclocal, autoheader)

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ม.ค. 2025

ความคิดเห็น • 35

  • @davidhayes1639
    @davidhayes1639 4 ปีที่แล้ว +6

    Amazing, this kind of knowledge helped me out. I normally hand build my make files and this process streamlined that

  • @jagagemo8141
    @jagagemo8141 หลายเดือนก่อน +1

    I haven't made a Makefile in well over a decade.
    Now I'm doing C again and I leaned about automake but had no idea how to use it.
    Thank you for making this video, making Makefiles by hand was never fun.

  • @_ryju_
    @_ryju_ หลายเดือนก่อน +1

    This was super helpful! Kudos!

  • @aaronperl
    @aaronperl 4 ปีที่แล้ว +5

    I remember playing with these tools on a small personal project back in school, about 20 or so years ago. I've forgotten everything I had learned about it, so everything you covered was like new to me. Thanks... I occasionally think about them, but I haven't had a need to re-learn.
    About the only thing I remembered was that the language was m4, and that strings are delimited with square brackets rather than quotes ... which is actually a convention I had picked up on my own for debugging messages, so it always felt intuitive to me.

    • @DanielPersson
      @DanielPersson  4 ปีที่แล้ว +1

      Hi Aaron
      Yes, my m4 knowledge is at least 20 years old and I did not remember that difference. So looking at it again was like opening a new page to a familiar book. You remember the story vaguely but not all the story points :)
      Best regards
      Daniel

  • @adammontgomery7980
    @adammontgomery7980 6 หลายเดือนก่อน +3

    this is insane. It might just be easier to have everyone write their own compilation command. I think I know why cmake is a thing now lol.

  • @prajjwal9111
    @prajjwal9111 4 ปีที่แล้ว +6

    Thank you So much!! I was learning Autotools and couldn't find the good sources till I found this Gem.
    Just a suggestion though please don't type commands at the very end because lower screen sometimes gets overlapped by either that pink border or TH-cam play buttons
    Everything else is just perfect!

    • @DanielPersson
      @DanielPersson  4 ปีที่แล้ว +2

      Hi Prajjwal
      Thank you for watching my videos, and thank you for the great suggestions.
      As for the border, I could make the window inside the border marginally smaller to not get disturbed in the edges. TH-cam buttons are something I forgot to make space for. Perhaps I need to redo the frame to leave some space at the bottom for the buttons. Perhaps I could fill that space with some logos or similar to use it with less important information.
      Great suggestions and I will make changes, perhaps not right away, but I will keep it in mind.
      Best regards
      Daniel

    • @monarch0243
      @monarch0243 4 ปีที่แล้ว

      @@DanielPersson Thank you :D
      Looking forward to learn more from You.

  • @maisSorteQJuizo
    @maisSorteQJuizo 4 ปีที่แล้ว +6

    you could do `autoreconf -i` to add the missing files automatically too

    • @DanielPersson
      @DanielPersson  4 ปีที่แล้ว +1

      Hi Mais.
      Thank you for watching my videos, and thank you for the information. I did not know that you had this functionality. It's good to know what files are required by the tooling, but making generation is always helpful.
      Best regards
      Daniel

  • @wiktoriazawadzka7016
    @wiktoriazawadzka7016 3 ปีที่แล้ว +1

    Thank You so much!! I couldn't find it anywhere and You explained it in simple and easy way.

  • @Gabi1000show
    @Gabi1000show 2 ปีที่แล้ว +1

    Hi Daniel, thanks for the video. Do you know any documentation or video on how to install autoconf and automaker on windows?

    • @DanielPersson
      @DanielPersson  2 ปีที่แล้ว +1

      Hi Gabi
      I've not created a video on the topic. But windows don't have a clear native way of building these tools. Maybe Visual Studio could do it to run them.
      My approach to run these tools would be to install the Windows Subsystem for Linux, Cygwin or Mingw32 and run the tools in those those emulators.
      Both Cygwin and Mingw32 have package managers that can install executables that you can run in windows for these tools.
      And WSL runs a separate Linux distro that have their own package managers. But in that case it will be separated from the Windows operativsystem.
      Thank you for watching my videos. I hope this helps.
      Maybe I'll look into creating a video on the topic in the future.
      Best regards
      Daniel

    • @Gabi1000show
      @Gabi1000show 2 ปีที่แล้ว +1

      ​@@DanielPersson Thank you very much for your careful reply!
      I appreciate your help!
      Best regards,
      Gabriela

  • @snneossi6880
    @snneossi6880 4 ปีที่แล้ว +4

    Interesting.
    Thanks Dan

  • @javiermoya11
    @javiermoya11 2 ปีที่แล้ว +1

    This is amazing. Thank you a lot for the tutorial. Really appreciated!!

  • @hassanhiso94
    @hassanhiso94 3 ปีที่แล้ว +1

    plz help i keep getting Invoking autoreconf in build directory

    • @DanielPersson
      @DanielPersson  3 ปีที่แล้ว

      Hi Crusher.
      Thank you for watching my video.
      I'm sorry that I don't really understand. I've read your comment multiple times. Can you help me out?
      Best regards
      Daniel

    • @hassanhiso94
      @hassanhiso94 3 ปีที่แล้ว

      @@DanielPersson No worries I fixed it. But I have come across a new issue with C# it does not wanna run on visual studio code for some reason.

  • @abhishekrai383
    @abhishekrai383 4 ปีที่แล้ว +2

    Amazing tutorial, helped alot.

  • @udhavverma1006
    @udhavverma1006 4 ปีที่แล้ว +3

    Really helpful, Thanks

  • @JohnnieWalkerGreen
    @JohnnieWalkerGreen 9 หลายเดือนก่อน +1

    Thank you!

  • @nathantoulbert4406
    @nathantoulbert4406 2 ปีที่แล้ว +3

    you know, there had to be some point when a group of people sat around and decided "we could just rewrite make so that it is able to determine a target's environment and alter the build based on it, but instead lets just keep it as is and make another make to make the make!" What is next? Are we gonna get "automakemake" which can automatically configure the 'configure.configure' configuration, and then... nevermind XD

    • @DanielPersson
      @DanielPersson  2 ปีที่แล้ว +1

      Hi Nathan
      You are not wrong.
      Then again the strength of Linux is to create small tools that do one thing and do it well. And in this case someone created make which is a powerful program to define how to build something. There is a lot of make systems out there cmake, ant, maven, Gradle to name a few.
      But to have the forethought to decide to make a preprocessor for larger project instead of making make more complex might be the right choice.
      Thank you for watching my videos.
      Best regards
      Daniel

    • @nathantoulbert4406
      @nathantoulbert4406 2 ปีที่แล้ว

      @@DanielPersson That's true. That is one of the platform's strongest points imo. It is definitely what attracts me. Btw, I love this thumbnail.Thanks for the reply.

  • @nevilholmes5900
    @nevilholmes5900 2 ปีที่แล้ว +1

    thanks

  • @SciHeartJourney
    @SciHeartJourney 2 ปีที่แล้ว +1

    We need "bash" first though!

  • @xiangyundongdezhu
    @xiangyundongdezhu 3 ปีที่แล้ว +1

    Thx!

  • @machinelearningid3931
    @machinelearningid3931 3 ปีที่แล้ว +1

    wow, thanks

  • @stevenbroshar7948
    @stevenbroshar7948 20 วันที่ผ่านมา +1

    Powerful yes. But this has a very steep learning curve.

  • @slendi9623
    @slendi9623 3 ปีที่แล้ว +2

    remember kids, ZZ = :wq and ZQ = :w!

    • @DanielPersson
      @DanielPersson  3 ปีที่แล้ว +1

      Hi Slendi.
      Thank you for watching my videos.
      I'm currently learning vim using Vim adventures. This one I needed to look up in a cheat sheet. Thank you for dropping some knowledge.
      Best regards
      Daniel

    • @slendi9623
      @slendi9623 3 ปีที่แล้ว +1

      Uh oh i made a mistake! ZQ is actually :q!

    • @viacheslav1392
      @viacheslav1392 2 ปีที่แล้ว +1

      @@slendi9623 dangerous mistake actually :)