Web Toolkit - wt-4.11.0 in Codelite

General questions regarding the usage of CodeLite
thomasg_peters
CodeLite Curious
Posts: 3
Joined: Sat Sep 11, 2021 7:27 pm
Genuine User: Yes
IDE Question: C++
Contact:

Web Toolkit - wt-4.11.0 in Codelite

Post 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
User avatar
Jarod42
CodeLite Expert
Posts: 240
Joined: Wed Sep 30, 2009 5:54 pm
Genuine User: Yes
IDE Question: C++
Location: France
Contact:

Re: Web Toolkit - wt-4.11.0 in Codelite

Post 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

Post Reply