Compiling NekoVM dll on win32 - compilation

Neko is a virtual machine for the Haxe languge. I am having some problem with compiling it on win32. The version in question is neko-1.8.1.tar.gz, which can be downloaded from http://nekovm.org/download.
There is a project file \neko-1.8.1\vm\nekovm_dll.vcproj which references gc.lib:
AdditionalDependencies="../libs/include/gc/gc.lib"
Also, some files, like alloc.c tries to #include "gc/gc.h". Both gc.lib and gc.h are missing from the source package. So, where are these files?
Thanks for your help!
(Please don't tell me that there are precompiled binaries. I don't need them.)

Those files are the references to the garbage collector, which by now is Boehm GC. You can download it from this link. From there you most probably will need to compile it on windows to get gc.dll and gc.lib .

Related

Recompiling goattracker2 on Windows 10

I recently downloaded goattracker2 on Windows 10 and after making some changes to the source code, I need to recompile the program to test it.
I don't have any experience with recompiling.
I had a look at the documentation included in the readme-file:
Recompiling
To recompile for Win32, you need the MinGW development environment,
use the file src/makefile.win as makefile.
To recompile for Linux, use src/makefile.
In both cases you need the SDL development libraries in addition to
the SDL runtime, see http://www.libsdl.org.
Compile first the utilities (datafile & dat2inc) from the src/bme
directory, and place them to your path.
This leaves me with several questions, like
Which programs do I need to download
How do I run or execute the makefile
Where do I need to install the SDL libraries
If anyone has experience with recompiling goattracker, can they provide a step by step tutorial for how to do it?
Get MinGW (I recommend 32bit version) and install.
Download and unpack the SDL Libraries from https://www.libsdl.org/ (depending on your version you might need SDL 1.x)
The SDL Libraries (the *.a files) have to be added in the lib directory of MinGW installation directory (this might be different from the lib dir of MinGW, see this issue)
The header files from SDL (SDL2/ directory MinGW) have to be put where MinGW can find them (this might be different from the include dir of MinGW, see this issue)
Go to the src directory of goattracker and type make -f makefile.win

How to compile a library that needs the java-1.?.0-openjdk-devel library on cygwin

Windows: XP 32-bit
Compiler/Environment/Terminal: Cygwin(Can't use any other one)
Ram: 512 MB(Downloading Visual Studio is impossible)
Problem: I need to compile this library, but it needs the "java-1.?.0-openjdk-devel" package, I have did some searching around and found no way to get this package on Cygwin without Visual Studio.
Is there's a way to install the "java-1.?.0-openjdk-devel" package on cygwin? If not, is there's a package that is similiar to it that can assist in compiling this library?
Found an HTML file talking on how to build java-1.?.0-openjdk-devel on Cygwin.
It should help. It explain what are the binaries you should need to build it.

MQX 4.0.1 program Not Compiled with GCC

I am using TWR-K20D72M and I opened a Sample program which is given in the MQX 4.0.1 Demo examples. When I choose Build tool option as Freescale
the program compiles OK but When I choose Build tool option as GCC It gives me error.The Error is below
error
Description
mingw32-make: *** No rule to make target `C:/Freescale/Freescale_MQX_4_0/lib/twrk20d72m.cw10gcc/debug/bsp/intflash.ld', needed by `explicit-dependencies'.
I read somewhere that The GCC can only work with MQX 4.0.1 and above so I am using MQX 4.0.1 .
Can some suggest me the reason for this error.How I can I remove this error.......
Thanks
You are missing the linker script file for your project intflash.ld.
Normally this file is located on
{mqx_install_dir}\mqx\source\bsp\{your_bsp_name}\gcc_cw
and is copied to
{mqx_install_dir}\lib\{your_bsp_name}.cw10gcc\debug\bsp
and
{mqx_install_dir}\lib\{your_bsp_name}.cw10gcc\release\bsp
after the build process by the scripts for your bsp, located on
{mqx_install_dir}\mqx\build\bat.
Take a look inside your bsp script and verify that intflash.ld is being copied correctly.
My guess is that you compiled your MQX application before compiling the BSP and PSP. With the release of CodeWarrior 4.6, the solution has gotten a bit easier through the use of .wsd files.
If you look at the FSL_MQX_getting_started.pdf, section 2.4 describes how to find a .wsd file which needs to be dragged into your CodeWarrior Project Explorer. Once this is done new projects will be added to your workspace. Compile the bsp_... and psp_... and any other libs that you require (usb, ethernet etc) which will generate binaries and the intflash.ld file in the correct location.
http://cache.freescale.com/files/soft_dev_tools/doc/support_info/FSL_MQX_Getting_Started.pdf

How to install Boost on Windows 7 with VS

So I am trying for whole day to integrate Boost with Visual Studio (2008) on Windows 7.
I firstly I went twice trough this How to use Boost in Visual Studio 2010.
I searched over all (there are at least 3 of them) simiral topics and none of them worked.
Some people proposed using this one : www.boostpro.com/download/ but link is not active.
Someone proposed to change runtime library to Multi-threaded DLL but is also didnt work.
I just try to include #include <boost/thread.hpp> and got this error
fatal error LNK1104: cannot open file 'libboost_thread-vc90-mt-s-1_53.lib'.
Before installing Boost the error was that it cannot find the thread.hpp so it seems like the Boost is installed somewhat correctly.
The problem is that the libraries were not build while I was using the tutorial. How can I build them manually?
There's no such thing like one-click boost install, you still need to do something manually. In your case it seems you need to compile Boost.Thread library and then add directory where resulting .lib file is to your library path. The link you provided looks pretty good. If you followed it probably you already built Boost.Thread. Make sure you did #6 from the second part.
There are prebuild binaries - installation packages:
http://sourceforge.net/projects/boost/files/boost-binaries/1.53.0/
Use this command:
bjam --build-dir=build-directory toolset=toolset-name --build-type=complete stage
this build the libraries manually. Then add the new directory to additional libraries path
as it is indicated in this link:
http://www.boost.org/doc/libs/1_43_0/more/getting_started/windows.html#or-build-binaries-from-source
I found this article quite helpful:
http://www.codeproject.com/Articles/11597/Building-Boost-libraries-for-Visual-Studio
The article explains how to build the build tool BJam (mainly by locating the boostrapper.bat)
How to build the libraries, e.g. bjam toolset=msvc-11.0 variant=debug threading=multi link=static (in this case the VS2012 multi-threaded, statically linked debug version).
It also features build batches, but I haven't tried them.
It has some additional information on how to specifiy the used C-Runtime

Fltk1.1 with MinGw?

I have a project that compiles in linux and I am now trying to compile it under MinGw in Windows 7. The project includes the fltk library. When I try to compile, I get the message that the FL/Fl.h file is not found -
GUIWindow.h:5:18: fatal error: FL/Fl.H: No such file or directory
compilation terminated
I downloaded the fltk 1.1 files and extracted them to my desktop. I went into the directory, configured, and compiled the files successfully. So what am I missing here to get this to install? I thought that with #include<>, if the library is installed correctly that it will find the files no matter where they are at. So what else is necessary under MinGw? Any help is appreciated.
Okay well I just cut the FL folder from the fltk folder and put it in MinGw/include. This compiles. If anyone can explain why just having #include works in linux but not in MinGw, I would be grateful.

Resources