Skip to content

Difficulties installing SolTrace on Debian GNU/Linux 12 (Bookworm) #59

@Gablegritule

Description

@Gablegritule

Hi :)

I have encountered some difficulties installing SolTrace on Debian GNU/Linux 12 (Bookworm) - 64 bit - Gnome. As this is the first time I have compiled a program from source code, I would appreciate some help.
Indeed, it turned out that readme and wiki give different indications, both of which seem more or less outdated. Nevertheless, I think I am almost there. Here is my path.

Step 0: Prerequisites

gcc --version
    gcc (Debian 12.2.0-14) 12.2.0
ldd --version
    ldd (Debian GLIBC 2.36-9+deb12u9) 2.36
sudo apt-get install git build-essential cmake libgtk2.0-dev libgl1-mesa-dev mesa-common-dev freeglut3-dev libcurl4-openssl-dev

Comment: g++ is a dependency of build-essential

Step 1: Install wxWidgets

sudo apt-get install libwxbase3.2-1 libwxgtk3.2-1 libwxgtk3.2-dev wx3.2-headers wx-common
wx-config --cflags
    -I/usr/lib/x86_64-linux-gnu/wx/include/gtk3-unicode-3.2 -I/usr/include/wx-3.2 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread

Step 2: Clone the SolTrace code repository

mkdir /home/gabriel/st_dev
cd /home/gabriel/st_dev
for repo in lk wex SolTrace ; do git clone https://github.com/nrel/$repo ; done

Step 3: Set Environment Variables

export LKDIR="/home/gabriel/st_dev/lk/"
export WEXDIR="/home/gabriel/st_dev/wex/"

Step 4: Install LK, WEX and SolTrace

Here, I have used 'cmake' instead of 'make' (as written in the readme, contrary to the wiki)

cd /home/gabriel/st_dev/lk
cmake /home/gabriel/st_dev/lk
cd /home/gabriel/st_dev/wex
cmake /home/gabriel/st_dev/wex
cd /home/gabriel/st_dev/SolTrace/coretrace
cmake /home/gabriel/st_dev/SolTrace/coretrace

Before to build 'app', I modified the path of wxWidgets in its CMakeLists.txt:

  • initial config: set(wxWidgets_CONFIG_EXECUTABLE /usr/local/bin/wx-config-3)
  • modified config: set(wxWidgets_CONFIG_EXECUTABLE /usr/bin/wx-config)
cd /home/gabriel/st_dev/SolTrace/app
cmake /home/gabriel/st_dev/SolTrace/app

Step 5: Run the application

Following the wiki

The path and application indicated by the wiki do not exist.

Following the readme

cd /home/gabriel/st_dev/
mv /home/gabriel/st_dev/SolTrace/parent-dir-CMakeLists.txt /home/gabriel/st_dev/CMakeLists.txt
mkdir /home/gabriel/st_dev/build-soltrace
cd /home/gabriel/st_dev/build-soltrace

Before to build, I modified the CMakeLists.txt:

  • initial config: add_subdirectory(soltrace)
  • modified config: add_subdirectory(SolTrace)
cmake -G "Unix Makefiles" -DCMAKE_CONFIGURATION_TYPES="Debug;Release" -DCMAKE_SYSTEM_VERSION=10.0 -DSAM_SKIP_TOOLS=1 ..

Results

The procedure is now complete (without error), but I did not get any files to run anywhere in the folder tree. What did I miss?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions