From bkc at murkworks.com Fri Jul 1 19:49:35 2005 From: bkc at murkworks.com (Brad Clements) Date: Fri, 01 Jul 2005 13:49:35 -0400 Subject: [PythonCE] Python23.lib? In-Reply-To: Message-ID: <42C549EF.9463.138DE8C1@bkc.murkworks.com> Howto make a .lib file from a .dll http://sapdb.2scale.net/moin.cgi/MS_20C_2b_2b_20Toolkit Not sure if it works for EVT. So, it seems that the released Python for ARM binary does include .h files, but not .lib files? Strange to have .h files in there. On 30 Jun 2005 at 11:00, Salvatore Russo wrote: > Hallo Gonzalo, > > Thanks for your reply and your proposition. I tried all versions from: > > http://www.python.org/download/download_windows.html > > and finally choose this one: > > http://sourceforge.net/projects/pythonce > > I never found this python23.lib library indispensible to make python work in C. As I wrote, I generated this python23.dll file with the demonstration version of the progr> I will be very interested if you can send me your library for arm and also for emulator (if you have it) :=) Thanks! > > The best will be to include in http://sourceforge.net/projects/pythonce a folder: \lib with subfolders \arm and \x86emu and in each folder, both python23.dll and python23> > If I have no choice, I will build a project for PythonCE and send it to the PythonCE project. But I don't know what should I include: there is no *.c files... maybe *pyc > > Thanks for your Help, > Salvatore > > > > > > > Hi Salvatore, > > > > I am Gonzalo Monz?n, an spanish programmer who did some tests with the > > phyton for pocketpc... > > > > I'd need some time remember what and where do I downloaded and compiled > > but finally I was succesfull with my testing. > > > > The fact is that on my Python23\PCbuild\WinCE path there is a > > python23.lib... maybe is this the file you need? it is used on compiling > > the python23.dll and it all works fine for me. I don't remember if it > > did work fine on the emulator, I started having some issues and latter > > begun failing on opening any compiled app. from EVC4 so I forget it as I > > had a PocketPC on my left hand... > > > > If this is the file you need please reply me and I will send it. But I > > think if you haven't got this file, maybe something is failing or you > > failed uncompress the right file for python... > > > > Don't have you got a folder inside Python23 callled PCbuild with several > > files and another folder called WinCE, where the .lib resides? -I have > > checked for the file and it does exist too on other Python23's > > folders... (/Python23/libs/) so I don't know if do I moved manually the > > file from there. > > > > > > Regards, > > Gonzalo. > > > > Salvatore Russo escribi?: > > > > > Hello everyone, > > > > > > I am working on porting blender (www.blender3d.org > > > ) for Pocketpc. Blender is written in C/C++ > > > and is using Python. > > > > > > I downloaded "python-2.3.4-arm-HPC2000.zip", add in my includes all > > > Python23 includes (with Python.h, etc...) but now, EVC4 is complaining > > > because it is looking for a "python23.lib". > > > > > > I look everywhere but I was not able to find this library. I have a > > > "Python23.dll" but no .lib. > > > > > > Does anyone have an id?e how can I continue :=) ?? > > > > > > Can Someone say me where I can find it? Or explain how can I obtain > > > it? Or maybe easily send it to me :=) > > > > > > Thanks for your help, > > > > > > Salvatore > > > > > > > > > > > > /Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ;/ > > > /3615 LAPOSTENET (0,34 /mn) ; t?l : 08 92 68 13 50 (0,34/mn)/ > > > > > >------------------------------------------------------------------------ > > > > > >_______________________________________________ > > >PythonCE mailing list > > >PythonCE at python.org > > >http://mail.python.org/mailman/listinfo/pythonce > > > > > > > > > > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; > 3615 LAPOSTENET (0,34EUR/mn) ; t?l : 08 92 68 13 50 (0,34EUR/mn) > > > -- Brad Clements, bkc at murkworks.com (315)268-1000 http://www.murkworks.com AOL-IM or SKYPE: BKClements From kitsune_e at yahoo.com Mon Jul 4 07:46:18 2005 From: kitsune_e at yahoo.com (Ed Blake) Date: Sun, 3 Jul 2005 22:46:18 -0700 (PDT) Subject: [PythonCE] A PythonCE package Message-ID: <20050704054618.69660.qmail@web50203.mail.yahoo.com> I've created a kind of PythonCE package. It is the zip file from the lib dir with a few extra things add. Namely the Twisted framework and xml support. Links to downloads are at the bottom, and an explanation of methods and motivations follows: I've been playing around with network stuff recently and I've been reading about the Twisted framework on my PocketPC. While I was reading though I would get ideas for tests or ways to use the code in the examples. The problem was I couldn't run this stuff on my PPC because I didn't have Twisted available. Now for some reason I thought Twisted had some pre-compiled bits buried somewhere in it. So I opened up my laptop and did some poking around to see if there were any pyd files or such. But it seems that Twisted is indeed pure Python! So I grabbed the Twisted folder out of site-packages, cleaned out all the pyc/pyo files to save space, and threw it into my PythonCE lib directory. I know keeping the pycs would probably have been faster and smaller but oh-well. So I run the Python interpreter and try from twisted.internet import reactor, and after a longish loading time the import passed without an error. Next I tried from twisted.internet.protocol import Protocol, and this time there was virtually no delay in loading. Now the problem with Twisted as you may have guessed is that it's big. In fact after I stripped out all the py* files it was still about 7Mb on disk. Luckily in Python 2.3 you can import modules from a zip archive. That is what the python23.zip is in your PythonCE lib folder. So I copied the zip onto my desktop and I copied the twisted folder into that. While I was playing Frankenstein I also copied everything in the _xmlplus folder into the xml folder I found there. I saved a backup of my Python23.zip and then copied my new version over the one on my PPC. To my mild surprise I was still able to import and use both Twisted and xml after this. These big libraries though take up more space then just their size on disk. Twisted zipped takes about 1.5Mb, Python plus twisted.internet.reactor plus xml.dom.minidom take nearly 6Mb of ram when running. So, unless your writing a pocket sized web server, socket and socketServer are probably your best bet for network programs. Some Links: My python bundle: http://kitsu.petesdomain.com/files/WinCE/python23.zip provided 'as is' without warranty of any kind, either express or implied etc. A nice blog: http://blogs.unixage.com/blojsom/blog/adam.kruszewski/python This is where I found the working xml module. (scroll down) I am also hosting the xml module as well as other interesting stuff because cool PythonCE stuff tends to vanish: http://kitsu.petesdomain.com/files/WinCE/ From salvatore.russo at laposte.net Mon Jul 4 08:40:16 2005 From: salvatore.russo at laposte.net (Salvatore Russo) Date: Mon, 4 Jul 2005 08:40:16 +0200 Subject: [PythonCE] Python23.lib? Message-ID: Thanks :=) I will have a look on it but I think I already try... I took all python.h fileS for python 2.3 from Blender... It was in fact not included in PythonCE. But I need it run Python in C programms. The compiler really don't like the python.lib generated from our python.dll... Has someone an Idea how to compile pythonCE on EVC4? Can someone help me to run PythonCE inside a C/C++ progam? Thanks again, Salvatore > Howto make a .lib file from a .dll > > http://sapdb.2scale.net/moin.cgi/MS_20C_2b_2b_20Toolkit > > Not sure if it works for EVT. > > So, it seems that the released Python for ARM binary does include .h > files, but not .lib files? > > > Strange to have .h files in there. > > > On 30 Jun 2005 at 11:00, Salvatore Russo wrote: > > > Hallo Gonzalo, > > > > Thanks for your reply and your proposition. I tried all versions from: > > > > http://www.python.org/download/download_windows.html > > > > and finally choose this one: > > > > http://sourceforge.net/projects/pythonce > > > > I never found this python23.lib library indispensible to make python work in C. As I wrote, I generated this python23.dll file with the demonstration version of the progr> I will be very interested if you can send me your library for arm and also for emulator (if you have it) :=) Thanks! > > > > The best will be to include in http://sourceforge.net/projects/pythonce a folder: \lib with subfolders \arm and \x86emu and in each folder, both python23.dll and python23> > > If I have no choice, I will build a project for PythonCE and send it to the PythonCE project. But I don't know what should I include: there is no *.c files... maybe *pyc > > > Thanks for your Help, > > Salvatore > > > > > > > > > > > > > Hi Salvatore, > > > > > > I am Gonzalo Monz?n, an spanish programmer who did some tests with the > > > phyton for pocketpc... > > > > > > I'd need some time remember what and where do I downloaded and compiled > > > but finally I was succesfull with my testing. > > > > > > The fact is that on my Python23\PCbuild\WinCE path there is a > > > python23.lib... maybe is this the file you need? it is used on compiling > > > the python23.dll and it all works fine for me. I don't remember if it > > > did work fine on the emulator, I started having some issues and latter > > > begun failing on opening any compiled app. from EVC4 so I forget it as I > > > had a PocketPC on my left hand... > > > > > > If this is the file you need please reply me and I will send it. But I > > > think if you haven't got this file, maybe something is failing or you > > > failed uncompress the right file for python... > > > > > > Don't have you got a folder inside Python23 callled PCbuild with several > > > files and another folder called WinCE, where the .lib resides? -I have > > > checked for the file and it does exist too on other Python23's > > > folders... (/Python23/libs/) so I don't know if do I moved manually the > > > file from there. > > > > > > > > > Regards, > > > Gonzalo. > > > > > > Salvatore Russo escribi?: > > > > > > > Hello everyone, > > > > > > > > I am working on porting blender (www.blender3d.org > > > > ) for Pocketpc. Blender is written in C/C++ > > > > and is using Python. > > > > > > > > I downloaded "python-2.3.4-arm-HPC2000.zip", add in my includes all > > > > Python23 includes (with Python.h, etc...) but now, EVC4 is complaining > > > > because it is looking for a "python23.lib". > > > > > > > > I look everywhere but I was not able to find this library. I have a > > > > "Python23.dll" but no .lib. > > > > > > > > Does anyone have an id?e how can I continue :=) ?? > > > > > > > > Can Someone say me where I can find it? Or explain how can I obtain > > > > it? Or maybe easily send it to me :=) > > > > > > > > Thanks for your help, > > > > > > > > Salvatore > > > > > > > > > > > > > > > > /Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ;/ > > > > /3615 LAPOSTENET (0,34 /mn) ; t?l : 08 92 68 13 50 (0,34/mn)/ > > > > > > > >------------------------------------------------------------------------ > > > > > > > >_______________________________________________ > > > >PythonCE mailing list > > > >PythonCE at python.org > > > >http://mail.python.org/mailman/listinfo/pythonce > > > > > > > > > > > > > > > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; > > 3615 LAPOSTENET (0,34EUR/mn) ; t?l : 08 92 68 13 50 (0,34EUR/mn) > > > > > > > > > > > -- > Brad Clements, bkc at murkworks.com (315)268-1000 > http://www.murkworks.com > AOL-IM or SKYPE: BKClements > > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonce/attachments/20050704/11faac92/attachment.htm From salvatore.russo at laposte.net Mon Jul 4 09:22:49 2005 From: salvatore.russo at laposte.net (Salvatore Russo) Date: Mon, 4 Jul 2005 09:22:49 +0200 Subject: [PythonCE] Python23.lib? Message-ID: Hallo Brad, I downloaded the sources from http://www.tux.org/pub/tux/pyce/archive/ I will try to compile them. Here, there is everything, all *.h... all projects :=) I think this should work :=) Thanks, Salvatore > Howto make a .lib file from a .dll > > http://sapdb.2scale.net/moin.cgi/MS_20C_2b_2b_20Toolkit > > Not sure if it works for EVT. > > So, it seems that the released Python for ARM binary does include .h > files, but not .lib files? > > > Strange to have .h files in there. > > > On 30 Jun 2005 at 11:00, Salvatore Russo wrote: > > > Hallo Gonzalo, > > > > Thanks for your reply and your proposition. I tried all versions from: > > > > http://www.python.org/download/download_windows.html > > > > and finally choose this one: > > > > http://sourceforge.net/projects/pythonce > > > > I never found this python23.lib library indispensible to make python work in C. As I wrote, I generated this python23.dll file with the demonstration version of the progr> I will be very interested if you can send me your library for arm and also for emulator (if you have it) :=) Thanks! > > > > The best will be to include in http://sourceforge.net/projects/pythonce a folder: \lib with subfolders \arm and \x86emu and in each folder, both python23.dll and python23> > > If I have no choice, I will build a project for PythonCE and send it to the PythonCE project. But I don't know what should I include: there is no *.c files... maybe *pyc > > > Thanks for your Help, > > Salvatore > > > > > > > > > > > > > Hi Salvatore, > > > > > > I am Gonzalo Monz?n, an spanish programmer who did some tests with the > > > phyton for pocketpc... > > > > > > I'd need some time remember what and where do I downloaded and compiled > > > but finally I was succesfull with my testing. > > > > > > The fact is that on my Python23\PCbuild\WinCE path there is a > > > python23.lib... maybe is this the file you need? it is used on compiling > > > the python23.dll and it all works fine for me. I don't remember if it > > > did work fine on the emulator, I started having some issues and latter > > > begun failing on opening any compiled app. from EVC4 so I forget it as I > > > had a PocketPC on my left hand... > > > > > > If this is the file you need please reply me and I will send it. But I > > > think if you haven't got this file, maybe something is failing or you > > > failed uncompress the right file for python... > > > > > > Don't have you got a folder inside Python23 callled PCbuild with several > > > files and another folder called WinCE, where the .lib resides? -I have > > > checked for the file and it does exist too on other Python23's > > > folders... (/Python23/libs/) so I don't know if do I moved manually the > > > file from there. > > > > > > > > > Regards, > > > Gonzalo. > > > > > > Salvatore Russo escribi?: > > > > > > > Hello everyone, > > > > > > > > I am working on porting blender (www.blender3d.org > > > > ) for Pocketpc. Blender is written in C/C++ > > > > and is using Python. > > > > > > > > I downloaded "python-2.3.4-arm-HPC2000.zip", add in my includes all > > > > Python23 includes (with Python.h, etc...) but now, EVC4 is complaining > > > > because it is looking for a "python23.lib". > > > > > > > > I look everywhere but I was not able to find this library. I have a > > > > "Python23.dll" but no .lib. > > > > > > > > Does anyone have an id?e how can I continue :=) ?? > > > > > > > > Can Someone say me where I can find it? Or explain how can I obtain > > > > it? Or maybe easily send it to me :=) > > > > > > > > Thanks for your help, > > > > > > > > Salvatore > > > > > > > > > > > > > > > > /Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ;/ > > > > /3615 LAPOSTENET (0,34 /mn) ; t?l : 08 92 68 13 50 (0,34/mn)/ > > > > > > > >------------------------------------------------------------------------ > > > > > > > >_______________________________________________ > > > >PythonCE mailing list > > > >PythonCE at python.org > > > >http://mail.python.org/mailman/listinfo/pythonce > > > > > > > > > > > > > > > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; > > 3615 LAPOSTENET (0,34EUR/mn) ; t?l : 08 92 68 13 50 (0,34EUR/mn) > > > > > > > > > > > -- > Brad Clements, bkc at murkworks.com (315)268-1000 > http://www.murkworks.com > AOL-IM or SKYPE: BKClements > > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonce/attachments/20050704/351feabe/attachment-0001.htm From salvatore.russo at laposte.net Tue Jul 5 09:05:00 2005 From: salvatore.russo at laposte.net (Salvatore Russo) Date: Tue, 5 Jul 2005 09:05:00 +0200 Subject: [PythonCE] Python23.lib? Message-ID: Hello All, As I write yesterday, I download PythonCE source here: http://www.tux.org/pub/tux/pyce/archive/ And yesterday, I tried to compile them :=) It seems that everything is there. But I had some problems. I tried with the project ?pythoncore?. First, in evc/timemodule.c, there are these 6 errors probablly because of ?DL_IMPORT?: timemodule.c E:\Infographie\Blender pour PocketPC\Librairies\PythonCE\Python avec Souces\pythonce23\src\PC\evt-ce\timemodule.c(14) : error C2491: 'PyCE_UnixTimeToFileTime' : definition of dllimport function not allowed E:\Infographie\Blender pour PocketPC\Librairies\PythonCE\Python avec Souces\pythonce23\src\PC\evt-ce\timemodule.c(25) : error C2491: 'PyCE_UnixTimeToSystemTime' : definition of dllimport function not allowed E:\Infographie\Blender pour PocketPC\Librairies\PythonCE\Python avec Souces\pythonce23\src\PC\evt-ce\timemodule.c(33) : error C2491: 'PyCE_FileTimeToUnixTime' : definition of dllimport function not allowed E:\Infographie\Blender pour PocketPC\Librairies\PythonCE\Python avec Souces\pythonce23\src\PC\evt-ce\timemodule.c(42) : error C2491: 'PyCE_SystemTimeToUnixTime' : definition of dllimport function not allowed E:\Infographie\Blender pour PocketPC\Librairies\PythonCE\Python avec Souces\pythonce23\src\PC\evt-ce\timemodule.c(50) : error C2491: 'PyCE_TimeStructToSystemTime' : definition of dllimport function not allowed E:\Infographie\Blender pour PocketPC\Librairies\PythonCE\Python avec Souces\pythonce23\src\PC\evt-ce\timemodule.c(64) : error C2491: 'PyCE_SystemTimeToCTime' : definition of dllimport function not allowed Error executing clarm.exe. I deactivated ?timemodule.c? to see what happen A pythoncore.lib was asked again but this time, I defined in the compiler option USE_DL_EXPORT and EVC4 tried to generate the library :=) But the following link error occurred: Linking... Creating library ARMV4Rel/pythoncore.lib and object ARMV4Rel/pythoncore.exp _randommodule.obj : error LNK2019: unresolved external symbol time referenced in function random_seed selectmodule.obj : error LNK2019: unresolved external symbol select referenced in function select_select socketmodule.obj : error LNK2001: unresolved external symbol select selectmodule.obj : error LNK2019: unresolved external symbol __WSAFDIsSet referenced in function list2set socketmodule.obj : error LNK2001: unresolved external symbol __WSAFDIsSet socketmodule.obj : error LNK2019: unresolved external symbol htons referenced in function fake_getaddrinfo socketmodule.obj : error LNK2019: unresolved external symbol gethostbyaddr referenced in function get_name socketmodule.obj : error LNK2019: unresolved external symbol gethostbyname referenced in function get_addr socketmodule.obj : error LNK2019: unresolved external symbol ntohs referenced in function fake_getnameinfo socketmodule.obj : error LNK2019: unresolved external symbol ioctlsocket referenced in function internal_setblocking socketmodule.obj : error LNK2019: unresolved external symbol closesocket referenced in function sock_accept socketmodule.obj : error LNK2019: unresolved external symbol accept referenced in function sock_accept socketmodule.obj : error LNK2019: unresolved external symbol setsockopt referenced in function sock_setsockopt socketmodule.obj : error LNK2019: unresolved external symbol getsockopt referenced in function sock_getsockopt socketmodule.obj : error LNK2019: unresolved external symbol bind referenced in function sock_bind socketmodule.obj : error LNK2019: unresolved external symbol htonl referenced in function setipaddr socketmodule.obj : error LNK2019: unresolved external symbol connect referenced in function internal_connect socketmodule.obj : error LNK2019: unresolved external symbol getsockname referenced in function sock_getsockname socketmodule.obj : error LNK2019: unresolved external symbol getpeername referenced in function sock_getpeername socketmodule.obj : error LNK2019: unresolved external symbol listen referenced in function sock_listen socketmodule.obj : error LNK2019: unresolved external symbol recv referenced in function sock_recv socketmodule.obj : error LNK2019: unresolved external symbol recvfrom referenced in function sock_recvfrom socketmodule.obj : error LNK2019: unresolved external symbol send referenced in function sock_send socketmodule.obj : error LNK2019: unresolved external symbol sendto referenced in function sock_sendto socketmodule.obj : error LNK2019: unresolved external symbol shutdown referenced in function sock_shutdown socketmodule.obj : error LNK2019: unresolved external symbol socket referenced in function sock_initobj socketmodule.obj : error LNK2019: unresolved external symbol gethostname referenced in function socket_gethostname socketmodule.obj : error LNK2019: unresolved external symbol ntohl referenced in function socket_ntohl socketmodule.obj : error LNK2019: unresolved external symbol inet_addr referenced in function socket_inet_aton socketmodule.obj : error LNK2019: unresolved external symbol inet_ntoa referenced in function socket_inet_ntoa socketmodule.obj : error LNK2019: unresolved external symbol WSAStartup referenced in function os_init zipimport.obj : error LNK2019: unresolved external symbol mktime referenced in function parse_dostime config.obj : error LNK2001: unresolved external symbol inittime getmtime.obj : error LNK2019: unresolved external symbol PyCE_FileTimeToUnixTime referenced in function PyOS_GetLastModificationTime thread.obj : error LNK2019: unresolved external symbol _beginthread referenced in function PyThread_start_new_thread thread.obj : error LNK2019: unresolved external symbol _endthread referenced in function do_PyThread_exit_thread ARMV4Rel/pythoncore.dll : fatal error LNK1120: 34 unresolved externals Error executing link.exe. pythoncore.dll - 37 error(s), 0 warning(s) Can someone who already generated both dll and lib give me some advise to compile pythonCE :=) It seems that all these functions are not defined but called Thanks a lot for your support and sorry for all these basic questions. Salvatore PS: Gonzalo, I will also try your library but I also need libraries for all machines and emulator. But your library can help me to continue to work on Blender! Thanks again! > Howto make a .lib file from a .dll > > http://sapdb.2scale.net/moin.cgi/MS_20C_2b_2b_20Toolkit > > Not sure if it works for EVT. > > So, it seems that the released Python for ARM binary does include .h > files, but not .lib files? > > > Strange to have .h files in there. > > > On 30 Jun 2005 at 11:00, Salvatore Russo wrote: > > > Hallo Gonzalo, > > > > Thanks for your reply and your proposition. I tried all versions from: > > > > http://www.python.org/download/download_windows.html > > > > and finally choose this one: > > > > http://sourceforge.net/projects/pythonce > > > > I never found this python23.lib library indispensible to make python work in C. As I wrote, I generated this python23.dll file with the demonstration version of the progr> I will be very interested if you can send me your library for arm and also for emulator (if you have it) :=) Thanks! > > > > The best will be to include in http://sourceforge.net/projects/pythonce a folder: \lib with subfolders \arm and \x86emu and in each folder, both python23.dll and python23> > > If I have no choice, I will build a project for PythonCE and send it to the PythonCE project. But I don't know what should I include: there is no *.c files... maybe *pyc > > > Thanks for your Help, > > Salvatore > > > > > > > > > > > > > Hi Salvatore, > > > > > > I am Gonzalo Monz?n, an spanish programmer who did some tests with the > > > phyton for pocketpc... > > > > > > I'd need some time remember what and where do I downloaded and compiled > > > but finally I was succesfull with my testing. > > > > > > The fact is that on my Python23\PCbuild\WinCE path there is a > > > python23.lib... maybe is this the file you need? it is used on compiling > > > the python23.dll and it all works fine for me. I don't remember if it > > > did work fine on the emulator, I started having some issues and latter > > > begun failing on opening any compiled app. from EVC4 so I forget it as I > > > had a PocketPC on my left hand... > > > > > > If this is the file you need please reply me and I will send it. But I > > > think if you haven't got this file, maybe something is failing or you > > > failed uncompress the right file for python... > > > > > > Don't have you got a folder inside Python23 callled PCbuild with several > > > files and another folder called WinCE, where the .lib resides? -I have > > > checked for the file and it does exist too on other Python23's > > > folders... (/Python23/libs/) so I don't know if do I moved manually the > > > file from there. > > > > > > > > > Regards, > > > Gonzalo. > > > > > > Salvatore Russo escribi?: > > > > > > > Hello everyone, > > > > > > > > I am working on porting blender (www.blender3d.org > > > > ) for Pocketpc. Blender is written in C/C++ > > > > and is using Python. > > > > > > > > I downloaded "python-2.3.4-arm-HPC2000.zip", add in my includes all > > > > Python23 includes (with Python.h, etc...) but now, EVC4 is complaining > > > > because it is looking for a "python23.lib". > > > > > > > > I look everywhere but I was not able to find this library. I have a > > > > "Python23.dll" but no .lib. > > > > > > > > Does anyone have an id?e how can I continue :=) ?? > > > > > > > > Can Someone say me where I can find it? Or explain how can I obtain > > > > it? Or maybe easily send it to me :=) > > > > > > > > Thanks for your help, > > > > > > > > Salvatore > > > > > > > > > > > > > > > > /Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ;/ > > > > /3615 LAPOSTENET (0,34 /mn) ; t?l : 08 92 68 13 50 (0,34/mn)/ > > > > > > > >------------------------------------------------------------------------ > > > > > > > >_______________________________________________ > > > >PythonCE mailing list > > > >PythonCE at python.org > > > >http://mail.python.org/mailman/listinfo/pythonce > > > > > > > > > > > > > > > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; > > 3615 LAPOSTENET (0,34EUR/mn) ; t?l : 08 92 68 13 50 (0,34EUR/mn) > > > > > > > > > > > -- > Brad Clements, bkc at murkworks.com (315)268-1000 > http://www.murkworks.com > AOL-IM or SKYPE: BKClements > > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) From jsalter at cse.unsw.edu.au Tue Jul 5 10:17:30 2005 From: jsalter at cse.unsw.edu.au (James Salter) Date: Tue, 05 Jul 2005 18:17:30 +1000 Subject: [PythonCE] Python23.lib? In-Reply-To: References: Message-ID: <42CA421A.2040401@cse.unsw.edu.au> I dont know where you got that tux link, but the latest pythonCE sources are here http://fore.validus.com/~kashtan/ just follow the instructions Additionally, i needed to modify SDKROOT in wcearm.bat to point to c:\Program Files\Windows CE Tools, which seems to be the default install for evc4, but your mileage my vary. Generated the LIB file you've been searching for for the past week or whatever no problems. pretty simple.. James Salvatore Russo wrote: >Hello All, > >As I write yesterday, I download PythonCE source here: > >http://www.tux.org/pub/tux/pyce/archive/ > >And yesterday, I tried to compile them :=) It seems that everything is there. But I had some problems. I tried with the project ?pythoncore?. > >First, in evc/timemodule.c, there are these 6 errors probablly because of ?DL_IMPORT?: > >timemodule.c >E:\Infographie\Blender pour PocketPC\Librairies\PythonCE\Python avec Souces\pythonce23\src\PC\evt-ce\timemodule.c(14) : error C2491: 'PyCE_UnixTimeToFileTime' : definition of dllimport function not allowed >E:\Infographie\Blender pour PocketPC\Librairies\PythonCE\Python avec Souces\pythonce23\src\PC\evt-ce\timemodule.c(25) : error C2491: 'PyCE_UnixTimeToSystemTime' : definition of dllimport function not allowed >E:\Infographie\Blender pour PocketPC\Librairies\PythonCE\Python avec Souces\pythonce23\src\PC\evt-ce\timemodule.c(33) : error C2491: 'PyCE_FileTimeToUnixTime' : definition of dllimport function not allowed >E:\Infographie\Blender pour PocketPC\Librairies\PythonCE\Python avec Souces\pythonce23\src\PC\evt-ce\timemodule.c(42) : error C2491: 'PyCE_SystemTimeToUnixTime' : definition of dllimport function not allowed >E:\Infographie\Blender pour PocketPC\Librairies\PythonCE\Python avec Souces\pythonce23\src\PC\evt-ce\timemodule.c(50) : error C2491: 'PyCE_TimeStructToSystemTime' : definition of dllimport function not allowed >E:\Infographie\Blender pour PocketPC\Librairies\PythonCE\Python avec Souces\pythonce23\src\PC\evt-ce\timemodule.c(64) : error C2491: 'PyCE_SystemTimeToCTime' : definition of dllimport function not allowed >Error executing clarm.exe. > >I deactivated ?timemodule.c? to see what happen? A pythoncore.lib was asked again but this time, I defined in the compiler option USE_DL_EXPORT and EVC4 tried to generate the library :=) > >But the following link error occurred: > >Linking... > Creating library ARMV4Rel/pythoncore.lib and object ARMV4Rel/pythoncore.exp >_randommodule.obj : error LNK2019: unresolved external symbol time referenced in function random_seed >selectmodule.obj : error LNK2019: unresolved external symbol select referenced in function select_select >socketmodule.obj : error LNK2001: unresolved external symbol select >selectmodule.obj : error LNK2019: unresolved external symbol __WSAFDIsSet referenced in function list2set >socketmodule.obj : error LNK2001: unresolved external symbol __WSAFDIsSet >socketmodule.obj : error LNK2019: unresolved external symbol htons referenced in function fake_getaddrinfo >socketmodule.obj : error LNK2019: unresolved external symbol gethostbyaddr referenced in function get_name >socketmodule.obj : error LNK2019: unresolved external symbol gethostbyname referenced in function get_addr >socketmodule.obj : error LNK2019: unresolved external symbol ntohs referenced in function fake_getnameinfo >socketmodule.obj : error LNK2019: unresolved external symbol ioctlsocket referenced in function internal_setblocking >socketmodule.obj : error LNK2019: unresolved external symbol closesocket referenced in function sock_accept >socketmodule.obj : error LNK2019: unresolved external symbol accept referenced in function sock_accept >socketmodule.obj : error LNK2019: unresolved external symbol setsockopt referenced in function sock_setsockopt >socketmodule.obj : error LNK2019: unresolved external symbol getsockopt referenced in function sock_getsockopt >socketmodule.obj : error LNK2019: unresolved external symbol bind referenced in function sock_bind >socketmodule.obj : error LNK2019: unresolved external symbol htonl referenced in function setipaddr >socketmodule.obj : error LNK2019: unresolved external symbol connect referenced in function internal_connect >socketmodule.obj : error LNK2019: unresolved external symbol getsockname referenced in function sock_getsockname >socketmodule.obj : error LNK2019: unresolved external symbol getpeername referenced in function sock_getpeername >socketmodule.obj : error LNK2019: unresolved external symbol listen referenced in function sock_listen >socketmodule.obj : error LNK2019: unresolved external symbol recv referenced in function sock_recv >socketmodule.obj : error LNK2019: unresolved external symbol recvfrom referenced in function sock_recvfrom >socketmodule.obj : error LNK2019: unresolved external symbol send referenced in function sock_send >socketmodule.obj : error LNK2019: unresolved external symbol sendto referenced in function sock_sendto >socketmodule.obj : error LNK2019: unresolved external symbol shutdown referenced in function sock_shutdown >socketmodule.obj : error LNK2019: unresolved external symbol socket referenced in function sock_initobj >socketmodule.obj : error LNK2019: unresolved external symbol gethostname referenced in function socket_gethostname >socketmodule.obj : error LNK2019: unresolved external symbol ntohl referenced in function socket_ntohl >socketmodule.obj : error LNK2019: unresolved external symbol inet_addr referenced in function socket_inet_aton >socketmodule.obj : error LNK2019: unresolved external symbol inet_ntoa referenced in function socket_inet_ntoa >socketmodule.obj : error LNK2019: unresolved external symbol WSAStartup referenced in function os_init >zipimport.obj : error LNK2019: unresolved external symbol mktime referenced in function parse_dostime >config.obj : error LNK2001: unresolved external symbol inittime >getmtime.obj : error LNK2019: unresolved external symbol PyCE_FileTimeToUnixTime referenced in function PyOS_GetLastModificationTime >thread.obj : error LNK2019: unresolved external symbol _beginthread referenced in function PyThread_start_new_thread >thread.obj : error LNK2019: unresolved external symbol _endthread referenced in function do_PyThread_exit_thread >ARMV4Rel/pythoncore.dll : fatal error LNK1120: 34 unresolved externals >Error executing link.exe. > >pythoncore.dll - 37 error(s), 0 warning(s) > > >Can someone who already generated both dll and lib give me some advise to compile pythonCE :=) It seems that all these functions are not defined but called? > >Thanks a lot for your support and sorry for all these basic questions. > >Salvatore > >PS: Gonzalo, I will also try your library but I also need libraries for all machines and emulator. But your library can help me to continue to work on Blender! Thanks again! > > > > >>Howto make a .lib file from a .dll >> >>http://sapdb.2scale.net/moin.cgi/MS_20C_2b_2b_20Toolkit >> >>Not sure if it works for EVT. >> >>So, it seems that the released Python for ARM binary does include .h >>files, but not .lib files? >> >> >>Strange to have .h files in there. >> >> >>On 30 Jun 2005 at 11:00, Salvatore Russo wrote: >> >> >> >>>Hallo Gonzalo, >>> >>>Thanks for your reply and your proposition. I tried all versions from: >>> >>>http://www.python.org/download/download_windows.html >>> >>>and finally choose this one: >>> >>>http://sourceforge.net/projects/pythonce >>> >>>I never found this python23.lib library indispensible to make python work in C. As I wrote, I generated this python23.dll file with the demonstration version of the progr> I will be very interested if you can send me your library for arm and also for emulator (if you have it) :=) Thanks! >>> >>>The best will be to include in http://sourceforge.net/projects/pythonce a folder: \lib with subfolders \arm and \x86emu and in each folder, both python23.dll and python23> >>>If I have no choice, I will build a project for PythonCE and send it to the PythonCE project. But I don't know what should I include: there is no *.c files... maybe *pyc > >>>Thanks for your Help, >>>Salvatore >>> >>> >>> >>> >>> >>> >>> >>>>Hi Salvatore, >>>> >>>>I am Gonzalo Monz?n, an spanish programmer who did some tests with the >>>>phyton for pocketpc... >>>> >>>>I'd need some time remember what and where do I downloaded and compiled >>>>but finally I was succesfull with my testing. >>>> >>>>The fact is that on my Python23\PCbuild\WinCE path there is a >>>>python23.lib... maybe is this the file you need? it is used on compiling >>>>the python23.dll and it all works fine for me. I don't remember if it >>>>did work fine on the emulator, I started having some issues and latter >>>>begun failing on opening any compiled app. from EVC4 so I forget it as I >>>>had a PocketPC on my left hand... >>>> >>>>If this is the file you need please reply me and I will send it. But I >>>>think if you haven't got this file, maybe something is failing or you >>>>failed uncompress the right file for python... >>>> >>>>Don't have you got a folder inside Python23 callled PCbuild with several >>>>files and another folder called WinCE, where the .lib resides? -I have >>>>checked for the file and it does exist too on other Python23's >>>>folders... (/Python23/libs/) so I don't know if do I moved manually the >>>>file from there. >>>> >>>> >>>>Regards, >>>>Gonzalo. >>>> >>>>Salvatore Russo escribi?: >>>> >>>> >>>> >>>>>Hello everyone, >>>>> >>>>>I am working on porting blender (www.blender3d.org >>>>>) for Pocketpc. Blender is written in C/C++ >>>>>and is using Python. >>>>> >>>>>I downloaded "python-2.3.4-arm-HPC2000.zip", add in my includes all >>>>>Python23 includes (with Python.h, etc...) but now, EVC4 is complaining >>>>>because it is looking for a "python23.lib". >>>>> >>>>>I look everywhere but I was not able to find this library. I have a >>>>>"Python23.dll" but no .lib. >>>>> >>>>>Does anyone have an id?e how can I continue :=) ?? >>>>> >>>>>Can Someone say me where I can find it? Or explain how can I obtain >>>>>it? Or maybe easily send it to me :=) >>>>> >>>>>Thanks for your help, >>>>> >>>>>Salvatore >>>>> >>>>> >>>>> >>>>>/Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ;/ >>>>>/3615 LAPOSTENET (0,34 /mn) ; t?l : 08 92 68 13 50 (0,34/mn)/ >>>>> >>>>>------------------------------------------------------------------------ >>>>> >>>>>_______________________________________________ >>>>>PythonCE mailing list >>>>>PythonCE at python.org >>>>>http://mail.python.org/mailman/listinfo/pythonce >>>>> >>>>> >>>>> >>>>> >>>Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; >>>3615 LAPOSTENET (0,34EUR/mn) ; t?l : 08 92 68 13 50 (0,34EUR/mn) >>> >>> >>> >>> >>> >> >> >>-- >>Brad Clements, bkc at murkworks.com (315)268-1000 >>http://www.murkworks.com >>AOL-IM or SKYPE: BKClements >> >> >> >> > >Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; >3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) > > > >_______________________________________________ >PythonCE mailing list >PythonCE at python.org >http://mail.python.org/mailman/listinfo/pythonce > > From salvatore.russo at laposte.net Thu Jul 7 09:22:01 2005 From: salvatore.russo at laposte.net (Salvatore Russo) Date: Thu, 7 Jul 2005 09:22:01 +0200 Subject: [PythonCE] Python23.lib? Message-ID: Hello Everyone, I finally managed to compile PythonCE :=) Thank you everyone!!! So as a summary for people reading this post in the future. All relevant information can be found in the histoiry of this post or here :=): http://mail.python.org/pipermail/pythonce/2005-March/001025.html I send lot of time (really a lot!) with a stupid detail! If you classically installed python in "Program Files\Python24" for example, and basically define "PYTHONROOT= C:\Program Files\Python24" as a environment variable and run "nmake" as explained, it will not work! Then, you can spend lot of time (as I did!) trying to debug makefiles... it would be a very very bad idea :=) !!! The only thing you have to take care is to define PYTHONROOT like that: "PYTHONROOL= C:\Progra~1\Python24". Yes, command line don't like spaces... It seem obvious but I only wanted to share it. Thanks again for your help and lot of success to this project! Who knows, maybe I will succeed in porting Blender and we will have in our Pocketpc a 3D modeller scripted with PythonCE :=) Salvatore > I dont know where you got that tux link, but the latest pythonCE sources > are here > > http://fore.validus.com/~kashtan/ > > just follow the instructions > > Additionally, i needed to modify SDKROOT in wcearm.bat to point to > c:\Program Files\Windows CE Tools, which seems to be the default install > for evc4, but your mileage my vary. Generated the LIB file you've been > searching for for the past week or whatever no problems. > > pretty simple.. > > James > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonce/attachments/20050707/ee4ece64/attachment.htm From mdoukidis at gmail.com Thu Jul 7 11:38:52 2005 From: mdoukidis at gmail.com (Mark Doukidis) Date: Thu, 7 Jul 2005 17:38:52 +0800 Subject: [PythonCE] ImportError problem Message-ID: <8d85110405070702387c0a0aa1@mail.gmail.com> calling all python gurus... I have a PythonCE program that loads about 2.5MB of pickles (about 10 dictionaries with a total of 20,000 objects) that when running uses about 15MB of "storage". All works fine on the old IPAQ but I get the following error on the brand new Xda IIs with all its memory. time.strptime(datestr, '%d/%m/%y') File "binaries\lib\_strptime.py", line 18, in ? File "binaries\lib\calendar.py", line 8, in ? ImportError: DLL load failed: Not enough storage is available to complete this operation. I also get the same ImportError message at another point in the program where PyCrypto module is imported....if I have loaded my pickles. I have plenty of "free" storage. I have been thinking: - Are there other "limited" resources I am consuming ? - Does PythonCE need to be compiled especially for Windows Mobile Second Edition ? - Does DLL loading consume special resources (me think maybe) ? - Do XDAs have special requirements ? Any leads appreciated Mark Doukidis PythonCE obtained from: http://fore.validus.com/~kashtan/ Device details below: Xda IIs ===== About --------- Windows Mobile 2003 Second Edition Version 4.21.1088 (Build 14132) Memory: 125.77 MB Device Information -------------------------- ROM version: 1.12.62 WWE ROM date: 10/04/04 Radio version: 1.02.00 Protocol version: 1337.32 ExtROM version: 1.12.925 WWE h2210 (hp iPAQ) ============= About --------- Microsoft Pocket PC Version 4.20.0 (Build 14053) Memory: 57.09 MB Asset Viewer -------------------- Product Revision Level: A01 ROM Date: 03/01/04 ROM Revision: 1.10.07 ENG OS Version Windows CE 4.20 Bootstrap Version: 0.36 Bootloader Version: 1.08 From eckhardt at satorlaser.com Thu Jul 7 12:36:15 2005 From: eckhardt at satorlaser.com (Ulrich Eckhardt) Date: Thu, 7 Jul 2005 12:36:15 +0200 Subject: [PythonCE] ImportError problem In-Reply-To: <8d85110405070702387c0a0aa1@mail.gmail.com> References: <8d85110405070702387c0a0aa1@mail.gmail.com> Message-ID: <200507071236.15954.eckhardt@satorlaser.com> On Thursday 07 July 2005 11:38, Mark Doukidis wrote: > I have a PythonCE program that loads about 2.5MB of pickles > (about 10 dictionaries with a total of 20,000 objects) > that when running uses about 15MB of "storage". > [...] > ImportError: DLL load failed: Not enough storage is available to > complete this operation. > [...] > I have plenty of "free" storage. I have been thinking: > - Are there other "limited" resources I am consuming ? Windows CE<5 has a fixed limit of 32MiB memory for each process. CE5 has ~ twice that much, because it loads all DLLs into one such 32MiB range and each process into another. There are ways around it, but things like malloc() and free() don't do them automatically. > - Does PythonCE need to be compiled especially for Windows Mobile > Second Edition ? Dunno, maybe building it size-optimized would help. > - Does DLL loading consume special resources (me think maybe) ? Yes, memory. Also, the virtual load address is the same for each process, so this may present an additional overhead - I'm not that sure about the internals of CE. > - Do XDAs have special requirements ? No idea. Do smaller amounts of data also trigger this error? If so, I'd rule out memory shortage. Other than that, I'd use ProcessView[1] or similar to find out what's going on and who's using how much of memory; maybe just removing some unused parts is enough. I could dream up a few possible solutions, but I'm not really that confident with CE so I will shut up for now instead of pretending I knew stuff. Good luck, nonetheless. Uli [1] I don't remember the exact name, it's a tool that comes with evc4 or platform builder. From bkc at murkworks.com Thu Jul 7 15:48:22 2005 From: bkc at murkworks.com (Brad Clements) Date: Thu, 07 Jul 2005 09:48:22 -0400 Subject: [PythonCE] ImportError problem In-Reply-To: <8d85110405070702387c0a0aa1@mail.gmail.com> Message-ID: <42CCFA66.10858.3197560A@bkc.murkworks.com> On 7 Jul 2005 at 17:38, Mark Doukidis wrote: > calling all python gurus... > > I have a PythonCE program that loads about 2.5MB of pickles > (about 10 dictionaries with a total of 20,000 objects) > that when running uses about 15MB of "storage". are you using __slots__ ? That should help a lot with the bloat, that's what slots are designed for. > I have plenty of "free" storage. I have been thinking: Well, sounds like a lack of runtime memory, so you moved your slider over to maximize the runtime memory vs. storage? > - Are there other "limited" resources I am consuming ? ram > - Does PythonCE need to be compiled especially for Windows Mobile > Second Edition ? don't think so > - Does DLL loading consume special resources (me think maybe) ? ram > - Do XDAs have special requirements ? doubtful -- Brad Clements, bkc at murkworks.com (315)268-1000 http://www.murkworks.com AOL-IM or SKYPE: BKClements From mdoukidis at gmail.com Fri Jul 8 03:55:24 2005 From: mdoukidis at gmail.com (Mark Doukidis) Date: Fri, 8 Jul 2005 09:55:24 +0800 Subject: [PythonCE] ImportError problem In-Reply-To: <42CCFA66.10858.3197560A@bkc.murkworks.com> References: <8d85110405070702387c0a0aa1@mail.gmail.com> <42CCFA66.10858.3197560A@bkc.murkworks.com> Message-ID: <8d85110405070718556ead761d@mail.gmail.com> After further googling I found an interesting article: "Windows CE .NET Advanced Memory Management" http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncenet/html/advmemmgmt.asp Apparently DLL memory management has a few quirks. The following snipit, while referring to Pocket PC 2002, may still be relevant: "With corporate applications processing vast amounts of data, corporate developers are forced to use large databases in their Windows CE applications. Usually the database engine is implemented as a DLL and it is usually quite large. In the example above, the database DLL is the troublemaking DLL C. With the combination of less than 16 megabytes of virtual memory space available for a Pocket PC 2002 application and the requirements of large, RAM-based DLLs, many developers are discovering that their applications will not run due to lack of space?not RAM, but virtual memory space." Interestingly, I have overcome this error (probably temporarily): time.strptime(datestr, '%d/%m/%y') File "binaries\lib\_strptime.py", line 18, in ? File "binaries\lib\calendar.py", line 8, in ? ImportError: DLL load failed: Not enough storage is available to complete this operation. (where line 8 in calendar.py is "import datetime", a DLL) by adding: import datetime to the beginning of my application code. The article above talks about various methods to tackle DLL problems. Maybe someone with a "CE" background can offer some comment in "PYTHONIC" terms about "virtual memory space" and DLL issues. Thanks for the pointer Ulrich. Mark Doukidis From brian at cococorp.com Fri Jul 8 04:20:12 2005 From: brian at cococorp.com (Brian Retford) Date: Thu, 7 Jul 2005 19:20:12 -0700 Subject: [PythonCE] ImportError problem In-Reply-To: <8d85110405070718556ead761d@mail.gmail.com> References: <8d85110405070702387c0a0aa1@mail.gmail.com> <42CCFA66.10858.3197560A@bkc.murkworks.com> <8d85110405070718556ead761d@mail.gmail.com> Message-ID: CE's memory model is a pile basically. All dll's are loaded into each process's 32mb virtual address space which reduces the amount of memory available for program use and for other DLL loading. It doesn't matter if your pda has 512mb of ram (none of them do, but just as an example), each process can only map 32mb of it. Wince has some other quirks that basically mean all dll's are loaded on 64kb boundaries, so every dll you import wastes on average 32kb of the already limited 32mb address space. I was able to get around this by a couple of things: a) explicitly preloading the DLL in the python.exe by calling LoadLibrary b) cutting things out of the dll to make it smaller c) integrating the module directly with the python.dll, eliminating the dll load overhead. This is the only way I've been able to get wxPython to work on CE at all. brian On Jul 7, 2005, at 6:55 PM, Mark Doukidis wrote: > After further googling I found an interesting article: > > "Windows CE .NET Advanced Memory Management" > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ > dncenet/html/advmemmgmt.asp > > Apparently DLL memory management has a few quirks. > > The following snipit, while referring to Pocket PC 2002, may still be > relevant: > > "With corporate applications processing vast amounts of data, > corporate developers are forced to use large databases in their > Windows CE applications. Usually the database engine is implemented as > a DLL and it is usually quite large. In the example above, the > database DLL is the troublemaking DLL C. With the combination of less > than 16 megabytes of virtual memory space available for a Pocket PC > 2002 application and the requirements of large, RAM-based DLLs, many > developers are discovering that their applications will not run due to > lack of space?not RAM, but virtual memory space." > > Interestingly, I have overcome this error (probably temporarily): > > time.strptime(datestr, '%d/%m/%y') > File "binaries\lib\_strptime.py", line 18, in ? > File "binaries\lib\calendar.py", line 8, in ? > ImportError: DLL load failed: Not enough storage is available to > complete this operation. > > (where line 8 in calendar.py is "import datetime", a DLL) > > by adding: > > import datetime > > to the beginning of my application code. > > The article above talks about various methods to tackle DLL problems. > Maybe someone with a "CE" background can offer some comment in > "PYTHONIC" terms > about "virtual memory space" and DLL issues. > > Thanks for the pointer Ulrich. > > Mark Doukidis > _______________________________________________ > PythonCE mailing list > PythonCE at python.org > http://mail.python.org/mailman/listinfo/pythonce From salvatore.russo at laposte.net Wed Jul 13 14:36:39 2005 From: salvatore.russo at laposte.net (Salvatore Russo) Date: Wed, 13 Jul 2005 14:36:39 +0200 Subject: [PythonCE] Python23.lib? Message-ID: Hello, I have an litttle problem :=) Everything compile fine for the ARM version... really fine! but when I tried the "nmake CGF=X86DEB", I have the following error (Of course I checked that my paths are the good ones... I've tried taking the mathmodule.c from python 2.3.4 and not 2.3.5 but it dosn't work). Thanks a lot for your help... Nevertheless, everything else is working good ;=) Salvatore mathmodule.c ..\..\Modules\mathmodule.c(97) : error C2152: 'function' : pointers to functions with different attributes ..\..\Modules\mathmodule.c(97) : warning C4024: 'math_1' : different types for f ormal and actual parameter 2 ..\..\Modules\mathmodule.c(99) : error C2152: 'function' : pointers to functions with different attributes ..\..\Modules\mathmodule.c(99) : warning C4024: 'math_1' : different types for f ormal and actual parameter 2 ..\..\Modules\mathmodule.c(101) : error C2152: 'function' : pointers to function s with different attributes ..\..\Modules\mathmodule.c(101) : warning C4024: 'math_1' : different types for formal and actual parameter 2 ..\..\Modules\mathmodule.c(104) : error C2152: 'function' : pointers to function s with different attributes ..\..\Modules\mathmodule.c(104) : warning C4024: 'math_2' : different types for formal and actual parameter 2 ..\..\Modules\mathmodule.c(107) : error C2152: 'function' : pointers to function s with different attributes ..\..\Modules\mathmodule.c(107) : warning C4024: 'math_1' : different types for formal and actual parameter 2 ..\..\Modules\mathmodule.c(109) : error C2152: 'function' : pointers to function s with different attributes ..\..\Modules\mathmodule.c(109) : warning C4024: 'math_1' : different types for formal and actual parameter 2 ..\..\Modules\mathmodule.c(111) : error C2152: 'function' : pointers to function s with different attributes ..\..\Modules\mathmodule.c(111) : warning C4024: 'math_1' : different types for formal and actual parameter 2 ..\..\Modules\mathmodule.c(113) : error C2152: 'function' : pointers to function s with different attributes ..\..\Modules\mathmodule.c(113) : warning C4024: 'math_1' : different types for formal and actual parameter 2 ..\..\Modules\mathmodule.c(115) : error C2152: 'function' : pointers to function s with different attributes ..\..\Modules\mathmodule.c(115) : warning C4024: 'math_1' : different types for formal and actual parameter 2 ..\..\Modules\mathmodule.c(118) : error C2152: 'function' : pointers to function s with different attributes ..\..\Modules\mathmodule.c(118) : warning C4024: 'math_1' : different types for formal and actual parameter 2 ..\..\Modules\mathmodule.c(121) : error C2152: 'function' : pointers to function s with different attributes ..\..\Modules\mathmodule.c(121) : warning C4024: 'math_2' : different types for formal and actual parameter 2 ..\..\Modules\mathmodule.c(123) : error C2152: 'function' : pointers to function s with different attributes ..\..\Modules\mathmodule.c(123) : warning C4024: 'math_2' : different types for formal and actual parameter 2 ..\..\Modules\mathmodule.c(129) : error C2152: 'function' : pointers to function s with different attributes ..\..\Modules\mathmodule.c(129) : warning C4024: 'math_2' : different types for formal and actual parameter 2 ..\..\Modules\mathmodule.c(132) : error C2152: 'function' : pointers to function s with different attributes ..\..\Modules\mathmodule.c(132) : warning C4024: 'math_1' : different types for formal and actual parameter 2 ..\..\Modules\mathmodule.c(134) : error C2152: 'function' : pointers to function s with different attributes ..\..\Modules\mathmodule.c(134) : warning C4024: 'math_1' : different types for formal and actual parameter 2 ..\..\Modules\mathmodule.c(136) : error C2152: 'function' : pointers to function s with different attributes ..\..\Modules\mathmodule.c(136) : warning C4024: 'math_1' : different types for formal and actual parameter 2 ..\..\Modules\mathmodule.c(138) : error C2152: 'function' : pointers to function s with different attributes ..\..\Modules\mathmodule.c(138) : warning C4024: 'math_1' : different types for formal and actual parameter 2 ..\..\Modules\mathmodule.c(140) : error C2152: 'function' : pointers to function s with different attributes ..\..\Modules\mathmodule.c(140) : warning C4024: 'math_1' : different types for formal and actual parameter 2 ..\..\Modules\mathmodule.c(260) : error C2152: 'function' : pointers to function s with different attributes ..\..\Modules\mathmodule.c(260) : warning C4024: 'loghelper' : different types f or formal and actual parameter 2 ..\..\Modules\mathmodule.c(267) : error C2152: 'function' : pointers to function s with different attributes ..\..\Modules\mathmodule.c(267) : warning C4024: 'loghelper' : different types f or formal and actual parameter 2 ..\..\Modules\mathmodule.c(279) : error C2152: 'function' : pointers to function s with different attributes ..\..\Modules\mathmodule.c(279) : warning C4024: 'loghelper' : different types f or formal and actual parameter 2 ..\..\Modules\mathmodule.c(303) : error C2152: 'function' : pointers to function s with different attributes ..\..\Modules\mathmodule.c(303) : warning C4024: 'loghelper' : different types f or formal and actual parameter 2 NMAKE : fatal error U1077: 'cl.exe' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files\Microsoft eMbedded C++ 4.0\COMMON\ EVC\bin\NMAKE.EXE"' : return code '0x2' Stop. > I dont know where you got that tux link, but the latest pythonCE sources > are here > > http://fore.validus.com/~kashtan/ > > just follow the instructions > > Additionally, i needed to modify SDKROOT in wcearm.bat to point to > c:\Program Files\Windows CE Tools, which seems to be the default install > for evc4, but your mileage my vary. Generated the LIB file you've been > searching for for the past week or whatever no problems. > > pretty simple.. > > James > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonce/attachments/20050713/6f3b0c12/attachment.htm From kitsune_e at yahoo.com Thu Jul 21 22:43:43 2005 From: kitsune_e at yahoo.com (Ed Blake) Date: Thu, 21 Jul 2005 13:43:43 -0700 (PDT) Subject: [PythonCE] IdleCE v1.0a Message-ID: <20050721204343.23838.qmail@web50206.mail.yahoo.com> It's been a while since I messed with this thing, but yesterday I opened up my outline and had a look around. Before I knew it I had fixed some problems and coded most of the features in the todo list. I also discovered that the code is kind of a mess. In fact I think Leo is the only reason I was able to get anywhere with it. If I spent some time and did a full re-write I could probably make something much nicer/more functional/easier to maintain. Unfortunatly I'm too lazy to do a re-write any time soon. I also have a couple of other projects I want to work on so... New features: A notebook style interface with an editor 'tab' and a clipboard 'tab'. Added finder, goto line, and indent width dialogs. Added some padding to the edge of the editor. Running a file should work better (except no Tk programs). Known bugs: A newline is added every time you save your file. Triple quotes are only displayed correctly about 10% of the time. There may be some problems with events/keybindings (tab/shift-tab). ctrl-c/x/v probably don't work right, use the popup/edit menu. Non-ascii characters are generate occasionally. Future features: The main two complaints I have are that the file dialogs don't store the previous directory used, and the lack of a recent files list. If any body else has complaints I'll definitely consider them, but there will most likely be no new features until v2.0 (re-write). Notes: To put something from the clipper onto the clipboard you double click it. Double click in the editor still pastes. Tapping a selection in the editor displays an edit menu. file>open doesn't ask if you want to save. Changing the indent width does not change the existing tab widths of a document. Other stuff I can't remember. As the version number shows this is still an alpha grade release. I've been using it to work on things, but I've also been working with copies. If you have something worth keeping back it up before editing it. If IdleCE bombs on you let me know when/why/how and I will try to fix it. Good luck! Script: http://kitsu.petesdomain.com/files/IdleCE.py Outline: http://kitsu.petesdomain.com/files/IdleCE.leo From kitsune_e at yahoo.com Thu Jul 21 22:48:25 2005 From: kitsune_e at yahoo.com (Ed Blake) Date: Thu, 21 Jul 2005 13:48:25 -0700 (PDT) Subject: [PythonCE] IdleCE oops Message-ID: <20050721204825.25101.qmail@web50206.mail.yahoo.com> Links should be: http://kitsu.petesdomain.com/files/WinCE/IdleCE.py http://kitsu.petesdomain.com/files/WinCE/IdleCE.leo