Re: [Vm-dev] CMake for Windows?

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

Re: [Vm-dev] CMake for Windows?

Geoffroy Couprie
Ping!

I know everyone is busy, but could someone test these CMake files? I
can't install a VM to build unix Squeak right now, but I'll do it in
the future.

I just want to know if it's still possible to create unix squeak with
these files :)

On Sat, Apr 17, 2010 at 1:23 AM, Geoffroy Couprie <[hidden email]> wrote:

> Hello,
>
> You'll find my work on the CMake files at
> http://eleves.ec-lille.fr/~couprieg/divers/patches.zip
>
> I put a CMakeLists.txt file just under the platforms/ directory, along
> with the cmake/ directory. These files are based on the unix ones. I
> modified them to change the source directory depending on the
> platform. I also modified the configure file accordingly, but i
> commented the code using subversion for my convenience during
> development (feel free to change it back).
>
> These CMake files are not perfect, it's just the beginning. First, I
> want to make sure that the unix port still builds with my file, and
> then, I'll go on with the config.cmake and build.cmake files for the
> plugins, and I'll clean CMakeLists.txt  a bit.
>
> Feel free to comment, but note that I'm beginning with CMake, and that
> I don't write bash code very often. And please, try it with the unix
> port. I don't want to break everything :)
>
> Anyway, it works for me here (I can build a VM on Windows with the
> File, Security, LargeIntegers and MiscPrimitive plugins using
> MSYS+MinGW).
>
> Best regards,
>
> Geoffroy
>

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: [Vm-dev] CMake for Windows?

laurent laffont
On linux, configure fails:

-- Configuring done
CMake Error in CMakeLists.txt:
  Cannot find source file "aio.c".  Tried extensions .c .C .c++ .cc .cpp .cxx
  .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx

aio.c is in .unix/vm/aio.c

Cheers,

Laurent Laffont


On Thu, Apr 22, 2010 at 7:23 AM, Geoffroy Couprie <[hidden email]> wrote:

Ping!

I know everyone is busy, but could someone test these CMake files? I
can't install a VM to build unix Squeak right now, but I'll do it in
the future.

I just want to know if it's still possible to create unix squeak with
these files :)

On Sat, Apr 17, 2010 at 1:23 AM, Geoffroy Couprie <[hidden email]> wrote:
> Hello,
>
> You'll find my work on the CMake files at
> http://eleves.ec-lille.fr/~couprieg/divers/patches.zip
>
> I put a CMakeLists.txt file just under the platforms/ directory, along
> with the cmake/ directory. These files are based on the unix ones. I
> modified them to change the source directory depending on the
> platform. I also modified the configure file accordingly, but i
> commented the code using subversion for my convenience during
> development (feel free to change it back).
>
> These CMake files are not perfect, it's just the beginning. First, I
> want to make sure that the unix port still builds with my file, and
> then, I'll go on with the config.cmake and build.cmake files for the
> plugins, and I'll clean CMakeLists.txt  a bit.
>
> Feel free to comment, but note that I'm beginning with CMake, and that
> I don't write bash code very often. And please, try it with the unix
> port. I don't want to break everything :)
>
> Anyway, it works for me here (I can build a VM on Windows with the
> File, Security, LargeIntegers and MiscPrimitive plugins using
> MSYS+MinGW).
>
> Best regards,
>
> Geoffroy
>


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: [Vm-dev] CMake for Windows?

Mariano Martinez Peck


On Sun, May 16, 2010 at 11:15 PM, Geoffroy Couprie <[hidden email]> wrote:

Hello,

Here is the latest set of files for CMake:
http://eleves.ec-lille.fr/~couprieg/divers/changes-16-05-10.tar.gz
(you have to remove platforms/win32/vm/config.h to make it build)

I tried to remove the dependency on the Squeak-win2-tools package. The
Direct3D code still uses a lot of DirectX 7 structures, and the recent
MinGW toolchain provides DirectX 8, so the B3DAccelerator plugin
doesn't build right now. If it's ok, I'll send other patches to make
it work with the new version. Otherwise, it's possible to modify
config.cmake for B3DAccelerator to use DirectX 7.

Could these patches be included now? The Unix VM builds without any
problem, so it can become the main way to build it (just replace
platforms/unix/cmake/configure by platforms/cmake/configure in the
tutorials). There may still be some problems with the Windows build,
but I'll send more patches once these are pushed in the svn :)


Hi Geoffroy. This is cool work. I cannot help you in the details of how to commit that in SVN as I have no idea. Listen to David.

Now...I have a couple of ideas:

1) regardless that, it would be really really cool if you can document all this in the pharo collaborative book. As you can see there is already a chapter for VM

http://book.pharo-project.org/book/Virtual-Machine/

and the windows part is empty: http://book.pharo-project.org/book/Virtual-Machine/Building/BuildVMOnWindows/

So...we can write the two possibilities to compile in Windows: the standard one and this new one using CMake.
You can start writing the one of CMake :)
If you want, please just let us know and we create a user for you.

2) In addition, I think it would be a good idea to have a Git for scripts for the VM. If Squeak VM developers like them, they can also include it in the svn.

Laurent Laffont already has a git repository with scripts like easy_squeakvm or something like that. So, you may want to commit your code there too.

3) What about integrating like easy_squeakvm  with this ?  or do a easy_squeakvm  version of CMake for winwows ?  I would love to do for example:

./easy_squeakvm.sh --os=Windows  or ./easy_squeakvm.sh --os=Unix  

4) Would be  really great to have a Screencast about how to compile windows with CMake :)

Cheers and continue pushing.

Mariano

 
Best regards,

Geoffroy


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: [Vm-dev] CMake for Windows?

laurent laffont
easy_squeakvm here http://github.com/lolgzs/easy_squeakvm.

It's github so you can fork it easily (I would love squeakvm sources on github :). Don't hesitate to ask for write access.

Cheers,

Laurent Laffont

http://pharocasts.blogspot.com/
http://magaloma.blogspot.com/


On Mon, May 17, 2010 at 5:37 PM, Mariano Martinez Peck <[hidden email]> wrote:


On Sun, May 16, 2010 at 11:15 PM, Geoffroy Couprie <[hidden email]> wrote:

Hello,

Here is the latest set of files for CMake:
http://eleves.ec-lille.fr/~couprieg/divers/changes-16-05-10.tar.gz
(you have to remove platforms/win32/vm/config.h to make it build)

I tried to remove the dependency on the Squeak-win2-tools package. The
Direct3D code still uses a lot of DirectX 7 structures, and the recent
MinGW toolchain provides DirectX 8, so the B3DAccelerator plugin
doesn't build right now. If it's ok, I'll send other patches to make
it work with the new version. Otherwise, it's possible to modify
config.cmake for B3DAccelerator to use DirectX 7.

Could these patches be included now? The Unix VM builds without any
problem, so it can become the main way to build it (just replace
platforms/unix/cmake/configure by platforms/cmake/configure in the
tutorials). There may still be some problems with the Windows build,
but I'll send more patches once these are pushed in the svn :)


Hi Geoffroy. This is cool work. I cannot help you in the details of how to commit that in SVN as I have no idea. Listen to David.

Now...I have a couple of ideas:

1) regardless that, it would be really really cool if you can document all this in the pharo collaborative book. As you can see there is already a chapter for VM

http://book.pharo-project.org/book/Virtual-Machine/

and the windows part is empty: http://book.pharo-project.org/book/Virtual-Machine/Building/BuildVMOnWindows/

So...we can write the two possibilities to compile in Windows: the standard one and this new one using CMake.
You can start writing the one of CMake :)
If you want, please just let us know and we create a user for you.

2) In addition, I think it would be a good idea to have a Git for scripts for the VM. If Squeak VM developers like them, they can also include it in the svn.

Laurent Laffont already has a git repository with scripts like easy_squeakvm or something like that. So, you may want to commit your code there too.

3) What about integrating like easy_squeakvm  with this ?  or do a easy_squeakvm  version of CMake for winwows ?  I would love to do for example:

./easy_squeakvm.sh --os=Windows  or ./easy_squeakvm.sh --os=Unix  

4) Would be  really great to have a Screencast about how to compile windows with CMake :)

Cheers and continue pushing.

Mariano

 
Best regards,

Geoffroy



_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project