Menu

#3 Instructions to compile on Ubuntu and rotate circuit elements

1.0
closed
None
2023-11-06
2023-08-01
Cyger Pham
No

Hi all,
First, I wanted to provide some usefull information to compile the code on Ubuntu.

The required extra packages (in addition to the standard compilation stuff) are :
- libwxgtk3.0-gtk3-dev
- libboost-all-dev

On ubuntu, this is installed with a simple:

sudo apt install libwxgtk3.0-gtk3-dev libboost-all-dev

Then using make in NetlistViewer/build/linux will build the application.

Second, as mentionned by other users, it took me while to understand how to rotate circuit elements. This is done by left-dragging a component and at the same right clicking.
This can be seen in app.cpp:

void SpiceViewerCanvas::OnMouseUp(wxMouseEvent &event)
{
    if (event.LeftUp())
    {
        m_pDraggedDev = NULL;
        Refresh();
    }
    else if (event.RightUp() && m_pDraggedDev)
    {
        // rotate the device being dragged
        m_pDraggedDev->rotateClockwise();
        Refresh();
    }
}

Discussion

  • Francesco Montorsi

    • status: open --> closed
    • assigned_to: Francesco Montorsi
     

Log in to post a comment.