Menu

Cannot Compile Source Code Using 'make'

John
2018-07-19
2018-07-19
  • John

    John - 2018-07-19

    Hi, I am having trouble compile the source code. When I am in the 'HarmonyHubControl-master' directory, I type 'make', and this is the error message that appears on my screen...

    pi@raspberrypi:~/HarmonyHubControl-master $ make
    cc HarmonyHubControl.o csocket.o -o HarmonyHubControl -lstdc++
    cc: error: csocket.o: No such file or directory
    Makefile:4: recipe for target 'HarmonyHubControl' failed
    make: *** [HarmonyHubControl] Error 1

    If someone could help me through this hurtle, I would appreciate their support!

     
  • John

    John - 2018-07-19

    I found the solution...

    You can build using gcc-4.9 with the following;

    first download gcc-4.9...
    sudo apt-get install gcc-4.9 g++-4.9

    CD into the directory of the HarmonyHubControl

    Build with backdated compiler by using...
    make CXX=g++-4.9 CC=gcc-4.9

     

    Last edit: John 2018-07-21

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.