Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>FLTK 1.3.0</p> <p>Ok, I've finally gotten a solution to this (after about 12 hours) - </p> <p>Part 1 - Building FLTK</p> <ol> <li>Download fltk-1.3.0 and extract it. </li> <li>Copy the contained fltk-1.3.0 folder to C:\ (you can use another location, but you'll have to change some of the commands).</li> <li>Go into C:\fltk-1.3.0\ide\VisualC2010 and run fltk.sln</li> <li>Right click it and click build</li> <li>It should complete with no errors. If there are errors, I very much doubt this guide will help you.</li> <li>Once it's finished, you should be able to run it (will open windows).</li> </ol> <p>Part 2 - Running your own project Assuming the build went correctly, you can now follow these steps:</p> <ol> <li>Launch MSVC++2010</li> <li><p>File>New>Project - Select Win32 Project and name </p> <pre><code> FLTK-Test3 </code></pre></li> <li><p>Click next on the wizard then Application type: Keep as Windows application Additional Options: Empty project Click finish</p></li> <li><p>Right click source files on the solution explorer, add </p> <pre><code> FLTK-Test3.cpp </code></pre></li> <li><p>Right click FLTK-Test3 and go into properties</p> <p>a) Configuration Properties>C/C++>Command Line>Additional Options - add </p> <pre><code> /Ic:\fltk-1.3.0 </code></pre> <p>b) Configuration Properties>Linker>Input>Additional Dependencies> This is the hardest part, you need to add </p> <pre><code> c:\fltk-1.3.0\lib\fltkd.lib;wsock32.lib;comctl32.lib;c:\fltk-1.3.0\lib\fltkjpegd.lib;c:\fltk-1.3.0\lib\fltkimagesd.lib; </code></pre> <p>to the end of the line (replacing the #() information. My change resulted in this, yours might be different -</p> <pre><code> kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;c:\fltk-1.3.0\lib\fltkd.lib;wsock32.lib;comctl32.lib;c:\fltk-1.3.0\lib\fltkjpegd.lib;c:\fltk-1.3.0\lib\fltkimagesd.lib; </code></pre></li> </ol> <p>the 'd' at the end of the .lib file indicates debug, so for final build I think you are supposed to include the ones without the 'd'. So ..fltkjpeg.lib not ..jpegd.lib.</p> <p>If this section works properly, when you add the first #include line of the code, it shouldn't be underlined. If it is, theres a problem. </p> <p>c) You may also have to do this (if it doesnt run)</p> <p>Configuration Properties>Linker>Input>Ignore Specific Default Libraries></p> <pre><code> libcd.lib </code></pre> <ol> <li><p>Once all this has been completed, you should be able to add the full code below -</p> <pre><code>#include &lt;FL/Fl.h&gt; #include &lt;FL/Fl_Window.h&gt; int main() { Fl_Window win(320,200); win.show(); return Fl::run(); } </code></pre></li> </ol> <p>Enter the code above, and run.</p> <p>I still got a ton of errrors, -</p> <pre><code> 'FLTK-Test3.exe': Loaded 'C:\Users\USER\Documents\Visual Studio 2010\Projects\FLTK-Test3\Debug\FLTK-Test3.exe', Symbols loaded. 'FLTK-Test3.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file 'FLTK-Test3.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file 'FLTK-Test3.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file 'FLTK-Test3.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common- controls_6595b64144ccf1df_5.82.7601.17514_none_ec83dffa859149af\comctl32.dll', Cannot find or open the PDB file 'FLTK-Test3.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll', Cannot find or open the PDB file 'FLTK-Test3.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll', Cannot find or open the PDB file 'FLTK-Test3.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll', Cannot find or open the PDB file 'FLTK-Test3.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll', Cannot find or open the PDB file 'FLTK-Test3.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll', Cannot find or open the PDB file 'FLTK-Test3.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll', Cannot find or open the PDB file 'FLTK-Test3.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll', Cannot find or open the PDB file 'FLTK-Test3.exe': Loaded 'C:\Windows\SysWOW64\user32.dll', Cannot find or open the PDB file 'FLTK-Test3.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll', Cannot find or open the PDB file 'FLTK-Test3.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll', Cannot find or open the PDB file 'FLTK-Test3.exe': Loaded 'C:\Windows\SysWOW64\msvcr100d.dll', Symbols loaded. 'FLTK-Test3.exe': Loaded 'C:\Windows\SysWOW64\comdlg32.dll', Cannot find or open the PDB file 'FLTK-Test3.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll', Cannot find or open the PDB file 'FLTK-Test3.exe': Loaded 'C:\Windows\SysWOW64\shell32.dll', Cannot find or open the PDB file 'FLTK-Test3.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll', Cannot find or open the PDB file 'FLTK-Test3.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll', Cannot find or open the PDB file 'FLTK-Test3.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll', Cannot find or open the PDB file 'FLTK-Test3.exe': Loaded 'C:\Windows\SysWOW64\uxtheme.dll', Cannot find or open the PDB file 'FLTK-Test3.exe': Loaded 'C:\Windows\SysWOW64\dwmapi.dll', Cannot find or open the PDB file 'FLTK-Test3.exe': Loaded 'C:\Windows\SysWOW64\clbcatq.dll', Cannot find or open the PDB file 'FLTK-Test3.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll', Cannot find or open the PDB file 'FLTK-Test3.exe': Loaded 'C:\Windows\SysWOW64\msimtf.dll', Cannot find or open the PDB file 'FLTK-Test3.exe': Loaded 'C:\Windows\SysWOW64\version.dll', Cannot find or open the PDB file 'FLTK-Test3.exe': Unloaded 'C:\Windows\SysWOW64\msimtf.dll' 'FLTK-Test3.exe': Unloaded 'C:\Windows\SysWOW64\version.dll' </code></pre> <p>.. but it ran!</p> <p>Hope that helps.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload