Showing posts with label Project. Show all posts
Showing posts with label Project. Show all posts

Saturday, March 1, 2014

Final solution on determine_new_packagename has released

The temporary work around on my previous post have finally solved. After some noise in the mailing list, the expert has finally found the real problem, read the defect details from this link. The affected code has been commit into SVN, have a quick check on this link.

Here is a quick diff on the affected file from my workspace:
svn diff -r HEAD configure.in

--- configure.in (revision 1571281)
+++ configure.in (working copy)
@@ -3354,9 +3354,9 @@
          AC_PATH_PROG(EPM, epm, no)
       fi
 
-      # Override system epm and --with-epm if --with-epm-url is used.
-      if test -n "$with_epm_url" ; then
+      if test "$EPM" = "no" && test -n "$with_epm_url" ; then
          # At this moment we can not verify the URL or the content that we want to download.
+        # Neither can we apply the test below for ruling out that it is the SunStudio dmake.
          EPM_URL=$with_epm_url
          AC_MSG_RESULT([epm will be downloaded and compiled in bootstrap])
          EPM=
@@ -3372,7 +3372,7 @@
             if $EPM | grep "ESP Package Manager" >/dev/null 2>/dev/null; then
                AC_MSG_RESULT([yes])
             else
-        AC_MSG_ERROR([no. Install ESP Package Manager (http://www.msweet.org/projects.php?Z2) and/or specify the path to the right epm (--with-epm). Or specify an URL to an epm-3.7 source package (--with-epm-url); run configure with the --help option for a list of possible URLs.])
+        AC_MSG_ERROR([no. Install ESP Package Manager (http://www.msweet.org/projects.php?Z2) and/or specify the path to the right epm])
             fi
             AC_MSG_CHECKING([epm version])
             EPM_VERSION=`$EPM | grep 'ESP Package Manager' | cut -d' ' -f4 | $SED -e s/v//`
This fix will allow the build script to use the EPM package specified in --with-epm-url and disable the local EPM package.

Sunday, February 23, 2014

Temporary workaround on determine_new_packagename in AOO build

Last week is a challenging week for me both in my day job and also open source work. When I'm making a full build on AOO, there was an error in function determine_new_packagename.
ERROR: ERROR: More than one new package in directory /home/kokhoe/workspace/aoo-trunk/main/instsetoo_native/unxlngx6.pro/Apache_OpenOffice/deb/install/en-US_inprogress/DEBS ( /home/kokhoe/workspace/aoo-trunk/main/instsetoo_native/unxlngx6.pro/Apache_OpenOffice/deb/install/en-US_inprogress/DEBS/openoffice-core06-4.1.0-1-linux-3.8-x86_64.deb /home/kokhoe/workspace/aoo-trunk/main/instsetoo_native/unxlngx6.pro/Apache_OpenOffice/deb/install/en-US_inprogress/DEBS/openoffice-core06-4.1.0-1-linux-3.8-x86_64)
in function: determine_new_packagename (packagepool)
My initial though is by removing the whole unxlngx6.pro directory will resolve the problem, but eventually it is not. There is also a defect has been raise but the work around is not working for me. Fortunately I met a peer who gave me a great help on this issue. This problem is due to the version of the EPM (stands for ESP Package Manager) installed in the system isn't compatible with AOO build. AOO require EPM version 3.7, other than this version the build will not pass. I am require to download the EPM version 3.7 source specifically, and build on my own.

A quick check on the version installed on my system, I see this:
epm --version
ESP Package Manager v4.2
Copyright 1999-2007 by Easy Software Products.

EPM is free software and comes with ABSOLUTELY NO WARRANTY; for details
see the GNU General Public License in the file COPYING or at
"http://www.fsf.org/gpl.html".  Report all problems to "epm@easysw.com".

To verify whether AOO build is using the EPM install in the system:
grep -i epm config.log
  $ ./configure --with-epm-url=http://epm.sourcearchive.com/downloads/3.7-1/epm_3.7.orig.tar.gz
configure:11566: checking whether to enable EPM for packing
configure:11577: checking for epm
configure:11595: found /usr/bin/epm
configure:11608: result: /usr/bin/epm
configure:11633: checking whether the found epm is the right epm
configure:11641: checking epm version
ac_cv_path_EPM=/usr/bin/epm
BUILD_EPM='NO'
EPM='/usr/bin/epm'
EPM_URL=''
This shows that AOO build is using the EPM installed in /usr/bin directory. Since I don't want to uninstall this component from my system, I have to configure the AOO build to bypass that version and route to my specific build. To do this, issue this command:
./configure --with-epm=<EPM_binary_location_in_file_system>
Note, the EPM binary must be build before this command is execute, don't expect the ./configure command will make the build from the source. I have also try --with-epm-url, this option will do the downloading and extraction work automatically but it doesn't work.

Sunday, July 21, 2013

DNS cause my LibreOfice compilation failed.

I manage to resolve the connection error happened on last week, that was due to my local Internet Service Provider DNS problem. I have the problem resolved by switching to Google DNS. To do this, amend the file located at /etc/resolvconf/resolv.conf.d/head, add nameserver 8.8.8.8 and nameserver 8.8.4.4 at the end of the file. Please note that is only applicable to Ubuntu 12.10, never add DNS in /etc/network/interfaces as I been told that the path has already obsolete after to version 12.

Sunday, July 14, 2013

Unlucky day to compile LibreOffice

I'm having a bad day in this morning, because I hit following error when I'm compiling LibreOffice.
cd /home/kokhoe/workspace/LibreOffice/core/src/tmp && wget --progress=dot:mega -Q 0 -P "." -l 0 -nd -nH -N http://dev-www.libreoffice.org/src/libcdr-0.0.14.tar.bz2 2>&1 | tee -a /home/kokhoe/workspace/LibreOffice/core/src/fetch.log && [ $PIPESTATUS -eq 0 ] && SUM=`md5sum libcdr-0.0.14.tar.bz2 | sed "s/ .*//"` && if test "$SUM" != "d88f9b94df880d2c05be943b000ca112"; then echo ERROR: expected checksum for libcdr-0.0.14.tar.bz2 is d88f9b94df880d2c05be943b000ca112 2>&1 | tee -a /home/kokhoe/workspace/LibreOffice/core/src/fetch.log; false; fi && mv libcdr-0.0.14.tar.bz2 ../ 
--2013-07-14 10:09:33--  http://dev-www.libreoffice.org/src/libcdr-0.0.14.tar.bz2
Resolving dev-www.libreoffice.org (dev-www.libreoffice.org)... 32.1.6.124, 2001:67c:2178:7::70
Connecting to dev-www.libreoffice.org (dev-www.libreoffice.org)|32.1.6.124|:80... failed: Connection timed out.
Connecting to dev-www.libreoffice.org (dev-www.libreoffice.org)|2001:67c:2178:7::70|:80... failed: Network is unreachable.
make: *** [/home/kokhoe/workspace/LibreOffice/core/workdir/unxlngx6.pro/download] Error 1
It seem there are some problem with connecting to the URL, dev-www.libreoffice.org. I make a try to connect the URL in browser but failed. I then issue the make command again and this time I got timed out error as shown below:
--2013-07-14 10:15:37--  (try: 3)  http://dev-www.libreoffice.org/src/libcdr-0.0.14.tar.bz2
Connecting to dev-www.libreoffice.org (dev-www.libreoffice.org)|32.1.6.124|:80... failed: Connection timed out.
Retrying
My initial assumption was this incidence could be a temporary issue. The server might be under maintenance due to the reason being today is Sunday. Without further waiting, I immediately sent out an email to developer list request for help.

When I check back the email at night, unfortunately no one was reply me. Helpless night.

Saturday, February 25, 2012

gnome-vfs is require for the compilation

There was an error when I issue the command ./autogen.sh when I was compiling LibreOffice where I couldn't find a compatible version of gnome-vfs package in Fedora 16. Below is the detail output of the error:
configure: error: Package requirements (gnome-vfs-2.0 >= 2.6.0 ) were not met:
No package 'gnome-vfs-2.0' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables GNOMEVFS_CFLAGS
and GNOMEVFS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
According to developer guide, there are some dependencies are required before the compilation can begin. gnome-vfs is one of it. Here is the text of the solution:

sudo yum install gnome-vfs2-devel

The journey with Libre Office has began

My journey with Libre Office has began. Long long time ago, I was trying to start up a journey with Open Office. At the end we break off due to the lacking of documentation at the start up stage and the development speed was terrible slow.

Now I have continue my journey with Libre Office, hope it will bring me a wonderful and exciting journey.

Saturday, September 5, 2009

Finished configure OpenOffice 3.10

I have spend a night to search on the solution for installing GTK2 yesterday. During the configuration process, I got this error message:

checking for gtk+-2.0... configure: error: GTK2 is needed to build mozilla.

Actually, this error telling me that the GTK2 source code wasn't there. I get this information from the Synaptic Package Manager and it could be download through this manager with package name called libgtk2.0-dev. Thats it!

I have spent a bunch of time on installing the GTK2 by doing the manual installation and finally it crash my Ubuntu at the last update.

Now what! Looking on how should I get my hand dirty on OpenOffice source code.

Monday, August 24, 2009

OpenOffice 3.1.0 kick start

Few weeks ago, I have downloaded open office latest source code from this link. There are six major packages in total, which there are:

  1. core source package.
  2. system source package.
  3. binfilter source package.
  4. l10n source package.
  5. extension source package.
  6. testautomation package.

I have extracted those package and ready to install. Unfortunately the installation process not going so well. There are so many missing components in my Linux, and I have to install it one by one. Currently I was stuck at installing the GTK+ because this component requires me to install the dependency components such as Glib, Pango, ATL, and Cairo. Installing those components is not as easy as I think, and it could spend up a lot of time to search the Internet how those components should install. Like one example, when installing Glib, it prompting an error complaining that gettext module was not installed. By doing manual installation doesn't fix the problem, and thus I have to issue the command below to solve the problem.

sudo apt-get install gettext

Although Glib installation has been resolved, but installation for Cairo is a different issue. Because it doesn't have a Makefile, how could I continue my work?

Resource:

  1. http://wiki.services.openoffice.org/wiki/I_want_to_be_an_OpenOffice.org_developer
  2. http://wiki.services.openoffice.org/wiki/Setting_up_Subversion_Access

Saturday, November 29, 2008

New plan for 2009

I have make a decision not to developing the UML tool as I found out that this is worth nothing and does not bring any benefit to me. Why do I need to create the thing again when it is already in the market? What for? Just for my own fun. This is true. I am really have great passion in programming. It seems so stupid to me because no matter how hard I do and how much effort I put on it, it just for my glory. From now on, I will never wasting my time to create such thing anymore. I want to have an objective and result. Not a never ending task in coding a program, I will never finish in creating those program as there are many many more program I have to do.

Do it when it need... Don't waste time... I should spend more time in personal development...

Sunday, July 20, 2008

The Script Manager

I have created a Script manager for managing the script command for my UML tool. It is a Singleton as there is only 1 script manager in the application. The responsibility for this manager is to manage the script command enters from input and then digest the command to know what it suppose to do. After that it’ll instruct Paint manager to draw out the diagram. For now this manager is able to accept command from input but it doesn’t know which diagram to be draw on the board as the communication between Script manager and Paint manager haven setup yet.

Saturday, July 12, 2008

UML Tool -> Diagram Manager

This project supposes to be short and fun, but it end up hard and sophisticate. Creating a UML Tool is not that easy actually. There are many design issue like the tedious one – UML syntax need to be determined carefully. Besides that I was choosing Win32 as my development platform. I wonder whether I have chosen the right technology to do it. This should be a rapid development and I suppose to use .Net or MFC to speed up my development. Since I already know MFC, thus I can concentrate on researching.Net.

My first view on .Net was not that hard actually. There (Microsoft) have new changes on syntax or probably the whole C++ was change. I also notice that I am not using MFC in the UI development. Is that Win32 programming II? And also it is a problematic to dealing with native code in .Net. Microsoft has changed the development style. Finally I have given up using the wizard to generate the GUI code for me instead I do it manually.

Now I have done with technical issue. Here is the new plan for the project. I will change the title to Diagram Manager because the objective of this program only focuses on class diagram instead of the entire UML diagram. The reason is I use UML class diagram most often. The reason to name it as ‘diagram’ is it is not just only draw class diagram. May be it will draw other diagram in the future, such as data flow.

Since I have narrow down my design, I can concentrate on 1 part and do it well.

Sunday, June 15, 2008

New Plan – UML TOOL

I got a new plan. After the Search Program, UML tool will be my next project. This project was started since two weeks ago. My initial plan was using C# to create it, but due to the limitation of my C# skill (as I don’t know C#), thus I will use C++ and will be make use of GDI+ in this project.

The idea was this. The program will be a command base program where it wouldn’t accept any mouse input. There will be a main screen locate at top of the window which is going to renders the object on the screen. This screen will gonna occupied 90% of the window. Whereas at the bottom of the screen will be a place for me to type the command. And those commands will instruct how the object should be render in main screen.

The estimate time for this project will be 12 days. 1st draft for this project is to have some rectangle drawing on the screen and some line that link them together. Beside that there will be some AI for the line where it will change direction if there are some rectangles blocking the line in between the link. Cool huh?

In this week, I have done some research study on the GDI+ and I feel OK with it. Next week will start to working on the 1st draft.

Wednesday, September 12, 2007

Changing Direction of My Project

I have a bad news. Due to the limited time I have, the project was drop as my initial plan. But something was change; I was planning to make a UI-less utility to make it simpler to develop. I don't need to care the about UI design issues, the feel and look. This project will be changing its development tools from MFC to STL. I was planning to make it executable in both window and Linux OS since I am switch my development environment to Linux.

Currently I was busy in setting up my Linux box on my machine. I have facing some troubleshooting issues during setup. (I am newbie in Linux.) Not the installation of Linux but the driver itself. It is pretty hard to find a driver in Linux. But I enjoy the process.

Saturday, March 24, 2007

File Manager Project

Greetings!

My project is on run again. I have been stop for this excitement activity for a long time. Now it comes to me again. For this year, I have a couple of idea to work on it. So many stuff need to be done for this year.

Let me introduce my first project - the File Manager. This is my personal assistant to help me in organizing the file on CD/DVD. I used to do my backup in CD/DVD, unfortunately I never label it. U see… If I label each CD/DVD, this project is actually wasted. Any how, I still will continue working on this project as there are still plenty of important files kept in CD/DVD.

This project was started on last week. I will be spending one or two days to work on this project but it will depend on my availability. I have just started the work on whitepaper. The work is undergoing smoothly.