Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 14:06
    rlbxku1r opened #3004
  • May 25 18:53

    dghart on master

    Prevent a wxAssert in the git L… (compare)

  • May 25 11:31

    eranif on master

    Remoty: use unique ID for `Relo… (compare)

  • May 25 09:27
    mattreecebentley commented #2997
  • May 25 09:27
    mattreecebentley commented #2996
  • May 25 08:29

    eranif on master

    remoty: fixed: do not prompt on… (compare)

  • May 24 20:25

    eranif on master

    fixed: partial message is press… (compare)

  • May 24 20:21

    eranif on master

    RemotyWorkspace: added context … (compare)

  • May 24 19:26

    eranif on master

    Remote workspace: added an opti… (compare)

  • May 24 18:27

    eranif on master

    remoty: add "Close workspace" m… (compare)

  • May 24 14:23

    eranif on master

    fixed: GTK: drop down arrow is … (compare)

  • May 24 12:02

    eranif on master

    codelite-remote: the response t… (compare)

  • May 24 06:47

    eranif on master

    themed text ctrl: `Ctrl-RIGHT`,… (compare)

  • May 24 06:41
    jasonlogbi commented #2999
  • May 23 21:54
    eranif closed #2971
  • May 23 21:54

    eranif on master

    fixed ctagsd UT fixed: https://github.com/erani… fixed: `clRowEntry::GetColumnWi… (compare)

  • May 23 20:37

    eranif on master

    fixed: ctagsd: wrong column is … (compare)

  • May 23 20:25
    eranif labeled #2971
  • May 23 20:25
    eranif commented #2971
  • May 23 20:19
    eranif commented #2991
Subramaniam Chanderashekarapuram
@casubramaniam_gitlab
Trying to use Codelite for C++ with CMake and Ninja.
I followed the documentation and passed parameters to the Make generator, but also had to adjust the Executable path and the working directory as well.... Is that expected or am I doing something wrong?
Subramaniam Chanderashekarapuram
@casubramaniam_gitlab
image.png
and
image.png
Those were the changes I had to make to be exact.
agbiPy
@agbiPy
Hi all
haytham med
@haythammed_twitter
Hi
when i use more than one format specifier in printf i get segmentation fault
But not in code::blocks
dghart
@dghart
@haythammed_twitter A little more information needed: Which CodeLite version? Which OS? C++?
Where are you putting the printf? In your code, or in the debugger window, or...
What is segfaulting? Your program, or CodeLite itself? Have you tried debugging?
Can you pastebin a diff of a minimal compilable sample (preferably the wxWidget 'minimal' sample, or one of the sample projects that come with CodeLite) that demonstrates the problem?
haytham med
@haythammed_twitter
15.0 Linux C++, printf in code, terminal segfaulting, tried debugging
I get these errors when building
gcc-8: error trying to exec 'cc1plus': execvp: No such file or directory
make[1]: * [codelite.mk:97: ../../build-Release/codelite/codelite/main.cpp.o.d] Error 1
I messed configuration a bit i guess
haytham med
@haythammed_twitter
i changed g++-8 to gcc-9 and all now work
Marcin Borawski
@nlhnt
Hey guys I got a begginers problem with configurinig the IDE.
I managed to set the paths required by WX, downloaded the binaries for my compiler.
I am trying to get the simple hello world to work, but after initial compilation steps success the toolchain is looking for files begining with Debug or Release prefix instead of looking for them in the Debug or Release directory.
To me that seems like a / or \ was escaped and I don't understand why? I guess if I just ran this with cmake in shell it would work (with a correct config)...
Here's what it looks like...
C:\Windows\system32\cmd.exe /C mingw32-make.exe -j 4 -e -f  "wx_hello_world.mk"  MakeIntermediateDirs && mingw32-make.exe -j 4 -e -f  "wx_hello_world.mk"  all
----------Building project:[ wx_hello_world - Release ]----------
Creating Intermediate Directory
windres -i "C:\Users\booko\Documents\CodeLite\wx_hello_world\wx_hello_world\win_resources.rc" --define __WXMSW__ --define __WXDEBUG__ --define _UNICODE --include-dir C:/wxWidgets-3.1.5/lib/gcc_dll/mswud --include-dir C:/wxWidgets-3.1.5/include --define WXUSINGDLL    -o Release/win_resources.rc.o
Intermediate directories created
windres: warning: 24: 1: 1033: duplicate value
g++   -c  "C:\Users\booko\Documents\CodeLite\wx_hello_world\wx_hello_world\wxcrafter.cpp" -O2 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -D__WXDEBUG__ -D_UNICODE -IC:/wxWidgets-3.1.5/lib/gcc_dll/mswud -IC:/wxWidgets-3.1.5/include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0  -fno-keep-inline-dllexport  -DNDEBUG  -o Release/wxcrafter.cpp.o -I. -I.
g++   -c  "C:\Users\booko\Documents\CodeLite\wx_hello_world\wx_hello_world\wxcrafter_bitmaps.cpp" -O2 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -D__WXDEBUG__ -D_UNICODE -IC:/wxWidgets-3.1.5/lib/gcc_dll/mswud -IC:/wxWidgets-3.1.5/include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0  -fno-keep-inline-dllexport  -DNDEBUG  -o Release/wxcrafter_bitmaps.cpp.o -I. -I.
g++   -c  "C:\Users\booko\Documents\CodeLite\wx_hello_world\wx_hello_world\MainFrame.cpp" -O2 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -D__WXDEBUG__ -D_UNICODE -IC:/wxWidgets-3.1.5/lib/gcc_dll/mswud -IC:/wxWidgets-3.1.5/include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0  -fno-keep-inline-dllexport  -DNDEBUG  -o Release/MainFrame.cpp.o -I. -I.
g++   -c  "C:\Users\booko\Documents\CodeLite\wx_hello_world\wx_hello_world\main.cpp" -O2 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -D__WXDEBUG__ -D_UNICODE -IC:/wxWidgets-3.1.5/lib/gcc_dll/mswud -IC:/wxWidgets-3.1.5/include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0  -fno-keep-inline-dllexport  -DNDEBUG  -o Release/main.cpp.o -I. -I.
g++  -o Release\wx_hello_world @"wx_hello_world.txt" -L.    -mthreads -LC:/wxWidgets-3.1.5/lib/gcc_dll -lwxmsw31ud_richtext -lwxmsw31ud_xrc -lwxmsw31ud_aui -lwxmsw31ud_html -lwxmsw31ud_adv -lwxmsw31ud_core -lwxbase31ud_xml -lwxbase31ud_net -lwxbase31ud -lwxscintillad -lwxtiffd -lwxjpegd -lwxpngd -lwxzlibd -lwxregexud -lwxexpatd -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexud -lwinspool -lwinmm -lshell32 -lcomctl32 -lversion -lshlwapi -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -luxtheme -loleacc  -mwindows
g++: error: Releasewin_resources.rc.o: No such file or directory
g++: error: ReleaseMainFrame.cpp.o: No such file or directory
g++: error: Releasewxcrafter.cpp.o: No such file or directory
g++: error: Releasemain.cpp.o: No such file or directory
g++: error: Releasewxcrafter_bitmaps.cpp.o: No such file or directory
mingw32-make.exe: *** [wx_hello_world.mk:89: Release\wx_hello_world] Error 1
====0 errors, 0 warnings====
Marcin Borawski
@nlhnt
Well, I changed the NMake into CodeLite default generator and suddenly the error is gone... :v
maokecheng
@maokecheng
maybe you should confirm the error files are exists
maokecheng
@maokecheng
when i use codelite with cross-compiler,clangd report -32001 error,invalid AST,any issue?
sss
@sss123next:matrix.org
[m]
hi all, how to properly configure clangd to work properly for large solution containing a lot of projects dependant on each over ?
zoopla9
@zoopla9
hi guys, i have a simple program that I want to debug, when i build i got this error
/bin/sh -c '/usr/bin/make -j2 -e -f Makefile'
----------Building project:[ collision - Debug ]----------
make[1]: Entering directory '/home/user/Projects/pwnable.kr/collision'
/usr/bin/g++ -o ../build-Debug/bin/collision @../build-Debug/collision/ObjectsList.txt -L. -L. -LDebug -O0
/usr/bin/ld: ../build-Debug/collision/col.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: failed to set dynamic section sizes: bad value
collect2: error: ld returned 1 exit status
make[1]: [collision.mk:79: ../build-Debug/bin/collision] Error 1
make[1]: Leaving directory '/home/user/Projects/pwnable.kr/collision'
make:
[Makefile:5: All] Error 2
====0 errors, 0 warnings====
the linker failed with something called .rodata
dghart
@dghart
@zoopla9 I've not seen that error before, but a quick "recompile with -fPIE" google gave multiple solutions.
Why not try it yourself? But if for some reason you can't, see e.g.
https://stackoverflow.com/questions/67521510/recompiling-with-fpie-flag-could-not-resolve-error
https://forum.openwrt.org/t/the-problem-of-can-not-be-used-when-making-a-pie-object-recompile-with-fpie-appears-when-compiling-openwrt-21-02/95937
zoopla9
@zoopla9
@dghart thanks. i figured it out. for some reason the makefile wasnt at the right place. I think it was because I switched make program in between and the program didnt move the makefile to the right place.
I got a question on debug program argument.
I could not figure out how to pass in ascii characters in the form of hex value.
in command line, it goes something like this $"\x38\x39"
but codelite does not like that. it treated each character as a character.
the escape \x was not interpreted the way i thought.
Noel Grandin
@noelgrandin_gitlab
Does codelite need wxWidgets > 3.0 now? seeing various errors on building with master
e.g. class wxBitmap has no member named CreateWithDIPSize
dghart
@dghart
@noelgrandin_gitlab Yes, since d2e45befd 'disabled wx stable CI'
Noel Grandin
@noelgrandin_gitlab
that means that Codelite won't work on latest Ubuntu?
oh, I have to build latest wxwidgets and then 'sudo make install' it? that seems tricky - might break other applications
dghart
@dghart
Yes re ubuntu (at least until wx3.2 is released)
Noel Grandin
@noelgrandin_gitlab
possibly something like conan might help - then can build a local copy of wx-widgets for codelite itself
dghart
@dghart
No re building wx3.1. Do what I almost always do:
In the wx source dir: mkdir foo && cd foo && ../configure --enable-debug --$whatever && make -j(nproc)
No need to 'make install'
Noel Grandin
@noelgrandin_gitlab
how do I tell codelite to find it's wxwidgets stuff there?
dghart
@dghart
You can then access the build by pointing at its wx-config, either directly or by playing with your $PATH
Noel Grandin
@noelgrandin_gitlab
pointing at it's wx-config? is that some parameter I pass to codelite's cmake ?
dghart
@dghart
In the terminal
Noel Grandin
@noelgrandin_gitlab
thanks a lot, will try that :-)
dghart
@dghart
or: -DWITH_WXPATH=<fullpath> // Specify a particular wxWidgets build to use. The format must be /path/to/different_wx-config/directory
And also doing: -DCOPY_WX_LIBS=1|0 // Incorporate the wxWidgets libs into CodeLite so the binary doesn't depend on them. default is 0
Eran Ifrah
@eranif
@noelgrandin_gitlab building wx manually, will not break other apps, at it will be installed under /usr/local/lib and not under /usr/lib
Eran Ifrah
@eranif
@noelgrandin_gitlab CodeLite is built with RPATH set to /usr/lib/codelite or to /usr/lib/x86_64-linux-gnu/codelite/ (depends on your distro). You can also check it by
eran@DESKTOP-F7URLL7:~$ objdump -x /usr/bin/codelite|grep RPATH
  RPATH                /usr/lib/x86_64-linux-gnu/codelite