LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Project Center Make issues (https://www.linuxquestions.org/questions/linux-software-2/project-center-make-issues-801384/)

macdudeosx 04-11-2010 12:51 PM

Project Center Make issues
 
I'm trying to port some of my mac osx applications to Linux using GNUstep Gorm and Project Center.

I have successfully built and run both Gorm and Project Center. I have my entire application written, but when I click build I get:

/common.make: No such file or directory
/aggregate.make No such file or directory
/application.make No such file or directory
make: ***No rule to make target '/application.make'. Stop.
==Build terminated!==

I looked in the make file and figured $(GNUSTEP_MAKEFILES) is not pointing to /usr/share/GNUstep/Makefiles/ where all of the make files are located.

I have run "source '/usr/share/GNUstep/Makefiles/GNUstep.sh'" (yes I use bash) and it still will not set up the environment.

Oh, I am on Ubuntu 9.10 - Kernel 2.6.31-14-generic

Any ideas anyone?
Thanks

macdudeosx 04-12-2010 01:27 AM

Ok, here is an update.

I open terminal, I type:

echo $GNUSTEP_MAKEFILES

which brings up nothing.

Then I type:

source /usr/share/GNUstep/Makefiles/GNUstep.sh

echo $GNUSTEP_MAKEFILES
bash: /usr/share/GNUstep/Makefiles: is a directory

But the environment is only good for that session, It does not set GNUSTEP_MAKEFILES to the needed path anywhere outside that particular terminal session. So as soon as I open up a new terminal window, echo $GNUSTEP_MAKEFILES brings up nothing. I need to set the environment system wide so I can use Project center to actually build the application. The Makefile in Project Center needs the environment set up, but I dont know how to do it for the entire system.

EDIT:
I found and edited bash.bashrc and the environment is all set up. But, in my applications makefile, lines like include $(GNUSTEP_MAKEFILES)/application.make still come up 'not found'. Make is either not parsing the environment variables or is not receiving them.
Any thoughts anyone?

knudfl 04-13-2010 10:28 AM

You may find some hints in this thread

http://www.linuxquestions.org/questi...6_64-a-800961/

I used /usr/bin/gnustep-config ( post # 11 )
and the OP has a suggestion in post # 10 .

macdudeosx 04-13-2010 02:56 PM

Yeah, I ran
Quote:

gnustep-config --variable=GNUSTEP_MAKEFILES
and got
Quote:

/usr/share/GNUstep/Makefiles
which is exactly what it supposed to be.

But when I build in Terminal or in Project Center GNUSTEP_MAKEFILES does not point to that directory. So the lines in the applications Makefile
Quote:

include $(GNUSTEP_MAKEFILES)/common.make
include $(GNUSTEP_MAKEFILES)/aggregate.make
include $(GNUSTEP_MAKEFILES)/application.make
do not work (they point to the wrong directory) and the build fails.

Everywhere else GNUSTEP_MAKEFILES points to the directory correctly except when building, even with
Quote:

make -e


All times are GMT -5. The time now is 03:17 AM.