(for archiving purposes: this was resolved after a clean install of nox) On Tue, Jun 19, 2012 at 12:39 AM, Anthony Salim < [email protected]> wrote:
> Hi Kyriakos, > > Yes the path looks exactly the same and still it will show the weird path > i mentioned. > > If there is a bug, should i delete the whole stuff or there is some parts > i need to fix? Thanks. > > Regards, > Anthony > > > > On Tue, Jun 19, 2012 at 3:59 AM, Kyriakos Zarifis > <[email protected]>wrote: > >> Ah, I see. >> I'm not sure why the path looks like that.. It could be that there's a >> bug in boot. Did you try to execute the command that finds the Makefile >> path on your console and see what the output of that looks like? >> It should be the line: >> find . -path "*Makefile.am" | grep -v "\<apache-log4cxx\/" | grep -v >> "\<ext\>" | grep -v "\<protobuf\/" | sed -e "s/\.\<am\>//" | sed -e >> "s/\.\///" >> >> >> On Mon, Jun 18, 2012 at 6:37 AM, Anthony Salim < >> [email protected]> wrote: >> >>> Hi Kyriakos, >>> >>> I found that under configure.ac (not configure.ac.in) file, it will >>> create the AC_CONFIG_FILES makefile path which will contain all component >>> path. and i found that whenever i put my component in, it will create path >>> which is below mentioned which puzzling me because its not supposed to have >>> .fr-wrXqt0/nox/src/nox/netapps/mycomponent/Makefile >>> >>> I hope its not confusing..kinda frustrated that the component keep on >>> getting error in compiling. >>> >>> Regards, >>> Anthony >>> >>> >>> On Mon, Jun 18, 2012 at 8:22 PM, Kyriakos Zarifis <[email protected] >>> > wrote: >>> >>>> I'm not sure I understand what you mean when you say that ./boot.sh >>>> generates that path ? >>>> >>>> >>>> On Sun, Jun 17, 2012 at 11:54 PM, Anthony Salim < >>>> [email protected]> wrote: >>>> >>>>> Hi guys, >>>>> >>>>> Alright i try to find the problem, so the problem is whenever i tried >>>>> to run ./boot.sh, it will generate AC_CONFIG_FILES and AC_CONFIG_SUBDIRS, >>>>> it is supposed to create the MakeFile path for the new component but >>>>> whenever i run /boot.sh, it will generate this path >>>>> src/nox/netapps/.fr-wrXqt0/nox/src/nox/netapps/mycomponent/Makefile >>>>> >>>>> How do i make the path to be something like this >>>>> src/nox/netapps/mycomponent/Makefile only. Thanks. >>>>> >>>>> Regards, >>>>> Anthony >>>>> >>>>> >>>>> On Mon, Jun 18, 2012 at 12:13 PM, Anthony Salim < >>>>> [email protected]> wrote: >>>>> >>>>>> Hi guys, >>>>>> >>>>>> Thanks for the advices. Yes i did put the path to include. >>>>>> >>>>>> The path is : include ../../../Make.vars >>>>>> >>>>>> And i also included everything required as mentioned by Kyriakos >>>>>> >>>>>> Thanks Diana will try that your way as well. >>>>>> >>>>>> Regards, >>>>>> Anthony >>>>>> >>>>>> >>>>>> On Mon, Jun 18, 2012 at 5:27 AM, Diana Marosin < >>>>>> [email protected]> wrote: >>>>>> >>>>>>> Hello >>>>>>> >>>>>>> I use the provided scripts to creat a new component. You can try >>>>>>> that and after it runs to start filing your code. >>>>>>> >>>>>>> You go in the directory where you want to locate your component >>>>>>> (coreapps in my example), type tha path to scripts and chose the type of >>>>>>> component you wish to use. >>>>>>> >>>>>>> diana@upiras:~/DEV/nox/src/nox/coreapps/examples$ >>>>>>> ~/DEV/nox/src/scripts/nox-new-py-app.py mytst >>>>>>> >>>>>>> I attach you the script if you miss that folder. >>>>>>> >>>>>>> I created it fast now and "tested" it by printing a message in the >>>>>>> init method. >>>>>>> >>>>>>> Hope it helps, >>>>>>> >>>>>>> Best, >>>>>>> >>>>>>> Diana >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> On Sun, Jun 17, 2012 at 9:38 PM, Kyriakos Zarifis < >>>>>>> [email protected]> wrote: >>>>>>> >>>>>>>> Hi Anthony, >>>>>>>> >>>>>>>> have you also updated the files Makefile.am and meta.json in your >>>>>>>> component folder in the src/ tree? >>>>>>>> >>>>>>>> In Makefile.am the first line points to "Make.vars". It should >>>>>>>> probably be something like >>>>>>>> "include ../../../Make.vars" >>>>>>>> Can you verify that the path there is correct? >>>>>>>> >>>>>>>> You also need to add your component files under EXTRA_DIST and >>>>>>>> NOX_RUNTIMEFILES. Look at another python component for an example. >>>>>>>> >>>>>>>> In meta.json, you need to define the name of your component, its >>>>>>>> dependencies, and its python module. (Again looking at another >>>>>>>> component >>>>>>>> would help) >>>>>>>> >>>>>>>> >>>>>>>> BTW, if you only work in python, you should probably take a look at >>>>>>>> POX <http://www.noxrepo.org/pox/about-pox/>. A lot of those things >>>>>>>> are much simpler there. >>>>>>>> >>>>>>>> >>>>>>>> On Sun, Jun 17, 2012 at 4:53 AM, Anthony Salim < >>>>>>>> [email protected]> wrote: >>>>>>>> >>>>>>>>> Hi Kyriakos, >>>>>>>>> >>>>>>>>> May i know is the steps that i did is correct? i tried every ways >>>>>>>>> to compile it but still getting the errors. Thanks. >>>>>>>>> >>>>>>>>> Regards, >>>>>>>>> Anthony >>>>>>>>> >>>>>>>>> >>>>>>>>> On Sun, Jun 17, 2012 at 12:09 AM, Anthony Salim < >>>>>>>>> [email protected]> wrote: >>>>>>>>> >>>>>>>>>> Hi Kyriakos, >>>>>>>>>> >>>>>>>>>> This is the exact error message when i tried to run ./boot.sh >>>>>>>>>> >>>>>>>>>> automake: cannot open < >>>>>>>>>> src/nox/netapps/.fr-wrXqt0/nox/src/nox/netapps/mycomponent/../../../Make.vars: >>>>>>>>>> No such file or directory >>>>>>>>>> >>>>>>>>>> I run this under the nox root folder. component name also been >>>>>>>>>> included in configure.ac.in file. Thanks. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Regards, >>>>>>>>>> Anthony >>>>>>>>>> >>>>>>>>>> On Sat, Jun 16, 2012 at 11:32 PM, Anthony Salim < >>>>>>>>>> [email protected]> wrote: >>>>>>>>>> >>>>>>>>>>> Hi Kyriakos, >>>>>>>>>>> >>>>>>>>>>> Yes. steps i did: >>>>>>>>>>> >>>>>>>>>>> 1. I put the component folder inside the nox/src/netapps folder >>>>>>>>>>> 2. go to nox root folder and rerun the "./boot.sh >>>>>>>>>>> >>>>>>>>>>> From this on, the error said could not open the file inside the >>>>>>>>>>> nox/src/netapps folder make.vars file. This error appear before i >>>>>>>>>>> do "make". >>>>>>>>>>> >>>>>>>>>>> Regards, >>>>>>>>>>> Anthony >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> On Sat, Jun 16, 2012 at 6:03 AM, Kyriakos Zarifis < >>>>>>>>>>> [email protected]> wrote: >>>>>>>>>>> >>>>>>>>>>>> Hey Anthony, >>>>>>>>>>>> >>>>>>>>>>>> how are you trying to compile? you should be running make in >>>>>>>>>>>> the root src/ folder (not build/src), just like when you compiled >>>>>>>>>>>> NOX for >>>>>>>>>>>> the first time, after having added your src files inside >>>>>>>>>>>> src/nox/netapps/something_component. >>>>>>>>>>>> Also, make sure you add your component's name under "netapps" >>>>>>>>>>>> in configure.ac.in. >>>>>>>>>>>> >>>>>>>>>>>> Then rerun ./boot, ../configure, and make. >>>>>>>>>>>> >>>>>>>>>>>> The compiled component should then appear in the build/ tree >>>>>>>>>>>> (build/src/nox/netapps/something_component) >>>>>>>>>>>> (In case of a python component, the "compiled" component will >>>>>>>>>>>> be simply links to the source files in the src tree - but this is >>>>>>>>>>>> the right >>>>>>>>>>>> way to do it) >>>>>>>>>>>> >>>>>>>>>>>> Kyriakos >>>>>>>>>>>> >>>>>>>>>>>> On Fri, Jun 15, 2012 at 6:16 AM, Anthony Salim < >>>>>>>>>>>> [email protected]> wrote: >>>>>>>>>>>> >>>>>>>>>>>>> Hi guys, >>>>>>>>>>>>> >>>>>>>>>>>>> When i try to compile some component folder, it will gives me >>>>>>>>>>>>> an error that says, >>>>>>>>>>>>> >>>>>>>>>>>>> automake: cannot open < >>>>>>>>>>>>> build/src/nox/netapps/something_component/../../../Make.vars: no >>>>>>>>>>>>> such file >>>>>>>>>>>>> or directory >>>>>>>>>>>>> >>>>>>>>>>>>> How to resolve this because when i see under the build folder, >>>>>>>>>>>>> the component name is there but inside only make file. Its >>>>>>>>>>>>> supposed to >>>>>>>>>>>>> build automatically all the files inside. Thanks. >>>>>>>>>>>>> >>>>>>>>>>>>> Regards, >>>>>>>>>>>>> Anthony >>>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> >> >
