Most recent edit on 2008-10-19 16:29:21 by MartinFischer
Additions:
- gtkhtml (might also be called libgtkhtml)
Deletions:
- gtkhtml / libgtkhtml
Edited on 2008-10-19 16:28:47 by MartinFischer
Additions:
- gtkhtml / libgtkhtml
Deletions:
- gtkhtml
Edited on 2008-07-08 19:38:08 by TimShead
Additions:
- You will need to install the following dependencies - I recommend using http://www.macports.org∞ to obtain them:
- GTK2
- gtkhtml
- gnome-icon-theme
Deletions:
- You will need to install GTK2 and gtkhtml ... I recommend using http://www.macports.org∞ to obtain these packages.
Edited on 2008-02-11 16:40:36 by BobBlackwell [Addedd reference to XTRKCAD_USE_GETTEXT]
Additions:
- Use XTRKCAD_USE_GETTEXT to add new locales (language translations). Choose "OFF" to use XTrackCAD's default language (English). Refre to http://www.xtrkcad.org/Wikka/Internationalization∞ for additional information.
Use XTRKCAD_USE_GETTEXT to add new locales (language translations). Choose "OFF" to use XTrackCAD's default language (English). Refre to http://www.xtrkcad.org/Wikka/Internationalization∞ for additional information.
Edited on 2008-01-17 21:26:28 by TimShead
Additions:
CategoryDevel
Edited on 2008-01-11 20:27:45 by TimShead
Additions:
- Run XTrkCAD by double-clicking its icon located in the install directory - for example: c:/Program Files/XTrkCAD/bin/xtrkcad.exe.
Deletions:
- Note: currently, the Windows binary does not search in the correct location for parameter files, you will have to move the contents of <install prefix>/xtrkcad/share to <install prefix>bin to run the program. This will not be necessary in the near future.
Run XTrkCAD from the install directory - for example, c:/Program Files/XTrkCAD/bin/xtrkcad.exe.
Edited on 2008-01-06 08:00:52 by BobBlackwell [Change the bullet reading ....press the "Generate" button... to read ....press the "OK" button...]
Additions:
- Once everything is configured to your satisfaction, press the "OK" button to generate project files for your build.
Deletions:
- Once everything is configured to your satisfaction, press the "Generate" button to generate project files for your build.
Edited on 2008-01-03 23:22:48 by TimShead
Additions:
$ ~/install/xtrkcad/bin/xtrkcad
Run XTrkCAD from the install directory - for example, c:/Program Files/XTrkCAD/bin/xtrkcad.exe.
Deletions:
$ ~/install/xtrkcad/bin/xtrackcad
Run XTrkCAD from the install directory - for example, c:/Program Files/XTrkCAD/bin/xtrackcad.exe.
Edited on 2008-01-03 22:29:51 by TimShead
Additions:
- Note: currently, the Windows binary does not search in the correct location for parameter files, you will have to move the contents of <install prefix>/xtrkcad/share to <install prefix>bin to run the program. This will not be necessary in the near future.
With some minor changes to the GTK back-end (there are a few places where the code is X11-specific), GTK / Cairo could be used on Windows for high-quality rendering (which is why the XTRKCAD_USE_GTK and XTRKCAD_USE_GTK_CAIRO options are available on Windows).
Deletions:
- We need to make some minor changes on all platforms so that the share directory is set through configuration instead of hard-coded.
With some minor changes to the GTK back-end (there are a few places where the code is X11-specific), GTK / Cairo could be used on Windows for high-quality rendering.
Edited on 2008-01-03 22:26:01 by TimShead
Additions:
- Run the installed binary:
$ ~/install/xtrkcad/bin/xtrackcad
Deletions:
- Run the installed binary. XTrkCAD currently hard-codes the location of shared resources to /usr/lib/xtrkcad or /usr/local/lib/xtrkcad, so specify the share directory using an environment variable:
$ XTRKCADLIB=~/install/xtrkcad/share ~/install/xtrkcad/bin/xtrackcad
Edited on 2008-01-03 21:42:54 by TimShead
Additions:
- Run XTrkCAD from the install directory - for example, c:/Program Files/XTrkCAD/bin/xtrackcad.exe.
Deletions:
- Run XTrkCAD from the install directory - for example, c:/program files/xtrkcad/bin/xtrackcad.exe.
Edited on 2008-01-03 21:42:27 by TimShead
Additions:
- Specify the source and build directories in the CMake window. You must provide a build directory outside the source tree - I use "c:/build/xtrkcad".
- Press the "Configure" button to configure the build. You will be prompted for the type of build to generate. Choose your desired tool - I used "Visual Studio 7 .Net 2003". After a few moments you will see three options to configure: CMAKE_INSTALL_PREFIX, XTRKCAD_USE_GTK, and XTRKCAD_USE_GTK_CAIRO.
- Use CMAKE_INSTALL_PREFIX to control where the software will be installed. The default "c:/Program Files/XTrkCAD" is a good choice.
- Compile XTrkCad using the new project files. For example, start MSVC and open the "XTrkCAD.sln" solution file which is located in your build directory.
Deletions:
- Specify the source and build directories in the CMake window. I assume that the build directory is located at "c:/build/xtrkcad".
Press the "Configure" button to configure the build. You will be prompted for the type of build to generate. I assume "MSVC .Net 2003". After a few moments you will see three options to configure: CMAKE_INSTALL_PREFIX, XTRKCAD_USE_GTK, and XTRKCAD_USE_GTK_CAIRO.
Use CMAKE_INSTALL_PREFIX to control where the software will be installed. For this example, I assume "c:/program files/xtrkcad".
Compile XTrkCad using the new project files. For example, start MSVC and open the new solution file which is located in your build directory.
Edited on 2008-01-03 20:41:18 by TimShead
Additions:
- Obtain the current sources from CVS; I assume that they are located at "~/src/xtrkcad".
Create a separate build directory; for these instructions I assume that your build directory is "~/build/xtrkcad".
Obtain the current sources from CVS; I assume that they are located at "c:/src/xtrkcad".
Use the Windows Start menu to run CMake.
Specify the source and build directories in the CMake window. I assume that the build directory is located at "c:/build/xtrkcad".
Press the "Configure" button to configure the build. You will be prompted for the type of build to generate. I assume "MSVC .Net 2003". After a few moments you will see three options to configure: CMAKE_INSTALL_PREFIX, XTRKCAD_USE_GTK, and XTRKCAD_USE_GTK_CAIRO.
Use CMAKE_INSTALL_PREFIX to control where the software will be installed. For this example, I assume "c:/program files/xtrkcad".
If you made any changes, press the "Configure" button again to update your new configuration.
Once everything is configured to your satisfaction, press the "Generate" button to generate project files for your build.
Compile XTrkCad using the new project files. For example, start MSVC and open the new solution file which is located in your build directory.
Build the "BUILD_ALL" project to build the software.
Build the "INSTALL" project to install the software.
Run XTrkCAD from the install directory - for example, c:/program files/xtrkcad/bin/xtrackcad.exe.
Deletions:
- Obtain the current sources from CVS; I assume that they are located at "~/src/xtrkcad"
Create a separate build directory; for these instructions I assume that your build directory is "~/build/xtrkcad"
Edited on 2008-01-03 20:32:05 by TimShead
Additions:
Overview
The following instructions detail building XTrackCAD using CMake. CMake is a cross-platform build system, available at http://www.cmake.org∞, that can be used to generate builds for a variety of build tools ranging from "make" to Visual Studio and XCode. Using CMake you can build XTrackCAD on Windows, GNU/Linux, and Mac OSX using the build tool(s) of your choice.
Building XTrkCAD on GNU/Linux
Building XTrkCAD on Mac OSX
- You will need to install GTK2 and gtkhtml ... I recommend using http://www.macports.org∞ to obtain these packages.
- Once the prerequisites are installed the build instructions are the same as for the GNU/Linux build, above.
Building XTrkCAD on Windows
Notes
- We need to make some minor changes on all platforms so that the share directory is set through configuration instead of hard-coded.
- With some minor changes to the GTK back-end (there are a few places where the code is X11-specific), GTK / Cairo could be used on Windows for high-quality rendering.
Deletions:
The following instructions apply to building XTrackCAD using the CMake build. CMake is a cross-platform make system, available at http://www.cmake.org∞
Note: as of this writing the CMake build works on GNU/Linux and MacOSX. With minor work it should be usable on Windows as-well.
Notes:
- We need to make some minor changes so that the share directory can be adjusted through configuration instead of hard-coded.
- Ideally, CMake should be used for the build on Windows, too. This shouldn't require very much work.
- With some minor changes to the GTK back-end (there are a few places where the code is X11-specific), GTK / Cairo can be used on Windows for high-quality rendering.
- To build XTrkCAD on OSX, you will need to install GTK+ ... I recommend using http://www.macports.org∞ to obtain an up-to-date GTK.
Edited on 2008-01-02 20:32:50 by TimShead
Additions:
- To build XTrkCAD on OSX, you will need to install GTK+ ... I recommend using http://www.macports.org∞ to obtain an up-to-date GTK.
Remember that to run XTrkCAD on OSX, you need to have X11 running with your DISPLAY set.
Edited on 2008-01-02 20:16:31 by TimShead
Additions:
- Ideally, CMake should be used for the build on Windows, too. This shouldn't require very much work.
With some minor changes to the GTK back-end (there are a few places where the code is X11-specific), GTK / Cairo can be used on Windows for high-quality rendering.
Edited on 2008-01-02 20:13:26 by TimShead
Additions:
- Obtain the current sources from CVS; I assume that they are located at "~/src/xtrkcad"
Create a separate build directory; for these instructions I assume that your build directory is "~/build/xtrkcad"
Run CMake from the build directory, passing it the path to the source directory:
$ cd ~/build/xtrkcad
$ ccmake ~/src/xtrkcad
- Press the "c" key to configure the build. After a few moments you will see four options to configure: CMAKE_BUILD_TYPE, CMAKE_INSTALL_PREFIX, XTRKCAD_USE_GTK, and XTRKCAD_USE_GTK_CAIRO.
- Use CMAKE_BUILD_TYPE to control the build type. Enter "Debug" for a debug build, "Release" for a release build, etc.
- Use CMAKE_INSTALL_PREFIX to control where the software will be installed. For this example, I assume "~/install/xtrkcad".
- Use XTRKCAD_USE_GTK to control the user-interface back-end. Choose "OFF" for Windows, "ON" for all other platforms.
- Use XTRKCAD_USE_GTK_CAIRO to enable optional high-quality antialiased Cairo rendering for the GTK back-end. This option has no effect unless you are using the GTK back-end.
- If you made any changes, press the "c" key again to update your new configuration.
- Once everything is configured to your satisfaction, press the "g" key to generate makefiles for your build.
- Compile XTrkCad using your new build:
- Install the new binary:
- Run the installed binary. XTrkCAD currently hard-codes the location of shared resources to /usr/lib/xtrkcad or /usr/local/lib/xtrkcad, so specify the share directory using an environment variable:
$ XTRKCADLIB=~/install/xtrkcad/share ~/install/xtrkcad/bin/xtrackcad
Notes:
- We need to make some minor changes so that the share directory can be adjusted through configuration instead of hard-coded.
Deletions:
1) Obtain the current sources from CVS, assume the default directory "xtrkcad"
Create a separate build directory, assume "xtrkcad-build"
Run CMake from your build directory, pointing it to the source directory:
$ cd xtrkcad-build
$ ccmake ~/xtrkcad
Configure and generate the sources, then build:
Run the new binary from the build tree:
$ XTRKCADLIB=~/xtrkcad/4.0.0/lib bin/xtrackcad
Install the new binary:
Note: when running the installed binary, you will have to point LD_LIBARY_PATH to the installation lib/ directory, and XTRKCADLIB to the installation share/ directory.
Edited on 2008-01-02 19:53:36 by TimShead
Additions:
The following instructions apply to building XTrackCAD using the CMake build. CMake is a cross-platform make system, available at http://www.cmake.org∞
Note: as of this writing the CMake build works on GNU/Linux and MacOSX. With minor work it should be usable on Windows as-well.
$ ccmake ~/xtrkcad
Deletions:
The following instructions apply to building XTrackCAD using the experimental CMake build. CMake is a cross-platform make system, available at http://www.cmake.org∞
Note: as of this writing the CMake build only works on GNU/Linux.
$ ccmake ~/xtrkcad/4.0.0
Edited on 2007-11-22 01:27:42 by MartinFischer [Removed spam]
Deletions:
c4trelladel
Oldest known version of this page was edited on 2007-11-21 13:26:21 by ErricLapas []
Page view:
c4trelladel
The following instructions apply to building
XTrackCAD using the experimental CMake build. CMake is a cross-platform make system, available at
http://www.cmake.org∞
Note: as of this writing the CMake build only works on GNU/Linux.
- Obtain the current sources from CVS, assume the default directory "xtrkcad"
- Create a separate build directory, assume "xtrkcad-build"
- Run CMake from your build directory, pointing it to the source directory:
$ cd xtrkcad-build
$ ccmake ~/xtrkcad/4.0.0
Configure and generate the sources, then build:
Run the new binary from the build tree:
$ XTRKCADLIB=~/xtrkcad/4.0.0/lib bin/xtrackcad
Install the new binary:
Note: when running the installed binary, you will have to point LD_LIBARY_PATH to the installation lib/ directory, and XTRKCADLIB to the installation share/ directory.