Thread: Would anyone be able to compile this simple code from make to exe please? I can't.

  1. #1
    Registered User
    Join Date
    Jan 2019
    Posts
    1

    Cool Would anyone be able to compile this simple code from make to exe please? I can't.

    I have tried for days now. It's a small demodulator program for the Meteor M2 weather satellite demodulator. It's a Github site & it's open source & free so I don't think there's any probs posting about it here, I hope. Also it needs th libncurses-dev, libncursesw5-dev, libpthread plus just a few more deps I couldn't find (listed by typing ldd program_name). I originally had it working a few weeks ago so I know it works but I deleted it off my R-pi 3 & can't get it to work again properly since . Even if u could spare ashare some tips or advice it would be greatly appreciated. I did mamage to compile it on my Pi again a few days ago but I had to change some .c files syntax (mainly utils.c the VERSION tags). I notice it says splash does that mean I need Splash? As you can tell still very much a noob here, but I've been trying to pick it up.. Oh yeah when I run the exe file on anything after that all I get is "segmentation fault" which is frustrating when theres no info to fix it! I will post the link here now for you guys. Here it is:
    Code:
     https://github.com/dbdexter-dev/meteor_demod
    I hope you could please help me out (I appreciate any that that I recieve as I am new & just started here today), or even throw abit of advice my way just thanks. I really am looking forward & can't wait to get into demoding my weather satellite pictures! Thank you all so much for your time & making me feel welcome on your site & forum..
    Kindest regards,
    BLB6000
    Last edited by BLB6000; 01-21-2019 at 01:36 PM.

  2. #2
    Registered User
    Join Date
    Jun 2018
    Posts
    3
    I would if I was on Windows, it's simple if you install mingw onto windows, just use the make32 etc. program to build it I think.
    I built it on Proteus Linux without issue, For the life of me I cant understand why no one has helped you ? I must be unlearned to want to help you or something.

    My uncle told me that "No good deed goes unpunished." But, I'm in 7 grade and still learning. And, I also, don't believe it.

  3. #3
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    27,152
    There's no problem posting for help here, but typically help for problems with a specific piece of software would best be sought in channels pertaining to that piece of software, not a general forum concerning the programming language that the software is written in. In this case, that could mean opening an issue in the Github issue tracker for that project, detailing the problem (segmentation fault when you tried to run it with such and such input), what you did (compile on and for Raspberry Pi 3 (which version exactly? Which OS exactly?), what changes you did to try and get it to work, etc.

    If you prefer to pose that question here, you should post those details as well. Just saying "change some .c files syntax" does not help. You should have forked the project and committed your changes to version control, possibly adding instructions to the readme on how to get it to work for your Raspberry Pi setup. In fact, if you had done that, this would be a non-issue: you could have just cloned your own fork and gone through the steps again to restore it on your RPi.

    Asking people to compile the code for you is a hard sell: they would either need to cross compile (and you didn't give much info on your setup), or happen to want to try and get this to work on a RPi of their own (but again you didn't specify your setup in detail).
    Last edited by laserlight; 01-26-2019 at 07:48 PM.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. simple code won't compile...
    By mccraryp in forum C++ Programming
    Replies: 3
    Last Post: 10-05-2013, 06:39 AM
  2. Replies: 2
    Last Post: 08-17-2013, 10:10 AM
  3. GNU make to uncompress and compile?
    By HarryU in forum C Programming
    Replies: 2
    Last Post: 04-02-2011, 09:39 AM
  4. Why the simple code doesn't compile?
    By meili100 in forum C++ Programming
    Replies: 4
    Last Post: 09-14-2008, 03:28 AM
  5. why can I get this simple code to compile?
    By tarotcard in forum C Programming
    Replies: 7
    Last Post: 11-10-2005, 05:20 AM

Tags for this Thread