Compiling OWLNext using Microsoft Visual C++ 2008
For my readers: I´m writing this post in English, because it´ll be useful for people from other countries.
I was in trouble while trying to compile OwlNext using Visual C++ 9.0 ( or Visual C++ 2008). There´s a lack of documentation on Owlnext website and major documentation was written to help Borland C++ builder programmers. After spending some hours trying to make it work, I decided to write down the steps which I used and share with everybody.
Don´t expect to see here why I´m using Owlnext instead of using Native Windows Libraries or other third party libs, like QT. I´m just trying to make it compile under Visual C++
This tutorial solves some linker and include problems, like LINK : fatal error LNK1104: cannot open file ‘owl-62107-v9-dti.lib’ or LINK : fatal error LNK1104: cannot open file ‘owlvd.lib’ .
Hands on!
- Download full owlnext 6.20 and install it
- Download source and header files for owlnext and decompress on a folder called c:\owlsrc
- Create owlroot.ini under c:\owlsrc\source folder setting content as OWLROOT=”c:\owlsrc\source”
- Edit c:\owlsrc\owlcore\msc8owl.bat changing visual studio 8 path to visual studio 9 path
- Edit c:\owlsrc\include\owl\StackWalker.h on line 29 changing from_MSC_VER > 1400 to _MSC_VER > 1500
- Create a “lib” directory on the c:\owlsrc
- Grab owlv.lib from c:\owl\lib and paste onto c:\owlsrc\lib
- Open dos prompt, point to c:\owlsrc\source\owlcore and exec msc8owl.bat. Wait until compile and finish.
- Copy owlvd.lib generated by this compilation onto c:\owl\lib
- Download pre-compiled libs for Microsoft Visual C++ 2008 and paste onto c:\owl\lib
Now, you´re done. Open an mdi example, just to test . Take a look at c:\owl\examples\Apps\tabbar. On Microsoft Visual C++, set some variables to make it work:
Right click on project and then properties. Under C/C++ locate “Addition Include Directories” and type c:\owl\include. Do the same step for Resources/General/Additional Include Directories.
Now we need to add some linker parameters, to make the compiler locate owlnext libraries. Right click on project and then properties. Under link/general, find “Additional Library Directory” and type c:\owl\lib .
Compile and run. It must works perfectly!
Comment ? Post it here.
-Robson
Popularity: 7%







TWITTER
How about VS 2008 Express version
Hi James.
It was done under Express Edition
Olá amigo,
Eu nã consegui achar o arquivo owlv.lib no caminho c:\owl\lib.
Onde posso baixá-lo para concluir o procedimento?
Obrigado.
The new version of OWLNext 6.30 is ready!
You can make a post (a brazilian post I will prefer) about it!
Hello Sebastian,
For sure I will!
-Robson
Baixa no site da owl na seção de pre-compiled.
abs
I prefer to use the SetupOWLNext, then patch with the latest version and then build, but since I use OWLMaker to build the library, it’s pretty easy for me.
For a Visual C++ user it takes a litle more work since they need to use a msc8make.bat or similar.
Sebas
Hello,
The new version of the OWLMaker utility now supports Visual C++ (all versions).
http://owlnext.sourceforge.net/owlmaker.html
It should make building OWLNext 6.30 much easier.
[...] written few months ago, my adventure in owlnext´s world to compile it sucessfully under Visual C++ 2008. Fortunately, you dont need it [...]