Page 1 of 1

Web Toolkit - wt-4.11.0 in Codelite

Posted: Thu Oct 03, 2024 3:32 am
by thomasg_peters

I'm interested in creating a project template, or at least understanding how to configure my project to compile and run wt applications using Codelite IDE. I've downloaded the Wt library, compiled and installed according to the build documentation: Installation: Unix-like platforms

Running on macos - sequoia 15.0 - Beta [24B5055e] using Codelite 17.6.0

When using Codelite, I can configure the build settings in the project. However, what I would like to do is execute the project within the IDE. When I do, I get the following output.

Code: Select all

Working directory is set to: /Users/thomaspeters/Development/C-Projects/C-Projects/build-Debug/lib
Executing:  /tmp/codelite-exec.sh
dyld[80988]: Library not loaded: @rpath/libwt.4.11.0.dylib
  Referenced from: <1148DF10-F896-4E79-AFE5-763811BE23BB> /Users/thomaspeters/Development/C-Projects/C-Projects/build-Debug/bin/wt-example.wt
  Reason: no LC_RPATH's found
/tmp/codelite-exec.sh: line 9: 80988 Abort trap: 6           "${command}" "${args[@]}"
Program exited

I am including headers from:

Code: Select all

/usr/local/include

and linking libwt & libwthttp from:

Code: Select all

/usr/local/lib

clang is compiling and linking without errors. Setting the following using Program Arguments setting:

Code: Select all

--docroot . --http-address 0.0.0.0  --http-port 9090

Re: Web Toolkit - wt-4.11.0 in Codelite

Posted: Tue Oct 08, 2024 8:25 pm
by Jarod42

dyld[80988]: Library not loaded: @rpath/libwt.4.11.0.dylib
Referenced from: <1148DF10-F896-4E79-AFE5-763811BE23BB> /Users/thomaspeters/Development/C-Projects/C-Projects/build-Debug/bin/wt-example.wt
Reason: no LC_RPATH's found

Seems to be a "classical" issue with shared libraries
Ensure that libwt.4.11.0.dylib is in your LD_LIBRARY_PATH/RPATH/LC_RPATH

Remember than you can have custom environment within Codelite to not "polute" your system environment