try to compile open software

Amiwell · 1516

Amiwell

  • Legendary Member
  • *****
    • Posts: 2616
    • Karma: +35/-4
  • Peace
on: September 20, 2021, 10:49:18 AM
I was trying to compile something, I found the first version of Blender and I tried to work ourselves but I have these problems attached screenshots and reference files



serk118uk

  • Member
  • ***
    • Posts: 187
    • Karma: +67/-0
Reply #1 on: September 20, 2021, 12:51:35 PM
I was trying to compile something, I found the first version of Blender and I tried to work ourselves but I have these problems attached screenshots and reference files

Edit the makefile and add cc=gcc and save makefile
than try make again..

See the link for more info..
https://courses.cs.washington.edu/courses/cse451/98sp/Section/makeintro.html

Lets Build Not Destroy...


Amiwell

  • Legendary Member
  • *****
    • Posts: 2616
    • Karma: +35/-4
  • Peace
Reply #2 on: September 20, 2021, 01:10:50 PM
ok i'm inexperienced I did some compilation on linux I hope to be able to learn more even with your help :)



Amiwell

  • Legendary Member
  • *****
    • Posts: 2616
    • Karma: +35/-4
  • Peace
Reply #3 on: September 20, 2021, 01:24:42 PM
serk I am attaching the makefile I don't know where to add the command, I tried but without success



Amiwell

  • Legendary Member
  • *****
    • Posts: 2616
    • Karma: +35/-4
  • Peace
Reply #4 on: September 20, 2021, 01:47:51 PM
It is right to add $(CC) in order



serk118uk

  • Member
  • ***
    • Posts: 187
    • Karma: +67/-0
Reply #5 on: September 20, 2021, 02:11:25 PM
It is right to add $(CC) in order

Just type cc=gcc at line 5 or somewhere on top of makefile

Have look at the link and you will see how cc assigned.

I am not home atm to edit the makefile , it's very simple
« Last Edit: September 20, 2021, 02:37:36 PM by serk118uk »

Lets Build Not Destroy...


Amiwell

  • Legendary Member
  • *****
    • Posts: 2616
    • Karma: +35/-4
  • Peace
Reply #6 on: September 20, 2021, 02:37:11 PM
I tried to add the cc = gcc string but it doesn't work, if I add the suffix $ (cc) I get out this result



serk118uk

  • Member
  • ***
    • Posts: 187
    • Karma: +67/-0
Reply #7 on: September 20, 2021, 02:44:29 PM
I tried to add the cc = gcc string but it doesn't work, if I add the suffix $ (cc) I get out this result

Salvo I am not home atm , you can also just remove cc and use gcc

Example

cc test.c -o test
gcc -o test test.c

Or add
cc=gcc

Somewhere on top of makefile

Lets Build Not Destroy...


Amiwell

  • Legendary Member
  • *****
    • Posts: 2616
    • Karma: +35/-4
  • Peace
Reply #8 on: September 20, 2021, 03:00:31 PM
ok thank you serk :)



Amiwell

  • Legendary Member
  • *****
    • Posts: 2616
    • Karma: +35/-4
  • Peace
Reply #9 on: September 20, 2021, 03:12:19 PM
ok this is the currently result, I'm sorry I didn't understand that you weren't at home serk :-X



cavemann

  • Junior Member
  • **
    • Posts: 78
    • Karma: +86/-0
Reply #10 on: September 20, 2021, 09:11:10 PM
Hi Salvo, I'm sorry to say that, this is only the beginning of your problems. If I remember correctly, Blender uses python too. So you might have to rebuild python too. It would be better to select an easier program to learn how  to port.  ;)

ciao



Amiwell

  • Legendary Member
  • *****
    • Posts: 2616
    • Karma: +35/-4
  • Peace
Reply #11 on: September 21, 2021, 02:39:28 AM
ok thank you ;D



Samurai_Crow

  • Junior Member
  • **
    • Posts: 88
    • Karma: +32/-0
  • Hobby coder
Reply #12 on: September 21, 2021, 07:45:21 PM
Also remember that C, C++ and Makefiles are case-sensitive.  CC is not equal to cc.



Amiwell

  • Legendary Member
  • *****
    • Posts: 2616
    • Karma: +35/-4
  • Peace
Reply #13 on: September 21, 2021, 07:48:48 PM
yes man :)