Link error

View: New views
10 Messages — Rating Filter:   Alert me  

Link error

by Gwenaël Casaccio :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 
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

Re: Link error

by Mathieu SUEN :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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





Re: Link error

by Gwenaël Casaccio :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 
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 <mathk.sue@...> 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
>
>
>
>
>


Re: Link error

by Igor Stasenko :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 
Seems like you forgot to generate VM sources with VMMaker.

2008/4/25 Gwenaël Casaccio <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 <mathk.sue@...> 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.

Re: Link error

by Gwenaël Casaccio :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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 <siguctua@...> wrote:

>
> Seems like you forgot to generate VM sources with VMMaker.
>
>  2008/4/25 Gwenaël Casaccio <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 <mathk.sue@...> 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.
>
>

Re: Link error

by Gwenaël Casaccio :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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 <mrgwen@...> 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 <siguctua@...> wrote:
>  >
>  > Seems like you forgot to generate VM sources with VMMaker.
>  >
>  >  2008/4/25 Gwenaël Casaccio <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 <mathk.sue@...> 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.
>  >
>  >
>

Re: Link error

by Igor Stasenko :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 
2008/4/26 Gwenaël Casaccio <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
>  ...
>
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.

Re: Link error

by David T. Lewis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

>  
> 2008/4/26 Gwena??l Casaccio <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
> >  ...
> >
> 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


Re: Link error

by Igor Stasenko :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 
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 <lewis@...>:

>
>  On Sat, Apr 26, 2008 at 08:20:17PM +0300, Igor Stasenko wrote:
>  >
>  > 2008/4/26 Gwena??l Casaccio <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
>  > >  ...
>  > >
>  > 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

Re: Link error

by David T. Lewis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 
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!