The essencial flags are: export TEC_UNAME=dllw4 export MINGW4=C:/mingw32-4.8.2-posix-dwarf
These flags should be set only when necessary, not all the time. export DEFINES="LUA_BUILD_AS_DLL LUA_LIB" export FLAGS="-fopenmp" export CPPFLAGS="-std=c++11 -fopenmp" Best, Scuri On Thu, Sep 29, 2016 at 3:54 PM, Victor Bombi <[email protected]> wrote: > My commands are now > > export TEC_UNAME=dllw4 > export DEFINES="LUA_BUILD_AS_DLL LUA_LIB" > export MINGW4=C:/mingw32-4.8.2-posix-dwarf > export FLAGS="-fopenmp" > export CPPFLAGS="-std=c++11 -fopenmp" > make > > CPPFLAGS was missing but a new error appears > > Tecmake: compiling axis.cpp ... > C:/mingw32-4.8.2-posix-dwarf/bin/g++ -c -std=c++11 -fopenmp -Wall -O2 > -I../include -I../src -I. -IC: > /mingw32-4.8.2-posix-dwarf/include -DLUA_BUILD_AS_DLL -DLUA_LIB > -DMGL_STATIC_DEFINE -DMGL_SRC -DTEC > _UNAME=dllw4 -DTEC_SYSNAME=Win32 -DTEC_LITTLEENDIAN -DTEC_32 -DWIN32 > -DNDEBUG -o ../obj/iup_mglplot/ > dllw4/axis.o src/axis.cpp > src/axis.cpp: In member function 'void mglCanvas::LabelTicks(mglAxis&)': > src/axis.cpp:411:12: error: 'M_LN10' was not declared in this scope > v0 = exp(M_LN10*floor(0.1+log10(aa.v1))); > ^ > src/axis.cpp:426:13: error: 'M_LN10' was not declared in this scope > v0 = -exp(M_LN10*floor(0.1+log10(-aa.v2))); > ^ > src/axis.cpp: In member function 'void mglCanvas::DrawAxis(mglAxis&, bool, > char, const char*, mreal) > ': > src/axis.cpp:555:44: error: 'M_LN10' was not declared in this scope > if(aa.dv==0 && aa.v2>aa.v1 && fabs(u-exp(M_LN10*floor(0.1+ > log10(u))))<0.01*u) > ^ > src/axis.cpp:557:44: error: 'M_LN10' was not declared in this scope > if(aa.dv==0 && aa.v2<aa.v1 && fabs(u-exp(M_LN10*floor(0.1+ > log10(u))))<0.01*u) > ^ > src/axis.cpp: In member function 'void mglCanvas::DrawGrid(mglAxis&, > bool)': > src/axis.cpp:781:33: error: 'M_LN10' was not declared in this scope > if(aa.v2>aa.v1 && fabs(u-exp(M_LN10*floor(0.1+log10(u))))<0.01*u) > ^ > src/axis.cpp:784:33: error: 'M_LN10' was not declared in this scope > if(aa.v2<aa.v1 && fabs(u-exp(M_LN10*floor(0.1+log10(u))))<0.01*u) > ^ > make[2]: *** [../obj/iup_mglplot/dllw4/axis.o] Error 1 > make[1]: *** [iup_mglplot] Error 2 > make: *** [iup_mglplot] Error 2 > > > So it seems that the flag is not good for this other project > I dont know what else can be done :-( > > ----- Original Message ----- > *From:* Antonio Scuri <[email protected]> > *To:* IUP discussion list. <[email protected]> > *Sent:* Thursday, September 29, 2016 8:42 PM > *Subject:* Re: [Iup-users] building zlib for im > > No. This is something exclusive for Scintilla. I must set it only inside > its config.mak and only when it is required. Thanks for the feedback. > > Best, > Scuri > > > On Thu, Sep 29, 2016 at 3:37 PM, Victor Bombi <[email protected]> > wrote: > >> I managed to set the flags with: >> >> export TEC_UNAME=dllw4 >> export DEFINES="LUA_BUILD_AS_DLL LUA_LIB" >> export MINGW4=C:/mingw32-4.8.2-posix-dwarf >> export FLAGS="-std=c++11 -fopenmp" >> make >> >> the flag -std=c++11 was present in all lines as: >> >> Tecmake: compiling iupwin_list.c ... >> C:/mingw32-4.8.2-posix-dwarf/bin/gcc -c -std=c++11 -fopenmp -Wall -O2 >> -I../include -I. -Iwin -I../et >> c -IC:/mingw32-4.8.2-posix-dwarf/include -DLUA_BUILD_AS_DLL -DLUA_LIB >> -D_WIN32_WINNT=0x0501 -D_WIN3 >> 2_IE=0x600 -DWINVER=0x0501 -DNOTREEVIEW -DUNICODE -DIUP_DLL >> -DTEC_UNAME=dllw4 -DTEC_SYSNAME=Win32 -D >> TEC_LITTLEENDIAN -DTEC_32 -DWIN32 -DNDEBUG -o ../obj/dllw4/iupwin_list.o >> win/iupwin_list.c >> cc1.exe: warning: command line option '-std=c++11' is valid for >> C++/ObjC++ but not for C [enabled by >> default] >> >> but as you can see below this flags are not active while compiling >> scintilla >> May be the flags are not propagated to all subprojects and this causes >> the problem? >> >> ----- Original Message ----- >> *From:* Victor Bombi <[email protected]> >> *To:* IUP discussion list. <[email protected]> >> *Sent:* Thursday, September 29, 2016 8:29 PM >> *Subject:* Re: [Iup-users] building zlib for im >> >> this is my last error: >> >> Tecmake: Starting [ iup_scintilla:dllw4 ] >> >> Tecmake: compiling Document.cxx ... >> C:/mingw32-4.8.2-posix-dwarf/bin/g++ -c -Wall -O2 -I../include -I../src >> -I. -I../src/win -Ilexlib - >> Isrc -Iinclude -Iwin32 -Iwin -IC:/mingw32-4.8.2-posix-dwarf/include >> -DLUA_BUILD_AS_DLL -DLUA_LIB -D >> STATIC_BUILD -DSCI_LEXER -DUNICODE -D_WIN32 -DDISABLE_D2D >> -DTEC_UNAME=dllw4 -DTEC_SYSNAME=Win32 -DTE >> C_LITTLEENDIAN -DTEC_32 -DWIN32 -DNDEBUG -o >> ../obj/iup_scintilla/dllw4/Document.o >> src/Document.cxx >> In file included from c:\mingw32-4.8.2-posix-dwarf\i >> 686-w64-mingw32\include\c++\regex:35:0, >> from src/Document.cxx:20: >> c:\mingw32-4.8.2-posix-dwarf\i686-w64-mingw32\include\c++\bits\c++0x_warning.h:32:2: >> error: #error T >> his file requires compiler and library support for the ISO C++ 2011 >> standard. This support is curren >> tly experimental, and must be enabled with the -std=c++11 or -std=gnu++11 >> compiler options. >> #error This file requires compiler and library support for the \ >> ^ >> src/Document.cxx:2566:1: error: 'regex_constants' in namespace 'std' does >> not name a type >> std::regex_constants::match_flag_type MatchFlags(const Document *doc, >> int startPos, int endPos) { >> ^ >> src/Document.cxx: In function 'bool {anonymous}::MatchOnLines(const >> Document*, const Regex&, const { >> anonymous}::RESearchRange&, RESearch&)': >> src/Document.cxx:2578:2: error: 'match_results' is not a member of 'std' >> std::match_results<Iterator> match; >> ^ >> src/Document.cxx:2578:29: error: expected primary-expression before '>' >> token >> std::match_results<Iterator> match; >> ^ >> src/Document.cxx:2578:31: error: 'match' was not declared in this scope >> std::match_results<Iterator> match; >> ^ >> src/Document.cxx:2593:8: error: 'std::regex_constants' has not been >> declared >> std::regex_constants::match_flag_type flagsMatch = MatchFlags(doc, >> lineRange.start, lineRange.end >> ); >> ^ >> src/Document.cxx:2593:41: error: expected ';' before 'flagsMatch' >> std::regex_constants::match_flag_type flagsMatch = MatchFlags(doc, >> lineRange.start, lineRange.end >> ); >> ^ >> src/Document.cxx:2594:13: error: 'regex_search' is not a member of 'std' >> matched = std::regex_search(itStart, itEnd, match, regexp, flagsMatch); >> ^ >> src/Document.cxx:2594:62: error: 'flagsMatch' was not declared in this >> scope >> matched = std::regex_search(itStart, itEnd, match, regexp, flagsMatch); >> ^ >> src/Document.cxx:2601:6: error: 'match_results' is not a member of 'std' >> std::match_results<Iterator> matchNext; >> ^ >> src/Document.cxx:2601:33: error: expected primary-expression before '>' >> token >> std::match_results<Iterator> matchNext; >> ^ >> src/Document.cxx:2601:35: error: 'matchNext' was not declared in this >> scope >> std::match_results<Iterator> matchNext; >> ^ >> src/Document.cxx:2602:16: error: 'regex_search' is not a member of 'std' >> matched = std::regex_search(itNext, itEnd, matchNext, regexp, >> flagsMatch); >> ^ >> src/Document.cxx: In function 'long int >> {anonymous}::Cxx11RegexFindText(Document*, >> int, int, const c >> har*, bool, int*, RESearch&)': >> src/Document.cxx:2635:8: error: 'std::regex' has not been declared >> std::regex::flag_type flagsRe = std::regex::ECMAScript; >> ^ >> src/Document.cxx:2635:25: error: expected ';' before 'flagsRe' >> std::regex::flag_type flagsRe = std::regex::ECMAScript; >> ^ >> src/Document.cxx:2639:4: error: 'flagsRe' was not declared in this scope >> flagsRe = flagsRe | std::regex::icase; >> ^ >> src/Document.cxx:2639:29: error: 'std::regex' has not been declared >> flagsRe = flagsRe | std::regex::icase; >> ^ >> src/Document.cxx:2654:4: error: 'wregex' is not a member of 'std' >> std::wregex regexp; >> ^ >> src/Document.cxx:2654:16: error: expected ';' before 'regexp' >> std::wregex regexp; >> ^ >> src/Document.cxx:2662:4: error: 'regexp' was not declared in this scope >> regexp.assign(&ws[0], flagsRe); >> ^ >> src/Document.cxx:2662:26: error: 'flagsRe' was not declared in this scope >> regexp.assign(&ws[0], flagsRe); >> ^ >> src/Document.cxx:2666:4: error: 'regex' is not a member of 'std' >> std::regex regexp; >> ^ >> src/Document.cxx:2666:15: error: expected ';' before 'regexp' >> std::regex regexp; >> ^ >> src/Document.cxx:2667:4: error: 'regexp' was not declared in this scope >> regexp.assign(s, flagsRe); >> ^ >> src/Document.cxx:2667:21: error: 'flagsRe' was not declared in this scope >> regexp.assign(s, flagsRe); >> ^ >> src/Document.cxx:2682:11: error: expected type-specifier >> } catch (std::regex_error &) { >> ^ >> src/Document.cxx:2682:28: error: expected unqualified-id before '&' token >> } catch (std::regex_error &) { >> ^ >> src/Document.cxx:2682:28: error: expected ')' before '&' token >> src/Document.cxx:2682:28: error: expected '{' before '&' token >> src/Document.cxx:2682:29: error: expected primary-expression before ')' >> token >> } catch (std::regex_error &) { >> ^ >> src/Document.cxx:2682:29: error: expected ';' before ')' token >> src/Document.cxx:2685:4: error: expected primary-expression before 'catch' >> } catch (...) { >> ^ >> src/Document.cxx:2685:4: error: expected ';' before 'catch' >> make[2]: *** [../obj/iup_scintilla/dllw4/Document.o] Error 1 >> make[1]: *** [iup_scintilla] Error 2 >> make: *** [iup_scintilla] Error 2 >> Best >> victor bombi >> >> ----- Original Message ----- >> *From:* Antonio Scuri <[email protected]> >> *To:* IUP discussion list. <[email protected]> >> *Sent:* Thursday, September 29, 2016 7:56 PM >> *Subject:* Re: [Iup-users] building zlib for im >> >> To use openMP yes, but that's done only in im_process_openmp, for >> regular im_process the pragma should be ignored by the compiler. >> >> I don't know about the c++11 flags. I don't remember if I compiled that >> library for Mingw64. >> >> Best, >> Scuri >> >> >> On Thu, Sep 29, 2016 at 2:34 PM, Victor Bombi <[email protected]> >> wrote: >> >>> For openmp I needed to activate a flag in other projects (-fopenmp or >>> similar) >>> >>> But main problem is about c++11 because it gives a building error >>> related to std::rege... while compiling Document.cxx >>> >>> How can I use c++11. Perhaps any flag as: export something = c++11 >>> >>> ----- Original Message ----- >>> *From:* Antonio Scuri <[email protected]> >>> *To:* IUP discussion list. <[email protected]> >>> *Sent:* Thursday, September 29, 2016 7:27 PM >>> *Subject:* Re: [Iup-users] building zlib for im >>> >>> It should have recognized the pragma. Just ignore the warnings. >>> >>> Best, >>> Scuri >>> >>> >>> On Thu, Sep 29, 2016 at 2:22 PM, Victor Bombi <[email protected]> >>> wrote: >>> >>>> solved getting freetype from SVN >>>> >>>> Finally I am with iup, I get warnings: ignoring #pragma omp >>>> Should I had used any flag to use omp? >>>> Also getting warnings about c++11 needed, Any flag? >>>> >>>> ----- Original Message ----- >>>> *From:* Victor Bombi <[email protected]> >>>> *To:* IUP discussion list. <[email protected]> >>>> *Sent:* Thursday, September 29, 2016 6:42 PM >>>> *Subject:* Re: [Iup-users] building zlib for im >>>> >>>> It seems that ftgl needs freetype to be build but in this case I get >>>> >>>> victor@victorPortatil /c/iup/freetype/src >>>> $ ./aa.bat >>>> make: *** No targets specified and no makefile found. Stop. >>>> >>>> ----- Original Message ----- >>>> *From:* Antonio Scuri <[email protected]> >>>> *To:* IUP discussion list. <[email protected]> >>>> *Sent:* Thursday, September 29, 2016 6:34 PM >>>> *Subject:* Re: [Iup-users] building zlib for im >>>> >>>> Yes, same thing. >>>> >>>> About Lua 5.1 setargv.obj, it is an error in the "lua_conf.inc" >>>> file. Because it was designed to be built only by Visual C++. You can >>>> manually remove it. >>>> >>>> Best, >>>> Scuri >>>> >>>> >>>> On Thu, Sep 29, 2016 at 1:31 PM, Victor Bombi <[email protected]> >>>> wrote: >>>> >>>>> well, it does not seem to be a problem because lua5.1.dll is built >>>>> >>>>> Now with ftgl I get >>>>> >>>>> victor@victorPortatil /c/iup/ftgl/src >>>>> $ ./aa.bat >>>>> make[1]: ../tecmakewin.mak: No such file or directory >>>>> make[1]: *** No rule to make target `../tecmakewin.mak'. Stop. >>>>> make: *** [ftgl] Error 2 >>>>> >>>>> Shall I copy tecmakewin.mak from im as I did with zlib? >>>>> >>>>> ----- Original Message ----- >>>>> *From:* Victor Bombi <[email protected]> >>>>> *To:* IUP discussion list. <[email protected]> >>>>> *Sent:* Thursday, September 29, 2016 6:08 PM >>>>> *Subject:* Re: [Iup-users] building zlib for im >>>>> >>>>> I see, you meant to copy tecmakewin.mak >>>>> It is done and zlib compiled >>>>> >>>>> Now building lua5.1 (from http://sourceforge.net/project >>>>> s/luabinaries/files/) gives me >>>>> >>>>> Tecmake: linking lua5.1.exe ... >>>>> C:/mingw32-4.8.2-posix-dwarf/bin/gcc -o ../bin/Win32/lua5.1.exe >>>>> ../obj/Win32/lua.o ../obj/Win32/lua. >>>>> res setargv.obj -Wl,-subsystem,console -L../lib/dll8 >>>>> -LC:/mingw32-4.8.2-posix-dwarf/lib -llua5.1 -l >>>>> kernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 >>>>> -luuid -loleaut32 -lole32 -lcom >>>>> ctl32 >>>>> gcc.exe: error: setargv.obj: No such file or directory >>>>> make[1]: *** [../bin/Win32/lua5.1.exe] Error 1 >>>>> make: *** [lua] Error 2 >>>>> >>>>> ----- Original Message ----- >>>>> *From:* Antonio Scuri <[email protected]> >>>>> *To:* IUP discussion list. <[email protected]> >>>>> *Sent:* Thursday, September 29, 2016 5:49 PM >>>>> *Subject:* Re: [Iup-users] building zlib for im >>>>> >>>>> Yes, you may. Or simply copy the missing file from IM. They are >>>>> identical. >>>>> >>>>> Best, >>>>> Scuri >>>>> >>>>> Em 29/09/2016 12:47, "Victor Bombi" <[email protected]> escreveu: >>>>> >>>>>> I cant see zlib folder inside im folder (soundforge) >>>>>> Do you mean I should take it from SVN? >>>>>> >>>>>> ----- Original Message ----- >>>>>> *From:* Antonio Scuri <[email protected]> >>>>>> *To:* IUP discussion list. <[email protected]> >>>>>> *Sent:* Thursday, September 29, 2016 5:21 PM >>>>>> *Subject:* Re: [Iup-users] building zlib for im >>>>>> >>>>>> Yes, sorry. I already fixed that problem in SVN. It will be >>>>>> included in the next release. But you can copy the files from IM to the >>>>>> same place in zlib folder that it will work. Thanks for reporting. >>>>>> >>>>>> Best, >>>>>> Scuri >>>>>> >>>>>> >>>>>> On Thu, Sep 29, 2016 at 11:52 AM, Victor Bombi <[email protected] >>>>>> > wrote: >>>>>> >>>>>>> Hello, >>>>>>> >>>>>>> Trying to build im with mingw-w64 (32bits) >>>>>>> First building zlib gives me this problem >>>>>>> >>>>>>> file aa.bat has: >>>>>>> >>>>>>> export TEC_UNAME=dllw4 >>>>>>> export DEFINES="LUA_BUILD_AS_DLL LUA_LIB" >>>>>>> export MINGW4=C:/mingw32-4.8.2-posix-dwarf >>>>>>> make >>>>>>> >>>>>>> then: >>>>>>> victor@victorPortatil /c/iup/zlib/src >>>>>>> $ ./aa.bat >>>>>>> make[1]: ../tecmakewin.mak: No such file or directory >>>>>>> make[1]: *** No rule to make target `../tecmakewin.mak'. Stop. >>>>>>> make: *** [zlib] Error 2 >>>>>>> >>>>>>> Best >>>>>>> victor bombi >>>>>>> >>>>>>> ------------------------------------------------------------ >>>>>>> ------------------ >>>>>>> _______________________________________________ >>>>>>> Iup-users mailing list >>>>>>> [email protected] >>>>>>> https://lists.sourceforge.net/lists/listinfo/iup-users >>>>>>> >>>>>> >>>>>> ------------------------------ >>>>>> >>>>>> ------------------------------------------------------------ >>>>>> ------------------ >>>>>> >>>>>> ------------------------------ >>>>>> >>>>>> _______________________________________________ >>>>>> Iup-users mailing list >>>>>> [email protected] >>>>>> https://lists.sourceforge.net/lists/listinfo/iup-users >>>>>> >>>>>> >>>>>> ------------------------------------------------------------ >>>>>> ------------------ >>>>>> >>>>>> _______________________________________________ >>>>>> Iup-users mailing list >>>>>> [email protected] >>>>>> https://lists.sourceforge.net/lists/listinfo/iup-users >>>>>> >>>>>> ------------------------------ >>>>> >>>>> ------------------------------------------------------------ >>>>> ------------------ >>>>> >>>>> ------------------------------ >>>>> >>>>> _______________________________________________ >>>>> Iup-users mailing list >>>>> [email protected] >>>>> https://lists.sourceforge.net/lists/listinfo/iup-users >>>>> >>>>> ------------------------------ >>>>> >>>>> ------------------------------------------------------------ >>>>> ------------------ >>>>> >>>>> ------------------------------ >>>>> >>>>> _______________________________________________ >>>>> Iup-users mailing list >>>>> [email protected] >>>>> https://lists.sourceforge.net/lists/listinfo/iup-users >>>>> >>>>> >>>>> ------------------------------------------------------------ >>>>> ------------------ >>>>> >>>>> _______________________________________________ >>>>> Iup-users mailing list >>>>> [email protected] >>>>> https://lists.sourceforge.net/lists/listinfo/iup-users >>>>> >>>>> >>>> ------------------------------ >>>> >>>> ------------------------------------------------------------ >>>> ------------------ >>>> >>>> ------------------------------ >>>> >>>> _______________________________________________ >>>> Iup-users mailing list >>>> [email protected] >>>> https://lists.sourceforge.net/lists/listinfo/iup-users >>>> >>>> ------------------------------ >>>> >>>> ------------------------------------------------------------ >>>> ------------------ >>>> >>>> ------------------------------ >>>> >>>> _______________________________________________ >>>> Iup-users mailing list >>>> [email protected] >>>> https://lists.sourceforge.net/lists/listinfo/iup-users >>>> >>>> >>>> ------------------------------------------------------------ >>>> ------------------ >>>> >>>> _______________________________________________ >>>> Iup-users mailing list >>>> [email protected] >>>> https://lists.sourceforge.net/lists/listinfo/iup-users >>>> >>>> >>> ------------------------------ >>> >>> ------------------------------------------------------------ >>> ------------------ >>> >>> ------------------------------ >>> >>> _______________________________________________ >>> Iup-users mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/iup-users >>> >>> >>> ------------------------------------------------------------ >>> ------------------ >>> >>> _______________________________________________ >>> Iup-users mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/iup-users >>> >>> >> ------------------------------ >> >> ------------------------------------------------------------ >> ------------------ >> >> ------------------------------ >> >> _______________________________________________ >> Iup-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/iup-users >> >> ------------------------------ >> >> ------------------------------------------------------------ >> ------------------ >> >> ------------------------------ >> >> _______________________________________________ >> Iup-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/iup-users >> >> >> ------------------------------------------------------------ >> ------------------ >> >> _______________________________________________ >> Iup-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/iup-users >> >> > ------------------------------ > > ------------------------------------------------------------ > ------------------ > > ------------------------------ > > _______________________________________________ > Iup-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/iup-users > > > ------------------------------------------------------------ > ------------------ > > _______________________________________________ > Iup-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/iup-users > >
------------------------------------------------------------------------------
_______________________________________________ Iup-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/iup-users
