Jump to content

thoughtMaze

Members
  • Content Count

    4
  • Joined

  • Last visited

  1. actually the make file contain the path for the environment variable as can be seen bellow, so there should be no need to add it # CC=/usr/bin/g++ ARCH := $(shell arch) SYSTEMC_HOME=/usr/local/SystemC-2.3.1 # 64bit or 32bit libaries to link to LINUXLIB := $(shell if [ ${ARCH} = "i686" ]; \ then \ echo lib-linux; \ else \ echo lib-linux64; \ fi) INCLUDES = -I$(SYSTEMC_HOME)/include -I. LIBRARIES = -L. -L$(SYSTEMC_HOME)/$(LINUXLIB) -lsystemc -lm RPATH = -Wl,-rpath=$(SYSTEMC_HOME)/$(LINUXLIB) PROGRAM = flipflop.x SRCS = flipflop.cpp sc_main.cpp OBJS = flipflop.o sc_main.o all : $(PROGRAM) $(OBJS) : $(SRCS) $(CC) $(INCLUDES) -c $(SRCS) $(PROGRAM) : $(OBJS) $(CC) $(INCLUDES) $(LIBRARIES) $(RPATH) -o $(PROGRAM) $(OBJS) clean: @rm -f $(OBJS) $(PROGRAM) *.cpp~ *.h~
  2. Hi Alan thanks for that, it looks like it installed correctly and ran the make command in the examples folder and it looks like everything is ok PASS: 2.1/scx_mutex_w_policy/test.sh SystemC 2.3.1-Accellera --- Jan 10 2015 11:21:03 Copyright © 1996-2014 by all Contributors, ALL RIGHTS RESERVED PASS: 2.1/specialized_signals/test.sh SystemC 2.3.1-Accellera --- Jan 10 2015 11:21:03 Copyright © 1996-2014 by all Contributors, ALL RIGHTS RESERVED PASS: 2.3/sc_rvd/test.sh SystemC 2.3.1-Accellera --- Jan 10 2015 11:21:03 Copyright © 1996-2014 by all Contributors, ALL RIGHTS RESERVED PASS: 2.3/sc_ttd/test.sh and so on.... but when I go into one of my own example it still cant find the systemc.h file as seen below, after trying to add the environment variable path, can you please tell me what I'm doing wrong. dukenukem@ubuntu:~/Desktop/lab1/flipflop$ export SYSTEMC_HOME=/usr/local/systemc-2.3/ dukenukem@ubuntu:~/Desktop/lab1/flipflop$ sudo gedit /etc/environment [sudo] password for dukenukem: (gedit:10957): IBUS-WARNING **: The owner of /home/dukenukem/.config/ibus/bus is not root! (gedit:10957): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files (gedit:10957): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files dukenukem@ubuntu:~/Desktop/lab1/flipflop$ sudo gedit /etc/environment (gedit:11006): IBUS-WARNING **: The owner of /home/dukenukem/.config/ibus/bus is not root! dukenukem@ubuntu:~/Desktop/lab1/flipflop$ make /usr/bin/g++ -I/usr/local/SystemC-2.3.0/include -I. -c flipflop.cpp sc_main.cpp In file included from flipflop.cpp:4:0: flipflop.h:8:28: fatal error: systemc.h: No such file or directory #include <systemc.h> ^ compilation terminated. sc_main.cpp:6:21: fatal error: systemc.h: No such file or directory #include <systemc.h> ^ compilation terminated. make: *** [flipflop.o] Error 1 dukenukem@ubuntu:~/Desktop/lab1/flipflop$ the environment variable path i tried to add was this SYSTEMC_HOME=”/usr/local/systemc-2.2/” but still no cigar
  3. cant install on the latest Ubuntu, no gmake comand found, please help!!! Coroutine package for processes: QuickThreads Disable async_request_update : no Phase callbacks (experimental) : no Additional settings : --------------------------------------------------------------------- dukenukem@ubuntu:~/systemc-2.3.1/objdir$ gmake No command 'gmake' found, did you mean: Command 'qmake' from package 'qtchooser' (main) Command 'mmake' from package 'mmake' (universe) Command 'guake' from package 'guake' (universe) Command 'vmake' from package 'hdf4-tools' (universe) Command 'cmake' from package 'cmake' (main) Command 'jmake' from package 'dist' (universe) Command 'fmake' from package 'freebsd-buildutils' (universe) Command 'tmake' from package 'tmake' (main) Command 'make' from package 'make' (main) Command 'pmake' from package 'bmake' (universe) Command 'omake' from package 'omake' (universe) Command 'imake' from package 'xutils-dev' (main) Command 'bmake' from package 'bmake' (universe) gmake: command not found dukenukem@ubuntu:~/systemc-2.3.1/objdir$ what do i do now?
×
×
  • Create New...