I followed the directions from JonY to compile the SVN on Win32 (I know I don't really need to as the new win builds are perfect but I enjoy the challenge) and I keep hitting the same problem. When I run 'g++ buildtool.cpp -o btool' I get a string of errors starting with -
buildtool.cpp:53:18: error: string: No such file or directory buildtool.cpp:53:18: error: string: No such file or directory buildtool.cpp:53:18: error: string: No such file or directory
Docsonic schrieb:
I followed the directions from JonY to compile the SVN on Win32 (I know I don't really need to as the new win builds are perfect but I enjoy the challenge) and I keep hitting the same problem. When I run 'g++ buildtool.cpp -o btool' I get a string of errors starting with -
buildtool.cpp:53:18: error: string: No such file or directory buildtool.cpp:53:18: error: string: No such file or directory buildtool.cpp:53:18: error: string: No such file or directory
Have you the complete compiler package? Looks that it can not find the string package. Check http://inkscape.modevia.com/win32libs to get the latest packages.
1. Compiler should be in c:\mingw\ 2. call mingwenv.bat from the same command where you call "g++ buildtool.cpp -o btool"
HTH,
Adib.
Please see the other post I made on this topic for more extensive error details.
The compiler is in C:\mingw4 (as per JonY's instructions) and mingwenv.bat has been changed to reflect this. All the 'missing' files are available in C:\mingw4\include\c++\4.2.0 so the install appears complete - I am using the latest files from modevia.
I ran mingwenv.bat and the path variable shows the correct directories for mingw and gtk. I then ran g++ buildtool.cpp -o btool in the same console, that is when I got the errors.
I looked in the buildtool.cpp file and found the 4 problem lines but I have no idea what to do with them as I do not know the base directory where g++ starts looking, if I did then I could expand the path as it is done for the header files earlier in the cpp file. I also looked in the two xml files to see if they helped... they didn't :-)
If anyone has any insight into this then I would love to hear it, people tell me that compiling Inkscape on Win is no problem but it is beating me so far.
Thanks,
Tony
Adib Taraben-3 wrote:
Docsonic schrieb:
I followed the directions from JonY to compile the SVN on Win32 (I know
Have you the complete compiler package? Looks that it can not find the string package. Check http://inkscape.modevia.com/win32libs to get the latest packages.
- Compiler should be in c:\mingw\
- call mingwenv.bat from the same command where you call "g++
buildtool.cpp -o btool"
HTH,
Adib.
This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
Docsonic wrote:
Please see the other post I made on this topic for more extensive error details.
The compiler is in C:\mingw4 (as per JonY's instructions) and mingwenv.bat has been changed to reflect this. All the 'missing' files are available in C:\mingw4\include\c++\4.2.0 so the install appears complete - I am using the latest files from modevia.
I ran mingwenv.bat and the path variable shows the correct directories for mingw and gtk. I then ran g++ buildtool.cpp -o btool in the same console, that is when I got the errors.
I looked in the buildtool.cpp file and found the 4 problem lines but I have no idea what to do with them as I do not know the base directory where g++ starts looking, if I did then I could expand the path as it is done for the header files earlier in the cpp file. I also looked in the two xml files to see if they helped... they didn't :-)
If anyone has any insight into this then I would love to hear it, people tell me that compiling Inkscape on Win is no problem but it is beating me so far.
Thanks,
Tony
Adib Taraben-3 wrote:
Docsonic schrieb:
I followed the directions from JonY to compile the SVN on Win32 (I know
Have you the complete compiler package? Looks that it can not find the string package. Check http://inkscape.modevia.com/win32libs to get the latest packages.
- Compiler should be in c:\mingw\
- call mingwenv.bat from the same command where you call "g++
buildtool.cpp -o btool"
HTH,
Adib.
This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
Hi,
I am terribly sorry. I forgot to tell you that you should modify build.xml and add the appropriate C++ include flags because the provided gcc4 compiler paths are hard coded to look into C:\mingw for headers, therefore they won't look at the C:\mingw4 directory.
Look for this line (line 181 for revision 15895):
<cc cc="${arch}gcc" cxx="${arch}g++"
Change it to
<cc cc="${arch}gcc" cxx="${arch}g++ -I C:\mingw4\include\c++\4.2.0 -I C:\mingw4\include\c++\4.2.0\i686-pc-mingw32"
That above should be in one line. This will tell g++ to look in those places for standard C++ headers.
Hope I fixed it. Sorry for the inconvenience. I personally build svn in places other than C:\ because it ran out of space.
Thanks JonY but it still doesn't seem to work. My build.xml file (lines 178-185) is now...
178 description="compile the source to .o" > 179 180 <!-- Compile from source to build --> 181 <cc cc="${arch}gcc" cxx="${arch}g++ -I C:\mingw4\include\c++\4.2.0 -I C:\mingw4\include\c++\4.2.0\i686-pc-mingw32" 182 destdir="${build}/obj"> 183 <fileset dir="${src}"> 184 <!-- THINGS TO EXCLUDE --> 185 <exclude name="ast/.*"/>
...just to make sure I edited it correctly. I still get the same error that it can't find those 4 files, string, map, set and vector and I am using Inkscape-15896 sources with mingw-4.2.0-070518 and gtk210-070819. Is there anything else I might have missed?
Thanks again for your help,
Tony
JonY-3 wrote:
Hi,
I am terribly sorry. I forgot to tell you that you should modify build.xml and add the appropriate C++ include flags because the provided gcc4 compiler paths are hard coded to look into C:\mingw for headers, therefore they won't look at the C:\mingw4 directory.
Look for this line (line 181 for revision 15895):
<cc cc="${arch}gcc" cxx="${arch}g++"
Change it to
<cc cc="${arch}gcc" cxx="${arch}g++ -I C:\mingw4\include\c++\4.2.0 -I C:\mingw4\include\c++\4.2.0\i686-pc-mingw32"
That above should be in one line. This will tell g++ to look in those places for standard C++ headers.
Hope I fixed it. Sorry for the inconvenience. I personally build svn in places other than C:\ because it ran out of space.
Docsonic wrote:
Thanks JonY but it still doesn't seem to work. My build.xml file (lines 178-185) is now...
178 description="compile the source to .o" > 179 180 <!-- Compile from source to build --> 181 <cc cc="${arch}gcc" cxx="${arch}g++ -I C:\mingw4\include\c++\4.2.0 -I C:\mingw4\include\c++\4.2.0\i686-pc-mingw32" 182 destdir="${build}/obj"> 183 <fileset dir="${src}"> 184 <!-- THINGS TO EXCLUDE --> 185 <exclude name="ast/.*"/>
...just to make sure I edited it correctly. I still get the same error that it can't find those 4 files, string, map, set and vector and I am using Inkscape-15896 sources with mingw-4.2.0-070518 and gtk210-070819. Is there anything else I might have missed?
Thanks again for your help,
Tony
Hi, I also forgot to tell you that you should also add the include flags when building buildtool.cpp. Build.xml is only used by btool to build inkscape. Use:
g++ -I C:\mingw4\include\c++\4.2.0 -I C:\mingw4\include\c++\4.2.0\i686-pc-mingw32 buildtool.cpp -o btool
Sorry again.
Perfect, thanks a million JonY :-)
Tony
JonY-3 wrote:
Docsonic wrote:
Thanks JonY but it still doesn't seem to work. My build.xml file (lines 178-185) is now...
178 description="compile the source to .o" > 179 180 <!-- Compile from source to build --> 181 <cc cc="${arch}gcc" cxx="${arch}g++ -I C:\mingw4\include\c++\4.2.0 -I C:\mingw4\include\c++\4.2.0\i686-pc-mingw32" 182 destdir="${build}/obj"> 183 <fileset dir="${src}"> 184 <!-- THINGS TO EXCLUDE --> 185 <exclude name="ast/.*"/>
...just to make sure I edited it correctly. I still get the same error that it can't find those 4 files, string, map, set and vector and I am using Inkscape-15896 sources with mingw-4.2.0-070518 and gtk210-070819. Is there anything else I might have missed?
Thanks again for your help,
Tony
Hi, I also forgot to tell you that you should also add the include flags when building buildtool.cpp. Build.xml is only used by btool to build inkscape. Use:
g++ -I C:\mingw4\include\c++\4.2.0 -I C:\mingw4\include\c++\4.2.0\i686-pc-mingw32 buildtool.cpp -o btool
Sorry again.
This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
participants (3)
-
Adib Taraben
-
Docsonic
-
JonY