[PythonCE] Python23.lib?

Salvatore Russo salvatore.russo at laposte.net
Tue Jul 5 09:05:00 CEST 2005


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)





More information about the PythonCE mailing list