Page 1 of 1
canfestival for win32
Posted: Tue 3. Sep 2013, 17:08
by gisclonjy
hello,
i try to compil the canfestival for win32 with visual 2008.
for this i use the can-peak_win32.vc9 project; but during the geration i have a linker error
LNK1104: impossible d'ouvrir le fichier 'D/myProjects/PCAN-Light.obj'
where i can find this obj file, on the peak web site there are only the Pcan basic package.
thanks for your answers.
Re: canfestival for win32
Posted: Wed 4. Sep 2013, 08:37
by PEAK-Support
The PCAN-Light Software package could be download always from our WEB Page:
Support - Download - API Packages:
PCAN-Light Download package
Re: canfestival for win32
Posted: Wed 4. Sep 2013, 08:52
by gisclonjy
Ok tanks;
but i don't find the pcan-light.obj file!!! necessary for create the canfestival canopen stack.
is it normal? or the canfestival project is wrong and i must change the project option.
Re: canfestival for win32
Posted: Wed 4. Sep 2013, 09:44
by PEAK-Support
For compiling a source code that use a Windows DLL, you normaly need only the *.lib file if you like to link the DLL "hard" to your code (only C/C++, all .NET and BB/Delphi etc. use dynamic linking without any need to code it).
The better way for C/C++ is always to use the LoadLibrary(..) function and the GetProcAdress(..) function, to be sure you could update the DLL without recompile the source (Ordinal Numbers could be mixed when you get a new DLL with more functions). For the CANFestival code i do not think that you need the obj file (this is the compiled C code before linked to the release DLL). Try to remove the obj file from the project settings and see if it will work.
Re: canfestival for win32
Posted: Wed 4. Sep 2013, 10:08
by gisclonjy
Yes, sorry i make a mistake in my explain.
It is for compil the can-peak-win32.dll where i have the linker error "d:....pcan_light.obj"
the canfestival stack is ok no problem with the compilation
Re: canfestival for win32
Posted: Wed 4. Sep 2013, 10:25
by PEAK-Support
the "can-peak-win32.dll" is NOT a PEAK-System DLL - it is from the CAN Festival Developers. It´s a Wrapper DLL to build a common API for differnet Hardware vendors for the free CAN Open Stack. But in basic it is still the same - remove the obj file - there is no need for it - if the compiler want to link a obj file, it must create it on up in front (the obj from differnt compilers are NOT compatible, so also when i should give you the obj, it will not work!). Maybe it´s the best to contact Edouard or Laurent directly. We have not compiled the Stack since 2 years - but i will try to do with the latest available code - so i come back to this thread soon as i have any result.
Re: canfestival for win32
Posted: Fri 11. Oct 2013, 10:57
by gisclonjy
Hi,
we use now the canfestival-3.dll with the Pcan-104 card, we read/write the SDO OD and PDO.
But i have a probleme with the PDO's timming answers, i have a shift between the serveur TPDO and my receive!!
example: the serveur send 1st message of pdo1 and 1sec after the 2nd message of PDO1 but with my application a read the 1st message only when the 2nd arrive!!!
do you no this problem?
1st pdo 184: 01 00 01 01 01 01 01 01
2nd pdo 184: 01 01 01 01 01 01 01 01
regards
Re: canfestival for win32
Posted: Fri 11. Oct 2013, 11:13
by PEAK-Support
please contact the CANFestivel Developers - we could not do support for software we did not develop - sorry!