Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » Releasing U++ » source builds
source builds [message #24523] Fri, 22 January 2010 10:33 Go to next message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
Hi,

I have downloaded the latest releases (1824) source release archive and tried to build it on FreeBSD. It failed due to wrong definition of 'flagLINUX'.

I ended up changing the 'domake' script to check on which *NIX platform it is running on (using 'uname') and then set a make variable to define the right platform flag.
What is missing so far is addition of 'uname' output check for Solaris and OSX.

Also I modified Build.cpp to export TheIDE Makefile taking into account these propagated platform flags.

Attached is the Build.cpp patch and the modified 'domake' script that is not complete, yet.

It would be nice if these changes could be applied before publishing the next releases source build.

Matthias
Re: source builds [message #24524 is a reply to message #24523] Fri, 22 January 2010 11:37 Go to previous messageGo to next message
dolik.rce is currently offline  dolik.rce
Messages: 1758
Registered: August 2008
Location: Czech Republic
Senior Contributor

Hi!

If we are about to change the exporting process I have also one little improvement. In all the generated Makefiles, the clean action fails if there is nothing to clean. And that happens quite a lot in debian packaging process Smile Since now I had to patch them...

So I suggest something like this:
#in source builds Makefile:
clean:
	if [ -d uppsrc/_out ]; then rm -rf uppsrc/_out ; fi 
	if [ -e uppsrc/ide.out ]; then rm uppsrc/ide.out ; fi

#in generated Makefiles:
clean:
	if [ -d $(UPPOUT) ]; then rm -rf $(UPPOUT); fi

Regards,
Honza
Re: source builds [message #24560 is a reply to message #24523] Sun, 24 January 2010 14:19 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12105
Registered: November 2005
Ultimate Member
masu wrote on Fri, 22 January 2010 04:33

Hi,

I have downloaded the latest releases (1824) source release archive and tried to build it on FreeBSD. It failed due to wrong definition of 'flagLINUX'.



This is really weird as uppsrc code does not test for flagLINUX anymore.

I could understand the issue if this was about adding libraries, but that will have to be solved by patching the makefile anyway.

Can you provide some more details please?

Mirek
Re: source builds [message #24914 is a reply to message #24560] Thu, 04 February 2010 11:49 Go to previous messageGo to next message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
Hi,

sorry for the inconvenience, it was a false alarm Rolling Eyes.
I have checked it again and it builds fine.
I do not know what went wrong at the time I saw the error.

I also checked the latest release version (1952) and it is also ok.

But I still have a request:
Can we take the last copy command out of the 'domake' script?
I think it should be included in the install step, doesn't it?

Matthias
Re: source builds [message #24979 is a reply to message #24914] Sat, 06 February 2010 19:51 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12105
Registered: November 2005
Ultimate Member
Hm, the purpose of that thing is to make theide 'visible' - otherwise it would be left somewhere in uppsrc/ide.out, which is far from apparent place, not very "Makish".

Anyway, maybe we should change that to

cp uppsrc/ide.out ./theide

and put

cp ./theide ~/theide

to the doinstall?

Mirek
Re: source builds [message #24988 is a reply to message #24979] Sat, 06 February 2010 22:39 Go to previous messageGo to next message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
luzr wrote on Sat, 06 February 2010 19:51

Anyway, maybe we should change that to

cp uppsrc/ide.out ./theide

and put

cp ./theide ~/theide

to the doinstall?


Yes, I would vote for that since I think this belongs to the install step.
For the FreeBSD port I only want to run the 'domake' script without automatically copying the program to the user's home.
Instead U++ assemblies are installed to /usr/local/share/upp and theide is installed to /usr/local/bin.

Matthias
Re: source builds [message #25015 is a reply to message #24988] Sun, 07 February 2010 14:39 Go to previous message
mirek is currently offline  mirek
Messages: 12105
Registered: November 2005
Ultimate Member
OK, changed.

I hope somebody will test src soon Smile

Mirek
Previous Topic: package build strange error
Next Topic: Mac OS X porting
Goto Forum:
  


Current Time: Thu Nov 21 10:12:28 CET 2019

Total time taken to generate the page: 0.01456 seconds