User forums > Help

Unable to read source file

<< < (5/8) > >>

BlueHazzard:

--- Quote ---@oBFusCATed so what can/should I do now?
--- End quote ---
If you ask this question then there is a lot work ahead of you. We can not do anything because we do not have the problem, and also i have not the possibility to use windows with the linux subsystem... If you are motivated enough i will try to guide you trough the steps. Be aware this is A LOT WORK/Time, but you will also learn a lot!


--- Quote ---I just installed Code::Blocks on OpenSuse Leap 42.3 for Windows Subsystem (Windows 10 installed -> OpenSuse Sub).
I'm using wxWidgets version 3.0.4 nostl.
--- End quote ---
First i would like to know how you installed all this... Compiled by yourself? Installed from repo?

LuiZiffer:
Thank you all for helping, I managed to fix the issue. I removed everything and reinstalled wxWidgets this time with the version 2.8.12 and codeblocks from the subversion repo. And somehow it works now.
Thank you @BlueHazzard for being willing to invest so much time, sadly i don't have enough myself. (If you still want to know, I installed 3.0.4 via Opensuse download website, added the rpm, then zypper and yast; I got codeblocks from a tar file, installed it via /bootstrap, /configure, etc..
And I will probably sometime in the future work on my knowledge regarding linux).
@omlk it wasn't solved, it had the same issue.

BlueHazzard:

--- Quote ---Thank you all for helping, I managed to fix the issue. I removed everything and reinstalled wxWidgets this time with the version 2.8.12 and codeblocks from the subversion repo. And somehow it works now.
Thank you @BlueHazzard for being willing to invest so much time, sadly i don't have enough myself. (If you still want to know, I installed 3.0.4 via Opensuse download website, added the rpm, then zypper and yast; I got codeblocks from a tar file, installed it via /bootstrap, /configure, etc..
--- End quote ---
Now it would be easy to help us ;)

1) Open the CodeBlocks_wx30-unix.cbp file
2) It probably will ask you about the global variable "cb_release_type" enter

--- Code: ----g
--- End code ---
in the base field...
3) If it did not ask about the "cb_release_type" global variable, then Settings->global variables..->Current variable->New->Name: cb_release_type->ok
3.1) proceed with step 2
4) Build->Rebuild. This will need some time...
5) Hit Alt+G and type "encodingdetector" and double click or enter the encodingdetector.cpp file
6) Git Ctrl+g and type "149" to go to line 149
7) Set a breakpoint to this line by klicking between the line number and line text until a red circle appears, or hit F5
8) Start the debugger with Debug->Start
9) A new Codeblocks (we will call it debugee from now on) will open. Open your faulty file in the debugee.
10) The codeblocks window from where you are debugging will pop up, or blink or whatever... It will display the line 149 with a yellow arrow
11) Open the watches with Debugg->Debugging windows->Watches
12) Now go back to the code and make a right click on "buffer"->Add watch
13) Now go back to the code and make a right click on "size"->Add watch
14) Now this two values will appear in the watches dialog. Please tell us the values
15) Now step trought the program and tell us what functions are called:
15.1) To step one line hit the F7 key. The yellow arrow will make a step. Please note us the path the yellow arrow makes until the end of this function....
16) If the yellow arrow is at line 247 you can abort the debugee by hiting the red button in the toolbars

LuiZiffer:
i'm encountering the following error when trying to rebuild:

--- Quote ----------------- Build: scintilla in Code::Blocks wx3.0.x - Unix (compiler: GNU GCC Compiler)---------------
Scanned 0 files for #includes, cache used 0, cache updated 0
g++ -Wall -g -fmessage-length=0 -fexceptions -Winvalid-pch -fPIC -DcbDEBUG -DCB_PRECOMP -std=c++11 -D__WX__ -DGTK -DLINK_LEXERS -DSCI_LEXER -DWXMAKINGDLL_SCI -iquote.objs30/include -I.objs30/include -I. -Isdk/wxscintilla/include -Iinclude/tinyxml -Isdk/wxscintilla/src/scintilla/include -Isdk/wxscintilla/src/scintilla/src -Isdk/wxscintilla/src/scintilla/lexlib -c /home/luiziffer/trunk/src/sdk/wxscintilla/src/PlatWX.cpp -o .objs30/sdk/wxscintilla/src/PlatWX.o
g++ -Wall -g -fmessage-length=0 -fexceptions -Winvalid-pch -fPIC -DcbDEBUG -DCB_PRECOMP -std=c++11 -D__WX__ -DGTK -DLINK_LEXERS -DSCI_LEXER -DWXMAKINGDLL_SCI -iquote.objs30/include -I.objs30/include -I. -Isdk/wxscintilla/include -Iinclude/tinyxml -Isdk/wxscintilla/src/scintilla/include -Isdk/wxscintilla/src/scintilla/src -Isdk/wxscintilla/src/scintilla/lexlib -c /home/luiziffer/trunk/src/sdk/wxscintilla/src/scintilla/lexers/LexA68k.cxx -o .objs30/sdk/wxscintilla/src/scintilla/lexers/LexA68k.o
g++ -Wall -g -fmessage-length=0 -fexceptions -Winvalid-pch -fPIC -DcbDEBUG -DCB_PRECOMP -std=c++11 -D__WX__ -DGTK -DLINK_LEXERS -DSCI_LEXER -DWXMAKINGDLL_SCI -iquote.objs30/include -I.objs30/include -I. -Isdk/wxscintilla/include -Iinclude/tinyxml -Isdk/wxscintilla/src/scintilla/include -Isdk/wxscintilla/src/scintilla/src -Isdk/wxscintilla/src/scintilla/lexlib -c /home/luiziffer/trunk/src/sdk/wxscintilla/src/scintilla/lexers/LexAbaqus.cxx -o .objs30/sdk/wxscintilla/src/scintilla/lexers/LexAbaqus.o
g++ -Wall -g -fmessage-length=0 -fexceptions -Winvalid-pch -fPIC -DcbDEBUG -DCB_PRECOMP -std=c++11 -D__WX__ -DGTK -DLINK_LEXERS -DSCI_LEXER -DWXMAKINGDLL_SCI -iquote.objs30/include -I.objs30/include -I. -Isdk/wxscintilla/include -Iinclude/tinyxml -Isdk/wxscintilla/src/scintilla/include -Isdk/wxscintilla/src/scintilla/src -Isdk/wxscintilla/src/scintilla/lexlib -c /home/luiziffer/trunk/src/sdk/wxscintilla/src/scintilla/lexers/LexAda.cxx -o .objs30/sdk/wxscintilla/src/scintilla/lexers/LexAda.o
/home/luiziffer/trunk/src/sdk/wxscintilla/src/PlatWX.cpp:8:23: fatal error: wx/wxprec.h: No such file or directory
 #include "wx/wxprec.h"
                       ^
compilation terminated.
--- End quote ---

further infromation:
wx-config --version
returns: 2.8.12

wx-config --list
returns: Default config is gtk2-unicode-release-2.8

  Default config will be used for output

stahta01:
Why are you building with 3.0 instead of 2.8 that worked for you?

Tim S.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version