Link error

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Link error

MrGwen
 
Hi,

I've a problem when I try to compile squeak to windows xp, when the
makefile try to create the squeak.exe it fails due to link error. Do
you have any idea of the problem ?

Cheers
Gwenael Casaccio
Reply | Threaded
Open this post in threaded view
|

Re: Link error

Mathieu SUEN

Hi,

Send us the output.

On Apr 25, 2008, at 3:32 PM, Gwenaël Casaccio wrote:

>
> Hi,
>
> I've a problem when I try to compile squeak to windows xp, when the
> makefile try to create the squeak.exe it fails due to link error. Do
> you have any idea of the problem ?
>
> Cheers
> Gwenael Casaccio

        Mth




Reply | Threaded
Open this post in threaded view
|

Re: Link error

MrGwen
 
I patch the vm with the callback plugin but i can compile squeak with
this patch under linux.

I send the output on the attached file.

On Fri, Apr 25, 2008 at 3:49 PM, Mathieu Suen <[hidden email]> wrote:

>
>  Hi,
>
>  Send us the output.
>
>
>
>  On Apr 25, 2008, at 3:32 PM, Gwenaël Casaccio wrote:
>
>
> >
> > Hi,
> >
> > I've a problem when I try to compile squeak to windows xp, when the
> > makefile try to create the squeak.exe it fails due to link error. Do
> > you have any idea of the problem ?
> >
> > Cheers
> > Gwenael Casaccio
> >
>
>         Mth
>
>
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Link error

Igor Stasenko
 
Seems like you forgot to generate VM sources with VMMaker.

2008/4/25 Gwenaël Casaccio <[hidden email]>:

>
> I patch the vm with the callback plugin but i can compile squeak with
>  this patch under linux.
>
>  I send the output on the attached file.
>
>  On Fri, Apr 25, 2008 at 3:49 PM, Mathieu Suen <[hidden email]> wrote:
>  >
>  >  Hi,
>  >
>  >  Send us the output.
>  >
>  >
>  >
>  >  On Apr 25, 2008, at 3:32 PM, Gwenaël Casaccio wrote:
>  >
>  >
>  > >
>  > > Hi,
>  > >
>  > > I've a problem when I try to compile squeak to windows xp, when the
>  > > makefile try to create the squeak.exe it fails due to link error. Do
>  > > you have any idea of the problem ?
>  > >
>  > > Cheers
>  > > Gwenael Casaccio
>  > >
>  >
>  >         Mth
>  >
>  >
>  >
>  >
>  >
>
>


--
Best regards,
Igor Stasenko AKA sig.
Reply | Threaded
Open this post in threaded view
|

Re: Link error

MrGwen

I've tried to regenerate the entire code but I've got the same error :

gcc -mwindows -o ./obj/vm/Squeak.exe ./obj/vm/sqWin32Alloc.o ./obj/vm/sqWin32Arg
s.o ./obj/vm/sqWin32DirectInput.o ./obj/vm/sqWin32Directory.o ./obj/vm/sqWin32Ex
ports.o ./obj/vm/sqWin32ExternalPrims.o ./obj/vm/sqWin32GUID.o ./obj/vm/sqWin32I
ntel.o ./obj/vm/sqWin32PluginSupport.o ./obj/vm/sqWin32Prefs.o ./obj/vm/sqWin32S
ervice.o ./obj/vm/sqWin32Stubs.o ./obj/vm/sqWin32Utils.o ./obj/vm/sqWin32Window.
o ./obj/vm/version.o ./obj/vm/sqNamedPrims.o ./obj/vm/sqVirtualMachine.o ./obj/v
m/Squeak.exp ./obj/vm/resource.o  -lddraw -ldinput -lopengl32 -lwsock32 -lcomdlg
32 -lole32 -lwinmm -lversion -luser32 -lgdi32 -lkernel32 -lcrtdll
./obj/vm/sqWin32Args.o: In function `IsImage':
//C/SqueakVM/platforms/win32/build/../../win32/vm/sqWin32Args.c:26: undefined re
ference to `sqImageFileOpen'
//C/SqueakVM/platforms/win32/build/../../win32/vm/sqWin32Args.c:28: undefined re
ference to `sqImageFileRead
...

Gwenael Casaccio

On Fri, Apr 25, 2008 at 4:59 PM, Igor Stasenko <[hidden email]> wrote:

>
> Seems like you forgot to generate VM sources with VMMaker.
>
>  2008/4/25 Gwenaël Casaccio <[hidden email]>:
>  >
>  > I patch the vm with the callback plugin but i can compile squeak with
>  >  this patch under linux.
>  >
>  >  I send the output on the attached file.
>  >
>  >  On Fri, Apr 25, 2008 at 3:49 PM, Mathieu Suen <[hidden email]> wrote:
>  >  >
>  >  >  Hi,
>  >  >
>  >  >  Send us the output.
>  >  >
>  >  >
>  >  >
>  >  >  On Apr 25, 2008, at 3:32 PM, Gwenaël Casaccio wrote:
>  >  >
>  >  >
>  >  > >
>  >  > > Hi,
>  >  > >
>  >  > > I've a problem when I try to compile squeak to windows xp, when the
>  >  > > makefile try to create the squeak.exe it fails due to link error. Do
>  >  > > you have any idea of the problem ?
>  >  > >
>  >  > > Cheers
>  >  > > Gwenael Casaccio
>  >  > >
>  >  >
>  >  >         Mth
>  >  >
>  >  >
>  >  >
>  >  >
>  >  >
>  >
>  >
>
>
>
>  --
>  Best regards,
>  Igor Stasenko AKA sig.
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Link error

MrGwen

There is also a strange behavior in the makefile it's certainly me but
I've seen that make creates the gnu-interp.c but it doesn't compile
gnu-interp.c but when I exec make Squeak.exe gnu-interp.c is compiled
but I've also the link errors :s

On Sat, Apr 26, 2008 at 3:47 PM, Gwenaël Casaccio <[hidden email]> wrote:

> I've tried to regenerate the entire code but I've got the same error :
>
>  gcc -mwindows -o ./obj/vm/Squeak.exe ./obj/vm/sqWin32Alloc.o ./obj/vm/sqWin32Arg
>  s.o ./obj/vm/sqWin32DirectInput.o ./obj/vm/sqWin32Directory.o ./obj/vm/sqWin32Ex
>  ports.o ./obj/vm/sqWin32ExternalPrims.o ./obj/vm/sqWin32GUID.o ./obj/vm/sqWin32I
>  ntel.o ./obj/vm/sqWin32PluginSupport.o ./obj/vm/sqWin32Prefs.o ./obj/vm/sqWin32S
>  ervice.o ./obj/vm/sqWin32Stubs.o ./obj/vm/sqWin32Utils.o ./obj/vm/sqWin32Window.
>  o ./obj/vm/version.o ./obj/vm/sqNamedPrims.o ./obj/vm/sqVirtualMachine.o ./obj/v
>  m/Squeak.exp ./obj/vm/resource.o  -lddraw -ldinput -lopengl32 -lwsock32 -lcomdlg
>  32 -lole32 -lwinmm -lversion -luser32 -lgdi32 -lkernel32 -lcrtdll
>  ./obj/vm/sqWin32Args.o: In function `IsImage':
>  //C/SqueakVM/platforms/win32/build/../../win32/vm/sqWin32Args.c:26: undefined re
>  ference to `sqImageFileOpen'
>  //C/SqueakVM/platforms/win32/build/../../win32/vm/sqWin32Args.c:28: undefined re
>  ference to `sqImageFileRead
>  ...
>
>  Gwenael Casaccio
>
>  On Fri, Apr 25, 2008 at 4:59 PM, Igor Stasenko <[hidden email]> wrote:
>  >
>  > Seems like you forgot to generate VM sources with VMMaker.
>  >
>  >  2008/4/25 Gwenaël Casaccio <[hidden email]>:
>
>
> >  >
>  >  > I patch the vm with the callback plugin but i can compile squeak with
>  >  >  this patch under linux.
>  >  >
>  >  >  I send the output on the attached file.
>  >  >
>  >  >  On Fri, Apr 25, 2008 at 3:49 PM, Mathieu Suen <[hidden email]> wrote:
>  >  >  >
>  >  >  >  Hi,
>  >  >  >
>  >  >  >  Send us the output.
>  >  >  >
>  >  >  >
>  >  >  >
>  >  >  >  On Apr 25, 2008, at 3:32 PM, Gwenaël Casaccio wrote:
>  >  >  >
>  >  >  >
>  >  >  > >
>  >  >  > > Hi,
>  >  >  > >
>  >  >  > > I've a problem when I try to compile squeak to windows xp, when the
>  >  >  > > makefile try to create the squeak.exe it fails due to link error. Do
>  >  >  > > you have any idea of the problem ?
>  >  >  > >
>  >  >  > > Cheers
>  >  >  > > Gwenael Casaccio
>  >  >  > >
>  >  >  >
>  >  >  >         Mth
>  >  >  >
>  >  >  >
>  >  >  >
>  >  >  >
>  >  >  >
>  >  >
>  >  >
>  >
>  >
>  >
>  >  --
>  >  Best regards,
>  >  Igor Stasenko AKA sig.
>  >
>  >
>
Reply | Threaded
Open this post in threaded view
|

Re: Link error

Igor Stasenko
In reply to this post by MrGwen
 
2008/4/26 Gwenaël Casaccio <[hidden email]>:

>
>  I've tried to regenerate the entire code but I've got the same error :
>
>  gcc -mwindows -o ./obj/vm/Squeak.exe ./obj/vm/sqWin32Alloc.o ./obj/vm/sqWin32Arg
>  s.o ./obj/vm/sqWin32DirectInput.o ./obj/vm/sqWin32Directory.o ./obj/vm/sqWin32Ex
>  ports.o ./obj/vm/sqWin32ExternalPrims.o ./obj/vm/sqWin32GUID.o ./obj/vm/sqWin32I
>  ntel.o ./obj/vm/sqWin32PluginSupport.o ./obj/vm/sqWin32Prefs.o ./obj/vm/sqWin32S
>  ervice.o ./obj/vm/sqWin32Stubs.o ./obj/vm/sqWin32Utils.o ./obj/vm/sqWin32Window.
>  o ./obj/vm/version.o ./obj/vm/sqNamedPrims.o ./obj/vm/sqVirtualMachine.o ./obj/v
>  m/Squeak.exp ./obj/vm/resource.o  -lddraw -ldinput -lopengl32 -lwsock32 -lcomdlg
>  32 -lole32 -lwinmm -lversion -luser32 -lgdi32 -lkernel32 -lcrtdll
>  ./obj/vm/sqWin32Args.o: In function `IsImage':
>  //C/SqueakVM/platforms/win32/build/../../win32/vm/sqWin32Args.c:26: undefined re
>  ference to `sqImageFileOpen'
>  //C/SqueakVM/platforms/win32/build/../../win32/vm/sqWin32Args.c:28: undefined re
>  ference to `sqImageFileRead
>  ...
>
The make file in platforms/win32/build/ is outdated. I tried to build
using it , but it looks like totally broken.
I'm using makefile in winbuild dir (located at same level as plaforms subdir).
And before building, don't forget to point VMMaker to winbuild/src  dir.

>  Gwenael Casaccio
>

--
Best regards,
Igor Stasenko AKA sig.
Reply | Threaded
Open this post in threaded view
|

Re: Link error

David T. Lewis
 
On Sat, Apr 26, 2008 at 08:20:17PM +0300, Igor Stasenko wrote:

>  
> 2008/4/26 Gwena??l Casaccio <[hidden email]>:
> >
> >  I've tried to regenerate the entire code but I've got the same error :
> >
> >  gcc -mwindows -o ./obj/vm/Squeak.exe ./obj/vm/sqWin32Alloc.o ./obj/vm/sqWin32Arg
> >  s.o ./obj/vm/sqWin32DirectInput.o ./obj/vm/sqWin32Directory.o ./obj/vm/sqWin32Ex
> >  ports.o ./obj/vm/sqWin32ExternalPrims.o ./obj/vm/sqWin32GUID.o ./obj/vm/sqWin32I
> >  ntel.o ./obj/vm/sqWin32PluginSupport.o ./obj/vm/sqWin32Prefs.o ./obj/vm/sqWin32S
> >  ervice.o ./obj/vm/sqWin32Stubs.o ./obj/vm/sqWin32Utils.o ./obj/vm/sqWin32Window.
> >  o ./obj/vm/version.o ./obj/vm/sqNamedPrims.o ./obj/vm/sqVirtualMachine.o ./obj/v
> >  m/Squeak.exp ./obj/vm/resource.o  -lddraw -ldinput -lopengl32 -lwsock32 -lcomdlg
> >  32 -lole32 -lwinmm -lversion -luser32 -lgdi32 -lkernel32 -lcrtdll
> >  ./obj/vm/sqWin32Args.o: In function `IsImage':
> >  //C/SqueakVM/platforms/win32/build/../../win32/vm/sqWin32Args.c:26: undefined re
> >  ference to `sqImageFileOpen'
> >  //C/SqueakVM/platforms/win32/build/../../win32/vm/sqWin32Args.c:28: undefined re
> >  ference to `sqImageFileRead
> >  ...
> >
> The make file in platforms/win32/build/ is outdated. I tried to build
> using it , but it looks like totally broken.
> I'm using makefile in winbuild dir (located at same level as plaforms subdir).
> And before building, don't forget to point VMMaker to winbuild/src  dir.
>

Igor,

I also am having difficulty with building on Windows. Could you please attach a
copy of the Makefile and Makefile.plugin that you are using?

Thanks a lot,

Dave

Reply | Threaded
Open this post in threaded view
|

Re: Link error

Igor Stasenko
 
Here the make files i'm using to build Exupery from command line.
Place them into winbuild dir and make sure to fix DXDIR before using them.

I'm not sure if they still working with latest VM sources (90% they will).
The version i'm using is a bit old (more than half of year).


2008/4/27 David T. Lewis <[hidden email]>:

>
>  On Sat, Apr 26, 2008 at 08:20:17PM +0300, Igor Stasenko wrote:
>  >
>  > 2008/4/26 Gwena??l Casaccio <[hidden email]>:
>
>
> > >
>  > >  I've tried to regenerate the entire code but I've got the same error :
>  > >
>  > >  gcc -mwindows -o ./obj/vm/Squeak.exe ./obj/vm/sqWin32Alloc.o ./obj/vm/sqWin32Arg
>  > >  s.o ./obj/vm/sqWin32DirectInput.o ./obj/vm/sqWin32Directory.o ./obj/vm/sqWin32Ex
>  > >  ports.o ./obj/vm/sqWin32ExternalPrims.o ./obj/vm/sqWin32GUID.o ./obj/vm/sqWin32I
>  > >  ntel.o ./obj/vm/sqWin32PluginSupport.o ./obj/vm/sqWin32Prefs.o ./obj/vm/sqWin32S
>  > >  ervice.o ./obj/vm/sqWin32Stubs.o ./obj/vm/sqWin32Utils.o ./obj/vm/sqWin32Window.
>  > >  o ./obj/vm/version.o ./obj/vm/sqNamedPrims.o ./obj/vm/sqVirtualMachine.o ./obj/v
>  > >  m/Squeak.exp ./obj/vm/resource.o  -lddraw -ldinput -lopengl32 -lwsock32 -lcomdlg
>  > >  32 -lole32 -lwinmm -lversion -luser32 -lgdi32 -lkernel32 -lcrtdll
>  > >  ./obj/vm/sqWin32Args.o: In function `IsImage':
>  > >  //C/SqueakVM/platforms/win32/build/../../win32/vm/sqWin32Args.c:26: undefined re
>  > >  ference to `sqImageFileOpen'
>  > >  //C/SqueakVM/platforms/win32/build/../../win32/vm/sqWin32Args.c:28: undefined re
>  > >  ference to `sqImageFileRead
>  > >  ...
>  > >
>  > The make file in platforms/win32/build/ is outdated. I tried to build
>  > using it , but it looks like totally broken.
>  > I'm using makefile in winbuild dir (located at same level as plaforms subdir).
>  > And before building, don't forget to point VMMaker to winbuild/src  dir.
>  >
>
>  Igor,
>
>  I also am having difficulty with building on Windows. Could you please attach a
>  copy of the Makefile and Makefile.plugin that you are using?
>
>  Thanks a lot,
>
>  Dave
>
>


--
Best regards,
Igor Stasenko AKA sig.

winbuild-makefiles.zip (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Link error

David T. Lewis
 
On Sun, Apr 27, 2008 at 02:45:36AM +0300, Igor Stasenko wrote:
>  
> Here the make files i'm using to build Exupery from command line.
> Place them into winbuild dir and make sure to fix DXDIR before using them.

Thank you!