Return-Path: X-Original-To: apmail-incubator-celix-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-celix-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 97F4BEEAE for ; Mon, 4 Feb 2013 14:37:08 +0000 (UTC) Received: (qmail 87382 invoked by uid 500); 4 Feb 2013 14:35:58 -0000 Delivered-To: apmail-incubator-celix-dev-archive@incubator.apache.org Received: (qmail 85906 invoked by uid 500); 4 Feb 2013 14:35:52 -0000 Mailing-List: contact celix-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: celix-dev@incubator.apache.org Delivered-To: mailing list celix-dev@incubator.apache.org Received: (qmail 82489 invoked by uid 99); 4 Feb 2013 14:33:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Feb 2013 14:33:56 +0000 X-ASF-Spam-Status: No, hits=-4.0 required=5.0 tests=MSGID_MULTIPLE_AT,RCVD_IN_DNSWL_HI,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [194.11.253.100] (HELO SPFDEFRA01.capgemini.com) (194.11.253.100) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Feb 2013 14:33:51 +0000 X-IronPort-AV: E=Sophos;i="4.84,600,1355094000"; d="scan'208";a="427048888" Received: from unknown (HELO mxisogfr1.fr.sogeti.com) ([10.226.3.130]) by IRDEFRA-C650-01-D2-incoming.capgemini.com with ESMTP; 04 Feb 2013 15:32:27 +0100 Received: from fr380108004 (fr-38-01-08-004.so.fr.ad.sotranet.net [10.226.174.101]) by mxisogfr1.fr.sogeti.com (Postfix) with ESMTP id B8571320007 for ; Mon, 4 Feb 2013 15:32:25 +0100 (CET) From: "Lionel BELLER" To: References: <510b829a.05e6440a.26f4.ffffa620SMTPIN_ADDED_BROKEN@mx.google.com> <510b9b69.294e420a.783d.6400SMTPIN_ADDED_BROKEN@mx.google.com> <510bcc54.6654420a.3865.0466SMTPIN_ADDED_BROKEN@mx.google.com> <510f6b92.6658420a.7faa.ffffee5fSMTPIN_ADDED_BROKEN@mx.google.com> <510f7a36.4949420a.3514.ffff8e08SMTPIN_ADDED_BROKEN@mx.google.com> <510f80de.014b420a.4572.2a1aSMTPIN_ADDED_BROKEN@mx.google.com> In-Reply-To: Subject: RE: celix example under windows Date: Mon, 4 Feb 2013 15:32:25 +0100 Message-ID: <004301ce02e4$73cf0830$5b6d1890$@beller@sogeti.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac4Cwtm44b5AuMH6TXq2ZrilzWAe6wAGhL3A Content-Language: fr X-Virus-Checked: Checked by ClamAV on apache.org Removing the .cache directory changes nothing. It will be recreated. I think I've found some problems which are at the origin of the bug. In the main of launcher.c, the function properties_get ("autoStart =3D properties_get(config, "cosgi.auto.start.1");", line 70) does not = recover the desired properties. Autostart stays at null. The program crashes = then when the program calls the function strtok (l.89). The variable Config = is not null, the file "config.properties" is available in the debug folder. = So the problem comes from the function properties_get, but I can't step = into the function during the debug. So I have set manually the autostart value. But this leads to other problems. First, I have this error messages: Failed to open revision file at: .cache/bundle1/version0.0/revision.location Failed to open revision file at: .cache/bundle2/version0.0/revision.location Failed to open revision file at: .cache/bundle3/version0.0/revision.location Failed to open revision file at: .cache/bundle4/version0.0/revision.location Appearing at fw_init function call. Then I have those error messages: Cannot open bundles/shell.zip or bundles/shell.zip.zip Unable to install bundle: bundles/shell.zip Could not install bundle from bundles/shell.zip Cannot open bundles/shell_tui.zip or bundles/shell_tui.zip.zip Unable to install bundle: bundles/shell_tui.zip Could not install bundle from bundles/shell_tui.zip Cannot open bundles/hello_world.zip or bundles/hello_world.zip.zip Unable to install bundle: bundles/hello_world.zip Could not install bundle from bundles/hello_world.zip Cannot open bundles/log_service.zip or bundles/log_service.zip.zip Unable to install bundle: bundles/log_service.zip Could not install bundle from bundles/log_service.zip The "bundles" directory is in the debug directory, so the program should = be able to open those files. I haven't more time to spend on the debug of this program for the = moment. I come back to you later if I find something new. -----Message d'origine----- De=A0: Alexander Broekhuis [mailto:a.broekhuis@gmail.com]=20 Envoy=E9=A0: lundi 4 f=E9vrier 2013 11:30 =C0=A0: celix-dev@incubator.apache.org Objet=A0: Re: celix example under windows Hi, 2013/2/4 Lionel BELLER > Yes, I did build the complete solution. > The content of the hello_world.zip file is: > /META-INF/MANIFEST.MF > hello_world.dll > hello_world.lib > This looks all ok. > > There are no files located in the version0.0 directory. > It seems like the framework can't install the bundle. During = installation the zip file will be extracted to the cache/bundle*/version0.0 = directory. One last thing you could try, but seems unlikely to me, is to remove the .cache directory in hello_world. To see what's going on I need to debug this. If you are familiar with VS = and debugging, you could take a shot at it as well. Some pointers that might help: Extracting happens in: private/src/bundle_revision.c (extractBundle). The entire flow starts in the Celix executable (launcher). First all the bundles are installed, and later started. Extracting the bundles happens during the installation. I'll probably have some time later today, I'll check if it still works = for me (on windows). If you do find something during debugging, please let = me know so that I can apply changes/patches on trunk. > There was complaints about missing libraries. So I have put this=20 > missing libraries in the hello_world directory. > And this should be enough. > -----Message d'origine----- > De : Alexander Broekhuis [mailto:a.broekhuis@gmail.com] Envoy=E9 : = lundi=20 > 4 f=E9vrier 2013 10:25 =C0 : celix-dev@incubator.apache.org Objet : = Re:=20 > celix example under windows > > 2013/2/4 Lionel BELLER > > > Yes, I'm using the trunk, and did a complete clean/rebuild of all > sources. > > I > > tried to run celix from the hello_world folder. Is there a "make = deploy" > > equivalent of the linux version? > > > > There are projects in the VS solution for each deploy target. But the=20 > bundles are in the right place, so deployment has been done. I=20 > guess/assume you did build the complete solution. That takes care of deployment. > > > > There is a folder celix\build\deploy\hello_world\bundles with 4 zip=20 > > in it > : > > hello_world.zip, log_service.zip, shell.zip and shell_tui.zip. > > The folders .cache, bundle1 and version0.0 are created indeed, but=20 > > not "revision.location". In the folder bundle1, there are 3 files: > > bundle.id, bundle.lastmodified, and bundle.location. > > > > What is the content of the hello_world.zip file? It should be=20 > something > like: > /META-INF/MANIFEST > hello_world.dll > > And are there any files located in the version0.0 directory? > > Also, there are no complaints about missing libraries? For example=20 > from an incorrect path? > > > > > > > > -----Message d'origine----- > > De : Alexander Broekhuis [mailto:a.broekhuis@gmail.com] Envoy=E9 :=20 > > lundi > > 4 f=E9vrier 2013 09:12 =C0 : celix-dev@incubator.apache.org Objet : = Re: > > celix example under windows > > > > Hi, > > > > > > 2013/2/4 Lionel BELLER > > > > > Hi, > > > Once I have managed to compile celix, I've got a problem in the=20 > > > execution of the program. Here are the instruction sent and the=20 > > > error > > message: > > > > > > > > > = D:\celix\celix\build\deploy\hello_world>"../../launcher/release/celix" > > > Failed to open revision file at: > > > .cache/bundle1/version0.0/revision.location > > > > > > Indeed there is no file revision.location. Is it supposed to be=20 > > > generated at some point? > > > > > > > Did you run the Deploy project for hello world? If so, are there any = > > bundles located in the hello_world/bundle directory? > > If there are bundles (zip files) in the directory, could you take a=20 > > look inside one and give a listing of the content? > > > > I am not quite sure what is going on, normally during installation=20 > > of a bundle the framework should create these directories. This=20 > > happens at startup. I assume you are now using the Trunk and did a=20 > > complete clean/rebuild of all sources? > > > > > > > > > > Thanks > > > > > > > > > > > > -----Message d'origine----- > > > De : Lionel BELLER [mailto:lionel.beller@sogeti.com] Envoy=E9 : > > > vendredi 1 f=E9vrier 2013 15:54 =C0 : = celix-dev@incubator.apache.org=20 > > > Objet : RE: celix example under windows > > > > > > Well, this works indeed. > > > Thanks! > > > > > > Just to let you know, during the visual studio compilation, I had > > functions > > > already defined conflict. To solve it, I commented them in the=20 > > > visual studio headers, WinNT.h and BaseTsd.h. Those functions are=20 > > > Handle64ToHandle, HandleToHandle64, Ptr64ToPtr, PtrToPtr64,=20 > > > Int64ShllMod32, Int64ShraMod32, and Int64ShrlMod32. > > > > > > -----Message d'origine----- > > > De : Alexander Broekhuis [mailto:a.broekhuis@gmail.com] Envoy=E9 : > > vendredi > > > 1 > > > f=E9vrier 2013 15:14 =C0 : celix-dev@incubator.apache.org Objet : = RE: > > > celix example under windows > > > > > > Hi, > > > > > > I am not at a pc at this moment. But I think I can help. > > > > > > Op 1 feb. 2013 15:08 schreef "Lionel BELLER" > > > het > > > volgende: > > > > > > > > Found APR: D:/celix/apr-1.4.6/Release/libapr-1.lib > > > > Found CPack at: C:/Program Files/CMake 2.8/bin/cpack.exe No JAR=20 > > > > support, generated bundles are not usable for Apache ACE Found=20 > > > > CPack > > > > at: C:/Program Files/CMake 2.8/bin/cpack.exe CMake Error at > > > > cmake/Packaging.cmake:140 (get_property): > > > > get_property could not find TARGET chapter04-paint-example. > > > > Perhaps it has > > > > not yet been created. > > > > Call Stack (most recent call first): > > > > =20 > > > > examples/osgi-in-action/chapter04-paint-example/deploy.cmake:18 > > > (deploy) > > > > cmake/Packaging.cmake:198 (include) > > > > CMakeLists.txt:62 (deploy_targets) > > > > > > > > Any clue? > > > > > > I think you can safely comment the deploy line in the deploy.cmake = > > > file > > in > > > the paint example directory. > > > > > > If this doesn't help I will look into it when at my pc again. > > > > > > Ps: The jar comment can be ignored. It is just a notice. > > > > > > > > > > > > > > > -----Message d'origine----- > > > > De : Alexander Broekhuis [mailto:a.broekhuis@gmail.com] Envoy=E9 = : > > > > vendredi 1 f=E9vrier 2013 12:18 =C0 : = celix-dev@incubator.apache.org=20 > > > > Objet > > > > : RE: celix example under windows > > > > > > > > Hi, > > > > > > > > Op 1 feb. 2013 11:39 schreef "Lionel BELLER" > > > > > > > het > > > > volgende: > > > > > > > > > > Thanks a lot for the quick response. > > > > > > > > > > I=92m using the celix release, the one directly downloadable = on=20 > > > > > the site. I have tried to get the celix on the trunk, but=20 > > > > > there was some SVN > > > > connection > > > > > issues. I haven=92t really looked into it. > > > > > > > > The trunk has already been updated to compile on Windows. > > > > > > > > > > > > > > Anyway I have managed to compile the released version, with=20 > > > > > few > > > changes. > > > > And > > > > > now by commenting the line in the CMakeLists.txt, CMake=20 > > > > > generation > > > works. > > > > I > > > > > just have to fix the few compilation problems with Visual=20 > > > > > Studio > > > > > 2005 (missing headers, C99 compliance=85), and it should be = fine. > > > > > > > > If you can get the trunk you should be fine. A couple of weeks=20 > > > > ago those issues were fixed. > > > > > > > > > > > > > > Thank you. > > > > > > > > > > > > > > > > > > > > De : Alexander Broekhuis [mailto:a.broekhuis@gmail.com] = Envoy=E9 : > > > > > vendredi 1 f=E9vrier 2013 10:22 =C0 :=20 > > > > > celix-dev@incubator.apache.org Objet > > > > > : Re: celix example under windows > > > > > > > > > > > > > > > > > > > > Hi, > > > > > > > > > > > > > > > > > > > > Thanks for your interest in Celix (on Windows). > > > > > > > > > > > > > > > > > > > > Are you using the Celix release? Or a recent trunk? The trunk=20 > > > > > should compile/run on windows, the 0.0.1 release doesn't. Also = > > > > > on trunk the build system should check for the availability of = > > > > > gtk, but this hasn't been checked extensively. > > > > > > > > > > > > > > > > > > > > To work around this, you can simply disable the gtk examples. > > > > > This can be done by editing the CMakeLists.txt file in te=20 > > > > > examples > > > directory. > > > > Commenting > > > > > out the = "add_subdirectory(osgi-in-action/chapter04-paint-example)" > > > > > line should be enough. > > > > > > > > > > > > > > > > > > > > If this doesn't work, please let me know, and I'll take a look = > > > > > into > > it. > > > > > > > > > > > > > > > > > > > > Altogether windows support is rather new, and I welcome=20 > > > > > reports on any problems you run into. > > > > > > > > > > > > > > > > > > > > 2013/2/1 Lionel BELLER > > > > > > > > > > Hello, > > > > > > > > > > I would like to build the examples for celix on windows vista. > > > > > But when I enable the CMake build option "BUILD_EXAMPLES",=20 > > > > > CMake errors appear due to missing libraries (glib-2.0, gthread-2.0=85): > > > > > > > > > > > > > > > > > > > > checking for one of the modules 'glib-2.0' > > > > > > > > > > CMake Error at C:/Program Files/CMake > > > > > 2.8/share/cmake-2.8/Modules/FindPkgConfig.cmake:363 (message): > > > > > > > > > > None of the required 'glib-2.0' found > > > > > > > > > > Call Stack (most recent call first): > > > > > > > > > > > > = examples/osgi-in-action/chapter04-paint-example/circle/CMakeLists.txt: > > > > > 19 > > > > > (pkg_search_module) > > > > > > > > > > > > > > > > > > > > Has anyone ever experienced this problem, or has an idea of=20 > > > > > how to solve > > > > it? > > > > > > > > > > Thanks. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ______________________________________________________________ > > > > > __ > > > > > _ > > > > > > > > > > Lionel BELLER | Ing=E9nieur R&D | Sogeti High Tech Phone +33 = (0)=20 > > > > > 4 76 52 66 55=20 > > > > > lionel.beller@sogeti.com > > > > > > > > > > 485 avenue de l'Europe | 38330 Montbonnot, Saint-Martin |=20 > > > > > France www.sogeti.com / < > > > > http://www.sogeti-hightech.fr/> > > > > > www.sogeti-hightech.fr > > > > > > > > > > Sogeti High Tech, Registered office: Issy Les Moulineaux=20 > > > > > reg.no. Nanterre B 444 495 774 > > > > > > > > > > logo signature electronique > > > > > ______________________________________________________________ > > > > > __ > > > > > _ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > Met vriendelijke groet, > > > > > > > > > > Alexander Broekhuis > > > > > > > > > > > > > > > > > > > > > -- > > Met vriendelijke groet, > > > > Alexander Broekhuis > > > > > > > -- > Met vriendelijke groet, > > Alexander Broekhuis > > -- Met vriendelijke groet, Alexander Broekhuis