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 » Community » U++ community news and announcements » Upp 2007.1beta3 released
Upp 2007.1beta3 released [message #7939] Thu, 01 February 2007 09:39 Go to next message
unodgs is currently offline  unodgs
Messages: 1356
Registered: November 2005
Location: Poland
Senior Contributor

+ GLCtrl works in Linux (patch by Damien Porquet)
* GTK is now linked and GTK headers are required in order to compile U++ apps
* PCRE updated from version 6.6 to 7.0
- NormalizePath in POSIX does not add " to names with spaces anymore
- fixed problems with popup/pulldown menus on Gentoo/kde linux
Re: Upp 2007.1beta3 released [message #7948 is a reply to message #7939] Thu, 01 February 2007 18:08 Go to previous messageGo to next message
ebojd is currently offline  ebojd
Messages: 225
Registered: January 2007
Location: USA
Experienced Member
May I assume that the beta version has been checked into SVN <https://upp.svn.sourceforge.net/svnroot/upp>? I just tried to update the repository and it appeared that is was already up to date, and did note patch the system at all. I feel like I'm missing something...

Re: Upp 2007.1beta3 released [message #7950 is a reply to message #7948] Thu, 01 February 2007 18:17 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12615
Registered: November 2005
Ultimate Member
ebojd wrote on Thu, 01 February 2007 12:08

May I assume that the beta version has been checked into SVN <https://upp.svn.sourceforge.net/svnroot/upp>? I just tried to update the repository and it appeared that is was already up to date, and did note patch the system at all. I feel like I'm missing something...




Very likely not. Daniel yet has to commit to sf.net SVN.

Mirek
Re: Upp 2007.1beta3 released [message #7952 is a reply to message #7948] Thu, 01 February 2007 18:27 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1356
Registered: November 2005
Location: Poland
Senior Contributor

ebojd wrote on Thu, 01 February 2007 12:08

May I assume that the beta version has been checked into SVN <https://upp.svn.sourceforge.net/svnroot/upp>? I just tried to update the repository and it appeared that is was already up to date, and did note patch the system at all. I feel like I'm missing something...


Try now Wink I always forget to update svn. Must investigate the time to synchronize it with uvs somehow..
Re: Upp 2007.1beta3 released [message #7962 is a reply to message #7952] Thu, 01 February 2007 21:13 Go to previous messageGo to next message
ebojd is currently offline  ebojd
Messages: 225
Registered: January 2007
Location: USA
Experienced Member
Well... I'll remind you Wink))

I uploaded from SVN and forgot to save my old makefiles and such (which cleaned up a lot of stuff so users could build and run upp without root, and stuff like setting DESTDIR=/usr/local and stripping /usr from all the install paths, + adding a real uninstall). Oh well, I should know better.

When I updated the source compilation broke trying to build something with gtk. I'll try uploading everything clean again if I get a little break today or look into it over the weekend (read: sorry for putting of writing a real bug report, but I got some work to do). the beta_3 release compiled and installed OK.

If I work with you to revamp the Makefiles would it be worth your time? If so, is using autotools acceptable or not? straight Makefiles are OK too.
Re: Upp 2007.1beta3 released [message #7964 is a reply to message #7962] Thu, 01 February 2007 21:31 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12615
Registered: November 2005
Ultimate Member
ebojd wrote on Thu, 01 February 2007 15:13



When I updated the source compilation broke trying to build something with gtk.


Well, that is the unfortunate change for beta3 - it now needs gtk development headers (because it seems the only *safe* way how to use gtk theming).

Mirek
Re: Upp 2007.1beta3 released [message #7965 is a reply to message #7962] Thu, 01 February 2007 21:47 Go to previous messageGo to next message
ebojd is currently offline  ebojd
Messages: 225
Registered: January 2007
Location: USA
Experienced Member
BTW, appended is some hacks to the head Makefile that might be useful... These were convience hacks to make the old SVN source to compile and install easy.

EBo --

------------------------


### export UPPOUT = out/
# EBo -- try explicit paths
export UPPOUT = $(shell pwd)/out/
export OutFile = $(UPPOUT)ide/GCC-Gcc-Gui-Linux-Main-Shared/ide

# EBo -- Allow admins to set the destination directory to something
# more reasonable (like "/usr/local/*" instead of "/usr/local/usr/*"
# which is used to do. "/usr" may be preferred.
ifeq ($(DESTDIR),)
DESTDIR = /usr/local
endif

.PHONY: theide
theide:
$(MAKE) -f uppsrc/ide/Makefile

# EBo -- making theide separate from install will allow users to
# build and test without root access.
.PHONY: all
all: theide # install clean

# EBo -- install (-D) will create the appropriate parent directories
#
# mkdir -p $(DESTDIR)/bin
# mkdir -p $(DESTDIR)/share/applications
# mkdir -p $(DESTDIR)/share/pixmaps
# mkdir -p $(DESTDIR)/share/upp
.PHONY: install
install:
install -D $(OutFile) $(DESTDIR)/bin/theide
install -D uppsrc/ide/theide.desktop $(DESTDIR)/share/applications/theide.desktop
install -D uppsrc/ide/theide-48.png $(DESTDIR)/share/pixmaps/theide.png
install -D uppsrc/ide/GCC.bm $(DESTDIR)/share/upp
cp -r Common $(DESTDIR)/share/upp
cp -r uppsrc $(DESTDIR)/share/upp
cp -r examples $(DESTDIR)/share/upp
cp -r reference $(DESTDIR)/share/upp
cp -r tutorial $(DESTDIR)/share/upp

.PHONY: clean
clean:
${RM} -r $(UPPOUT)

# Remove all public traces...
uninstall:
${RM} $(DESTDIR)/bin/theide
${RM} $(DESTDIR)/share/applications/theide.desktop
${RM} $(DESTDIR)/share/pixmaps/theide.png
${RM} -r $(DESTDIR)/share/upp

Re: Upp 2007.1beta3 released [message #7966 is a reply to message #7964] Thu, 01 February 2007 21:54 Go to previous messageGo to next message
ebojd is currently offline  ebojd
Messages: 225
Registered: January 2007
Location: USA
Experienced Member
I have GTK (both versions 1.2 and 2.0) installed on the system. At first it could not find any of the GTK stuff, but after I tried to add the include directory output from `gtk-config --cflags` (which returned "-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include") it broke all over the place.

As I said, the beta3 tarball compiled fine, but the stuff I just uploaded from SVN did not. It appears the source was caught in between some changes, I have the wrong version of GTK, or it is a feature that has yet to nail my foot to the floor.

Which version of GTK are you using/requiring?

[Updated on: Thu, 01 February 2007 21:58]

Report message to a moderator

Re: Upp 2007.1beta3 released [message #7967 is a reply to message #7966] Thu, 01 February 2007 22:09 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12615
Registered: November 2005
Ultimate Member
gtk 2.*

No wonder it broke with 1.2 Wink

Mirek
Re: Upp 2007.1beta3 released [message #7968 is a reply to message #7967] Thu, 01 February 2007 22:14 Go to previous messageGo to next message
ebojd is currently offline  ebojd
Messages: 225
Registered: January 2007
Location: USA
Experienced Member
Sorry I was not clear. After it broke with 1.2 I tried it with 2.0.

Does beta3 also use GTK?

appended are the first few relitive lines:

EBo --

--------------
...

mkdir -p ../../out/plugin/png/GCC33-Gcc32-Gui-Linux/
c++ -c -O1 -ffunction-sections -x c++ -I../ -I/usr/include -I/usr/X11R6/include/ -I/usr/include/freetype2 -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib/include -DflagGUI -DflagGCC32 -DflagLINUX ../CtrlLib/ChGtk.cpp -o ../../out/CtrlLib/GCC33-Gcc32-Gui-Linux/ChGtk.o
In file included from /usr/include/gtk-2.0/gdk/gdkcairo.h:23,
from /usr/include/gtk-2.0/gdk/gdk.h:30,
from /usr/include/gtk-2.0/gtk/gtk.h:31,
from ../CtrlLib/ChGtk.cpp:20:
/usr/include/gtk-2.0/gdk/gdkcolor.h:30:19: error: cairo.h: No such file or directory
In file included from /usr/include/gtk-2.0/gdk/gdkcolor.h:31,
from /usr/include/gtk-2.0/gdk/gdkcairo.h:23,
from /usr/include/gtk-2.0/gdk/gdk.h:30,
from /usr/include/gtk-2.0/gtk/gtk.h:31,
from ../CtrlLib/ChGtk.cpp:20:
/usr/include/gtk-2.0/gdk/gdktypes.h:33:25: error: pango/pango.h: No such file or directory
/usr/include/gtk-2.0/gdk/gdktypes.h:51:23: error: gdkconfig.h: No such file or directory
In file included from /usr/include/gtk-2.0/gdk/gdk.h:30,
from /usr/include/gtk-2.0/gtk/gtk.h:31,
from ../CtrlLib/ChGtk.cpp:20:

...
Re: Upp 2007.1beta3 released [message #7970 is a reply to message #7968] Thu, 01 February 2007 22:30 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12615
Registered: November 2005
Ultimate Member
Obviously, you need more headers than gtk only, but those used by gtk too. I would expect them to be installed along with gtk, but this is not the case..

Mirek
Re: Upp 2007.1beta3 released [message #7971 is a reply to message #7968] Thu, 01 February 2007 22:31 Go to previous messageGo to next message
ebojd is currently offline  ebojd
Messages: 225
Registered: January 2007
Location: USA
Experienced Member
Well, I took a break and played with the SVN tree some more...

After adding:

-I/usr/lib/gtk-2.0/include \
-I/usr/include/pango-1.0 \
-I/usr/include/cairo \
-I/usr/include/atk-1.0 \

I got much further, but still dies with odd errors...

Anyway, gtk-config gives me the 1.2 info and no way to switch to 2.0 convieniently. Durring a recent upgrade I may have hosed something in my system. I'll check into it this weekend.
Re: Upp 2007.1beta3 released [message #7972 is a reply to message #7970] Thu, 01 February 2007 22:35 Go to previous messageGo to next message
ebojd is currently offline  ebojd
Messages: 225
Registered: January 2007
Location: USA
Experienced Member
Our replies crossed in the forum...

I realized after I posted first error messages that it was looking for a dependency. I will look into this more over the weekend -- when I can dedicate some focus time on testing and writing careful bug reports -- instead of dashing something off in a hurry. Sorry bout that.

Thanks again,
Re: Upp 2007.1beta3 released [message #7974 is a reply to message #7972] Thu, 01 February 2007 22:46 Go to previous messageGo to next message
ebojd is currently offline  ebojd
Messages: 225
Registered: January 2007
Location: USA
Experienced Member
one last mad dash Wink

I did a quick check of one of my configuration files. I had typed "gtk3" instead of "gtk2". So now I am starting rebuilding my system with proper gtk-2.0 support. Uggg...

Sorry about that.
Re: Upp 2007.1beta3 released [message #7983 is a reply to message #7974] Fri, 02 February 2007 13:50 Go to previous messageGo to next message
lundman is currently offline  lundman
Messages: 175
Registered: March 2006
Location: Tokyo
Experienced Member

Still compiles on OsX fine, but I have no GTK, so I used flagNOGTK. Don't personally need chameleon so that is ok. Smile

Lund
Re: Upp 2007.1beta3 released [message #8019 is a reply to message #7983] Sun, 04 February 2007 17:50 Go to previous messageGo to next message
ebojd is currently offline  ebojd
Messages: 225
Registered: January 2007
Location: USA
Experienced Member

I forgot that gtk-2.0 is configured using pkg-config instead of gtk-config. So appending the following in appropriate places gets
much further along.

CINC += `pkg-config gtk+-2.0 --cflags`
LIBS = `pkg-config gtk+-2.0 --libs`

beta3 compiles and runs fine. The source in the SVN however compiles using -DflagNOGTK, but the first time I moved the mouse it crashed (I could run through various steps via key commands). I got the following error:

XIO: fatal IO error 0 (Success) on X server ":0.0" after 6720
requests (6718 known processed) with 0 events remaining.

When I compile without flagNOGTK, I get errors that it "cannot find -lgtk-x11-2.0". /usr/lib/libgtk-x11-2.0.la but probably needs libtool to link it as there is not a static version, just .so and .la. I'll play with it later as I get some time.
Re: Upp 2007.1beta3 released [message #8020 is a reply to message #7939] Sun, 04 February 2007 22:43 Go to previous messageGo to next message
atmks is currently offline  atmks
Messages: 33
Registered: July 2006
Member
hi

i want compile ide on FreeBSD, and i get a linker error:

Linking...
/usr/bin/ld: cannot find -ldl


because -ldl linker option is defined on platform FreeBSD in file uppsrc/Draw.upp




[Updated on: Sun, 04 February 2007 22:45]

Report message to a moderator

Re: Upp 2007.1beta3 released [message #8025 is a reply to message #8020] Mon, 05 February 2007 07:37 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12615
Registered: November 2005
Ultimate Member
atmks wrote on Sun, 04 February 2007 16:43

hi

i want compile ide on FreeBSD, and i get a linker error:

Linking...
/usr/bin/ld: cannot find -ldl


because -ldl linker option is defined on platform FreeBSD in file uppsrc/Draw.upp




If you remove that, does it improve things?

MIrek
Re: Upp 2007.1beta3 released [message #8027 is a reply to message #8025] Mon, 05 February 2007 08:53 Go to previous messageGo to next message
atmks is currently offline  atmks
Messages: 33
Registered: July 2006
Member
luzr wrote on Mon, 05 February 2007 07:37

atmks wrote on Sun, 04 February 2007 16:43

hi

i want compile ide on FreeBSD, and i get a linker error:

Linking...
/usr/bin/ld: cannot find -ldl


because -ldl linker option is defined on platform FreeBSD in file uppsrc/Draw.upp




If you remove that, does it improve things?

MIrek




hi
yes
Re: Upp 2007.1beta3 released [message #8161 is a reply to message #7939] Tue, 13 February 2007 12:45 Go to previous messageGo to previous message
piotr5 is currently offline  piotr5
Messages: 103
Registered: November 2005
Experienced Member
except for the already mentioned bugs, it just works great.
for the interrupted compilation I have found the solution,
I think:
--- upp-uvs/Web/sproc.cpp	2007-01-06 14:59:48.000000000 +0100
+++ test/Web/sproc.cpp	2007-02-13 03:11:48.000000000 +0100
@@ -111,7 +111,7 @@
 	if(rpipe[1] >= 0) { close(rpipe[1]); rpipe[1] = -1; }
 	if(wpipe[0] >= 0) { close(wpipe[0]); wpipe[0] = -1; }
 	if(wpipe[1] >= 0) { close(wpipe[1]); wpipe[1] = -1; }
-	waitpid(pid, 0, WNOHANG | WUNTRACED);
+	if(pid) waitpid(pid, 0, WNOHANG | WUNTRACED);
 	pid = 0;
 	output_read = false;
 #endif
@@ -328,7 +328,7 @@
 		kill(pid, SIGTERM);
 		GetExitCode();
 		int status;
-		if(waitpid(pid, &status, 0) == pid)
+		if(pid && waitpid(pid, &status, 0) == pid)
 			DecodeExitCode(status);
 		exit_string = "Child process has been killed.\n";
 	}

and maybe

--- upp-uvs/ide/Host.cpp	2007-01-06 14:56:44.000000000 +0100
+++ test/ide/Host.cpp	2007-02-13 03:11:29.000000000 +0100
@@ -158,7 +158,7 @@
 	Vector<int>& pid = sPid();
 	int i = 0;
 	while(i < pid.GetCount())
-		if(waitpid(pid[i], 0, WNOHANG | WUNTRACED) > 0)
+		if(pid[i] && waitpid(pid[i], 0, WNOHANG | WUNTRACED) > 0)
 			pid.Remove(i);
 		else
 			i++;


the point of this bugfix is that if one keeps calling waitpid
with an explicite pid, then using the pid "0" should be
avoided at all cost, as it does act in an unexpected way:
instead of waiting for the process with pid 0, it just
waits for any process with the same group-id as the calling
program, and thereby the exitcode could get lost...
Previous Topic: Upp 2007.2rc1 released
Next Topic: Upp 2007.1rc2 released
Goto Forum:
  


Current Time: Mon Aug 10 01:38:31 CEST 2020

Total time taken to generate the page: 0.02410 seconds