Re: [Canfestival-devel] help me configuring canfestival in windows
Hi all Thanks for your answers. I found out how make .c and .h file using .od file This line on cygwin In root of canfestival: python ../objectdictgen/objective.py examples/TestMasterSlave/TestMaster.od TestMaster.c python ../objectdictgen/objective.py examples/TestMasterSlave/TestSlave.od TestSlave.c Finally I found out that because of deleting -mno-cygwin flag :(( Then I decided to switch to linux On 22 Feb 2018 12:12 p.m.,wrote: > Hi, > Those missing file are generated from the .od files. > > See link below to learn how to do that. > https://canfestival.org/doc > > > On Feb 13, 2018 09:57, wrote: > >> Hi >> I want to use only vs, but it seems impossibly! >> Whenever I open canfestival root project, I can build canfestival library >> successfully but when I want to build other projects , I find out that some >> source files don't exist. >> For example in nimrof-canfestival (source you are >> using)/examples/testmasterslave there isn't any testmaster.c or >> testslave.c and I don't know what should I do! >> Then I force to build these files using cygwin and make file . >> Thanks for your patience and answers >> On 13 Feb 2018 3:22 a.m., >> wrote: >> >>> Il Mon, 12 Feb 2018 12:08:26 +0330 canfestival-devel@lists.source >>> forge.net scrisse: >>> >>> > Yes, my callsatck: >>> > >>> > cygwin1.dll!610dda44() Unknown >>> > >>> > [Frames below may be incorrect and/or missing, no symbols loaded for >>> > cygwin1.dll] >>> > >>> > CanFestival-3.dll!scanIndexOD(struct_CO_Data * d, unsigned short >>> wIndex, >>> > unsigned long * errorCode, unsigned long (struct_CO_Data *, const >>> > td_indextable *, unsigned char) * * * Callback) Line 267 C >>> > On 12 Feb 2018 11:17 a.m., >>> wrote: >>> >>> I do not have first hand experience with CANfestival but I have >>> cross-built and built natively many open source projects on >>> windows in different ways. >>> >>> Here are a couple of quick notes to avoid losing time on a dead >>> horse. >>> >>> 1. Cygwin and the typical windows environment are a lot different, >>>to the point that cygwin is more similar to a POSIX system than >>>to a native windows system. This is the reason you'll see a lot >>>of snippets like `if unix or cygwin ... elseif windows ...`. >>> >>> 2. Do not mix runtime libraries! In your specific case you are >>>mixing cygwin with msvcrt: this is a recipe for disaster. >>>Although it could happen to work on hello word programs, >>>anything more complex will likely crash. See e.g.: >>> >>>https://stackoverflow.com/questions/1926311/cygwin-in-visual-studio >>> >>>Just build everything with VS or with cygwin. >>> >>> Ciao. >>> -- >>> Nicola >>> >>> >>> -- >>> Check out the vibrant tech community on one of the world's most >>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >>> ___ >>> Canfestival-devel mailing list >>> Canfestival-devel@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/canfestival-devel >>> >> >> >> -- >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> ___ >> Canfestival-devel mailing list >> Canfestival-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/canfestival-devel >> >> > > -- > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > ___ > Canfestival-devel mailing list > Canfestival-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/canfestival-devel > > -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Canfestival-devel mailing list Canfestival-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/canfestival-devel
Re: [Canfestival-devel] help me configuring canfestival in windows
Hi, Those missing file are generated from the .od files. See link below to learn how to do that. https://canfestival.org/doc On Feb 13, 2018 09:57,wrote: > Hi > I want to use only vs, but it seems impossibly! > Whenever I open canfestival root project, I can build canfestival library > successfully but when I want to build other projects , I find out that some > source files don't exist. > For example in nimrof-canfestival (source you are > using)/examples/testmasterslave there isn't any testmaster.c or > testslave.c and I don't know what should I do! > Then I force to build these files using cygwin and make file . > Thanks for your patience and answers > On 13 Feb 2018 3:22 a.m., wrote: > >> Il Mon, 12 Feb 2018 12:08:26 +0330 canfestival-devel@lists.source >> forge.net scrisse: >> >> > Yes, my callsatck: >> > >> > cygwin1.dll!610dda44() Unknown >> > >> > [Frames below may be incorrect and/or missing, no symbols loaded for >> > cygwin1.dll] >> > >> > CanFestival-3.dll!scanIndexOD(struct_CO_Data * d, unsigned short >> wIndex, >> > unsigned long * errorCode, unsigned long (struct_CO_Data *, const >> > td_indextable *, unsigned char) * * * Callback) Line 267 C >> > On 12 Feb 2018 11:17 a.m., >> wrote: >> >> I do not have first hand experience with CANfestival but I have >> cross-built and built natively many open source projects on >> windows in different ways. >> >> Here are a couple of quick notes to avoid losing time on a dead >> horse. >> >> 1. Cygwin and the typical windows environment are a lot different, >>to the point that cygwin is more similar to a POSIX system than >>to a native windows system. This is the reason you'll see a lot >>of snippets like `if unix or cygwin ... elseif windows ...`. >> >> 2. Do not mix runtime libraries! In your specific case you are >>mixing cygwin with msvcrt: this is a recipe for disaster. >>Although it could happen to work on hello word programs, >>anything more complex will likely crash. See e.g.: >> >>https://stackoverflow.com/questions/1926311/cygwin-in-visual-studio >> >>Just build everything with VS or with cygwin. >> >> Ciao. >> -- >> Nicola >> >> >> -- >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> ___ >> Canfestival-devel mailing list >> Canfestival-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/canfestival-devel >> > > > -- > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > ___ > Canfestival-devel mailing list > Canfestival-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/canfestival-devel > > -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Canfestival-devel mailing list Canfestival-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/canfestival-devel
Re: [Canfestival-devel] help me configuring canfestival in windows
Hi I want to use only vs, but it seems impossibly! Whenever I open canfestival root project, I can build canfestival library successfully but when I want to build other projects , I find out that some source files don't exist. For example in nimrof-canfestival (source you are using)/examples/testmasterslave there isn't any testmaster.c or testslave.c and I don't know what should I do! Then I force to build these files using cygwin and make file . Thanks for your patience and answers On 13 Feb 2018 3:22 a.m.,wrote: > Il Mon, 12 Feb 2018 12:08:26 +0330 canfestival-devel@lists.sourceforge.net > scrisse: > > > Yes, my callsatck: > > > > cygwin1.dll!610dda44() Unknown > > > > [Frames below may be incorrect and/or missing, no symbols loaded for > > cygwin1.dll] > > > > CanFestival-3.dll!scanIndexOD(struct_CO_Data * d, unsigned short wIndex, > > unsigned long * errorCode, unsigned long (struct_CO_Data *, const > > td_indextable *, unsigned char) * * * Callback) Line 267 C > > On 12 Feb 2018 11:17 a.m., > wrote: > > I do not have first hand experience with CANfestival but I have > cross-built and built natively many open source projects on > windows in different ways. > > Here are a couple of quick notes to avoid losing time on a dead > horse. > > 1. Cygwin and the typical windows environment are a lot different, >to the point that cygwin is more similar to a POSIX system than >to a native windows system. This is the reason you'll see a lot >of snippets like `if unix or cygwin ... elseif windows ...`. > > 2. Do not mix runtime libraries! In your specific case you are >mixing cygwin with msvcrt: this is a recipe for disaster. >Although it could happen to work on hello word programs, >anything more complex will likely crash. See e.g.: > >https://stackoverflow.com/questions/1926311/cygwin-in-visual-studio > >Just build everything with VS or with cygwin. > > Ciao. > -- > Nicola > > > -- > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > ___ > Canfestival-devel mailing list > Canfestival-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/canfestival-devel > -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Canfestival-devel mailing list Canfestival-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/canfestival-devel
Re: [Canfestival-devel] help me configuring canfestival in windows
Il Mon, 12 Feb 2018 12:08:26 +0330 canfestival-devel@lists.sourceforge.net scrisse: > Yes, my callsatck: > > cygwin1.dll!610dda44() Unknown > > [Frames below may be incorrect and/or missing, no symbols loaded for > cygwin1.dll] > > CanFestival-3.dll!scanIndexOD(struct_CO_Data * d, unsigned short wIndex, > unsigned long * errorCode, unsigned long (struct_CO_Data *, const > td_indextable *, unsigned char) * * * Callback) Line 267 C > On 12 Feb 2018 11:17 a.m.,wrote: I do not have first hand experience with CANfestival but I have cross-built and built natively many open source projects on windows in different ways. Here are a couple of quick notes to avoid losing time on a dead horse. 1. Cygwin and the typical windows environment are a lot different, to the point that cygwin is more similar to a POSIX system than to a native windows system. This is the reason you'll see a lot of snippets like `if unix or cygwin ... elseif windows ...`. 2. Do not mix runtime libraries! In your specific case you are mixing cygwin with msvcrt: this is a recipe for disaster. Although it could happen to work on hello word programs, anything more complex will likely crash. See e.g.: https://stackoverflow.com/questions/1926311/cygwin-in-visual-studio Just build everything with VS or with cygwin. Ciao. -- Nicola -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Canfestival-devel mailing list Canfestival-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/canfestival-devel
Re: [Canfestival-devel] help me configuring canfestival in windows
Yes, my callsatck: cygwin1.dll!610dda44() Unknown [Frames below may be incorrect and/or missing, no symbols loaded for cygwin1.dll] CanFestival-3.dll!scanIndexOD(struct_CO_Data * d, unsigned short wIndex, unsigned long * errorCode, unsigned long (struct_CO_Data *, const td_indextable *, unsigned char) * * * Callback) Line 267 C On 12 Feb 2018 11:17 a.m.,wrote: > Okay, > But, could you print out the stack? > > > On Mon, Feb 12, 2018 at 2:54 PM, > wrote: > >> Hi >> This exception thrown at 0x610DDA44 (cygwin.dll ) in TestMasterSlave.exe >> : 0xc005 Access violation writing location 0 >> This exception occur >> On 11 Feb 2018 12:16 p.m., >> wrote: >> >>> Hi >>> when I clone the files and then open the project I need driver, >>> Do your folder contained dll files. >>> without dll I can't see output for program. >>> >>> I can bulid project in visual stdio but in runnig >>> for example for TestMasterSlave I get exception on canOpen(s_BOARD >>> *board, CO_Data * d) function >>> at this line fd0 = m_canOpen(board); >>> I haven't access to it now but I will send exception detail to you >>> tommorrow. >>> >>> following is my steps >>> In cygwin in root of canfestival: >>> *)run ./configure --target=win32 --can=tcp_win32 >>> *)change make file in these directories (\drivers\can_tcp_win32(I used >>> --can=tcp_win32), drivers\timers_win32, drivers\win32, \src) and delete >>> $(PROG_CFLAGS) file from them >>> *)then run make and make install >>> *)open vs file on root of can festival compile canfestival >>> *)then compile any of projects TestMasterSlave, .. and build it >>> *)go to Debug folder in cygwin and run exe with suitable input >>> *)for testing in tcp mode I first run server.exe >>> *) then for TestMasterSlave : TestMasterSlave.exe -s 0 -S 10K -m 1 _M >>> 10K -l ../../drivers/can_tcp_win32/libcanfestival_can_tcp_win32.dll >>> for TestMasterMicro Mode: TestMasteMicroMod.exe -i 8 -l >>> ../../drivers/can_tcp_win32/libcanfestival_can_tcp_win32.dll >>> >>> On Sat, Feb 10, 2018 at 5:24 PM, >> eforge.net> wrote: >>> Hi, On windows i mainly develope using vs community 2017 v 15.5.5 (latest) I have not switch compiler or anything like that. Just clean installed. i have just cloned my can festival repository. Any build the project from scratch. Open CanFestival-3.vc15.sln switch to x86 debug build canfestival build CANOpenShell.exe run CANOpenShell.exe In addition i am working on unit-testing so i have loaded and testet the tcp driver and server so that i am 100% sure that works with visual studio Questions: 1. So everything is now working with cygwin? 2. Please write a few lines about how you mix cygwin with vs. 2. If you can do some simple debuging to find out where the exceptions is raised. 3. What exception is raised? On Sat, Feb 10, 2018 at 8:44 PM, wrote: > Hi Again > You are right, testmasterslave and testmastermicromode run okey > But for me only on cygwin not on vs. > Did you run your code .exe on vs? > On vs I'm still getting exception > Many thanks for your response. > On 10 Feb 2018 12:00 p.m., > wrote: > >> Hi, >> >> I compile it from command line and do use visual studio together with >> cygwin >> >> when I stand in the project root in cmd: >> set PATH=C:\cygwin\bin;%PATH% >> bash -c ./configure >> make >> >> to run: >> set PATH=C:\cygwin\bin;%PATH% >> then run the exes >> >> I have tested CANOpenShell, TestMasterMicroMod and TestMasterSlave, >> but i have not loaded any driver. >> It all runs fine >> >> >> >> On Sat, Feb 10, 2018 at 12:59 AM, > eforge.net> wrote: >> >>> Hi >>> Could you please tell me your steps? >>> I do the configure steps and then I open the visual studio project >>> to run it, >>> >>> I test the ./configure --target=win32 --can=tcp_wi32 --timers=unix >>> but I got the same error "Segmentation fault and Exception on >>> loading dll function" >>> >>> I saw this link https://ci.appveyor.com/projec >>> t/nimrof/canfestival-3-asc-clean-rrna1 >>> I had same output for my cygwin and for --can=virtual. >>> but I have the same error on vs. >>> >>> On Thu, Feb 8, 2018 at 4:48 PM, >> eforge.net> wrote: >>> Hi, Sorry for the short reply today, i have only found out that my cygwin setup does not build win32_timer, but unix_timer. Not sure why unix is detected, but will try with target=win32 later
Re: [Canfestival-devel] help me configuring canfestival in windows
Okay, But, could you print out the stack? On Mon, Feb 12, 2018 at 2:54 PM,wrote: > Hi > This exception thrown at 0x610DDA44 (cygwin.dll ) in TestMasterSlave.exe : > 0xc005 Access violation writing location 0 > This exception occur > On 11 Feb 2018 12:16 p.m., > wrote: > >> Hi >> when I clone the files and then open the project I need driver, >> Do your folder contained dll files. >> without dll I can't see output for program. >> >> I can bulid project in visual stdio but in runnig >> for example for TestMasterSlave I get exception on canOpen(s_BOARD >> *board, CO_Data * d) function >> at this line fd0 = m_canOpen(board); >> I haven't access to it now but I will send exception detail to you >> tommorrow. >> >> following is my steps >> In cygwin in root of canfestival: >> *)run ./configure --target=win32 --can=tcp_win32 >> *)change make file in these directories (\drivers\can_tcp_win32(I used >> --can=tcp_win32), drivers\timers_win32, drivers\win32, \src) and delete >> $(PROG_CFLAGS) file from them >> *)then run make and make install >> *)open vs file on root of can festival compile canfestival >> *)then compile any of projects TestMasterSlave, .. and build it >> *)go to Debug folder in cygwin and run exe with suitable input >> *)for testing in tcp mode I first run server.exe >> *) then for TestMasterSlave : TestMasterSlave.exe -s 0 -S 10K -m 1 _M >> 10K -l ../../drivers/can_tcp_win32/libcanfestival_can_tcp_win32.dll >> for TestMasterMicro Mode: TestMasteMicroMod.exe -i 8 -l >> ../../drivers/can_tcp_win32/libcanfestival_can_tcp_win32.dll >> >> On Sat, Feb 10, 2018 at 5:24 PM, > > wrote: >> >>> Hi, >>> >>> On windows i mainly develope using vs community 2017 v 15.5.5 (latest) >>> I have not switch compiler or anything like that. >>> Just clean installed. >>> >>> i have just cloned my can festival repository. >>> Any build the project from scratch. >>> >>> Open CanFestival-3.vc15.sln >>> switch to x86 debug >>> build canfestival >>> build CANOpenShell.exe >>> run CANOpenShell.exe >>> >>> In addition i am working on unit-testing so i have loaded and testet the >>> tcp driver and server so that i am 100% sure that works with visual studio >>> >>> Questions: >>> >>> 1. So everything is now working with cygwin? >>> 2. Please write a few lines about how you mix cygwin with vs. >>> 2. If you can do some simple debuging to find out where the exceptions >>> is raised. >>> 3. What exception is raised? >>> >>> On Sat, Feb 10, 2018 at 8:44 PM, >> eforge.net> wrote: >>> Hi Again You are right, testmasterslave and testmastermicromode run okey But for me only on cygwin not on vs. Did you run your code .exe on vs? On vs I'm still getting exception Many thanks for your response. On 10 Feb 2018 12:00 p.m., wrote: > Hi, > > I compile it from command line and do use visual studio together with > cygwin > > when I stand in the project root in cmd: > set PATH=C:\cygwin\bin;%PATH% > bash -c ./configure > make > > to run: > set PATH=C:\cygwin\bin;%PATH% > then run the exes > > I have tested CANOpenShell, TestMasterMicroMod and TestMasterSlave, > but i have not loaded any driver. > It all runs fine > > > > On Sat, Feb 10, 2018 at 12:59 AM, eforge.net> wrote: > >> Hi >> Could you please tell me your steps? >> I do the configure steps and then I open the visual studio project to >> run it, >> >> I test the ./configure --target=win32 --can=tcp_wi32 --timers=unix >> but I got the same error "Segmentation fault and Exception on loading >> dll function" >> >> I saw this link https://ci.appveyor.com/projec >> t/nimrof/canfestival-3-asc-clean-rrna1 >> I had same output for my cygwin and for --can=virtual. >> but I have the same error on vs. >> >> On Thu, Feb 8, 2018 at 4:48 PM, > eforge.net> wrote: >> >>> Hi, >>> >>> Sorry for the short reply today, i have only found out that my >>> cygwin setup does not build win32_timer, but unix_timer. >>> Not sure why unix is detected, but will try with target=win32 later >>> >>> I have very limited experience with cygwin, so if you could check by >>> buildlog to se if you see something wrong that will help you and me >>> my buildlog: >>> https://ci.appveyor.com/project/nimrof/canfestival-3-asc-clean-rrna1 >>> >>> Hopfully i will have more time in the weekend to debug. >>> >>> btw: Gnosis_Utils-1.2.2 is used by python to read/write the .od xml >>> file >>> >>> About your errors: >>> * missing scanIndexOD is proberbly a missing files generated from >>>
Re: [Canfestival-devel] help me configuring canfestival in windows
Hi Again You are right, testmasterslave and testmastermicromode run okey But for me only on cygwin not on vs. Did you run your code .exe on vs? On vs I'm still getting exception Many thanks for your response. On 10 Feb 2018 12:00 p.m.,wrote: > Hi, > > I compile it from command line and do use visual studio together with > cygwin > > when I stand in the project root in cmd: > set PATH=C:\cygwin\bin;%PATH% > bash -c ./configure > make > > to run: > set PATH=C:\cygwin\bin;%PATH% > then run the exes > > I have tested CANOpenShell, TestMasterMicroMod and TestMasterSlave, but i > have not loaded any driver. > It all runs fine > > > > On Sat, Feb 10, 2018 at 12:59 AM, > wrote: > >> Hi >> Could you please tell me your steps? >> I do the configure steps and then I open the visual studio project to run >> it, >> >> I test the ./configure --target=win32 --can=tcp_wi32 --timers=unix >> but I got the same error "Segmentation fault and Exception on loading dll >> function" >> >> I saw this link https://ci.appveyor.com/project/nimrof/canfestival-3-asc- >> clean-rrna1 >> I had same output for my cygwin and for --can=virtual. >> but I have the same error on vs. >> >> On Thu, Feb 8, 2018 at 4:48 PM, >> wrote: >> >>> Hi, >>> >>> Sorry for the short reply today, i have only found out that my cygwin >>> setup does not build win32_timer, but unix_timer. >>> Not sure why unix is detected, but will try with target=win32 later >>> >>> I have very limited experience with cygwin, so if you could check by >>> buildlog to se if you see something wrong that will help you and me >>> my buildlog: >>> https://ci.appveyor.com/project/nimrof/canfestival-3-asc-clean-rrna1 >>> >>> Hopfully i will have more time in the weekend to debug. >>> >>> btw: Gnosis_Utils-1.2.2 is used by python to read/write the .od xml file >>> >>> About your errors: >>> * missing scanIndexOD is proberbly a missing files generated from the >>> .od file, but my vs project should generate it as part of the build prosess >>> and should give a missing file error :( >>> >>> * unrecognized command line option ‘-mno-cygwin’ >>> Just googled it, and can you try to remove it in the config file or just >>> make file? >>> >>> >>> On Thu, Feb 8, 2018 at 3:16 PM, >> > wrote: >>> Hi Many thanks for your response. I attached my makefile. I downloaded your file and try to build it but it wasn't successful, I got some linker errors. "LNK2001 unresolved external symbol scanIndexOD" I don't know why you use "Gnosis_Utils-1.2.2" for now, I want to run an example similar to "TestMasterSlave" on visual studio. In these last 2 days, I work more on configure command. and at first I commented these lines from configure file : ** echo "Using ${CXX} as a C++ compiler" if [ "$SUB_TARGET" = "win32" ]; then # on cygwin/mingw, choose g++ as a linker for native target if [ "$LD" = "" ]; then LD=$CXX fi if [ "$SUB_OS_NAME" = "CYGWIN" ]; then SUB_PROG_CFLAGS="-mno-cygwin" fi fi if [ "$SUB_TARGET" = "unix" ]; then if [ "$LD" = "" ]; then LD=$CXX fi fi ** when I configure with ./configure --target=win32 in build successfully but in using any function in canfestival.dll I got Segmentation fault and exception when configure with ./configure --target=win32 --can=tcp_win32 in "make" and "make install" steps I got " _beginthreadex; : undeclared identifier" but I can build .exe and In running I got Segmentation fault and exception. I really want your guidance. looking for your respones On 8 Feb 2018 1:27 a.m., wrote: > Hi, > > could you post the makefile from your win32_timer director? > > Also would you mind trying to build this repository? > https://bitbucket.org/nimrof/canfestival-3-asc > > I have continues build for latest visual studio and cygwin working. > I remember there was one or more a makefile problem to get cygwin > working, but I can not remember seeing your error. > > I do not build with cygwin from vs so might be a problem there. Could > you write a few lines about your setup? > > If you do not want to use hw you can also use the TCP driver, you need > to have the tcp server running for it to work. > > In my repo you might want to have a look at the appveyor file, it is > the file I use for VS and cygwin build. So all the build commands are > there. > > On Feb 6, 2018 02:11, wrote: > > Hi > I want to use canopen of canfestival. > And to run at least one of the examples on
Re: [Canfestival-devel] help me configuring canfestival in windows
Hi Could you please tell me your steps? I do the configure steps and then I open the visual studio project to run it, I test the ./configure --target=win32 --can=tcp_wi32 --timers=unix but I got the same error "Segmentation fault and Exception on loading dll function" I saw this link https://ci.appveyor.com/project/nimrof/canfestival-3-asc-clean-rrna1 I had same output for my cygwin and for --can=virtual. but I have the same error on vs. On Thu, Feb 8, 2018 at 4:48 PM,wrote: > Hi, > > Sorry for the short reply today, i have only found out that my cygwin > setup does not build win32_timer, but unix_timer. > Not sure why unix is detected, but will try with target=win32 later > > I have very limited experience with cygwin, so if you could check by > buildlog to se if you see something wrong that will help you and me > my buildlog: > https://ci.appveyor.com/project/nimrof/canfestival-3-asc-clean-rrna1 > > Hopfully i will have more time in the weekend to debug. > > btw: Gnosis_Utils-1.2.2 is used by python to read/write the .od xml file > > About your errors: > * missing scanIndexOD is proberbly a missing files generated from the .od > file, but my vs project should generate it as part of the build prosess and > should give a missing file error :( > > * unrecognized command line option ‘-mno-cygwin’ > Just googled it, and can you try to remove it in the config file or just > make file? > > > On Thu, Feb 8, 2018 at 3:16 PM, > wrote: > >> Hi >> Many thanks for your response. >> I attached my makefile. >> I downloaded your file and try to build it but it wasn't successful, I >> got some linker errors. >> "LNK2001 unresolved external symbol scanIndexOD" >> I don't know why you use "Gnosis_Utils-1.2.2" >> for now, I want to run an example similar to "TestMasterSlave" on visual >> studio. >> In these last 2 days, I work more on configure command. >> and at first I commented these lines from configure file : >> ** >> echo "Using ${CXX} as a C++ compiler" >> if [ "$SUB_TARGET" = "win32" ]; then >> # on cygwin/mingw, choose g++ as a linker for native target >> if [ "$LD" = "" ]; then >> LD=$CXX >> fi >> if [ "$SUB_OS_NAME" = "CYGWIN" ]; then >> SUB_PROG_CFLAGS="-mno-cygwin" >> fi >> fi >> if [ "$SUB_TARGET" = "unix" ]; then >> if [ "$LD" = "" ]; then >> LD=$CXX >> fi >> fi >> ** >> when I configure with ./configure --target=win32 >> in build successfully but in using any function in canfestival.dll I got >> Segmentation fault and exception >> when configure with ./configure --target=win32 --can=tcp_win32 >> in "make" and "make install" steps I got " >> _beginthreadex; : undeclared identifier" >> but I can build .exe and In running I got Segmentation fault and >> exception. >> I really want your guidance. >> looking for your respones >> On 8 Feb 2018 1:27 a.m., wrote: >> >>> Hi, >>> >>> could you post the makefile from your win32_timer director? >>> >>> Also would you mind trying to build this repository? >>> https://bitbucket.org/nimrof/canfestival-3-asc >>> >>> I have continues build for latest visual studio and cygwin working. >>> I remember there was one or more a makefile problem to get cygwin >>> working, but I can not remember seeing your error. >>> >>> I do not build with cygwin from vs so might be a problem there. Could >>> you write a few lines about your setup? >>> >>> If you do not want to use hw you can also use the TCP driver, you need >>> to have the tcp server running for it to work. >>> >>> In my repo you might want to have a look at the appveyor file, it is the >>> file I use for VS and cygwin build. So all the build commands are there. >>> >>> On Feb 6, 2018 02:11, wrote: >>> >>> Hi >>> I want to use canopen of canfestival. >>> And to run at least one of the examples on visual stdio, I got this 2 >>> errors:C2065: 'TestSlave_obj100C': Undeclared Identifier >>> C2065: 'TestSlave_obj100D': Undeclared Identifier >>> I searched and found this link >>> :https://sourceforge.net/p/canfestival/mailman/message/30811756/ >>> But my problem was not solved. I don't know how can I do these steps: >>> "the linker missing _obj100C and _obj100D, this problem is solved by >>> rebuilding the *.c files from the *.od files using the objdictedit.py." >>> When I use configure command in linux and then I run make and make install >>> it works properly , and build *.a file in driver/unix directory >>> but when I do following steps in windows: >>> ./configuare --can=virtual --target=win32 I got this error >>> ***$ ./configure --can=virtual >>> --target=win32 >>> Host OS: CYGWIN >>> Host arch: x86 >>> Choosing windows timers driver. >>> Checking for cc... Yes. >>> Checking for gcc... Yes. >>> Using gcc as a C compiler >>> Using g++ as a C++
Re: [Canfestival-devel] help me configuring canfestival in windows
Hi, Sorry for the short reply today, i have only found out that my cygwin setup does not build win32_timer, but unix_timer. Not sure why unix is detected, but will try with target=win32 later I have very limited experience with cygwin, so if you could check by buildlog to se if you see something wrong that will help you and me my buildlog: https://ci.appveyor.com/project/nimrof/canfestival-3-asc-clean-rrna1 Hopfully i will have more time in the weekend to debug. btw: Gnosis_Utils-1.2.2 is used by python to read/write the .od xml file About your errors: * missing scanIndexOD is proberbly a missing files generated from the .od file, but my vs project should generate it as part of the build prosess and should give a missing file error :( * unrecognized command line option ‘-mno-cygwin’ Just googled it, and can you try to remove it in the config file or just make file? On Thu, Feb 8, 2018 at 3:16 PM,wrote: > Hi > Many thanks for your response. > I attached my makefile. > I downloaded your file and try to build it but it wasn't successful, I got > some linker errors. > "LNK2001 unresolved external symbol scanIndexOD" > I don't know why you use "Gnosis_Utils-1.2.2" > for now, I want to run an example similar to "TestMasterSlave" on visual > studio. > In these last 2 days, I work more on configure command. > and at first I commented these lines from configure file : > ** > echo "Using ${CXX} as a C++ compiler" > if [ "$SUB_TARGET" = "win32" ]; then > # on cygwin/mingw, choose g++ as a linker for native target > if [ "$LD" = "" ]; then > LD=$CXX > fi > if [ "$SUB_OS_NAME" = "CYGWIN" ]; then > SUB_PROG_CFLAGS="-mno-cygwin" > fi > fi > if [ "$SUB_TARGET" = "unix" ]; then > if [ "$LD" = "" ]; then > LD=$CXX > fi > fi > ** > when I configure with ./configure --target=win32 > in build successfully but in using any function in canfestival.dll I got > Segmentation fault and exception > when configure with ./configure --target=win32 --can=tcp_win32 > in "make" and "make install" steps I got " > _beginthreadex; : undeclared identifier" > but I can build .exe and In running I got Segmentation fault and > exception. > I really want your guidance. > looking for your respones > On 8 Feb 2018 1:27 a.m., wrote: > >> Hi, >> >> could you post the makefile from your win32_timer director? >> >> Also would you mind trying to build this repository? >> https://bitbucket.org/nimrof/canfestival-3-asc >> >> I have continues build for latest visual studio and cygwin working. >> I remember there was one or more a makefile problem to get cygwin >> working, but I can not remember seeing your error. >> >> I do not build with cygwin from vs so might be a problem there. Could you >> write a few lines about your setup? >> >> If you do not want to use hw you can also use the TCP driver, you need to >> have the tcp server running for it to work. >> >> In my repo you might want to have a look at the appveyor file, it is the >> file I use for VS and cygwin build. So all the build commands are there. >> >> On Feb 6, 2018 02:11, wrote: >> >> Hi >> I want to use canopen of canfestival. >> And to run at least one of the examples on visual stdio, I got this 2 >> errors:C2065: 'TestSlave_obj100C': Undeclared Identifier >> C2065: 'TestSlave_obj100D': Undeclared Identifier >> I searched and found this link >> :https://sourceforge.net/p/canfestival/mailman/message/30811756/ >> But my problem was not solved. I don't know how can I do these steps: >> "the linker missing _obj100C and _obj100D, this problem is solved by >> rebuilding the *.c files from the *.od files using the objdictedit.py." >> When I use configure command in linux and then I run make and make install >> it works properly , and build *.a file in driver/unix directory >> but when I do following steps in windows: >> ./configuare --can=virtual --target=win32 I got this error >> ***$ ./configure --can=virtual >> --target=win32 >> Host OS: CYGWIN >> Host arch: x86 >> Choosing windows timers driver. >> Checking for cc... Yes. >> Checking for gcc... Yes. >> Using gcc as a C compiler >> Using g++ as a C++ compiler >> Using g++ as a linker >> Not cross-compiling. Will install in /usr/local >> Using prefix: /usr/local >> No wxWidgets available >> Creating Makefile >> Creating src/Makefile >> Creating drivers/Makefile >> Creating objdictgen/Makefile >> Creating examples/Makefile >> Creating objdictgen/canfestival_config.py >> Creating drivers/timers_win32/Makefile >> Creating drivers/can_virtual/Makefile >> Creating drivers/win32/Makefile >> Creating examples/CANOpenShell/Makefile >> Creating examples/TestMasterSlave/Makefile >> Creating examples/TestMasterSlaveLSS/Makefile >> Creating examples/SillySlave/Makefile >> Creating
Re: [Canfestival-devel] help me configuring canfestival in windows
Hi Many thanks for your response. I attached my makefile. I downloaded your file and try to build it but it wasn't successful, I got some linker errors. "LNK2001 unresolved external symbol scanIndexOD" I don't know why you use "Gnosis_Utils-1.2.2" for now, I want to run an example similar to "TestMasterSlave" on visual studio. In these last 2 days, I work more on configure command. and at first I commented these lines from configure file : ** echo "Using ${CXX} as a C++ compiler" if [ "$SUB_TARGET" = "win32" ]; then # on cygwin/mingw, choose g++ as a linker for native target if [ "$LD" = "" ]; then LD=$CXX fi if [ "$SUB_OS_NAME" = "CYGWIN" ]; then SUB_PROG_CFLAGS="-mno-cygwin" fi fi if [ "$SUB_TARGET" = "unix" ]; then if [ "$LD" = "" ]; then LD=$CXX fi fi ** when I configure with ./configure --target=win32 in build successfully but in using any function in canfestival.dll I got Segmentation fault and exception when configure with ./configure --target=win32 --can=tcp_win32 in "make" and "make install" steps I got " _beginthreadex; : undeclared identifier" but I can build .exe and In running I got Segmentation fault and exception. I really want your guidance. looking for your respones On 8 Feb 2018 1:27 a.m.,wrote: > Hi, > > could you post the makefile from your win32_timer director? > > Also would you mind trying to build this repository? > https://bitbucket.org/nimrof/canfestival-3-asc > > I have continues build for latest visual studio and cygwin working. > I remember there was one or more a makefile problem to get cygwin working, > but I can not remember seeing your error. > > I do not build with cygwin from vs so might be a problem there. Could you > write a few lines about your setup? > > If you do not want to use hw you can also use the TCP driver, you need to > have the tcp server running for it to work. > > In my repo you might want to have a look at the appveyor file, it is the > file I use for VS and cygwin build. So all the build commands are there. > > On Feb 6, 2018 02:11, wrote: > > Hi > I want to use canopen of canfestival. > And to run at least one of the examples on visual stdio, I got this 2 > errors:C2065: 'TestSlave_obj100C': Undeclared Identifier > C2065: 'TestSlave_obj100D': Undeclared Identifier > I searched and found this link > :https://sourceforge.net/p/canfestival/mailman/message/30811756/ > But my problem was not solved. I don't know how can I do these steps: > "the linker missing _obj100C and _obj100D, this problem is solved by > rebuilding the *.c files from the *.od files using the objdictedit.py." > When I use configure command in linux and then I run make and make install > it works properly , and build *.a file in driver/unix directory > but when I do following steps in windows: > ./configuare --can=virtual --target=win32 I got this error > ***$ ./configure --can=virtual > --target=win32 > Host OS: CYGWIN > Host arch: x86 > Choosing windows timers driver. > Checking for cc... Yes. > Checking for gcc... Yes. > Using gcc as a C compiler > Using g++ as a C++ compiler > Using g++ as a linker > Not cross-compiling. Will install in /usr/local > Using prefix: /usr/local > No wxWidgets available > Creating Makefile > Creating src/Makefile > Creating drivers/Makefile > Creating objdictgen/Makefile > Creating examples/Makefile > Creating objdictgen/canfestival_config.py > Creating drivers/timers_win32/Makefile > Creating drivers/can_virtual/Makefile > Creating drivers/win32/Makefile > Creating examples/CANOpenShell/Makefile > Creating examples/TestMasterSlave/Makefile > Creating examples/TestMasterSlaveLSS/Makefile > Creating examples/SillySlave/Makefile > Creating examples/TestMasterMicroMod/Makefile > All done. > $ make > make -C objdictgen all > make[1]: Entering directory > '/cygdrive/f/CanFestival-3-8bfe0ac00cdb/CanFestival-3-8bfe0ac00cdb/objdictgen' > make[1]: Nothing to be done for 'all'. > make[1]: Leaving directory > '/cygdrive/f/CanFestival-3-8bfe0ac00cdb/CanFestival-3-8bfe0ac00cdb/objdictgen' > make -C drivers driver > make[1]: Entering directory > '/cygdrive/f/CanFestival-3-8bfe0ac00cdb/CanFestival-3-8bfe0ac00cdb/drivers' > make -C timers_win32 driver > make[2]: Entering directory > '/cygdrive/f/CanFestival-3-8bfe0ac00cdb/CanFestival-3-8bfe0ac00cdb/drivers/timers_win32' > g++ -O2 -mno-cygwin -I../../include -I../../include/win32 > -I../../include/can_virtual -I../../include/timers_win32 -o timers_win32.o -c > timers_win32.cg++: error: unrecognized command line option ‘-mno-cygwin’; did > you mean ‘-mno-clwb’?make[2]: *** [Makefile:50: timers_win32.o] Error 1 > make[2]: Leaving directory > '/cygdrive/f/CanFestival-3-8bfe0ac00cdb/CanFestival-3-8bfe0ac00cdb/drivers/timers_win32' > make[1]: *** [Makefile:33: driver] Error 2 > make[1]: Leaving directory >
Re: [Canfestival-devel] help me configuring canfestival in windows
Hi, could you post the makefile from your win32_timer director? Also would you mind trying to build this repository? https://bitbucket.org/nimrof/canfestival-3-asc I have continues build for latest visual studio and cygwin working. I remember there was one or more a makefile problem to get cygwin working, but I can not remember seeing your error. I do not build with cygwin from vs so might be a problem there. Could you write a few lines about your setup? If you do not want to use hw you can also use the TCP driver, you need to have the tcp server running for it to work. In my repo you might want to have a look at the appveyor file, it is the file I use for VS and cygwin build. So all the build commands are there. On Feb 6, 2018 02:11,wrote: Hi I want to use canopen of canfestival. And to run at least one of the examples on visual stdio, I got this 2 errors:C2065: 'TestSlave_obj100C': Undeclared Identifier C2065: 'TestSlave_obj100D': Undeclared Identifier I searched and found this link :https://sourceforge.net/p/canfestival/mailman/message/30811756/ But my problem was not solved. I don't know how can I do these steps: "the linker missing _obj100C and _obj100D, this problem is solved by rebuilding the *.c files from the *.od files using the objdictedit.py." When I use configure command in linux and then I run make and make install it works properly , and build *.a file in driver/unix directory but when I do following steps in windows: ./configuare --can=virtual --target=win32 I got this error ***$ ./configure --can=virtual --target=win32 Host OS: CYGWIN Host arch: x86 Choosing windows timers driver. Checking for cc... Yes. Checking for gcc... Yes. Using gcc as a C compiler Using g++ as a C++ compiler Using g++ as a linker Not cross-compiling. Will install in /usr/local Using prefix: /usr/local No wxWidgets available Creating Makefile Creating src/Makefile Creating drivers/Makefile Creating objdictgen/Makefile Creating examples/Makefile Creating objdictgen/canfestival_config.py Creating drivers/timers_win32/Makefile Creating drivers/can_virtual/Makefile Creating drivers/win32/Makefile Creating examples/CANOpenShell/Makefile Creating examples/TestMasterSlave/Makefile Creating examples/TestMasterSlaveLSS/Makefile Creating examples/SillySlave/Makefile Creating examples/TestMasterMicroMod/Makefile All done. $ make make -C objdictgen all make[1]: Entering directory '/cygdrive/f/CanFestival-3-8bfe0ac00cdb/CanFestival-3-8bfe0ac00cdb/objdictgen' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/cygdrive/f/CanFestival-3-8bfe0ac00cdb/CanFestival-3-8bfe0ac00cdb/objdictgen' make -C drivers driver make[1]: Entering directory '/cygdrive/f/CanFestival-3-8bfe0ac00cdb/CanFestival-3-8bfe0ac00cdb/drivers' make -C timers_win32 driver make[2]: Entering directory '/cygdrive/f/CanFestival-3-8bfe0ac00cdb/CanFestival-3-8bfe0ac00cdb/drivers/timers_win32' g++ -O2 -mno-cygwin -I../../include -I../../include/win32 -I../../include/can_virtual -I../../include/timers_win32 -o timers_win32.o -c timers_win32.cg++: error: unrecognized command line option ‘-mno-cygwin’; did you mean ‘-mno-clwb’?make[2]: *** [Makefile:50: timers_win32.o] Error 1 make[2]: Leaving directory '/cygdrive/f/CanFestival-3-8bfe0ac00cdb/CanFestival-3-8bfe0ac00cdb/drivers/timers_win32' make[1]: *** [Makefile:33: driver] Error 2 make[1]: Leaving directory '/cygdrive/f/CanFestival-3-8bfe0ac00cdb/CanFestival-3-8bfe0ac00cdb/drivers' make: *** [Makefile:42: driver] Error 2 * I couldn't solve the error. In the manual document of canfestival for window is writen about usnig usb.zip file before configuration .for now, I don't want to use any HW module. I want to simulate canopen on my windows. please help me configuring canfestival in windows. Many thanks for your attention -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Canfestival-devel mailing list Canfestival-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/canfestival-devel -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Canfestival-devel mailing list Canfestival-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/canfestival-devel