Skip to content

Commit 403e85c

Browse files
committed
Fixed blifexplorer build dependencies.
Was broken due to ODIN's switch to g++ and other project restructuring. Removed Debian/Ubuntu specific dynamic loader requirement. Should now compile on CentOS as well as Ubuntu.
1 parent bdb397d commit 403e85c

File tree

3 files changed

+34
-51
lines changed

3 files changed

+34
-51
lines changed

blifexplorer/src/blifExplorer.pro

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,6 @@ HEADERS += mainwindow.h \
5959
../../ODIN_II/SRC/adders.h \
6060
../../ODIN_II/SRC/implicit_memory.h \
6161
../../ODIN_II/SRC/subtractions.h \
62-
../../printhandler/SRC/TIO_InputOutputHandlers/TIO_PrintHandlerExtern.h \
63-
../../printhandler/SRC/TIO_InputOutputHandlers/TIO_SkinHandler.h \
64-
../../printhandler/SRC/TIO_InputOutputHandlers/TIO_PrintHandler.h \
65-
../../printhandler/SRC/TIO_InputOutputHandlers/TIO_FileOutput.h \
66-
../../printhandler/SRC/TIO_InputOutputHandlers/TIO_CustomOutput.h \
67-
../../printhandler/SRC/TIO_InputOutputHandlers/TIO_FileHandler.h \
68-
../../printhandler/SRC/TC_Common/TC_Name.h \
69-
../../printhandler/SRC/TC_Common/TC_StringUtils.h \
70-
../../printhandler/SRC/TC_Common/RegExp.h \
7162
clockconfig.h
7263

7364

@@ -81,7 +72,6 @@ INCLUDEPATH += ../../libarchfpga/include ../../libarchfpga ../../ODIN_II/SRC ../
8172

8273
LIBS += -L../../libarchfpga \
8374
-L../../ODIN_II/OBJ \
84-
-lm -ldl\
8575
\
8676
../../ODIN_II/OBJ/odin_ii_func.o \
8777
../../ODIN_II/OBJ/netlist_visualizer.o \
@@ -98,16 +88,19 @@ LIBS += -L../../libarchfpga \
9888
../../ODIN_II/OBJ/queue.o \
9989
../../ODIN_II/OBJ/hashtable.o \
10090
../../ODIN_II/OBJ/simulate_blif.o\
91+
../../ODIN_II/OBJ/ace.o\
10192
../../ODIN_II/OBJ/print_netlist.o \
10293
\
10394
../../ODIN_II/OBJ/read_xml_config_file.o \
10495
../../ODIN_II/OBJ/outputs.o \
10596
../../ODIN_II/OBJ/parse_making_ast.o \
97+
../../ODIN_II/OBJ/ast_elaborate.o \
10698
../../ODIN_II/OBJ/ast_util.o \
10799
../../ODIN_II/OBJ/high_level_data.o \
108100
../../ODIN_II/OBJ/ast_optimizations.o \
109101
../../ODIN_II/OBJ/netlist_create_from_ast.o \
110102
../../ODIN_II/OBJ/netlist_optimizations.o \
103+
../../ODIN_II/OBJ/netlist_cleanup.o \
111104
../../ODIN_II/OBJ/output_blif.o \
112105
../../ODIN_II/OBJ/netlist_check.o \
113106
../../ODIN_II/OBJ/activity_estimation.o \
@@ -121,18 +114,12 @@ LIBS += -L../../libarchfpga \
121114
../../ODIN_II/OBJ/implicit_memory.o \
122115
../../ODIN_II/OBJ/subtractions.o \
123116
\
124-
/usr/lib/x86_64-linux-gnu/libdl.so \
125117
../../libarchfpga/ezxml.o \
126118
../../libarchfpga/read_xml_arch_file.o \
127119
../../libarchfpga/read_xml_util.o \
128120
../../libarchfpga/util.o\
129121
../../libarchfpga/ReadLine.o \
130-
../../printhandler/OBJ/TIO_InputOutputHandlers/TIO_PrintHandlerExtern.o \
131-
../../printhandler/OBJ/TIO_InputOutputHandlers/TIO_SkinHandler.o \
132-
../../printhandler/OBJ/TIO_InputOutputHandlers/TIO_PrintHandler.o \
133-
../../printhandler/OBJ/TIO_InputOutputHandlers/TIO_FileOutput.o \
134-
../../printhandler/OBJ/TIO_InputOutputHandlers/TIO_CustomOutput.o \
135-
../../printhandler/OBJ/TIO_InputOutputHandlers/TIO_FileHandler.o \
136-
../../printhandler/OBJ/TC_Common/TC_Name.o \
137-
../../printhandler/OBJ/TC_Common/TC_StringUtils.o \
138-
../../printhandler/OBJ/TC_Common/RegExp.o \
122+
../../libarchfpga/parse_switchblocks.o \
123+
\
124+
../../liblog/obj/log.o \
125+
-lm -ldl\

blifexplorer/src/odininterface.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ OTHER DEALINGS IN THE SOFTWARE.
2828
//global vars needed for odin
2929
t_arch Arch;
3030
int current_parse_file;
31+
global_args_t global_args;
3132

3233
OdinInterface::OdinInterface()
3334
{
@@ -50,7 +51,7 @@ void OdinInterface::startOdin()
5051
{
5152
fprintf(stderr, "Reading FPGA Architecture file\n");
5253

53-
XmlReadArch(global_args.arch_file, (boolean)FALSE, &Arch, &type_descriptors, &num_types);
54+
XmlReadArch(global_args.arch_file, (bool)FALSE, &Arch, &type_descriptors, &num_types);
5455
}
5556

5657
if (!global_args.blif_file)

blifexplorer/src/odininterface.h

Lines changed: 25 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -26,36 +26,31 @@ OTHER DEALINGS IN THE SOFTWARE.
2626

2727
#include <QtGui>
2828

29-
extern "C" {
30-
#include <stdlib.h>
31-
#include <stdio.h>
32-
#include <unistd.h>
33-
#include <string.h>
34-
#include "globals.h"
35-
#include "types.h"
36-
#include "util.h"
37-
#include "netlist_utils.h"
38-
#include "arch_types.h"
39-
#include "parse_making_ast.h"
40-
#include "netlist_create_from_ast.h"
41-
#include "outputs.h"
42-
#include "netlist_optimizations.h"
43-
#include "read_xml_config_file.h"
44-
#include "read_xml_arch_file.h"
45-
#include "partial_map.h"
46-
#include "multipliers.h"
47-
#include "netlist_check.h"
48-
#include "read_blif.h"
49-
#include "read_netlist.h"
50-
#include "activity_estimation.h"
51-
#include "high_level_data.h"
52-
#include "hard_blocks.h"
53-
#include "memories.h"
54-
#include "simulate_blif.h"
55-
#include "errors.h"
56-
#include "netlist_visualizer.h"
57-
#include "odin_ii_func.h"
58-
}
29+
#include "globals.h"
30+
#include "types.h"
31+
#include "util.h"
32+
#include "netlist_utils.h"
33+
#include "arch_types.h"
34+
#include "parse_making_ast.h"
35+
#include "netlist_create_from_ast.h"
36+
#include "outputs.h"
37+
#include "netlist_optimizations.h"
38+
#include "read_xml_config_file.h"
39+
#include "read_xml_arch_file.h"
40+
#include "partial_map.h"
41+
#include "multipliers.h"
42+
#include "netlist_check.h"
43+
#include "read_blif.h"
44+
#include "read_netlist.h"
45+
#include "activity_estimation.h"
46+
#include "high_level_data.h"
47+
#include "hard_blocks.h"
48+
#include "memories.h"
49+
#include "simulate_blif.h"
50+
#include "ace.h"
51+
#include "errors.h"
52+
#include "netlist_visualizer.h"
53+
#include "odin_ii_func.h"
5954

6055

6156
class OdinInterface

0 commit comments

Comments
 (0)