Closed elect86 closed 8 years ago
That error certainly looks familiar but it's related to compiling the dependencies. If you grab the following zip (from the releases section), I've already compiled them. You should be able to point additional include and library directories at its contents and avoid the hassle.
https://github.com/pknowles/oit/releases/download/v0.9.1/dev_libs.zip
Cool, so I cleaned all the sparse dependencies I had and add only dev_libs/include
.
Rebuilt, but now I get:
Error 1 error C2143: syntax error : missing '}' before '(' c:\users\gbarbieri\documents\visual studio 2013\projects\dev_libs\include\fterrdef.h 35 1 pyarlib
Error 2 error C2143: syntax error : missing ';' before '<L_TYPE_raw>' c:\users\gbarbieri\documents\visual studio 2013\projects\dev_libs\include\fterrdef.h 35 1 pyarlib
Error 3 error C2059: syntax error : '<L_TYPE_raw>' c:\users\gbarbieri\documents\visual studio 2013\projects\dev_libs\include\fterrdef.h 35 1 pyarlib
Error 4 error C2143: syntax error : missing ';' before '}' c:\users\gbarbieri\documents\visual studio 2013\projects\dev_libs\include\fterrors.h 164 1 pyarlib
Error 5 error C2059: syntax error : '}' c:\users\gbarbieri\documents\visual studio 2013\projects\dev_libs\include\fterrors.h 177 1 pyarlib
Error 6 error C2143: syntax error : missing ';' before '}' c:\users\gbarbieri\documents\visual studio 2013\projects\dev_libs\include\fterrors.h 177 1 pyarlib
Error 7 error C2143: syntax error : missing ';' before '{' c:\users\gbarbieri\documents\visual studio 2013\projects\dev_libs\include\freetype.h 38 1 pyarlib
Error 8 error C2447: '{' : missing function header (old-style formal list?) c:\users\gbarbieri\documents\visual studio 2013\projects\dev_libs\include\freetype.h 38 1 pyarlib
Error 9 error C2146: syntax error : missing ';' before identifier 'platform_id' c:\users\gbarbieri\documents\visual studio 2013\projects\dev_libs\include\ftsnames.h 100 1 pyarlib
Error 10 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\users\gbarbieri\documents\visual studio 2013\projects\dev_libs\include\ftsnames.h 100 1 pyarlib
Error 11 error C2146: syntax error : missing ';' before identifier 'encoding_id' c:\users\gbarbieri\documents\visual studio 2013\projects\dev_libs\include\ftsnames.h 101 1 pyarlib
Error 12 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\users\gbarbieri\documents\visual studio 2013\projects\dev_libs\include\ftsnames.h 101 1 pyarlib
Error 13 error C2146: syntax error : missing ';' before identifier 'language_id' c:\users\gbarbieri\documents\visual studio 2013\projects\dev_libs\include\ftsnames.h 102 1 pyarlib
Error 14 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\users\gbarbieri\documents\visual studio 2013\projects\dev_libs\include\ftsnames.h 102 1 pyarlib
Error 15 error C2146: syntax error : missing ';' before identifier 'name_id' c:\users\gbarbieri\documents\visual studio 2013\projects\dev_libs\include\ftsnames.h 103 1 pyarlib
Error 16 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\users\gbarbieri\documents\visual studio 2013\projects\dev_libs\include\ftsnames.h 103 1 pyarlib
Error 17 error C2143: syntax error : missing ';' before '*' c:\users\gbarbieri\documents\visual studio 2013\projects\dev_libs\include\ftsnames.h 105 1 pyarlib
Error 18 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\users\gbarbieri\documents\visual studio 2013\projects\dev_libs\include\ftsnames.h 105 1 pyarlib
Error 19 error C2146: syntax error : missing ';' before identifier 'string_len' c:\users\gbarbieri\documents\visual studio 2013\projects\dev_libs\include\ftsnames.h 106 1 pyarlib
Error 20 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\users\gbarbieri\documents\visual studio 2013\projects\dev_libs\include\ftsnames.h 106 1 pyarlib
Error 21 error C2146: syntax error : missing ';' before identifier 'FT_Get_Sfnt_Name_Count' c:\users\gbarbieri\documents\visual studio 2013\projects\dev_libs\include\ftsnames.h 126 1 pyarlib
Error 22 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\users\gbarbieri\documents\visual studio 2013\projects\dev_libs\include\ftsnames.h 126 1 pyarlib
Error 23 error C2146: syntax error : missing ';' before identifier 'FT_Get_Sfnt_Name' c:\users\gbarbieri\documents\visual studio 2013\projects\dev_libs\include\ftsnames.h 158 1 pyarlib
Error 24 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\users\gbarbieri\documents\visual studio 2013\projects\dev_libs\include\ftsnames.h 158 1 pyarlib
Error 25 error C2061: syntax error : identifier 'FT_UInt' c:\users\gbarbieri\documents\visual studio 2013\projects\dev_libs\include\ftsnames.h 159 1 pyarlib
Error 26 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\users\gbarbieri\documents\visual studio 2013\projects\dev_libs\include\ftsnames.h 160 1 pyarlib
Error 27 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 50 1 pyarlib
Error 28 error C2146: syntax error : missing ')' before identifier 'FT_Byte' c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 50 1 pyarlib
Error 29 error C2065: 'FT_Byte' : undeclared identifier c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 50 1 pyarlib
Error 30 error C2059: syntax error : ')' c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 50 1 pyarlib
Error 31 error C2065: 'FT_Err_Unknown_File_Format' : undeclared identifier c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 51 1 pyarlib
Error 32 error C3861: 'FT_New_Memory_Face': identifier not found c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 50 1 pyarlib
Error 33 error C2027: use of undefined type 'FT_FaceRec_' c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 62 1 pyarlib
Error 34 error C2227: left of '->glyph' must point to class/struct/union/generic type c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 62 1 pyarlib
Error 35 error C3861: 'FT_Set_Char_Size': identifier not found c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 64 1 pyarlib
Error 36 error C2027: use of undefined type 'FT_FaceRec_' c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 80 1 pyarlib
Error 37 error C2227: left of '->family_name' must point to class/struct/union/generic type c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 80 1 pyarlib
Error 38 error C2027: use of undefined type 'FT_FaceRec_' c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 81 1 pyarlib
Error 39 error C2227: left of '->family_name' must point to class/struct/union/generic type c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 81 1 pyarlib
Error 40 error C2027: use of undefined type 'FT_FaceRec_' c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 87 1 pyarlib
Error 41 error C2227: left of '->face_flags' must point to class/struct/union/generic type c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 87 1 pyarlib
Error 42 error C3861: 'FT_Done_Face': identifier not found c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 97 1 pyarlib
Error 43 error C3861: 'FT_Get_Char_Index': identifier not found c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 132 1 pyarlib
Error 44 error C3861: 'FT_Load_Glyph': identifier not found c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 133 1 pyarlib
Error 45 error C2065: 'FT_RENDER_MODE_NORMAL' : undeclared identifier c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 134 1 pyarlib
Error 46 error C3861: 'FT_Render_Glyph': identifier not found c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 134 1 pyarlib
Error 47 error C2065: 'FT_Bitmap' : undeclared identifier c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 135 1 pyarlib
Error 48 error C2065: 'bitmap' : undeclared identifier c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 135 1 pyarlib
Error 49 error C2027: use of undefined type 'FT_GlyphSlotRec_' c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 135 1 pyarlib
Error 50 error C2227: left of '->bitmap' must point to class/struct/union/generic type c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 135 1 pyarlib
Error 51 error C2065: 'bitmap' : undeclared identifier c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 136 1 pyarlib
Error 52 error C2228: left of '.width' must have class/struct/union c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 136 1 pyarlib
Error 53 error C2065: 'bitmap' : undeclared identifier c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 137 1 pyarlib
Error 54 error C2228: left of '.rows' must have class/struct/union c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 137 1 pyarlib
Error 55 error C3861: 'FT_Get_Char_Index': identifier not found c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 180 1 pyarlib
Error 56 error C3861: 'FT_Load_Glyph': identifier not found c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 181 1 pyarlib
Error 57 error C2065: 'FT_RENDER_MODE_NORMAL' : undeclared identifier c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 182 1 pyarlib
Error 58 error C3861: 'FT_Render_Glyph': identifier not found c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 182 1 pyarlib
Error 59 error C2065: 'FT_Bitmap' : undeclared identifier c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 186 1 pyarlib
Error 60 error C2065: 'bitmap' : undeclared identifier c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 186 1 pyarlib
Error 61 error C2027: use of undefined type 'FT_GlyphSlotRec_' c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 186 1 pyarlib
Error 62 error C2227: left of '->bitmap' must point to class/struct/union/generic type c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 186 1 pyarlib
Error 63 error C2065: 'bitmap' : undeclared identifier c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 187 1 pyarlib
Error 64 error C2228: left of '.pixel_mode' must have class/struct/union c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 187 1 pyarlib
Error 65 error C2065: 'FT_PIXEL_MODE_GRAY' : undeclared identifier c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 187 1 pyarlib
Error 66 error C2065: 'bitmap' : undeclared identifier c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 188 1 pyarlib
Error 67 error C2228: left of '.num_grays' must have class/struct/union c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 188 1 pyarlib
Error 68 error C2065: 'bitmap' : undeclared identifier c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 189 1 pyarlib
Error 69 error C2228: left of '.pitch' must have class/struct/union c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 189 1 pyarlib
Error 70 error C2228: left of '.width' must have class/struct/union c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 189 1 pyarlib
Error 71 error C2065: 'bitmap' : undeclared identifier c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 190 1 pyarlib
Error 72 error C2228: left of '.width' must have class/struct/union c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 190 1 pyarlib
Error 73 error C2228: left of '.rows' must have class/struct/union c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 190 1 pyarlib
Error 74 error C2027: use of undefined type 'FT_GlyphSlotRec_' c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 191 1 pyarlib
Error 75 error C2227: left of '->bitmap_left' must point to class/struct/union/generic type c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 191 1 pyarlib
Error 76 error C2227: left of '->bitmap_top' must point to class/struct/union/generic type c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 191 1 pyarlib
Error 77 error C2065: 'bitmap' : undeclared identifier c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 202 1 pyarlib
Error 78 error C2228: left of '.width' must have class/struct/union c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 202 1 pyarlib
Error 79 error C2228: left of '.buffer' must have class/struct/union c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 202 1 pyarlib
Error 80 error C2027: use of undefined type 'FT_FaceRec_' c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 286 1 pyarlib
Error 81 error C2227: left of '->size' must point to class/struct/union/generic type c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 286 1 pyarlib
Error 82 error C2227: left of '->metrics' must point to class/struct/union/generic type c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 286 1 pyarlib
Error 83 error C2228: left of '.height' must have class/struct/union c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 286 1 pyarlib
Error 84 error C3861: 'FT_Get_Char_Index': identifier not found c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 298 1 pyarlib
Error 85 error C2065: 'FT_Vector' : undeclared identifier c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 301 1 pyarlib
Error 86 error C2146: syntax error : missing ';' before identifier 'kerning' c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 301 1 pyarlib
Error 87 error C2065: 'kerning' : undeclared identifier c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 301 1 pyarlib
Error 88 error C2065: 'FT_KERNING_DEFAULT' : undeclared identifier c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 302 1 pyarlib
Error 89 error C2065: 'kerning' : undeclared identifier c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 302 1 pyarlib
Error 90 error C3861: 'FT_Get_Kerning': identifier not found c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 302 1 pyarlib
Error 91 error C2065: 'kerning' : undeclared identifier c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 303 1 pyarlib
Error 92 error C2228: left of '.x' must have class/struct/union c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 303 1 pyarlib
Error 93 error C3861: 'FT_Load_Glyph': identifier not found c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 316 1 pyarlib
Error 94 error C2027: use of undefined type 'FT_GlyphSlotRec_' c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 319 1 pyarlib
Error 95 error C2227: left of '->advance' must point to class/struct/union/generic type c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 319 1 pyarlib
Error 96 error C2228: left of '.x' must have class/struct/union c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 319 1 pyarlib
Error 97 error C2027: use of undefined type 'FT_GlyphSlotRec_' c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 323 1 pyarlib
Error 98 error C2227: left of '->advance' must point to class/struct/union/generic type c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 323 1 pyarlib
Error 99 error C2228: left of '.x' must have class/struct/union c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 323 1 pyarlib
Error 100 error C2065: 'FT_Glyph_Metrics' : undeclared identifier c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 327 1 pyarlib
Error 101 error C2146: syntax error : missing ';' before identifier 'met' c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 327 1 pyarlib
Error 102 error C2065: 'met' : undeclared identifier c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 327 1 pyarlib
Error 103 error C2027: use of undefined type 'FT_GlyphSlotRec_' c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 327 1 pyarlib
Error 104 error C2227: left of '->metrics' must point to class/struct/union/generic type c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 327 1 pyarlib
Error 105 error C2065: 'met' : undeclared identifier c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 329 1 pyarlib
Error 106 error C2228: left of '.horiBearingY' must have class/struct/union c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 329 1 pyarlib
Error 107 error C2780: '_Ty std::max(std::initializer_list<_Elem>,_Pr)' : expects 2 arguments - 1 provided c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 329 1 pyarlib
Error 108 error C2780: 'const _Ty &std::max(const _Ty &,const _Ty &,_Pr)' : expects 3 arguments - 1 provided c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 329 1 pyarlib
Error 109 error C2784: '_Ty std::max(std::initializer_list<_Elem>)' : could not deduce template argument for 'std::initializer_list<_Elem>' from 'int' c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 329 1 pyarlib
Error 110 error C2780: 'const _Ty &std::max(const _Ty &,const _Ty &)' : expects 2 arguments - 1 provided c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 329 1 pyarlib
Error 111 error C2065: 'met' : undeclared identifier c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 331 1 pyarlib
Error 112 error C1003: error count exceeds 100; stopping compilation c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\text.cpp 331 1 pyarlib
That's certainly a wall of errors. It looks like there's a syntax error just before a freetype include. Perhaps an issue with the EMBED
macro at a glance. I won't be at a PC for a week to test it myself. Until then all I can suggest is checking out an earlier revision, maybe from the releases section. I have recently built the project from scratch so maybe it's a
difference in environment such as include directory order finding a different version of a library.
I would like to replicate exactly your environment to reduce any error possibilities..
What IDE did you use to build it from scratch?
Are you also including dev_libs
?
Exactly as you describe. Clone the repo, grab my dev libs, vs2013. Use the sln file from the oit project. Had to add directories but then it compiled. Will check again when I can.
Ok, thanks :+1:
@elect86 Have you had any luck so far?
Actually I didn't try anymore, but I am planning to do a general clean start and try to replicate your environment as best as I can
OK, I managed to reproduce your issue. I fixed it by changing the include path order so the dev_libs.zip
include directory comes first. I'm guessing there's another version of freetype somewhere.
I've also built the libraries again for vs2015 as well and made a few things a bit easier: https://github.com/pknowles/oit/releases/tag/v0.9.3
These are really nice news! Thanks a lot :)
I'll try them Monday
Hi,
so, I removed and re-cloned everything to get a fresh scenario..
followed all the instructions, compilation worked fine. I modified the oit
project as instructed but at the start
Essentially, "The procedure entry point could not be located in the DLL "glew32.dll"
At a guess, it's finding a different .dll
than the one that came with the .lib
. It may be I needed to prepend the executable path as in PATH=$(ExecutablePath);%PATH%
instead of appending. Let me know if that helps. A sure way is to copy the .dll
to where the .exe
is.
Cool, that worked! Thanks a lot Pyarelal
Ps: on the exit I get this
http://imgur.com/NYlgihY (I hope you can zoom in)
Glad it works now! Thanks for the interest in the project. I'm aware of crashes on exit. Pretty sure it's due to my terrible use of statics and developing with gcc which doesn't have the issue.
Thanks you for sharing your awesome research :)
I can't wait to port it to jogl!
Ps: what about license? May I? Of course I'll put all the references to your repository/website/paper
Yeah, go for it. A link would be much appreciated. Copy/pasting snippets is really just a shortcut to what's described in the papers and absolutely fine.
Hi,
since I would really like to implement your algorithm here, I tried first to get it running by cloning your project ( I installed VS2013 Community Edition to match your IDE).
I also cloned
lfb
andpyarlib
, and the latter is giving me a lot of problems.A lot of dependencies missing, first SDL2, downloaded and added, same for freetype and zlib.
Now I remain with these two I have no idea what they belong to:
Error 1 error C1083: Cannot open include file: 'unistd.h': No such file or directory c:\users\gbarbieri\documents\zlib-1.2.3-lib\include\zconf.h 289 1 pyarlib Error 2 error C1083: Cannot open include file: 'png.h': No such file or directory c:\users\gbarbieri\documents\visual studio 2013\projects\pyarlib\imgpng.cpp 8 1 pyarlib
Any tip?