Author Topic: How to use Makefiles in Linux?  (Read 5423 times)

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
How to use Makefiles in Linux?
« on: 2010 September 25 13:43:12 »
As the title says, could someone explain how to use the makifiles created by the script in PI? :)
Regards,

Carlos Milovic F.
--------------------------------
PixInsight Project Developer
http://www.pixinsight.com

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: How to use Makefiles in Linux?
« Reply #1 on: 2010 September 25 14:12:12 »
Eh, you cd into the directory with the makefiles and you type 'make'. Tada!
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: How to use Makefiles in Linux?
« Reply #2 on: 2010 September 25 14:33:30 »
Not tada :(
If I create only x64 makefiles, it says that no "makefile" was found, and no target exists... If I create both x32 and x64, the makefile file appears, but I got 2 error messages at the end (I think that are related to the architecture... it didn't find 2 files). BTW, the codes compile fine in Windows, and I had previously compiled the code with Eclipse...
Regards,

Carlos Milovic F.
--------------------------------
PixInsight Project Developer
http://www.pixinsight.com

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: How to use Makefiles in Linux?
« Reply #3 on: 2010 September 25 14:41:06 »
Ok... "make -f makefile-x86_64" did the trick

Tada!

XD
Regards,

Carlos Milovic F.
--------------------------------
PixInsight Project Developer
http://www.pixinsight.com

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: How to use Makefiles in Linux?
« Reply #4 on: 2010 September 26 16:46:47 »
Hmmm... the makefile did not work under Ubuntu 32bits...
Regards,

Carlos Milovic F.
--------------------------------
PixInsight Project Developer
http://www.pixinsight.com

Offline David Serrano

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 503
Re: How to use Makefiles in Linux?
« Reply #5 on: 2010 October 13 05:34:07 »
Last activity of mine in this forum was in February... hell, time flies!


Hmmm... the makefile did not work under Ubuntu 32bits...

Please post some errors, mate ;)

I've successfully "made" a couple of modules by typing just make, although after some fiddling here and there.
--
 David Serrano